Repository navigation
Expand file tree
/
Copy pathNetworkPolicy.php
More file actions
102 lines (90 loc) · 2.65 KB
/
Copy pathNetworkPolicy.php
File metadata and controls
102 lines (90 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/container/v1/cluster_service.proto
namespace Google\Cloud\Container\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Configuration options for the NetworkPolicy feature.
* https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
*
* Generated from protobuf message <code>google.container.v1.NetworkPolicy</code>
*/
class NetworkPolicy extends \Google\Protobuf\Internal\Message
{
/**
* The selected network policy provider.
*
* Generated from protobuf field <code>.google.container.v1.NetworkPolicy.Provider provider = 1;</code>
*/
private $provider = 0;
/**
* Whether network policy is enabled on the cluster.
*
* Generated from protobuf field <code>bool enabled = 2;</code>
*/
private $enabled = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $provider
* The selected network policy provider.
* @type bool $enabled
* Whether network policy is enabled on the cluster.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Container\V1\ClusterService::initOnce();
parent::__construct($data);
}
/**
* The selected network policy provider.
*
* Generated from protobuf field <code>.google.container.v1.NetworkPolicy.Provider provider = 1;</code>
* @return int
*/
public function getProvider()
{
return $this->provider;
}
/**
* The selected network policy provider.
*
* Generated from protobuf field <code>.google.container.v1.NetworkPolicy.Provider provider = 1;</code>
* @param int $var
* @return $this
*/
public function setProvider($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkPolicy\Provider::class);
$this->provider = $var;
return $this;
}
/**
* Whether network policy is enabled on the cluster.
*
* Generated from protobuf field <code>bool enabled = 2;</code>
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Whether network policy is enabled on the cluster.
*
* Generated from protobuf field <code>bool enabled = 2;</code>
* @param bool $var
* @return $this
*/
public function setEnabled($var)
{
GPBUtil::checkBool($var);
$this->enabled = $var;
return $this;
}
}