Skip to content

Commit 6b95641

Browse files
1 parent 76e1796 commit 6b95641

9 files changed

+259
-16
lines changed

src/CloudAlloyDBAdmin/ListOperationsResponse.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ class ListOperationsResponse extends \Google\Collection
3030
protected $operationsDataType = 'array';
3131
/**
3232
* Unordered list. Unreachable resources. Populated when the request sets
33-
* `ListOperationsRequest.return_partial_success` and reads across collections
34-
* e.g. when attempting to list all resources across all supported locations.
33+
* `ListOperationsRequest.return_partial_success` and reads across
34+
* collections. For example, when attempting to list all resources across all
35+
* supported locations.
3536
*
3637
* @var string[]
3738
*/
@@ -71,8 +72,9 @@ public function getOperations()
7172
}
7273
/**
7374
* Unordered list. Unreachable resources. Populated when the request sets
74-
* `ListOperationsRequest.return_partial_success` and reads across collections
75-
* e.g. when attempting to list all resources across all supported locations.
75+
* `ListOperationsRequest.return_partial_success` and reads across
76+
* collections. For example, when attempting to list all resources across all
77+
* supported locations.
7678
*
7779
* @param string[] $unreachable
7880
*/

src/CloudAlloyDBAdmin/Resource/ProjectsLocationsOperations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public function get($name, $optParams = [])
101101
* @opt_param string pageToken The standard list page token.
102102
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
103103
* 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
104+
* in the ListOperationsResponse.unreachable field. This can only be `true` when
105+
* reading across collections. For example, when `parent` is set to
106+
* `"projects/example/locations/-"`. This field is not supported by default and
107107
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
108108
* otherwise in service or product specific documentation.
109109
* @return ListOperationsResponse
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
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\CloudAlloyDBAdmin;
19+
20+
class StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata extends \Google\Model
21+
{
22+
/**
23+
* The creation time of the resource, i.e. the time when resource is created
24+
* and recorded in partner service.
25+
*
26+
* @var string
27+
*/
28+
public $createTime;
29+
/**
30+
* Required. Full resource name of this instance.
31+
*
32+
* @var string
33+
*/
34+
public $fullResourceName;
35+
/**
36+
* Required. location of the resource
37+
*
38+
* @var string
39+
*/
40+
public $location;
41+
protected $productType = StorageDatabasecenterProtoCommonProduct::class;
42+
protected $productDataType = '';
43+
/**
44+
* Closest parent Cloud Resource Manager container of this resource. It must
45+
* be resource name of a Cloud Resource Manager project with the format of
46+
* "/", such as "projects/123". For GCP provided resources, number should be
47+
* project number.
48+
*
49+
* @var string
50+
*/
51+
public $resourceContainer;
52+
protected $resourceIdType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceId::class;
53+
protected $resourceIdDataType = '';
54+
/**
55+
* The time at which the resource was updated and recorded at partner service.
56+
*
57+
* @var string
58+
*/
59+
public $updateTime;
60+
protected $userLabelSetType = StorageDatabasecenterPartnerapiV1mainUserLabels::class;
61+
protected $userLabelSetDataType = '';
62+
63+
/**
64+
* The creation time of the resource, i.e. the time when resource is created
65+
* and recorded in partner service.
66+
*
67+
* @param string $createTime
68+
*/
69+
public function setCreateTime($createTime)
70+
{
71+
$this->createTime = $createTime;
72+
}
73+
/**
74+
* @return string
75+
*/
76+
public function getCreateTime()
77+
{
78+
return $this->createTime;
79+
}
80+
/**
81+
* Required. Full resource name of this instance.
82+
*
83+
* @param string $fullResourceName
84+
*/
85+
public function setFullResourceName($fullResourceName)
86+
{
87+
$this->fullResourceName = $fullResourceName;
88+
}
89+
/**
90+
* @return string
91+
*/
92+
public function getFullResourceName()
93+
{
94+
return $this->fullResourceName;
95+
}
96+
/**
97+
* Required. location of the resource
98+
*
99+
* @param string $location
100+
*/
101+
public function setLocation($location)
102+
{
103+
$this->location = $location;
104+
}
105+
/**
106+
* @return string
107+
*/
108+
public function getLocation()
109+
{
110+
return $this->location;
111+
}
112+
/**
113+
* The product this resource represents.
114+
*
115+
* @param StorageDatabasecenterProtoCommonProduct $product
116+
*/
117+
public function setProduct(StorageDatabasecenterProtoCommonProduct $product)
118+
{
119+
$this->product = $product;
120+
}
121+
/**
122+
* @return StorageDatabasecenterProtoCommonProduct
123+
*/
124+
public function getProduct()
125+
{
126+
return $this->product;
127+
}
128+
/**
129+
* Closest parent Cloud Resource Manager container of this resource. It must
130+
* be resource name of a Cloud Resource Manager project with the format of
131+
* "/", such as "projects/123". For GCP provided resources, number should be
132+
* project number.
133+
*
134+
* @param string $resourceContainer
135+
*/
136+
public function setResourceContainer($resourceContainer)
137+
{
138+
$this->resourceContainer = $resourceContainer;
139+
}
140+
/**
141+
* @return string
142+
*/
143+
public function getResourceContainer()
144+
{
145+
return $this->resourceContainer;
146+
}
147+
/**
148+
* Required. Database resource id.
149+
*
150+
* @param StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId
151+
*/
152+
public function setResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId $resourceId)
153+
{
154+
$this->resourceId = $resourceId;
155+
}
156+
/**
157+
* @return StorageDatabasecenterPartnerapiV1mainDatabaseResourceId
158+
*/
159+
public function getResourceId()
160+
{
161+
return $this->resourceId;
162+
}
163+
/**
164+
* The time at which the resource was updated and recorded at partner service.
165+
*
166+
* @param string $updateTime
167+
*/
168+
public function setUpdateTime($updateTime)
169+
{
170+
$this->updateTime = $updateTime;
171+
}
172+
/**
173+
* @return string
174+
*/
175+
public function getUpdateTime()
176+
{
177+
return $this->updateTime;
178+
}
179+
/**
180+
* User-provided labels associated with the resource
181+
*
182+
* @param StorageDatabasecenterPartnerapiV1mainUserLabels $userLabelSet
183+
*/
184+
public function setUserLabelSet(StorageDatabasecenterPartnerapiV1mainUserLabels $userLabelSet)
185+
{
186+
$this->userLabelSet = $userLabelSet;
187+
}
188+
/**
189+
* @return StorageDatabasecenterPartnerapiV1mainUserLabels
190+
*/
191+
public function getUserLabelSet()
192+
{
193+
return $this->userLabelSet;
194+
}
195+
}
196+
197+
// Adding a class alias for backwards compatibility with the previous class name.
198+
class_alias(StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata::class, 'Google_Service_CloudAlloyDBAdmin_StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata');

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ class StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData extends \Google
4949
* Represents if a resource version is in extended support.
5050
*/
5151
public const SIGNAL_TYPE_SIGNAL_TYPE_EXTENDED_SUPPORT = 'SIGNAL_TYPE_EXTENDED_SUPPORT';
52+
/**
53+
* Represents if a resource has no automated backup policy.
54+
*/
55+
public const SIGNAL_TYPE_SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY';
5256
/**
5357
* Required. Full Resource name of the source resource.
5458
*
@@ -146,7 +150,8 @@ public function getSignalBoolValue()
146150
* Accepted values: SIGNAL_TYPE_UNSPECIFIED,
147151
* SIGNAL_TYPE_OUTDATED_MINOR_VERSION, SIGNAL_TYPE_DATABASE_AUDITING_DISABLED,
148152
* SIGNAL_TYPE_NO_ROOT_PASSWORD, SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS,
149-
* SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS, SIGNAL_TYPE_EXTENDED_SUPPORT
153+
* SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS, SIGNAL_TYPE_EXTENDED_SUPPORT,
154+
* SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY
150155
*
151156
* @param self::SIGNAL_TYPE_* $signalType
152157
*/

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed.php

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed extends \Google\
4848
* Database resource signal data
4949
*/
5050
public const FEED_TYPE_DATABASE_RESOURCE_SIGNAL_DATA = 'DATABASE_RESOURCE_SIGNAL_DATA';
51+
/**
52+
* BigQuery resource metadata
53+
*/
54+
public const FEED_TYPE_BIGQUERY_RESOURCE_METADATA = 'BIGQUERY_RESOURCE_METADATA';
5155
protected $backupdrMetadataType = StorageDatabasecenterPartnerapiV1mainBackupDRMetadata::class;
5256
protected $backupdrMetadataDataType = '';
57+
protected $bigqueryResourceMetadataType = StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata::class;
58+
protected $bigqueryResourceMetadataDataType = '';
5359
protected $configBasedSignalDataType = StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData::class;
5460
protected $configBasedSignalDataDataType = '';
5561
protected $databaseResourceSignalDataType = StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData::class;
@@ -103,6 +109,22 @@ public function getBackupdrMetadata()
103109
{
104110
return $this->backupdrMetadata;
105111
}
112+
/**
113+
* For BigQuery resource metadata.
114+
*
115+
* @param StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata $bigqueryResourceMetadata
116+
*/
117+
public function setBigqueryResourceMetadata(StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata $bigqueryResourceMetadata)
118+
{
119+
$this->bigqueryResourceMetadata = $bigqueryResourceMetadata;
120+
}
121+
/**
122+
* @return StorageDatabasecenterPartnerapiV1mainBigQueryResourceMetadata
123+
*/
124+
public function getBigqueryResourceMetadata()
125+
{
126+
return $this->bigqueryResourceMetadata;
127+
}
106128
/**
107129
* Config based signal data is used to ingest signals that are generated based
108130
* on the configuration of the database resource.
@@ -158,7 +180,8 @@ public function getFeedTimestamp()
158180
*
159181
* Accepted values: FEEDTYPE_UNSPECIFIED, RESOURCE_METADATA,
160182
* OBSERVABILITY_DATA, SECURITY_FINDING_DATA, RECOMMENDATION_SIGNAL_DATA,
161-
* CONFIG_BASED_SIGNAL_DATA, BACKUPDR_METADATA, DATABASE_RESOURCE_SIGNAL_DATA
183+
* CONFIG_BASED_SIGNAL_DATA, BACKUPDR_METADATA, DATABASE_RESOURCE_SIGNAL_DATA,
184+
* BIGQUERY_RESOURCE_METADATA
162185
*
163186
* @param self::FEED_TYPE_* $feedType
164187
*/

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData exte
328328
/**
329329
* Represents if the cross_db_ownership_chaining database flag for a Cloud SQL
330330
* for SQL Server instance is not set to off.
331+
*
332+
* @deprecated
331333
*/
332334
public const SIGNAL_TYPE_SIGNAL_TYPE_EXPOSED_BY_OWNERSHIP_CHAINING = 'SIGNAL_TYPE_EXPOSED_BY_OWNERSHIP_CHAINING';
333335
/**
@@ -543,6 +545,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData exte
543545
public const SIGNAL_TYPE_SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 'SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED';
544546
/**
545547
* High number of idle connections.
548+
*
549+
* @deprecated
546550
*/
547551
public const SIGNAL_TYPE_SIGNAL_TYPE_MANY_IDLE_CONNECTIONS = 'SIGNAL_TYPE_MANY_IDLE_CONNECTIONS';
548552
/**

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainDatabaseResourceId.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceId extends \Google\Mo
6464
/**
6565
* Required. The type of resource this ID is identifying. Ex go/keep-sorted
6666
* start alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance,
67-
* bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance
68-
* compute.googleapis.com/Instance firestore.googleapis.com/Database,
69-
* redis.googleapis.com/Instance, redis.googleapis.com/Cluster,
67+
* bigquery.googleapis.com/Dataset, bigtableadmin.googleapis.com/Cluster,
68+
* bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance
69+
* firestore.googleapis.com/Database, redis.googleapis.com/Instance,
70+
* redis.googleapis.com/Cluster,
7071
* oracledatabase.googleapis.com/CloudExadataInfrastructure
7172
* oracledatabase.googleapis.com/CloudVmCluster
7273
* oracledatabase.googleapis.com/AutonomousDatabase
@@ -123,9 +124,10 @@ public function getProviderDescription()
123124
/**
124125
* Required. The type of resource this ID is identifying. Ex go/keep-sorted
125126
* start alloydb.googleapis.com/Cluster, alloydb.googleapis.com/Instance,
126-
* bigtableadmin.googleapis.com/Cluster, bigtableadmin.googleapis.com/Instance
127-
* compute.googleapis.com/Instance firestore.googleapis.com/Database,
128-
* redis.googleapis.com/Instance, redis.googleapis.com/Cluster,
127+
* bigquery.googleapis.com/Dataset, bigtableadmin.googleapis.com/Cluster,
128+
* bigtableadmin.googleapis.com/Instance compute.googleapis.com/Instance
129+
* firestore.googleapis.com/Database, redis.googleapis.com/Instance,
130+
* redis.googleapis.com/Cluster,
129131
* oracledatabase.googleapis.com/CloudExadataInfrastructure
130132
* oracledatabase.googleapis.com/CloudVmCluster
131133
* oracledatabase.googleapis.com/AutonomousDatabase

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD
275275
/**
276276
* Represents if the cross_db_ownership_chaining database flag for a Cloud SQL
277277
* for SQL Server instance is not set to off.
278+
*
279+
* @deprecated
278280
*/
279281
public const SIGNAL_TYPE_SIGNAL_TYPE_EXPOSED_BY_OWNERSHIP_CHAINING = 'SIGNAL_TYPE_EXPOSED_BY_OWNERSHIP_CHAINING';
280282
/**
@@ -490,6 +492,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD
490492
public const SIGNAL_TYPE_SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED = 'SIGNAL_TYPE_SCHEMA_NOT_OPTIMIZED';
491493
/**
492494
* High number of idle connections.
495+
*
496+
* @deprecated
493497
*/
494498
public const SIGNAL_TYPE_SIGNAL_TYPE_MANY_IDLE_CONNECTIONS = 'SIGNAL_TYPE_MANY_IDLE_CONNECTIONS';
495499
/**

src/CloudAlloyDBAdmin/StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData extends \G
6565
* Represents if a resource version is in extended support.
6666
*/
6767
public const SIGNAL_TYPE_SIGNAL_TYPE_EXTENDED_SUPPORT = 'SIGNAL_TYPE_EXTENDED_SUPPORT';
68+
/**
69+
* Represents if a resource has no automated backup policy.
70+
*/
71+
public const SIGNAL_TYPE_SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY = 'SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY';
6872
/**
6973
* Required. Full Resource name of the source resource.
7074
*
@@ -186,7 +190,8 @@ public function getSignalState()
186190
* Accepted values: SIGNAL_TYPE_UNSPECIFIED,
187191
* SIGNAL_TYPE_OUTDATED_MINOR_VERSION, SIGNAL_TYPE_DATABASE_AUDITING_DISABLED,
188192
* SIGNAL_TYPE_NO_ROOT_PASSWORD, SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS,
189-
* SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS, SIGNAL_TYPE_EXTENDED_SUPPORT
193+
* SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS, SIGNAL_TYPE_EXTENDED_SUPPORT,
194+
* SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY
190195
*
191196
* @param self::SIGNAL_TYPE_* $signalType
192197
*/

0 commit comments

Comments
 (0)