📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AlloyDbConnectionProfile.php
▶ Open 📄 View Source
🐘 AlloyDbSettings.php
▶ Open 📄 View Source
🐘 ApplyConversionWorkspaceRequest.php
▶ Open 📄 View Source
🐘 ApplyHash.php
▶ Open 📄 View Source
🐘 ApplyJobDetails.php
▶ Open 📄 View Source
🐘 AssignSpecificValue.php
▶ Open 📄 View Source
🐘 AuditConfig.php
▶ Open 📄 View Source
🐘 AuditLogConfig.php
▶ Open 📄 View Source
🐘 AuthorizedNetwork.php
▶ Open 📄 View Source
🐘 BackgroundJobLogEntry.php
▶ Open 📄 View Source
🐘 BadRequest.php
▶ Open 📄 View Source
🐘 BinaryLogParser.php
▶ Open 📄 View Source
🐘 Binding.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CloudSqlConnectionProfile.php
▶ Open 📄 View Source
🐘 CloudSqlSettings.php
▶ Open 📄 View Source
🐘 ColumnEntity.php
▶ Open 📄 View Source
🐘 CommitConversionWorkspaceRequest.php
▶ Open 📄 View Source
🐘 ConditionalColumnSetValue.php
▶ Open 📄 View Source
🐘 ConnectionProfile.php
▶ Open 📄 View Source
🐘 ConstraintEntity.php
▶ Open 📄 View Source
🐘 ConversionWorkspace.php
▶ Open 📄 View Source
🐘 ConversionWorkspaceInfo.php
▶ Open 📄 View Source
🐘 ConvertConversionWorkspaceRequest.php
▶ Open 📄 View Source
🐘 ConvertJobDetails.php
▶ Open 📄 View Source
🐘 ConvertRowIdToColumn.php
▶ Open 📄 View Source
🐘 DataCacheConfig.php
▶ Open 📄 View Source
🐘 DatabaseEngineInfo.php
▶ Open 📄 View Source
🐘 DatabaseEntity.php
▶ Open 📄 View Source
🐘 DatabaseInstanceEntity.php
▶ Open 📄 View Source
🐘 DatabaseType.php
▶ Open 📄 View Source
🐘 DatamigrationEmpty.php
▶ Open 📄 View Source
🐘 DebugInfo.php
▶ Open 📄 View Source
🐘 DemoteDestinationRequest.php
▶ Open 📄 View Source
🐘 DescribeConversionWorkspaceRevisionsResponse.php
▶ Open 📄 View Source
🐘 DescribeDatabaseEntitiesResponse.php
▶ Open 📄 View Source
🐘 DoubleComparisonFilter.php
▶ Open 📄 View Source
🐘 DumpFlag.php
▶ Open 📄 View Source
🐘 DumpFlags.php
▶ Open 📄 View Source
🐘 EncryptionConfig.php
▶ Open 📄 View Source
🐘 EntityDdl.php
▶ Open 📄 View Source
🐘 EntityIssue.php
▶ Open 📄 View Source
🐘 EntityMapping.php
▶ Open 📄 View Source
🐘 EntityMappingLogEntry.php
▶ Open 📄 View Source
🐘 EntityMove.php
▶ Open 📄 View Source
🐘 ErrorInfo.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 FetchStaticIpsResponse.php
▶ Open 📄 View Source
🐘 FieldViolation.php
▶ Open 📄 View Source
🐘 FilterTableColumns.php
▶ Open 📄 View Source
🐘 ForwardSshTunnelConnectivity.php
▶ Open 📄 View Source
🐘 FunctionEntity.php
▶ Open 📄 View Source
🐘 GenerateSshScriptRequest.php
▶ Open 📄 View Source
🐘 GenerateTcpProxyScriptRequest.php
▶ Open 📄 View Source
🐘 GoogleCloudClouddmsV1OperationMetadata.php
▶ Open 📄 View Source
🐘 Help.php
▶ Open 📄 View Source
🐘 HeterogeneousMetadata.php
▶ Open 📄 View Source
🐘 ImportMappingRulesRequest.php
▶ Open 📄 View Source
🐘 ImportRulesJobDetails.php
▶ Open 📄 View Source
🐘 IndexEntity.php
▶ Open 📄 View Source
🐘 InstanceNetworkConfig.php
▶ Open 📄 View Source
🐘 IntComparisonFilter.php
▶ Open 📄 View Source
🐘 Link.php
▶ Open 📄 View Source
🐘 ListConnectionProfilesResponse.php
▶ Open 📄 View Source
🐘 ListConversionWorkspacesResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListMappingRulesResponse.php
▶ Open 📄 View Source
🐘 ListMigrationJobObjectsResponse.php
▶ Open 📄 View Source
🐘 ListMigrationJobsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListPrivateConnectionsResponse.php
▶ Open 📄 View Source
🐘 LocalizedMessage.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 LogFileDirectories.php
▶ Open 📄 View Source
🐘 LogMiner.php
▶ Open 📄 View Source
🐘 LookupMigrationJobObjectRequest.php
▶ Open 📄 View Source
🐘 MachineConfig.php
▶ Open 📄 View Source
🐘 MappingRule.php
▶ Open 📄 View Source
🐘 MappingRuleFilter.php
▶ Open 📄 View Source
🐘 MaterializedViewEntity.php
▶ Open 📄 View Source
🐘 MigrationJob.php
▶ Open 📄 View Source
🐘 MigrationJobObject.php
▶ Open 📄 View Source
🐘 MigrationJobObjectsConfig.php
▶ Open 📄 View Source
🐘 MigrationJobVerificationError.php
▶ Open 📄 View Source
🐘 MultiColumnDatatypeChange.php
▶ Open 📄 View Source
🐘 MultiEntityRename.php
▶ Open 📄 View Source
🐘 MySqlConnectionProfile.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OracleAsmConfig.php
▶ Open 📄 View Source
🐘 OracleAsmLogFileAccess.php
▶ Open 📄 View Source
🐘 OracleConnectionProfile.php
▶ Open 📄 View Source
🐘 OracleSourceConfig.php
▶ Open 📄 View Source
🐘 OracleToPostgresConfig.php
▶ Open 📄 View Source
🐘 PackageEntity.php
▶ Open 📄 View Source
🐘 PerformanceConfig.php
▶ Open 📄 View Source
🐘 Policy.php
▶ Open 📄 View Source
🐘 Position.php
▶ Open 📄 View Source
🐘 PostgreSqlConnectionProfile.php
▶ Open 📄 View Source
🐘 PostgresDestinationConfig.php
▶ Open 📄 View Source
🐘 PostgresSourceConfig.php
▶ Open 📄 View Source
🐘 PostgresToSqlServerConfig.php
▶ Open 📄 View Source
🐘 PreconditionFailure.php
▶ Open 📄 View Source
🐘 PreconditionFailureViolation.php
▶ Open 📄 View Source
🐘 PrimaryInstanceSettings.php
▶ Open 📄 View Source
🐘 PrivateConnection.php
▶ Open 📄 View Source
🐘 PrivateConnectivity.php
▶ Open 📄 View Source
🐘 PrivateServiceConnectConnectivity.php
▶ Open 📄 View Source
🐘 PromoteMigrationJobRequest.php
▶ Open 📄 View Source
🐘 PscInterfaceConfig.php
▶ Open 📄 View Source
🐘 QuotaFailure.php
▶ Open 📄 View Source
🐘 QuotaFailureViolation.php
▶ Open 📄 View Source
🐘 RequestInfo.php
▶ Open 📄 View Source
🐘 ResourceInfo.php
▶ Open 📄 View Source
🐘 RestartMigrationJobRequest.php
▶ Open 📄 View Source
🐘 ResumeMigrationJobRequest.php
▶ Open 📄 View Source
🐘 RetryInfo.php
▶ Open 📄 View Source
🐘 ReverseSshConnectivity.php
▶ Open 📄 View Source
🐘 RollbackConversionWorkspaceRequest.php
▶ Open 📄 View Source
🐘 RoundToScale.php
▶ Open 📄 View Source
🐘 RulesFile.php
▶ Open 📄 View Source
🐘 SchemaEntity.php
▶ Open 📄 View Source
🐘 SearchBackgroundJobsResponse.php
▶ Open 📄 View Source
🐘 SeedConversionWorkspaceRequest.php
▶ Open 📄 View Source
🐘 SeedJobDetails.php
▶ Open 📄 View Source
🐘 SequenceEntity.php
▶ Open 📄 View Source
🐘 SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 SetTablePrimaryKey.php
▶ Open 📄 View Source
🐘 SingleColumnChange.php
▶ Open 📄 View Source
🐘 SingleEntityRename.php
▶ Open 📄 View Source
🐘 SinglePackageChange.php
▶ Open 📄 View Source
🐘 SourceNumericFilter.php
▶ Open 📄 View Source
🐘 SourceObjectConfig.php
▶ Open 📄 View Source
🐘 SourceObjectIdentifier.php
▶ Open 📄 View Source
🐘 SourceObjectsConfig.php
▶ Open 📄 View Source
🐘 SourceSqlChange.php
▶ Open 📄 View Source
🐘 SourceTextFilter.php
▶ Open 📄 View Source
🐘 SqlAclEntry.php
▶ Open 📄 View Source
🐘 SqlIpConfig.php
▶ Open 📄 View Source
🐘 SqlServerBackups.php
▶ Open 📄 View Source
🐘 SqlServerConnectionProfile.php
▶ Open 📄 View Source
🐘 SqlServerDagConfig.php
▶ Open 📄 View Source
🐘 SqlServerDatabaseBackup.php
▶ Open 📄 View Source
🐘 SqlServerDestinationConfig.php
▶ Open 📄 View Source
🐘 SqlServerEncryptionOptions.php
▶ Open 📄 View Source
🐘 SqlServerHomogeneousMigrationJobConfig.php
▶ Open 📄 View Source
🐘 SqlServerSourceConfig.php
▶ Open 📄 View Source
🐘 SqlServerToPostgresConfig.php
▶ Open 📄 View Source
🐘 SshScript.php
▶ Open 📄 View Source
🐘 SslConfig.php
▶ Open 📄 View Source
🐘 StartMigrationJobRequest.php
▶ Open 📄 View Source
🐘 StaticIpConnectivity.php
▶ Open 📄 View Source
🐘 StaticServiceIpConnectivity.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StopMigrationJobRequest.php
▶ Open 📄 View Source
🐘 StoredProcedureEntity.php
▶ Open 📄 View Source
🐘 SynonymEntity.php
▶ Open 📄 View Source
🐘 TableEntity.php
▶ Open 📄 View Source
🐘 TcpProxyScript.php
▶ Open 📄 View Source
🐘 TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 TriggerEntity.php
▶ Open 📄 View Source
🐘 UDTEntity.php
▶ Open 📄 View Source
🐘 UserPassword.php
▶ Open 📄 View Source
🐘 ValueListFilter.php
▶ Open 📄 View Source
🐘 ValueTransformation.php
▶ Open 📄 View Source
🐘 VerifyMigrationJobRequest.php
▶ Open 📄 View Source
🐘 ViewEntity.php
▶ Open 📄 View Source
🐘 VmCreationConfig.php
▶ Open 📄 View Source
🐘 VmSelectionConfig.php
▶ Open 📄 View Source
🐘 VpcPeeringConfig.php
▶ Open 📄 View Source
🐘 VpcPeeringConnectivity.php
▶ Open 📄 View Source

