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 ValuedResource extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'resourceValueConfigsUsed';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $displayName;
|
---|
27 | public $exposedScore;
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $name;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $resource;
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $resourceType;
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $resourceValue;
|
---|
44 | protected $resourceValueConfigsUsedType = ResourceValueConfigMetadata::class;
|
---|
45 | protected $resourceValueConfigsUsedDataType = 'array';
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * @param string
|
---|
49 | */
|
---|
50 | public function setDisplayName($displayName)
|
---|
51 | {
|
---|
52 | $this->displayName = $displayName;
|
---|
53 | }
|
---|
54 | /**
|
---|
55 | * @return string
|
---|
56 | */
|
---|
57 | public function getDisplayName()
|
---|
58 | {
|
---|
59 | return $this->displayName;
|
---|
60 | }
|
---|
61 | public function setExposedScore($exposedScore)
|
---|
62 | {
|
---|
63 | $this->exposedScore = $exposedScore;
|
---|
64 | }
|
---|
65 | public function getExposedScore()
|
---|
66 | {
|
---|
67 | return $this->exposedScore;
|
---|
68 | }
|
---|
69 | /**
|
---|
70 | * @param string
|
---|
71 | */
|
---|
72 | public function setName($name)
|
---|
73 | {
|
---|
74 | $this->name = $name;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @return string
|
---|
78 | */
|
---|
79 | public function getName()
|
---|
80 | {
|
---|
81 | return $this->name;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @param string
|
---|
85 | */
|
---|
86 | public function setResource($resource)
|
---|
87 | {
|
---|
88 | $this->resource = $resource;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @return string
|
---|
92 | */
|
---|
93 | public function getResource()
|
---|
94 | {
|
---|
95 | return $this->resource;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @param string
|
---|
99 | */
|
---|
100 | public function setResourceType($resourceType)
|
---|
101 | {
|
---|
102 | $this->resourceType = $resourceType;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @return string
|
---|
106 | */
|
---|
107 | public function getResourceType()
|
---|
108 | {
|
---|
109 | return $this->resourceType;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @param string
|
---|
113 | */
|
---|
114 | public function setResourceValue($resourceValue)
|
---|
115 | {
|
---|
116 | $this->resourceValue = $resourceValue;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @return string
|
---|
120 | */
|
---|
121 | public function getResourceValue()
|
---|
122 | {
|
---|
123 | return $this->resourceValue;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @param ResourceValueConfigMetadata[]
|
---|
127 | */
|
---|
128 | public function setResourceValueConfigsUsed($resourceValueConfigsUsed)
|
---|
129 | {
|
---|
130 | $this->resourceValueConfigsUsed = $resourceValueConfigsUsed;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @return ResourceValueConfigMetadata[]
|
---|
134 | */
|
---|
135 | public function getResourceValueConfigsUsed()
|
---|
136 | {
|
---|
137 | return $this->resourceValueConfigsUsed;
|
---|
138 | }
|
---|
139 | }
|
---|
140 |
|
---|
141 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
142 | class_alias(ValuedResource::class, 'Google_Service_SecurityCommandCenter_ValuedResource');
|
---|