Skip to content

Commit fa45712

Browse files
1 parent 62983e9 commit fa45712

15 files changed

Lines changed: 1103 additions & 4 deletions

‎src/SQLAdmin.php‎

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class SQLAdmin extends \Google\Service
5353
public $sslCerts;
5454
public $tiers;
5555
public $users;
56+
public $workloadCaptures;
5657
public $rootUrlTemplate;
5758

5859
/**
@@ -1730,6 +1731,101 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
17301731
]
17311732
]
17321733
);
1734+
$this->workloadCaptures = new SQLAdmin\Resource\WorkloadCaptures(
1735+
$this,
1736+
$this->serviceName,
1737+
'workloadCaptures',
1738+
[
1739+
'methods' => [
1740+
'list' => [
1741+
'path' => 'v1/projects/{project}/instances/{instance}/workloadCaptures',
1742+
'httpMethod' => 'GET',
1743+
'parameters' => [
1744+
'project' => [
1745+
'location' => 'path',
1746+
'type' => 'string',
1747+
'required' => true,
1748+
],
1749+
'instance' => [
1750+
'location' => 'path',
1751+
'type' => 'string',
1752+
'required' => true,
1753+
],
1754+
],
1755+
],'start' => [
1756+
'path' => 'v1/projects/{project}/instances/{instance}/workloadCaptures:start',
1757+
'httpMethod' => 'POST',
1758+
'parameters' => [
1759+
'project' => [
1760+
'location' => 'path',
1761+
'type' => 'string',
1762+
'required' => true,
1763+
],
1764+
'instance' => [
1765+
'location' => 'path',
1766+
'type' => 'string',
1767+
'required' => true,
1768+
],
1769+
],
1770+
],'startReplay' => [
1771+
'path' => 'v1/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:startReplay',
1772+
'httpMethod' => 'POST',
1773+
'parameters' => [
1774+
'project' => [
1775+
'location' => 'path',
1776+
'type' => 'string',
1777+
'required' => true,
1778+
],
1779+
'instance' => [
1780+
'location' => 'path',
1781+
'type' => 'string',
1782+
'required' => true,
1783+
],
1784+
'workloadId' => [
1785+
'location' => 'path',
1786+
'type' => 'string',
1787+
'required' => true,
1788+
],
1789+
],
1790+
],'stop' => [
1791+
'path' => 'v1/projects/{project}/instances/{instance}/workloadCaptures:stop',
1792+
'httpMethod' => 'POST',
1793+
'parameters' => [
1794+
'project' => [
1795+
'location' => 'path',
1796+
'type' => 'string',
1797+
'required' => true,
1798+
],
1799+
'instance' => [
1800+
'location' => 'path',
1801+
'type' => 'string',
1802+
'required' => true,
1803+
],
1804+
],
1805+
],'stopReplay' => [
1806+
'path' => 'v1/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:stopReplay',
1807+
'httpMethod' => 'POST',
1808+
'parameters' => [
1809+
'project' => [
1810+
'location' => 'path',
1811+
'type' => 'string',
1812+
'required' => true,
1813+
],
1814+
'instance' => [
1815+
'location' => 'path',
1816+
'type' => 'string',
1817+
'required' => true,
1818+
],
1819+
'workloadId' => [
1820+
'location' => 'path',
1821+
'type' => 'string',
1822+
'required' => true,
1823+
],
1824+
],
1825+
],
1826+
]
1827+
]
1828+
);
17331829
}
17341830
}
17351831

‎src/SQLAdmin/DiskEncryptionConfiguration.php‎

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919

2020
class DiskEncryptionConfiguration extends \Google\Model
2121
{
22+
/**
23+
* Optional. Whether to enforce CMEK log encryption at source. When enforced,
24+
* transaction logs are encrypted prior to being uploaded to Cloud Storage. If
25+
* not enforced, then CMEK logs are encrypted by the Cloud Storage service.
26+
*
27+
* @var bool
28+
*/
29+
public $cmekSourceLogEncryptionEnforced;
2230
/**
2331
* Optional. If true, enables Confidential Mode for the instance's Hyperdisk
2432
* Balanced volumes. Only supported for zonal C4A instances currently.
@@ -33,12 +41,30 @@ class DiskEncryptionConfiguration extends \Google\Model
3341
*/
3442
public $kind;
3543
/**
36-
* Resource name of KMS key for disk encryption
44+
* Resource name of KMS key for disk encryption.
3745
*
3846
* @var string
3947
*/
4048
public $kmsKeyName;
4149

