source: vendor/google/apiclient-services/src/PolicySimulator/GoogleCloudPolicysimulatorV1OrgPolicyViolation.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 2.4 KB
Line 
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
18namespace Google\Service\PolicySimulator;
19
20class GoogleCloudPolicysimulatorV1OrgPolicyViolation extends \Google\Model
21{
22 protected $customConstraintType = GoogleCloudOrgpolicyV2CustomConstraint::class;
23 protected $customConstraintDataType = '';
24 protected $errorType = GoogleRpcStatus::class;
25 protected $errorDataType = '';
26 /**
27 * @var string
28 */
29 public $name;
30 protected $resourceType = GoogleCloudPolicysimulatorV1ResourceContext::class;
31 protected $resourceDataType = '';
32
33 /**
34 * @param GoogleCloudOrgpolicyV2CustomConstraint
35 */
36 public function setCustomConstraint(GoogleCloudOrgpolicyV2CustomConstraint $customConstraint)
37 {
38 $this->customConstraint = $customConstraint;
39 }
40 /**
41 * @return GoogleCloudOrgpolicyV2CustomConstraint
42 */
43 public function getCustomConstraint()
44 {
45 return $this->customConstraint;
46 }
47 /**
48 * @param GoogleRpcStatus
49 */
50 public function setError(GoogleRpcStatus $error)
51 {
52 $this->error = $error;
53 }
54 /**
55 * @return GoogleRpcStatus
56 */
57 public function getError()
58 {
59 return $this->error;
60 }
61 /**
62 * @param string
63 */
64 public function setName($name)
65 {
66 $this->name = $name;
67 }
68 /**
69 * @return string
70 */
71 public function getName()
72 {
73 return $this->name;
74 }
75 /**
76 * @param GoogleCloudPolicysimulatorV1ResourceContext
77 */
78 public function setResource(GoogleCloudPolicysimulatorV1ResourceContext $resource)
79 {
80 $this->resource = $resource;
81 }
82 /**
83 * @return GoogleCloudPolicysimulatorV1ResourceContext
84 */
85 public function getResource()
86 {
87 return $this->resource;
88 }
89}
90
91// Adding a class alias for backwards compatibility with the previous class name.
92class_alias(GoogleCloudPolicysimulatorV1OrgPolicyViolation::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1OrgPolicyViolation');
Note: See TracBrowser for help on using the repository browser.