Skip to content

Commit e5b744c

Browse files
1 parent 085f2a0 commit e5b744c

16 files changed

Lines changed: 1060 additions & 0 deletions
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 Allowed extends \Google\Collection
21+
{
22+
protected $collection_key = 'ipRules';
23+
protected $ipRulesType = IpRule::class;
24+
protected $ipRulesDataType = 'array';
25+
26+
/**
27+
* @param IpRule[]
28+
*/
29+
public function setIpRules($ipRules)
30+
{
31+
$this->ipRules = $ipRules;
32+
}
33+
/**
34+
* @return IpRule[]
35+
*/
36+
public function getIpRules()
37+
{
38+
return $this->ipRules;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(Allowed::class, 'Google_Service_SecurityCommandCenter_Allowed');
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 Denied extends \Google\Collection
21+
{
22+
protected $collection_key = 'ipRules';
23+
protected $ipRulesType = IpRule::class;
24+
protected $ipRulesDataType = 'array';
25+
26+
/**
27+
* @param IpRule[]
28+
*/
29+
public function setIpRules($ipRules)
30+
{
31+
$this->ipRules = $ipRules;
32+
}
33+
/**
34+
* @return IpRule[]
35+
*/
36+
public function getIpRules()
37+
{
38+
return $this->ipRules;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(Denied::class, 'Google_Service_SecurityCommandCenter_Denied');

src/SecurityCommandCenter/Finding.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ class Finding extends \Google\Collection
9292
protected $iamBindingsDataType = 'array';
9393
protected $indicatorType = Indicator::class;
9494
protected $indicatorDataType = '';
95+
protected $ipRulesType = IpRules::class;
96+
protected $ipRulesDataType = '';
97+
protected $jobType = Job::class;
98+
protected $jobDataType = '';
9599
protected $kernelRootkitType = KernelRootkit::class;
96100
protected $kernelRootkitDataType = '';
97101
protected $kubernetesType = Kubernetes::class;
@@ -124,6 +128,8 @@ class Finding extends \Google\Collection
124128
* @var string
125129
*/
126130
public $name;
131+
protected $networksType = Network::class;
132+
protected $networksDataType = 'array';
127133
/**
128134
* @var string
129135
*/
@@ -573,6 +579,34 @@ public function getIndicator()
573579
{
574580
return $this->indicator;
575581
}
582+
/**
583+
* @param IpRules
584+
*/
585+
public function setIpRules(IpRules $ipRules)
586+
{
587+
$this->ipRules = $ipRules;
588+
}
589+
/**
590+
* @return IpRules
591+
*/
592+
public function getIpRules()
593+
{
594+
return $this->ipRules;
595+
}
596+
/**
597+
* @param Job
598+
*/
599+
public function setJob(Job $job)
600+
{
601+
$this->job = $job;
602+
}
603+
/**
604+
* @return Job
605+
*/
606+
public function getJob()
607+
{
608+
return $this->job;
609+
}
576610
/**
577611
* @param KernelRootkit
578612
*/
@@ -727,6 +761,20 @@ public function getName()
727761
{
728762
return $this->name;
729763
}
764+
/**
765+
* @param Network[]
766+
*/
767+
public function setNetworks($networks)
768+
{
769+
$this->networks = $networks;
770+
}
771+
/**
772+
* @return Network[]
773+
*/
774+
public function getNetworks()
775+
{
776+
return $this->networks;
777+
}
730778
/**
731779
* @param string
732780
*/
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 GoogleCloudSecuritycenterV2Allowed extends \Google\Collection
21+
{
22+
protected $collection_key = 'ipRules';
23+
protected $ipRulesType = GoogleCloudSecuritycenterV2IpRule::class;
24+
protected $ipRulesDataType = 'array';
25+
26+
/**
27+
* @param GoogleCloudSecuritycenterV2IpRule[]
28+
*/
29+
public function setIpRules($ipRules)
30+
{
31+
$this->ipRules = $ipRules;
32+
}
33+
/**
34+
* @return GoogleCloudSecuritycenterV2IpRule[]
35+
*/
36+
public function getIpRules()
37+
{
38+
return $this->ipRules;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(GoogleCloudSecuritycenterV2Allowed::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2Allowed');
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 GoogleCloudSecuritycenterV2Denied extends \Google\Collection
21+
{
22+
protected $collection_key = 'ipRules';
23+
protected $ipRulesType = GoogleCloudSecuritycenterV2IpRule::class;
24+
protected $ipRulesDataType = 'array';
25+
26+
/**
27+
* @param GoogleCloudSecuritycenterV2IpRule[]
28+
*/
29+
public function setIpRules($ipRules)
30+
{
31+
$this->ipRules = $ipRules;
32+
}
33+
/**
34+
* @return GoogleCloudSecuritycenterV2IpRule[]
35+
*/
36+
public function getIpRules()
37+
{
38+
return $this->ipRules;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(GoogleCloudSecuritycenterV2Denied::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2Denied');

src/SecurityCommandCenter/GoogleCloudSecuritycenterV2Finding.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ class GoogleCloudSecuritycenterV2Finding extends \Google\Collection
9292
protected $iamBindingsDataType = 'array';
9393
protected $indicatorType = GoogleCloudSecuritycenterV2Indicator::class;
9494
protected $indicatorDataType = '';
95+
protected $ipRulesType = GoogleCloudSecuritycenterV2IpRules::class;
96+
protected $ipRulesDataType = '';
97+
protected $jobType = GoogleCloudSecuritycenterV2Job::class;
98+
protected $jobDataType = '';
9599
protected $kernelRootkitType = GoogleCloudSecuritycenterV2KernelRootkit::class;
96100
protected $kernelRootkitDataType = '';
97101
protected $kubernetesType = GoogleCloudSecuritycenterV2Kubernetes::class;
@@ -124,6 +128,8 @@ class GoogleCloudSecuritycenterV2Finding extends \Google\Collection
124128
* @var string
125129
*/
126130
public $name;
131+
protected $networksType = GoogleCloudSecuritycenterV2Network::class;
132+
protected $networksDataType = 'array';
127133
/**
128134
* @var string
129135
*/
@@ -573,6 +579,34 @@ public function getIndicator()
573579
{
574580
return $this->indicator;
575581
}
582+
/**
583+
* @param GoogleCloudSecuritycenterV2IpRules
584+
*/
585+
public function setIpRules(GoogleCloudSecuritycenterV2IpRules $ipRules)
586+
{
587+
$this->ipRules = $ipRules;
588+
}
589+
/**
590+
* @return GoogleCloudSecuritycenterV2IpRules
591+
*/
592+
public function getIpRules()
593+
{
594+
return $this->ipRules;
595+
}
596+
/**
597+
* @param GoogleCloudSecuritycenterV2Job
598+
*/
599+
public function setJob(GoogleCloudSecuritycenterV2Job $job)
600+
{
601+
$this->job = $job;
602+
}
603+
/**
604+
* @return GoogleCloudSecuritycenterV2Job
605+
*/
606+
public function getJob()
607+
{
608+
return $this->job;
609+
}
576610
/**
577611
* @param GoogleCloudSecuritycenterV2KernelRootkit
578612
*/
@@ -727,6 +761,20 @@ public function getName()
727761
{
728762
return $this->name;
729763
}
764+
/**
765+
* @param GoogleCloudSecuritycenterV2Network[]
766+
*/
767+
public function setNetworks($networks)
768+
{
769+
$this->networks = $networks;
770+
}
771+
/**
772+
* @return GoogleCloudSecuritycenterV2Network[]
773+
*/
774+
public function getNetworks()
775+
{
776+
return $this->networks;
777+
}
730778
/**
731779
* @param string
732780
*/
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 GoogleCloudSecuritycenterV2IpRule extends \Google\Collection
21+
{
22+
protected $collection_key = 'portRanges';
23+
protected $portRangesType = GoogleCloudSecuritycenterV2PortRange::class;
24+
protected $portRangesDataType = 'array';
25+
/**
26+
* @var string
27+
*/
28+
public $protocol;
29+
30+
/**
31+
* @param GoogleCloudSecuritycenterV2PortRange[]
32+
*/
33+
public function setPortRanges($portRanges)
34+
{
35+
$this->portRanges = $portRanges;
36+
}
37+
/**
38+
* @return GoogleCloudSecuritycenterV2PortRange[]
39+
*/
40+
public function getPortRanges()
41+
{
42+
return $this->portRanges;
43+
}
44+
/**
45+
* @param string
46+
*/
47+
public function setProtocol($protocol)
48+
{
49+
$this->protocol = $protocol;
50+
}
51+
/**
52+
* @return string
53+
*/
54+
public function getProtocol()
55+
{
56+
return $this->protocol;
57+
}
58+
}
59+
60+
// Adding a class alias for backwards compatibility with the previous class name.
61+
class_alias(GoogleCloudSecuritycenterV2IpRule::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2IpRule');

0 commit comments

Comments
 (0)