-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathEnvironment.php
More file actions
158 lines (141 loc) · 5.2 KB
/
Environment.php
File metadata and controls
158 lines (141 loc) · 5.2 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/batch/v1/task.proto
namespace Google\Cloud\Batch\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* An Environment describes a collection of environment variables to set when
* executing Tasks.
*
* Generated from protobuf message <code>google.cloud.batch.v1.Environment</code>
*/
class Environment extends \Google\Protobuf\Internal\Message
{
/**
* A map of environment variable names to values.
*
* Generated from protobuf field <code>map<string, string> variables = 1;</code>
*/
private $variables;
/**
* A map of environment variable names to Secret Manager secret names.
* The VM will access the named secrets to set the value of each environment
* variable.
*
* Generated from protobuf field <code>map<string, string> secret_variables = 2;</code>
*/
private $secret_variables;
/**
* An encrypted JSON dictionary where the key/value pairs correspond to
* environment variable names and their values.
*
* Generated from protobuf field <code>.google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;</code>
*/
protected $encrypted_variables = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array|\Google\Protobuf\Internal\MapField $variables
* A map of environment variable names to values.
* @type array|\Google\Protobuf\Internal\MapField $secret_variables
* A map of environment variable names to Secret Manager secret names.
* The VM will access the named secrets to set the value of each environment
* variable.
* @type \Google\Cloud\Batch\V1\Environment\KMSEnvMap $encrypted_variables
* An encrypted JSON dictionary where the key/value pairs correspond to
* environment variable names and their values.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Batch\V1\Task::initOnce();
parent::__construct($data);
}
/**
* A map of environment variable names to values.
*
* Generated from protobuf field <code>map<string, string> variables = 1;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getVariables()
{
return $this->variables;
}
/**
* A map of environment variable names to values.
*
* Generated from protobuf field <code>map<string, string> variables = 1;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setVariables($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->variables = $arr;
return $this;
}
/**
* A map of environment variable names to Secret Manager secret names.
* The VM will access the named secrets to set the value of each environment
* variable.
*
* Generated from protobuf field <code>map<string, string> secret_variables = 2;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getSecretVariables()
{
return $this->secret_variables;
}
/**
* A map of environment variable names to Secret Manager secret names.
* The VM will access the named secrets to set the value of each environment
* variable.
*
* Generated from protobuf field <code>map<string, string> secret_variables = 2;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setSecretVariables($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->secret_variables = $arr;
return $this;
}
/**
* An encrypted JSON dictionary where the key/value pairs correspond to
* environment variable names and their values.
*
* Generated from protobuf field <code>.google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;</code>
* @return \Google\Cloud\Batch\V1\Environment\KMSEnvMap|null
*/
public function getEncryptedVariables()
{
return $this->encrypted_variables;
}
public function hasEncryptedVariables()
{
return isset($this->encrypted_variables);
}
public function clearEncryptedVariables()
{
unset($this->encrypted_variables);
}
/**
* An encrypted JSON dictionary where the key/value pairs correspond to
* environment variable names and their values.
*
* Generated from protobuf field <code>.google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;</code>
* @param \Google\Cloud\Batch\V1\Environment\KMSEnvMap $var
* @return $this
*/
public function setEncryptedVariables($var)
{
GPBUtil::checkMessage($var, \Google\Cloud\Batch\V1\Environment\KMSEnvMap::class);
$this->encrypted_variables = $var;
return $this;
}
}