JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "OSPolicyResourcePackageResource.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/google/apiclient-services/src/OSConfig/OSPolicyResourcePackageResource.php
File size: 4.69 KB
MIME-type: text/x-php
Charset: utf-8

<?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\OSConfig;

class OSPolicyResourcePackageResource extends \Google\Model
{
  /**
   * Unspecified is invalid.
   */
  public const DESIRED_STATE_DESIRED_STATE_UNSPECIFIED = 'DESIRED_STATE_UNSPECIFIED';
  /**
   * Ensure that the package is installed.
   */
  public const DESIRED_STATE_INSTALLED = 'INSTALLED';
  /**
   * The agent ensures that the package is not installed and uninstalls it if
   * detected.
   */
  public const DESIRED_STATE_REMOVED = 'REMOVED';
  protected $aptType = OSPolicyResourcePackageResourceAPT::class;
  protected $aptDataType = '';
  protected $debType = OSPolicyResourcePackageResourceDeb::class;
  protected $debDataType = '';
  /**
   * Required. The desired state the agent should maintain for this package.
   *
   * @var string
   */
  public $desiredState;
  protected $googetType = OSPolicyResourcePackageResourceGooGet::class;
  protected $googetDataType = '';
  protected $msiType = OSPolicyResourcePackageResourceMSI::class;
  protected $msiDataType = '';
  protected $rpmType = OSPolicyResourcePackageResourceRPM::class;
  protected $rpmDataType = '';
  protected $yumType = OSPolicyResourcePackageResourceYUM::class;
  protected $yumDataType = '';
  protected $zypperType = OSPolicyResourcePackageResourceZypper::class;
  protected $zypperDataType = '';

  /**
   * A package managed by Apt.
   *
   * @param OSPolicyResourcePackageResourceAPT $apt
   */
  public function setApt(OSPolicyResourcePackageResourceAPT $apt)
  {
    $this->apt = $apt;
  }
  /**
   * @return OSPolicyResourcePackageResourceAPT
   */
  public function getApt()
  {
    return $this->apt;
  }
  /**
   * A deb package file.
   *
   * @param OSPolicyResourcePackageResourceDeb $deb
   */
  public function setDeb(OSPolicyResourcePackageResourceDeb $deb)
  {
    $this->deb = $deb;
  }
  /**
   * @return OSPolicyResourcePackageResourceDeb
   */
  public function getDeb()
  {
    return $this->deb;
  }
  /**
   * Required. The desired state the agent should maintain for this package.
   *
   * Accepted values: DESIRED_STATE_UNSPECIFIED, INSTALLED, REMOVED
   *
   * @param self::DESIRED_STATE_* $desiredState
   */
  public function setDesiredState($desiredState)
  {
    $this->desiredState = $desiredState;
  }
  /**
   * @return self::DESIRED_STATE_*
   */
  public function getDesiredState()
  {
    return $this->desiredState;
  }
  /**
   * A package managed by GooGet.
   *
   * @param OSPolicyResourcePackageResourceGooGet $googet
   */
  public function setGooget(OSPolicyResourcePackageResourceGooGet $googet)
  {
    $this->googet = $googet;
  }
  /**
   * @return OSPolicyResourcePackageResourceGooGet
   */
  public function getGooget()
  {
    return $this->googet;
  }
  /**
   * An MSI package.
   *
   * @param OSPolicyResourcePackageResourceMSI $msi
   */
  public function setMsi(OSPolicyResourcePackageResourceMSI $msi)
  {
    $this->msi = $msi;
  }
  /**
   * @return OSPolicyResourcePackageResourceMSI
   */
  public function getMsi()
  {
    return $this->msi;
  }
  /**
   * An rpm package file.
   *
   * @param OSPolicyResourcePackageResourceRPM $rpm
   */
  public function setRpm(OSPolicyResourcePackageResourceRPM $rpm)
  {
    $this->rpm = $rpm;
  }
  /**
   * @return OSPolicyResourcePackageResourceRPM
   */
  public function getRpm()
  {
    return $this->rpm;
  }
  /**
   * A package managed by YUM.
   *
   * @param OSPolicyResourcePackageResourceYUM $yum
   */
  public function setYum(OSPolicyResourcePackageResourceYUM $yum)
  {
    $this->yum = $yum;
  }
  /**
   * @return OSPolicyResourcePackageResourceYUM
   */
  public function getYum()
  {
    return $this->yum;
  }
  /**
   * A package managed by Zypper.
   *
   * @param OSPolicyResourcePackageResourceZypper $zypper
   */
  public function setZypper(OSPolicyResourcePackageResourceZypper $zypper)
  {
    $this->zypper = $zypper;
  }
  /**
   * @return OSPolicyResourcePackageResourceZypper
   */
  public function getZypper()
  {
    return $this->zypper;
  }
}

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