📄 Source: Policy.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\DatabaseMigrationService;

class Policy extends \Google\Collection
{
  protected $collection_key = 'bindings';
  protected $auditConfigsType = AuditConfig::class;
  protected $auditConfigsDataType = 'array';
  protected $bindingsType = Binding::class;
  protected $bindingsDataType = 'array';
  /**
   * `etag` is used for optimistic concurrency control as a way to help prevent
   * simultaneous updates of a policy from overwriting each other. It is
   * strongly suggested that systems make use of the `etag` in the read-modify-
   * write cycle to perform policy updates in order to avoid race conditions: An
   * `etag` is returned in the response to `getIamPolicy`, and systems are
   * expected to put that etag in the request to `setIamPolicy` to ensure that
   * their change will be applied to the same version of the policy.
   * **Important:** If you use IAM Conditions, you must include the `etag` field
   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
   * you to overwrite a version `3` policy with a version `1` policy, and all of
   * the conditions in the version `3` policy are lost.
   *
   * @var string
   */
  public $etag;
  /**
   * Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
   * Requests that specify an invalid value are rejected. Any operation that
   * affects conditional role bindings must specify version `3`. This
   * requirement applies to the following operations: * Getting a policy that
   * includes a conditional role binding * Adding a conditional role binding to
   * a policy * Changing a conditional role binding in a policy * Removing any
   * role binding, with or without a condition, from a policy that includes
   * conditions **Important:** If you use IAM Conditions, you must include the
   * `etag` field whenever you call `setIamPolicy`. If you omit this field, then
   * IAM allows you to overwrite a version `3` policy with a version `1` policy,
   * and all of the conditions in the version `3` policy are lost. If a policy
   * does not include any conditions, operations on that policy may specify any
   * valid version or leave the field unset. To learn which resources support
   * conditions in their IAM policies, see the [IAM
   * documentation](https://cloud.google.com/iam/help/conditions/resource-
   * policies).
   *
   * @var int
   */
  public $version;

