Skip to content

Commit 6a1ce53

Browse files
1 parent bb65826 commit 6a1ce53

17 files changed

+861
-6
lines changed

src/BigtableAdmin.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class BigtableAdmin extends \Google\Service
6969
public $projects_instances_clusters;
7070
public $projects_instances_clusters_backups;
7171
public $projects_instances_clusters_hotTablets;
72+
public $projects_instances_clusters_memoryLayers;
7273
public $projects_instances_logicalViews;
7374
public $projects_instances_materializedViews;
7475
public $projects_instances_tables;
@@ -386,6 +387,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
386387
'required' => true,
387388
],
388389
],
390+
],'getMemoryLayer' => [
391+
'path' => 'v2/{+name}',
392+
'httpMethod' => 'GET',
393+
'parameters' => [
394+
'name' => [
395+
'location' => 'path',
396+
'type' => 'string',
397+
'required' => true,
398+
],
399+
],
389400
],'list' => [
390401
'path' => 'v2/{+parent}/clusters',
391402
'httpMethod' => 'GET',
@@ -424,6 +435,20 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
424435
'required' => true,
425436
],
426437
],
438+
],'updateMemoryLayer' => [
439+
'path' => 'v2/{+name}',
440+
'httpMethod' => 'PATCH',
441+
'parameters' => [
442+
'name' => [
443+
'location' => 'path',
444+
'type' => 'string',
445+
'required' => true,
446+
],
447+
'updateMask' => [
448+
'location' => 'query',
449+
'type' => 'string',
450+
],
451+
],
427452
],
428453
]
429454
]
@@ -588,6 +613,34 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
588613
]
589614
]
590615
);
616+
$this->projects_instances_clusters_memoryLayers = new BigtableAdmin\Resource\ProjectsInstancesClustersMemoryLayers(
617+
$this,
618+
$this->serviceName,
619+
'memoryLayers',
620+
[
621+
'methods' => [
622+
'list' => [
623+
'path' => 'v2/{+parent}/memoryLayers',
624+
'httpMethod' => 'GET',
625+
'parameters' => [
626+
'parent' => [
627+
'location' => 'path',
628+
'type' => 'string',
629+
'required' => true,
630+
],
631+
'pageSize' => [
632+
'location' => 'query',
633+
'type' => 'integer',
634+
],
635+
'pageToken' => [
636+
'location' => 'query',
637+
'type' => 'string',
638+
],
639+
],
640+
],
641+
]
642+
]
643+
);
591644
$this->projects_instances_logicalViews = new BigtableAdmin\Resource\ProjectsInstancesLogicalViews(
592645
$this,
593646
$this->serviceName,

src/BigtableAdmin/AutomatedBackupPolicy.php

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,26 @@
1717

1818
namespace Google\Service\BigtableAdmin;
1919

20-
class AutomatedBackupPolicy extends \Google\Model
20+
class AutomatedBackupPolicy extends \Google\Collection
2121
{
22+
protected $collection_key = 'locations';
2223
/**
2324
* How frequently automated backups should occur. The only supported value at
2425
* this time is 24 hours. An undefined frequency is treated as 24 hours.
2526
*
2627
* @var string
2728
*/
2829
public $frequency;
30+
/**
31+
* Optional. A list of Cloud Bigtable zones where automated backups are
32+
* allowed to be created. If empty, automated backups will be created in all
33+
* zones of the instance. Locations are in the format
34+
* `projects/{project}/locations/{zone}`. This field can only set for tables
35+
* in Enterprise Plus instances.
36+
*
37+
* @var string[]
38+
*/
39+
public $locations;
2940
/**
3041
* Required. How long the automated backups should be retained. Values must be
3142
* at least 3 days and at most 90 days.
@@ -51,6 +62,26 @@ public function getFrequency()
5162
{
5263
return $this->frequency;
5364
}
65+
/**
66+
* Optional. A list of Cloud Bigtable zones where automated backups are
67+
* allowed to be created. If empty, automated backups will be created in all
68+
* zones of the instance. Locations are in the format
69+
* `projects/{project}/locations/{zone}`. This field can only set for tables
70+
* in Enterprise Plus instances.
71+
*
72+
* @param string[] $locations
73+
*/
74+
public function setLocations($locations)
75+
{
76+
$this->locations = $locations;
77+
}
78+
/**
79+
* @return string[]
80+
*/
81+
public function getLocations()
82+
{
83+
return $this->locations;
84+
}
5485
/**
5586
* Required. How long the automated backups should be retained. Values must be
5687
* at least 3 days and at most 90 days.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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\BigtableAdmin;
19+
20+
class GoogleBigtableAdminV2MemoryLayerMemoryConfig extends \Google\Model
21+
{
22+
/**
23+
* Output only. Reporting the current size of the memory layer in GiB.
24+
*
25+
* @var int
26+
*/
27+
public $storageSizeGib;
28+
29+
/**
30+
* Output only. Reporting the current size of the memory layer in GiB.
31+
*
32+
* @param int $storageSizeGib
33+
*/
34+
public function setStorageSizeGib($storageSizeGib)
35+
{
36+
$this->storageSizeGib = $storageSizeGib;
37+
}
38+
/**
39+
* @return int
40+
*/
41+
public function getStorageSizeGib()
42+
{
43+
return $this->storageSizeGib;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(GoogleBigtableAdminV2MemoryLayerMemoryConfig::class, 'Google_Service_BigtableAdmin_GoogleBigtableAdminV2MemoryLayerMemoryConfig');
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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\BigtableAdmin;
19+
20+
class GoogleBigtableAdminV2TypeInt32 extends \Google\Model
21+
{
22+
protected $encodingType = GoogleBigtableAdminV2TypeInt32Encoding::class;
23+
protected $encodingDataType = '';
24+
25+
/**
26+
* The encoding to use when converting to or from lower level types.
27+
*
28+
* @param GoogleBigtableAdminV2TypeInt32Encoding $encoding
29+
*/
30+
public function setEncoding(GoogleBigtableAdminV2TypeInt32Encoding $encoding)
31+
{
32+
$this->encoding = $encoding;
33+
}
34+
/**
35+
* @return GoogleBigtableAdminV2TypeInt32Encoding
36+
*/
37+
public function getEncoding()
38+
{
39+
return $this->encoding;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GoogleBigtableAdminV2TypeInt32::class, 'Google_Service_BigtableAdmin_GoogleBigtableAdminV2TypeInt32');
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\BigtableAdmin;
19+
20+
class GoogleBigtableAdminV2TypeInt32Encoding extends \Google\Model
21+
{
22+
protected $bigEndianBytesType = GoogleBigtableAdminV2TypeInt32EncodingBigEndianBytes::class;
23+
protected $bigEndianBytesDataType = '';
24+
protected $orderedCodeBytesType = GoogleBigtableAdminV2TypeInt32EncodingOrderedCodeBytes::class;
25+
protected $orderedCodeBytesDataType = '';
26+
27+
/**
28+
* Use `BigEndianBytes` encoding.
29+
*
30+
* @param GoogleBigtableAdminV2TypeInt32EncodingBigEndianBytes $bigEndianBytes
31+
*/
32+
public function setBigEndianBytes(GoogleBigtableAdminV2TypeInt32EncodingBigEndianBytes $bigEndianBytes)
33+
{
34+
$this->bigEndianBytes = $bigEndianBytes;
35+
}
36+
/**
37+
* @return GoogleBigtableAdminV2TypeInt32EncodingBigEndianBytes
38+
*/
39+
public function getBigEndianBytes()
40+
{
41+
return $this->bigEndianBytes;
42+
}
43+
/**
44+
* Use `OrderedCodeBytes` encoding.
45+
*
46+
* @param GoogleBigtableAdminV2TypeInt32EncodingOrderedCodeBytes $orderedCodeBytes
47+
*/
48+
public function setOrderedCodeBytes(GoogleBigtableAdminV2TypeInt32EncodingOrderedCodeBytes $orderedCodeBytes)
49+
{
50+
$this->orderedCodeBytes = $orderedCodeBytes;
51+
}
52+
/**
53+
* @return GoogleBigtableAdminV2TypeInt32EncodingOrderedCodeBytes
54+
*/
55+
public function getOrderedCodeBytes()
56+
{
57+
return $this->orderedCodeBytes;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(GoogleBigtableAdminV2TypeInt32Encoding::class, 'Google_Service_BigtableAdmin_GoogleBigtableAdminV2TypeInt32Encoding');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\BigtableAdmin;
19+
20+
class GoogleBigtableAdminV2TypeInt32EncodingBigEndianBytes extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleBigtableAdminV2TypeInt32EncodingBigEndianBytes::class, 'Google_Service_BigtableAdmin_GoogleBigtableAdminV2TypeInt32EncodingBigEndianBytes');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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\BigtableAdmin;
19+
20+
class GoogleBigtableAdminV2TypeInt32EncodingOrderedCodeBytes extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(GoogleBigtableAdminV2TypeInt32EncodingOrderedCodeBytes::class, 'Google_Service_BigtableAdmin_GoogleBigtableAdminV2TypeInt32EncodingOrderedCodeBytes');

0 commit comments

Comments
 (0)