Skip to content

Commit bb8aadd

Browse files
1 parent e6971f9 commit bb8aadd

13 files changed

+732
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 AdcApplication extends \Google\Model
21+
{
22+
protected $attributesType = GoogleCloudSecuritycenterV1ResourceApplicationAttributes::class;
23+
protected $attributesDataType = '';
24+
/**
25+
* The resource name of an ADC Application. Format: projects/{project}/locatio
26+
* ns/{location}/spaces/{space}/applications/{application}
27+
*
28+
* @var string
29+
*/
30+
public $name;
31+
32+
/**
33+
* Consumer provided attributes for the AppHub application.
34+
*
35+
* @param GoogleCloudSecuritycenterV1ResourceApplicationAttributes $attributes
36+
*/
37+
public function setAttributes(GoogleCloudSecuritycenterV1ResourceApplicationAttributes $attributes)
38+
{
39+
$this->attributes = $attributes;
40+
}
41+
/**
42+
* @return GoogleCloudSecuritycenterV1ResourceApplicationAttributes
43+
*/
44+
public function getAttributes()
45+
{
46+
return $this->attributes;
47+
}
48+
/**
49+
* The resource name of an ADC Application. Format: projects/{project}/locatio
50+
* ns/{location}/spaces/{space}/applications/{application}
51+
*
52+
* @param string $name
53+
*/
54+
public function setName($name)
55+
{
56+
$this->name = $name;
57+
}
58+
/**
59+
* @return string
60+
*/
61+
public function getName()
62+
{
63+
return $this->name;
64+
}
65+
}
66+
67+
// Adding a class alias for backwards compatibility with the previous class name.
68+
class_alias(AdcApplication::class, 'Google_Service_SecurityCommandCenter_AdcApplication');
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 AdcApplicationTemplateRevision extends \Google\Model
21+
{
22+
/**
23+
* The resource name of an ADC Application Template Revision. Format: projects
24+
* /{project}/locations/{location}/spaces/{space}/applicationTemplates/{applic
25+
* ation_template}/revisions/{revision}
26+
*
27+
* @var string
28+
*/
29+
public $name;
30+
31+
/**
32+
* The resource name of an ADC Application Template Revision. Format: projects
33+
* /{project}/locations/{location}/spaces/{space}/applicationTemplates/{applic
34+
* ation_template}/revisions/{revision}
35+
*
36+
* @param string $name
37+
*/
38+
public function setName($name)
39+
{
40+
$this->name = $name;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getName()
46+
{
47+
return $this->name;
48+
}
49+
}
50+
51+
// Adding a class alias for backwards compatibility with the previous class name.
52+
class_alias(AdcApplicationTemplateRevision::class, 'Google_Service_SecurityCommandCenter_AdcApplicationTemplateRevision');
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 AdcSharedTemplateRevision extends \Google\Model
21+
{
22+
/**
23+
* The resource name of an ADC Shared Template Revision. Format: projects/{pro
24+
* ject}/locations/{location}/spaces/{space}/applicationTemplates/{application
25+
* _template}/revisions/{revision}
26+
*
27+
* @var string
28+
*/
29+
public $name;
30+
31+
/**
32+
* The resource name of an ADC Shared Template Revision. Format: projects/{pro
33+
* ject}/locations/{location}/spaces/{space}/applicationTemplates/{application
34+
* _template}/revisions/{revision}
35+
*
36+
* @param string $name
37+
*/
38+
public function setName($name)
39+
{
40+
$this->name = $name;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getName()
46+
{
47+
return $this->name;
48+
}
49+
}
50+
51+
// Adding a class alias for backwards compatibility with the previous class name.
52+
class_alias(AdcSharedTemplateRevision::class, 'Google_Service_SecurityCommandCenter_AdcSharedTemplateRevision');

src/SecurityCommandCenter/GoogleCloudSecuritycenterV1Resource.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ class GoogleCloudSecuritycenterV1Resource extends \Google\Collection
3636
*/
3737
public const CLOUD_PROVIDER_MICROSOFT_AZURE = 'MICROSOFT_AZURE';
3838
protected $collection_key = 'folders';
39+
protected $adcApplicationType = AdcApplication::class;
40+
protected $adcApplicationDataType = '';
41+
protected $adcApplicationTemplateType = AdcApplicationTemplateRevision::class;
42+
protected $adcApplicationTemplateDataType = '';
43+
protected $adcSharedTemplateType = AdcSharedTemplateRevision::class;
44+
protected $adcSharedTemplateDataType = '';
3945
protected $applicationType = GoogleCloudSecuritycenterV1ResourceApplication::class;
4046
protected $applicationDataType = '';
4147
protected $awsMetadataType = AwsMetadata::class;
@@ -130,6 +136,54 @@ class GoogleCloudSecuritycenterV1Resource extends \Google\Collection
130136
*/
131137
public $type;
132138

139+
/**
140+
* The ADC application associated with the finding.
141+
*
142+
* @param AdcApplication $adcApplication
143+
*/
144+
public function setAdcApplication(AdcApplication $adcApplication)
145+
{
146+
$this->adcApplication = $adcApplication;
147+
}
148+
/**
149+
* @return AdcApplication
150+
*/
151+
public function getAdcApplication()
152+
{
153+
return $this->adcApplication;
154+
}
155+
/**
156+
* The ADC template associated with the finding.
157+
*
158+
* @param AdcApplicationTemplateRevision $adcApplicationTemplate
159+
*/
160+
public function setAdcApplicationTemplate(AdcApplicationTemplateRevision $adcApplicationTemplate)
161+
{
162+
$this->adcApplicationTemplate = $adcApplicationTemplate;
163+
}
164+
/**
165+
* @return AdcApplicationTemplateRevision
166+
*/
167+
public function getAdcApplicationTemplate()
168+
{
169+
return $this->adcApplicationTemplate;
170+
}
171+
/**
172+
* The ADC shared template associated with the finding.
173+
*
174+
* @param AdcSharedTemplateRevision $adcSharedTemplate
175+
*/
176+
public function setAdcSharedTemplate(AdcSharedTemplateRevision $adcSharedTemplate)
177+
{
178+
$this->adcSharedTemplate = $adcSharedTemplate;
179+
}
180+
/**
181+
* @return AdcSharedTemplateRevision
182+
*/
183+
public function getAdcSharedTemplate()
184+
{
185+
return $this->adcSharedTemplate;
186+
}
133187
/**
134188
* The App Hub application this resource belongs to.
135189
*
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 GoogleCloudSecuritycenterV2AdcApplication extends \Google\Model
21+
{
22+
protected $attributesType = GoogleCloudSecuritycenterV2ResourceApplicationAttributes::class;
23+
protected $attributesDataType = '';
24+
/**
25+
* The resource name of an ADC Application. Format: projects/{project}/locatio
26+
* ns/{location}/spaces/{space}/applications/{application}
27+
*
28+
* @var string
29+
*/
30+
public $name;
31+
32+
/**
33+
* Consumer provided attributes for the AppHub application.
34+
*
35+
* @param GoogleCloudSecuritycenterV2ResourceApplicationAttributes $attributes
36+
*/
37+
public function setAttributes(GoogleCloudSecuritycenterV2ResourceApplicationAttributes $attributes)
38+
{
39+
$this->attributes = $attributes;
40+
}
41+
/**
42+
* @return GoogleCloudSecuritycenterV2ResourceApplicationAttributes
43+
*/
44+
public function getAttributes()
45+
{
46+
return $this->attributes;
47+
}
48+
/**
49+
* The resource name of an ADC Application. Format: projects/{project}/locatio
50+
* ns/{location}/spaces/{space}/applications/{application}
51+
*
52+
* @param string $name
53+
*/
54+
public function setName($name)
55+
{
56+
$this->name = $name;
57+
}
58+
/**
59+
* @return string
60+
*/
61+
public function getName()
62+
{
63+
return $this->name;
64+
}
65+
}
66+
67+
// Adding a class alias for backwards compatibility with the previous class name.
68+
class_alias(GoogleCloudSecuritycenterV2AdcApplication::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2AdcApplication');
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 GoogleCloudSecuritycenterV2AdcApplicationTemplateRevision extends \Google\Model
21+
{
22+
/**
23+
* The resource name of an ADC Application Template Revision. Format: projects
24+
* /{project}/locations/{location}/spaces/{space}/applicationTemplates/{applic
25+
* ation_template}/revisions/{revision}
26+
*
27+
* @var string
28+
*/
29+
public $name;
30+
31+
/**
32+
* The resource name of an ADC Application Template Revision. Format: projects
33+
* /{project}/locations/{location}/spaces/{space}/applicationTemplates/{applic
34+
* ation_template}/revisions/{revision}
35+
*
36+
* @param string $name
37+
*/
38+
public function setName($name)
39+
{
40+
$this->name = $name;
41+
}
42+
/**
43+
* @return string
44+
*/
45+
public function getName()
46+
{
47+
return $this->name;
48+
}
49+
}
50+
51+
// Adding a class alias for backwards compatibility with the previous class name.
52+
class_alias(GoogleCloudSecuritycenterV2AdcApplicationTemplateRevision::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2AdcApplicationTemplateRevision');

0 commit comments

Comments
 (0)