Skip to content

Commit

Permalink
Regenerate alloydb client (#5990)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Dec 14, 2024
1 parent 3739ceb commit 23ad484
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 1 deletion.
54 changes: 54 additions & 0 deletions src/CloudAlloyDBAdmin/CsvExportOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,65 @@

class CsvExportOptions extends \Google\Model
{
/**
* @var string
*/
public $escapeCharacter;
/**
* @var string
*/
public $fieldDelimiter;
/**
* @var string
*/
public $quoteCharacter;
/**
* @var string
*/
public $selectQuery;

/**
* @param string
*/
public function setEscapeCharacter($escapeCharacter)
{
$this->escapeCharacter = $escapeCharacter;
}
/**
* @return string
*/
public function getEscapeCharacter()
{
return $this->escapeCharacter;
}
/**
* @param string
*/
public function setFieldDelimiter($fieldDelimiter)
{
$this->fieldDelimiter = $fieldDelimiter;
}
/**
* @return string
*/
public function getFieldDelimiter()
{
return $this->fieldDelimiter;
}
/**
* @param string
*/
public function setQuoteCharacter($quoteCharacter)
{
$this->quoteCharacter = $quoteCharacter;
}
/**
* @return string
*/
public function getQuoteCharacter()
{
return $this->quoteCharacter;
}
/**
* @param string
*/
Expand Down
16 changes: 16 additions & 0 deletions src/CloudAlloyDBAdmin/ExportClusterRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class ExportClusterRequest extends \Google\Model
public $database;
protected $gcsDestinationType = GcsDestination::class;
protected $gcsDestinationDataType = '';
protected $sqlExportOptionsType = SqlExportOptions::class;
protected $sqlExportOptionsDataType = '';

/**
* @param CsvExportOptions
Expand Down Expand Up @@ -70,6 +72,20 @@ public function getGcsDestination()
{
return $this->gcsDestination;
}
/**
* @param SqlExportOptions
*/
public function setSqlExportOptions(SqlExportOptions $sqlExportOptions)
{
$this->sqlExportOptions = $sqlExportOptions;
}
/**
* @return SqlExportOptions
*/
public function getSqlExportOptions()
{
return $this->sqlExportOptions;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ProjectsLocationsOperations extends \Google\Service\Resource
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
Expand Down
99 changes: 99 additions & 0 deletions src/CloudAlloyDBAdmin/SqlExportOptions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?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\CloudAlloyDBAdmin;

class SqlExportOptions extends \Google\Collection
{
protected $collection_key = 'tables';
/**
* @var bool
*/
public $cleanTargetObjects;
/**
* @var bool
*/
public $ifExistTargetObjects;
/**
* @var bool
*/
public $schemaOnly;
/**
* @var string[]
*/
public $tables;

/**
* @param bool
*/
public function setCleanTargetObjects($cleanTargetObjects)
{
$this->cleanTargetObjects = $cleanTargetObjects;
}
/**
* @return bool
*/
public function getCleanTargetObjects()
{
return $this->cleanTargetObjects;
}
/**
* @param bool
*/
public function setIfExistTargetObjects($ifExistTargetObjects)
{
$this->ifExistTargetObjects = $ifExistTargetObjects;
}
/**
* @return bool
*/
public function getIfExistTargetObjects()
{
return $this->ifExistTargetObjects;
}
/**
* @param bool
*/
public function setSchemaOnly($schemaOnly)
{
$this->schemaOnly = $schemaOnly;
}
/**
* @return bool
*/
public function getSchemaOnly()
{
return $this->schemaOnly;
}
/**
* @param string[]
*/
public function setTables($tables)
{
$this->tables = $tables;
}
/**
* @return string[]
*/
public function getTables()
{
return $this->tables;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SqlExportOptions::class, 'Google_Service_CloudAlloyDBAdmin_SqlExportOptions');
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration extends \Google\
* @var int
*/
public $shardCount;
public $vcpuCount;

/**
* @param int
Expand Down Expand Up @@ -74,6 +75,14 @@ public function getShardCount()
{
return $this->shardCount;
}
public function setVcpuCount($vcpuCount)
{
$this->vcpuCount = $vcpuCount;
}
public function getVcpuCount()
{
return $this->vcpuCount;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down

0 comments on commit 23ad484

Please sign in to comment.