Skip to content

Commit 906e943

Browse files
Regenerate securitycenter client (#6633)
1 parent 2fdeb17 commit 906e943

File tree

4 files changed

+124
-2
lines changed

4 files changed

+124
-2
lines changed
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\SecurityCommandCenter;
19+
20+
class FileOperation extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $type;
26+
27+
/**
28+
* @param string
29+
*/
30+
public function setType($type)
31+
{
32+
$this->type = $type;
33+
}
34+
/**
35+
* @return string
36+
*/
37+
public function getType()
38+
{
39+
return $this->type;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(FileOperation::class, 'Google_Service_SecurityCommandCenter_FileOperation');

src/SecurityCommandCenter/GoogleCloudSecuritycenterV2File.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
namespace Google\Service\SecurityCommandCenter;
1919

20-
class GoogleCloudSecuritycenterV2File extends \Google\Model
20+
class GoogleCloudSecuritycenterV2File extends \Google\Collection
2121
{
22+
protected $collection_key = 'operations';
2223
/**
2324
* @var string
2425
*/
@@ -29,6 +30,8 @@ class GoogleCloudSecuritycenterV2File extends \Google\Model
2930
* @var string
3031
*/
3132
public $hashedSize;
33+
protected $operationsType = GoogleCloudSecuritycenterV2FileOperation::class;
34+
protected $operationsDataType = 'array';
3235
/**
3336
* @var bool
3437
*/
@@ -88,6 +91,20 @@ public function getHashedSize()
8891
{
8992
return $this->hashedSize;
9093
}
94+
/**
95+
* @param GoogleCloudSecuritycenterV2FileOperation[]
96+
*/
97+
public function setOperations($operations)
98+
{
99+
$this->operations = $operations;
100+
}
101+
/**
102+
* @return GoogleCloudSecuritycenterV2FileOperation[]
103+
*/
104+
public function getOperations()
105+
{
106+
return $this->operations;
107+
}
91108
/**
92109
* @param bool
93110
*/
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\SecurityCommandCenter;
19+
20+
class GoogleCloudSecuritycenterV2FileOperation extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $type;
26+
27+
/**
28+
* @param string
29+
*/
30+
public function setType($type)
31+
{
32+
$this->type = $type;
33+
}
34+
/**
35+
* @return string
36+
*/
37+
public function getType()
38+
{
39+
return $this->type;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(GoogleCloudSecuritycenterV2FileOperation::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2FileOperation');

src/SecurityCommandCenter/SecuritycenterFile.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
namespace Google\Service\SecurityCommandCenter;
1919

20-
class SecuritycenterFile extends \Google\Model
20+
class SecuritycenterFile extends \Google\Collection
2121
{
22+
protected $collection_key = 'operations';
2223
/**
2324
* @var string
2425
*/
@@ -29,6 +30,8 @@ class SecuritycenterFile extends \Google\Model
2930
* @var string
3031
*/
3132
public $hashedSize;
33+
protected $operationsType = FileOperation::class;
34+
protected $operationsDataType = 'array';
3235
/**
3336
* @var bool
3437
*/
@@ -88,6 +91,20 @@ public function getHashedSize()
8891
{
8992
return $this->hashedSize;
9093
}
94+
/**
95+
* @param FileOperation[]
96+
*/
97+
public function setOperations($operations)
98+
{
99+
$this->operations = $operations;
100+
}
101+
/**
102+
* @return FileOperation[]
103+
*/
104+
public function getOperations()
105+
{
106+
return $this->operations;
107+
}
91108
/**
92109
* @param bool
93110
*/

0 commit comments

Comments
 (0)