📂 File Browser

AgentAI/vendor/google/apiclient-services/src/OSConfig
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AptSettings.php
▶ Open 📄 View Source
🐘 CVSSv3.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CancelPatchJobRequest.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 ExecStep.php
▶ Open 📄 View Source
🐘 ExecStepConfig.php
▶ Open 📄 View Source
🐘 ExecutePatchJobRequest.php
▶ Open 📄 View Source
🐘 FixedOrPercent.php
▶ Open 📄 View Source
🐘 GcsObject.php
▶ Open 📄 View Source
🐘 GooSettings.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigCommonV1OperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigCommonV1alphaOperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigCommonV1mainOperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV1OSPolicyAssignmentOperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2ListPolicyOrchestratorsResponse.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2OperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2OrchestratedResource.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2OrchestrationScope.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2OrchestrationScopeLocationSelector.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2OrchestrationScopeResourceHierarchySelector.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2OrchestrationScopeSelector.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2PolicyOrchestrator.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2PolicyOrchestratorIterationState.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2PolicyOrchestratorOrchestrationState.php
▶ Open 📄 View Source
🐘 GoogleCloudOsconfigV2betaOperationMetadata.php
▶ Open 📄 View Source
🐘 Inventory.php
▶ Open 📄 View Source
🐘 InventoryItem.php
▶ Open 📄 View Source
🐘 InventoryOsInfo.php
▶ Open 📄 View Source
🐘 InventorySoftwarePackage.php
▶ Open 📄 View Source
🐘 InventoryVersionedPackage.php
▶ Open 📄 View Source
🐘 InventoryWindowsApplication.php
▶ Open 📄 View Source
🐘 InventoryWindowsQuickFixEngineeringPackage.php
▶ Open 📄 View Source
🐘 InventoryWindowsUpdatePackage.php
▶ Open 📄 View Source
🐘 InventoryWindowsUpdatePackageWindowsUpdateCategory.php
▶ Open 📄 View Source
🐘 InventoryZypperPatch.php
▶ Open 📄 View Source
🐘 ListInventoriesResponse.php
▶ Open 📄 View Source
🐘 ListOSPolicyAssignmentReportsResponse.php
▶ Open 📄 View Source
🐘 ListOSPolicyAssignmentRevisionsResponse.php
▶ Open 📄 View Source
🐘 ListOSPolicyAssignmentsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListPatchDeploymentsResponse.php
▶ Open 📄 View Source
🐘 ListPatchJobInstanceDetailsResponse.php
▶ Open 📄 View Source
🐘 ListPatchJobsResponse.php
▶ Open 📄 View Source
🐘 ListVulnerabilityReportsResponse.php
▶ Open 📄 View Source
🐘 MessageSet.php
▶ Open 📄 View Source
🐘 MonthlySchedule.php
▶ Open 📄 View Source
🐘 OSPolicy.php
▶ Open 📄 View Source
🐘 OSPolicyAssignment.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentInstanceFilter.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentInstanceFilterInventory.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentLabelSet.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentOperationMetadata.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentReport.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentReportOSPolicyCompliance.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceCompliance.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceComplianceExecResourceOutput.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentReportOSPolicyComplianceOSPolicyResourceComplianceOSPolicyResourceConfigStep.php
▶ Open 📄 View Source
🐘 OSPolicyAssignmentRollout.php
▶ Open 📄 View Source
🐘 OSPolicyInventoryFilter.php
▶ Open 📄 View Source
🐘 OSPolicyResource.php
▶ Open 📄 View Source
🐘 OSPolicyResourceExecResource.php
▶ Open 📄 View Source
🐘 OSPolicyResourceExecResourceExec.php
▶ Open 📄 View Source
🐘 OSPolicyResourceFile.php
▶ Open 📄 View Source
🐘 OSPolicyResourceFileGcs.php
▶ Open 📄 View Source
🐘 OSPolicyResourceFileRemote.php
▶ Open 📄 View Source
🐘 OSPolicyResourceFileResource.php
▶ Open 📄 View Source
🐘 OSPolicyResourceGroup.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResource.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResourceAPT.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResourceDeb.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResourceGooGet.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResourceMSI.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResourceRPM.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResourceYUM.php
▶ Open 📄 View Source
🐘 OSPolicyResourcePackageResourceZypper.php
▶ Open 📄 View Source
🐘 OSPolicyResourceRepositoryResource.php
▶ Open 📄 View Source
🐘 OSPolicyResourceRepositoryResourceAptRepository.php
▶ Open 📄 View Source
🐘 OSPolicyResourceRepositoryResourceGooRepository.php
▶ Open 📄 View Source
🐘 OSPolicyResourceRepositoryResourceYumRepository.php
▶ Open 📄 View Source
🐘 OSPolicyResourceRepositoryResourceZypperRepository.php
▶ Open 📄 View Source
🐘 OneTimeSchedule.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OsconfigEmpty.php
▶ Open 📄 View Source
🐘 PatchConfig.php
▶ Open 📄 View Source
🐘 PatchDeployment.php
▶ Open 📄 View Source
🐘 PatchInstanceFilter.php
▶ Open 📄 View Source
🐘 PatchInstanceFilterGroupLabel.php
▶ Open 📄 View Source
🐘 PatchJob.php
▶ Open 📄 View Source
🐘 PatchJobInstanceDetails.php
▶ Open 📄 View Source
🐘 PatchJobInstanceDetailsSummary.php
▶ Open 📄 View Source
🐘 PatchRollout.php
▶ Open 📄 View Source
🐘 PausePatchDeploymentRequest.php
▶ Open 📄 View Source
🐘 ProjectFeatureSettings.php
▶ Open 📄 View Source
🐘 RecurringSchedule.php
▶ Open 📄 View Source
🐘 ResumePatchDeploymentRequest.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StatusProto.php
▶ Open 📄 View Source
🐘 TimeOfDay.php
▶ Open 📄 View Source
🐘 TimeZone.php
▶ Open 📄 View Source
🐘 VulnerabilityReport.php
▶ Open 📄 View Source
🐘 VulnerabilityReportVulnerability.php
▶ Open 📄 View Source
🐘 VulnerabilityReportVulnerabilityDetails.php
▶ Open 📄 View Source
🐘 VulnerabilityReportVulnerabilityDetailsReference.php
▶ Open 📄 View Source
🐘 VulnerabilityReportVulnerabilityItem.php
▶ Open 📄 View Source
🐘 WeekDayOfMonth.php
▶ Open 📄 View Source
🐘 WeeklySchedule.php
▶ Open 📄 View Source
🐘 WindowsUpdateSettings.php
▶ Open 📄 View Source
🐘 YumSettings.php
▶ Open 📄 View Source
🐘 ZypperSettings.php
▶ Open 📄 View Source