  /**
   * Specifies cloud audit logging configuration for this policy.
   *
   * @param AuditConfig[] $auditConfigs
   */
  public function setAuditConfigs($auditConfigs)
  {
    $this->auditConfigs = $auditConfigs;
  }
  /**
   * @return AuditConfig[]
   */
  public function getAuditConfigs()
  {
    return $this->auditConfigs;
  }
  /**
   * Associates a list of `members`, or principals, with a `role`. Optionally,
   * may specify a `condition` that determines how and when the `bindings` are
   * applied. Each of the `bindings` must contain at least one principal. The
   * `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
   * these principals can be Google groups. Each occurrence of a principal
   * counts towards these limits. For example, if the `bindings` grant 50
   * different roles to `user:alice@example.com`, and not to any other
   * principal, then you can add another 1,450 principals to the `bindings` in
   * the `Policy`.
   *
   * @param Binding[] $bindings
   */
  public function setBindings($bindings)
  {
    $this->bindings = $bindings;
  }
  /**
   * @return Binding[]
   */
  public function getBindings()
  {
    return $this->bindings;
  }
  /**
   * `etag` is used for optimistic concurrency control as a way to help prevent
   * simultaneous updates of a policy from overwriting each other. It is
   * strongly suggested that systems make use of the `etag` in the read-modify-
   * write cycle to perform policy updates in order to avoid race conditions: An
   * `etag` is returned in the response to `getIamPolicy`, and systems are
   * expected to put that etag in the request to `setIamPolicy` to ensure that
   * their change will be applied to the same version of the policy.
   * **Important:** If you use IAM Conditions, you must include the `etag` field
   * whenever you call `setIamPolicy`. If you omit this field, then IAM allows
   * you to overwrite a version `3` policy with a version `1` policy, and all of
   * the conditions in the version `3` policy are lost.
   *
   * @param string $etag
   */
  public function setEtag($etag)
  {
    $this->etag = $etag;
  }
  /**
   * @return string
   */
  public function getEtag()
  {
    return $this->etag;
  }
  /**
   * Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
   * Requests that specify an invalid value are rejected. Any operation that
   * affects conditional role bindings must specify version `3`. This
   * requirement applies to the following operations: * Getting a policy that
   * includes a conditional role binding * Adding a conditional role binding to
   * a policy * Changing a conditional role binding in a policy * Removing any
   * role binding, with or without a condition, from a policy that includes
   * conditions **Important:** If you use IAM Conditions, you must include the
   * `etag` field whenever you call `setIamPolicy`. If you omit this field, then
   * IAM allows you to overwrite a version `3` policy with a version `1` policy,
   * and all of the conditions in the version `3` policy are lost. If a policy
   * does not include any conditions, operations on that policy may specify any
   * valid version or leave the field unset. To learn which resources support
   * conditions in their IAM policies, see the [IAM
   * documentation](https://cloud.google.com/iam/help/conditions/resource-
   * policies).
   *
   * @param int $version
   */
  public function setVersion($version)
  {
    $this->version = $version;
  }
  /**
   * @return int
   */
  public function getVersion()
  {
    return $this->version;
  }
}

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