@@ -18,6 +18,10 @@ class Func extends Resource
1818 * @param int $timeout
1919 * @param string $activeDeployment
2020 * @param string $entrypoint
21+ * @param string $commands
22+ * @param bool $logging
23+ * @param array<string> $scopes
24+ * @param string $specification
2125 */
2226 public function __construct (
2327 string $ id ,
@@ -29,7 +33,11 @@ public function __construct(
2933 private readonly string $ schedule = '' ,
3034 private readonly int $ timeout = 0 ,
3135 private readonly string $ activeDeployment = '' ,
32- private readonly string $ entrypoint = ''
36+ private readonly string $ entrypoint = '' ,
37+ private readonly string $ commands = '' ,
38+ private readonly bool $ logging = true ,
39+ private readonly array $ scopes = [],
40+ private readonly string $ specification = ''
3341 ) {
3442 $ this ->id = $ id ;
3543 }
@@ -50,7 +58,11 @@ public static function fromArray(array $array): self
5058 $ array ['schedule ' ] ?? '' ,
5159 $ array ['timeout ' ] ?? 0 ,
5260 $ array ['activeDeployment ' ] ?? '' ,
53- $ array ['entrypoint ' ] ?? ''
61+ $ array ['entrypoint ' ] ?? '' ,
62+ $ array ['commands ' ] ?? '' ,
63+ $ array ['logging ' ] ?? true ,
64+ $ array ['scopes ' ] ?? [],
65+ $ array ['specification ' ] ?? ''
5466 );
5567 }
5668
@@ -70,6 +82,10 @@ public function jsonSerialize(): array
7082 'timeout ' => $ this ->timeout ,
7183 'activeDeployment ' => $ this ->activeDeployment ,
7284 'entrypoint ' => $ this ->entrypoint ,
85+ 'commands ' => $ this ->commands ,
86+ 'logging ' => $ this ->logging ,
87+ 'scopes ' => $ this ->scopes ,
88+ 'specification ' => $ this ->specification ,
7389 ];
7490 }
7591
@@ -133,4 +149,27 @@ public function getEntrypoint(): string
133149 {
134150 return $ this ->entrypoint ;
135151 }
152+
153+ public function getCommands (): string
154+ {
155+ return $ this ->commands ;
156+ }
157+
158+ public function getLogging (): bool
159+ {
160+ return $ this ->logging ;
161+ }
162+
163+ /**
164+ * @return array<string>
165+ */
166+ public function getScopes (): array
167+ {
168+ return $ this ->scopes ;
169+ }
170+
171+ public function getSpecification (): string
172+ {
173+ return $ this ->specification ;
174+ }
136175}
0 commit comments