50+
/**
51+
* Optional. Whether to enforce CMEK log encryption at source. When enforced,
52+
* transaction logs are encrypted prior to being uploaded to Cloud Storage. If
53+
* not enforced, then CMEK logs are encrypted by the Cloud Storage service.
54+
*
55+
* @param bool $cmekSourceLogEncryptionEnforced
56+
*/
57+
public function setCmekSourceLogEncryptionEnforced($cmekSourceLogEncryptionEnforced)
58+
{
59+
$this->cmekSourceLogEncryptionEnforced = $cmekSourceLogEncryptionEnforced;
60+
}
61+
/**
62+
* @return bool
63+
*/
64+
public function getCmekSourceLogEncryptionEnforced()
65+
{
66+
return $this->cmekSourceLogEncryptionEnforced;
67+
}
4268
/**
4369
* Optional. If true, enables Confidential Mode for the instance's Hyperdisk
4470
* Balanced volumes. Only supported for zonal C4A instances currently.
@@ -73,7 +99,7 @@ public function getKind()
7399
return $this->kind;
74100
}
75101
/**
76-
* Resource name of KMS key for disk encryption
102+
* Resource name of KMS key for disk encryption.
77103
*
78104
* @param string $kmsKeyName
79105
*/

‎src/SQLAdmin/Operation.php‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,20 @@ class Operation extends \Google\Model
355355
* @var string
356356
*/
357357
public $startTime;
358+
protected $startWorkloadCaptureContextType = StartWorkloadCaptureContext::class;
359+
protected $startWorkloadCaptureContextDataType = '';
360+
protected $startWorkloadReplayContextType = StartWorkloadReplayContext::class;
361+
protected $startWorkloadReplayContextDataType = '';
358362
/**
359363
* The status of an operation.
360364
*
361365
* @var string
362366
*/
363367
public $status;
368+
protected $stopWorkloadCaptureContextType = StopWorkloadCaptureContext::class;
369+
protected $stopWorkloadCaptureContextDataType = '';
370+
protected $stopWorkloadReplayContextType = StopWorkloadReplayContext::class;
371+
protected $stopWorkloadReplayContextDataType = '';
364372
protected $subOperationTypeType = SqlSubOperationType::class;
365373
protected $subOperationTypeDataType = '';
366374
/**
@@ -642,6 +650,43 @@ public function getStartTime()
642650
{
643651
return $this->startTime;
644652
}
653+
/**
654+
* The context for the `StartWorkloadCapture` operation, which contains
655+
* details to start recording the workload (SQL queries) on a Cloud SQL
656+
* instance.
657+
*
658+
* @param StartWorkloadCaptureContext $startWorkloadCaptureContext
659+
*/
660+
public function setStartWorkloadCaptureContext(StartWorkloadCaptureContext $startWorkloadCaptureContext)
661+
{
662+
$this->startWorkloadCaptureContext = $startWorkloadCaptureContext;
663+
}
664+
/**
665+
* @return StartWorkloadCaptureContext
666+
*/
667+
public function getStartWorkloadCaptureContext()
668+
{
669+
return $this->startWorkloadCaptureContext;
670+
}
671+
/**
672+
* The context for the `StartWorkloadReplay` operation, which contains details
673+
* about starting the execution of a captured workload (recorded read and
674+
* write SQL queries) on a replay instance (the Cloud SQL instance where the
675+
* recorded SQL queries are executed).
676+
*
677+
* @param StartWorkloadReplayContext $startWorkloadReplayContext
678+
*/
679+
public function setStartWorkloadReplayContext(StartWorkloadReplayContext $startWorkloadReplayContext)
680+
{
681+
$this->startWorkloadReplayContext = $startWorkloadReplayContext;
682+
}
683+
/**
684+
* @return StartWorkloadReplayContext
685+
*/
686+
public function getStartWorkloadReplayContext()
687+
{
688+
return $this->startWorkloadReplayContext;
689+
}
645690
/**
646691
* The status of an operation.
647692
*
@@ -660,6 +705,41 @@ public function getStatus()
660705
{
661706
return $this->status;
662707
}
708+
/**
709+
* The context for the `StopWorkloadCapture` operation, which contains details
710+
* to stop recording the workload (SQL queries) on a Cloud SQL instance.
711+
*
712+
* @param StopWorkloadCaptureContext $stopWorkloadCaptureContext
713+
*/
714+
public function setStopWorkloadCaptureContext(StopWorkloadCaptureContext $stopWorkloadCaptureContext)
715+
{
716+
$this->stopWorkloadCaptureContext = $stopWorkloadCaptureContext;
717+
}
718+
/**
719+
* @return StopWorkloadCaptureContext
720+
*/
721+
public function getStopWorkloadCaptureContext()
722+
{
723+
return $this->stopWorkloadCaptureContext;
724+
}
725+
/**
726+
* The context for the `StopWorkloadReplay` operation, which contains details
727+
* about stopping the execution of a captured workload (recorded read and
728+
* write SQL queries) on a replay instance.
729+
*
730+
* @param StopWorkloadReplayContext $stopWorkloadReplayContext
731+
*/
732+
public function setStopWorkloadReplayContext(StopWorkloadReplayContext $stopWorkloadReplayContext)
733+
{
734+
$this->stopWorkloadReplayContext = $stopWorkloadReplayContext;
735+
}
736+
/**
737+
* @return StopWorkloadReplayContext
738+
*/
739+
public function getStopWorkloadReplayContext()
740+
{
741+
return $this->stopWorkloadReplayContext;
742+
}
663743
/**
664744
* Optional. The sub operation based on the operation type.
665745
*

0 commit comments

Comments
 (0)