File tree 4 files changed +124
-2
lines changed
src/SecurityCommandCenter 4 files changed +124
-2
lines changed Original file line number Diff line number Diff line change
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 ' );
Original file line number Diff line number Diff line change 17
17
18
18
namespace Google \Service \SecurityCommandCenter ;
19
19
20
- class GoogleCloudSecuritycenterV2File extends \Google \Model
20
+ class GoogleCloudSecuritycenterV2File extends \Google \Collection
21
21
{
22
+ protected $ collection_key = 'operations ' ;
22
23
/**
23
24
* @var string
24
25
*/
@@ -29,6 +30,8 @@ class GoogleCloudSecuritycenterV2File extends \Google\Model
29
30
* @var string
30
31
*/
31
32
public $ hashedSize ;
33
+ protected $ operationsType = GoogleCloudSecuritycenterV2FileOperation::class;
34
+ protected $ operationsDataType = 'array ' ;
32
35
/**
33
36
* @var bool
34
37
*/
@@ -88,6 +91,20 @@ public function getHashedSize()
88
91
{
89
92
return $ this ->hashedSize ;
90
93
}
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
+ }
91
108
/**
92
109
* @param bool
93
110
*/
Original file line number Diff line number Diff line change
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 ' );
Original file line number Diff line number Diff line change 17
17
18
18
namespace Google \Service \SecurityCommandCenter ;
19
19
20
- class SecuritycenterFile extends \Google \Model
20
+ class SecuritycenterFile extends \Google \Collection
21
21
{
22
+ protected $ collection_key = 'operations ' ;
22
23
/**
23
24
* @var string
24
25
*/
@@ -29,6 +30,8 @@ class SecuritycenterFile extends \Google\Model
29
30
* @var string
30
31
*/
31
32
public $ hashedSize ;
33
+ protected $ operationsType = FileOperation::class;
34
+ protected $ operationsDataType = 'array ' ;
32
35
/**
33
36
* @var bool
34
37
*/
@@ -88,6 +91,20 @@ public function getHashedSize()
88
91
{
89
92
return $ this ->hashedSize ;
90
93
}
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
+ }
91
108
/**
92
109
* @param bool
93
110
*/
You can’t perform that action at this time.
0 commit comments