Skip to content

Commit 62bc304

Browse files
1 parent e6030d8 commit 62bc304

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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\DeploymentManager;
19+
20+
class FirewallPolicyRuleOperationMetadata extends \Google\Model
21+
{
22+
/**
23+
* The priority allocated for the firewall policy rule if query parameters
24+
* specified minPriority/maxPriority.
25+
*
26+
* @var int
27+
*/
28+
public $allocatedPriority;
29+
30+
/**
31+
* The priority allocated for the firewall policy rule if query parameters
32+
* specified minPriority/maxPriority.
33+
*
34+
* @param int $allocatedPriority
35+
*/
36+
public function setAllocatedPriority($allocatedPriority)
37+
{
38+
$this->allocatedPriority = $allocatedPriority;
39+
}
40+
/**
41+
* @return int
42+
*/
43+
public function getAllocatedPriority()
44+
{
45+
return $this->allocatedPriority;
46+
}
47+
}
48+
49+
// Adding a class alias for backwards compatibility with the previous class name.
50+
class_alias(FirewallPolicyRuleOperationMetadata::class, 'Google_Service_DeploymentManager_FirewallPolicyRuleOperationMetadata');

src/DeploymentManager/Operation.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class Operation extends \Google\Collection
5252
public $endTime;
5353
protected $errorType = OperationError::class;
5454
protected $errorDataType = '';
55+
protected $firewallPolicyRuleOperationMetadataType = FirewallPolicyRuleOperationMetadata::class;
56+
protected $firewallPolicyRuleOperationMetadataDataType = '';
5557
/**
5658
* [Output Only] If the operation fails, this field contains the HTTP error
5759
* message that was returned, such as `NOT FOUND`.
@@ -281,6 +283,20 @@ public function getError()
281283
{
282284
return $this->error;
283285
}
286+
/**
287+
* @param FirewallPolicyRuleOperationMetadata $firewallPolicyRuleOperationMetadata
288+
*/
289+
public function setFirewallPolicyRuleOperationMetadata(FirewallPolicyRuleOperationMetadata $firewallPolicyRuleOperationMetadata)
290+
{
291+
$this->firewallPolicyRuleOperationMetadata = $firewallPolicyRuleOperationMetadata;
292+
}
293+
/**
294+
* @return FirewallPolicyRuleOperationMetadata
295+
*/
296+
public function getFirewallPolicyRuleOperationMetadata()
297+
{
298+
return $this->firewallPolicyRuleOperationMetadata;
299+
}
284300
/**
285301
* [Output Only] If the operation fails, this field contains the HTTP error
286302
* message that was returned, such as `NOT FOUND`.

0 commit comments

Comments
 (0)