Skip to content

Commit cab4445

Browse files
1 parent 351ea7d commit cab4445

7 files changed

Lines changed: 251 additions & 1 deletion

src/OracleDatabase.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,24 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
287287
'type' => 'string',
288288
],
289289
],
290+
],'patch' => [
291+
'path' => 'v1/{+name}',
292+
'httpMethod' => 'PATCH',
293+
'parameters' => [
294+
'name' => [
295+
'location' => 'path',
296+
'type' => 'string',
297+
'required' => true,
298+
],
299+
'requestId' => [
300+
'location' => 'query',
301+
'type' => 'string',
302+
],
303+
'updateMask' => [
304+
'location' => 'query',
305+
'type' => 'string',
306+
],
307+
],
290308
],'restart' => [
291309
'path' => 'v1/{+name}:restart',
292310
'httpMethod' => 'POST',
@@ -1318,6 +1336,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
13181336
'location' => 'query',
13191337
'type' => 'string',
13201338
],
1339+
'returnPartialSuccess' => [
1340+
'location' => 'query',
1341+
'type' => 'boolean',
1342+
],
13211343
],
13221344
],
13231345
]

src/OracleDatabase/AutonomousDatabaseProperties.php

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ class AutonomousDatabaseProperties extends \Google\Collection
9898
* @var string
9999
*/
100100
public $disasterRecoveryRoleChangedTime;
101+
protected $encryptionKeyType = EncryptionKey::class;
102+
protected $encryptionKeyDataType = '';
103+
protected $encryptionKeyHistoryEntriesType = EncryptionKeyHistoryEntry::class;
104+
protected $encryptionKeyHistoryEntriesDataType = 'array';
101105
/**
102106
* @var string
103107
*/
@@ -218,6 +222,10 @@ class AutonomousDatabaseProperties extends \Google\Collection
218222
* @var string
219223
*/
220224
public $secretId;
225+
/**
226+
* @var string
227+
*/
228+
public $serviceAgentEmail;
221229
/**
222230
* @var string
223231
*/
@@ -553,6 +561,34 @@ public function getDisasterRecoveryRoleChangedTime()
553561
{
554562
return $this->disasterRecoveryRoleChangedTime;
555563
}
564+
/**
565+
* @param EncryptionKey
566+
*/
567+
public function setEncryptionKey(EncryptionKey $encryptionKey)
568+
{
569+
$this->encryptionKey = $encryptionKey;
570+
}
571+
/**
572+
* @return EncryptionKey
573+
*/
574+
public function getEncryptionKey()
575+
{
576+
return $this->encryptionKey;
577+
}
578+
/**
579+
* @param EncryptionKeyHistoryEntry[]
580+
*/
581+
public function setEncryptionKeyHistoryEntries($encryptionKeyHistoryEntries)
582+
{
583+
$this->encryptionKeyHistoryEntries = $encryptionKeyHistoryEntries;
584+
}
585+
/**
586+
* @return EncryptionKeyHistoryEntry[]
587+
*/
588+
public function getEncryptionKeyHistoryEntries()
589+
{
590+
return $this->encryptionKeyHistoryEntries;
591+
}
556592
/**
557593
* @param string
558594
*/
@@ -987,6 +1023,20 @@ public function getSecretId()
9871023
{
9881024
return $this->secretId;
9891025
}
1026+
/**
1027+
* @param string
1028+
*/
1029+
public function setServiceAgentEmail($serviceAgentEmail)
1030+
{
1031+
$this->serviceAgentEmail = $serviceAgentEmail;
1032+
}
1033+
/**
1034+
* @return string
1035+
*/
1036+
public function getServiceAgentEmail()
1037+
{
1038+
return $this->serviceAgentEmail;
1039+
}
9901040
/**
9911041
* @param string
9921042
*/
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\OracleDatabase;
19+
20+
class EncryptionKey extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $kmsKey;
26+
/**
27+
* @var string
28+
*/
29+
public $provider;
30+
31+
/**
32+
* @param string
33+
*/
34+
public function setKmsKey($kmsKey)
35+
{
36+
$this->kmsKey = $kmsKey;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getKmsKey()
42+
{
43+
return $this->kmsKey;
44+
}
45+
/**
46+
* @param string
47+
*/
48+
public function setProvider($provider)
49+
{
50+
$this->provider = $provider;
51+
}
52+
/**
53+
* @return string
54+
*/
55+
public function getProvider()
56+
{
57+
return $this->provider;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(EncryptionKey::class, 'Google_Service_OracleDatabase_EncryptionKey');
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\OracleDatabase;
19+
20+
class EncryptionKeyHistoryEntry extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $activationTime;
26+
protected $encryptionKeyType = EncryptionKey::class;
27+
protected $encryptionKeyDataType = '';
28+
29+
/**
30+
* @param string
31+
*/
32+
public function setActivationTime($activationTime)
33+
{
34+
$this->activationTime = $activationTime;
35+
}
36+
/**
37+
* @return string
38+
*/
39+
public function getActivationTime()
40+
{
41+
return $this->activationTime;
42+
}
43+
/**
44+
* @param EncryptionKey
45+
*/
46+
public function setEncryptionKey(EncryptionKey $encryptionKey)
47+
{
48+
$this->encryptionKey = $encryptionKey;
49+
}
50+
/**
51+
* @return EncryptionKey
52+
*/
53+
public function getEncryptionKey()
54+
{
55+
return $this->encryptionKey;
56+
}
57+
}
58+
59+
// Adding a class alias for backwards compatibility with the previous class name.
60+
class_alias(EncryptionKeyHistoryEntry::class, 'Google_Service_OracleDatabase_EncryptionKeyHistoryEntry');

src/OracleDatabase/ListOperationsResponse.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919

2020
class ListOperationsResponse extends \Google\Collection
2121
{
22-
protected $collection_key = 'operations';
22+
protected $collection_key = 'unreachable';
2323
/**
2424
* @var string
2525
*/
2626
public $nextPageToken;
2727
protected $operationsType = Operation::class;
2828
protected $operationsDataType = 'array';
29+
/**
30+
* @var string[]
31+
*/
32+
public $unreachable;
2933

3034
/**
3135
* @param string
@@ -55,6 +59,20 @@ public function getOperations()
5559
{
5660
return $this->operations;
5761
}
62+
/**
63+
* @param string[]
64+
*/
65+
public function setUnreachable($unreachable)
66+
{
67+
$this->unreachable = $unreachable;
68+
}
69+
/**
70+
* @return string[]
71+
*/
72+
public function getUnreachable()
73+
{
74+
return $this->unreachable;
75+
}
5876
}
5977

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

src/OracleDatabase/Resource/ProjectsLocationsAutonomousDatabases.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,37 @@ public function listProjectsLocationsAutonomousDatabases($parent, $optParams = [
170170
$params = array_merge($params, $optParams);
171171
return $this->call('list', [$params], ListAutonomousDatabasesResponse::class);
172172
}
173+
/**
174+
* Updates the parameters of a single Autonomous Database.
175+
* (autonomousDatabases.patch)
176+
*
177+
* @param string $name Identifier. The name of the Autonomous Database resource
178+
* in the following format: projects/{project}/locations/{region}/autonomousData
179+
* bases/{autonomous_database}
180+
* @param AutonomousDatabase $postBody
181+
* @param array $optParams Optional parameters.
182+
*
183+
* @opt_param string requestId Optional. An optional ID to identify the request.
184+
* This value is used to identify duplicate requests. If you make a request with
185+
* the same request ID and the original request is still in progress or
186+
* completed, the server ignores the second request. This prevents clients from
187+
* accidentally creating duplicate commitments. The request ID must be a valid
188+
* UUID with the exception that zero UUID is not supported
189+
* (00000000-0000-0000-0000-000000000000).
190+
* @opt_param string updateMask Optional. Field mask is used to specify the
191+
* fields to be overwritten in the Exadata resource by the update. The fields
192+
* specified in the update_mask are relative to the resource, not the full
193+
* request. A field will be overwritten if it is in the mask. If the user does
194+
* not provide a mask then all fields will be overwritten.
195+
* @return Operation
196+
* @throws \Google\Service\Exception
197+
*/
198+
public function patch($name, AutonomousDatabase $postBody, $optParams = [])
199+
{
200+
$params = ['name' => $name, 'postBody' => $postBody];
201+
$params = array_merge($params, $optParams);
202+
return $this->call('patch', [$params], Operation::class);
203+
}
173204
/**
174205
* Restarts an Autonomous Database. (autonomousDatabases.restart)
175206
*

src/OracleDatabase/Resource/ProjectsLocationsOperations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ public function get($name, $optParams = [])
9999
* @opt_param string filter The standard list filter.
100100
* @opt_param int pageSize The standard list page size.
101101
* @opt_param string pageToken The standard list page token.
102+
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
103+
* reachable are returned as normal, and those that are unreachable are returned
104+
* in the [ListOperationsResponse.unreachable] field. This can only be `true`
105+
* when reading across collections e.g. when `parent` is set to
106+
* `"projects/example/locations/-"`. This field is not by default supported and
107+
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
108+
* otherwise in service or product specific documentation.
102109
* @return ListOperationsResponse
103110
* @throws \Google\Service\Exception
104111
*/

0 commit comments

Comments
 (0)