📄 Source: OSPolicyResourceFileResource.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\OSConfig;

class OSPolicyResourceFileResource extends \Google\Model
{
  /**
   * Unspecified is invalid.
   */
  public const STATE_DESIRED_STATE_UNSPECIFIED = 'DESIRED_STATE_UNSPECIFIED';
  /**
   * Ensure file at path is present.
   */
  public const STATE_PRESENT = 'PRESENT';
  /**
   * Ensure file at path is absent.
   */
  public const STATE_ABSENT = 'ABSENT';
  /**
   * Ensure the contents of the file at path matches. If the file does not exist
   * it will be created.
   */
  public const STATE_CONTENTS_MATCH = 'CONTENTS_MATCH';
  /**
   * A file with this content. The size of the content is limited to 32KiB.
   *
   * @var string
   */
  public $content;
  protected $fileType = OSPolicyResourceFile::class;
  protected $fileDataType = '';
  /**
   * Required. The absolute path of the file within the VM.
   *
   * @var string
   */
  public $path;
  /**
   * Consists of three octal digits which represent, in order, the permissions
   * of the owner, group, and other users for the file (similarly to the numeric
   * mode used in the linux chmod utility). Each digit represents a three bit
   * number with the 4 bit corresponding to the read permissions, the 2 bit
   * corresponds to the write bit, and the one bit corresponds to the execute
   * permission. Default behavior is 755. Below are some examples of permissions
   * and their associated values: read, write, and execute: 7 read and execute:
   * 5 read and write: 6 read only: 4
   *
   * @var string
   */
  public $permissions;
  /**
   * Required. Desired state of the file.
   *
   * @var string
   */
  public $state;

  /**
   * A file with this content. The size of the content is limited to 32KiB.
   *
   * @param string $content
   */
  public function setContent($content)
  {
    $this->content = $content;
  }
  /**
   * @return string
   */
  public function getContent()
  {
    return $this->content;
  }
  /**
   * A remote or local source.
   *
   * @param OSPolicyResourceFile $file
   */
  public function setFile(OSPolicyResourceFile $file)
  {
    $this->file = $file;
  }
  /**
   * @return OSPolicyResourceFile
   */
  public function getFile()
  {
    return $this->file;
  }
  /**
   * Required. The absolute path of the file within the VM.
   *
   * @param string $path
   */
  public function setPath($path)
  {
    $this->path = $path;
  }
  /**
   * @return string
   */
  public function getPath()
  {
    return $this->path;
  }
  /**
   * Consists of three octal digits which represent, in order, the permissions
   * of the owner, group, and other users for the file (similarly to the numeric
   * mode used in the linux chmod utility). Each digit represents a three bit
   * number with the 4 bit corresponding to the read permissions, the 2 bit
   * corresponds to the write bit, and the one bit corresponds to the execute
   * permission. Default behavior is 755. Below are some examples of permissions
   * and their associated values: read, write, and execute: 7 read and execute:
   * 5 read and write: 6 read only: 4
   *
   * @param string $permissions
   */
  public function setPermissions($permissions)
  {
    $this->permissions = $permissions;
  }
  /**
   * @return string
   */
  public function getPermissions()
  {
    return $this->permissions;
  }
  /**
   * Required. Desired state of the file.
   *
   * Accepted values: DESIRED_STATE_UNSPECIFIED, PRESENT, ABSENT, CONTENTS_MATCH
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OSPolicyResourceFileResource::class, 'Google_Service_OSConfig_OSPolicyResourceFileResource');
← Back