FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
google-cloud-php/Dms/src/V1/GenerateSshScriptRequest.php at main · googleapis/google-cloud-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
googleapis
/
google-cloud-php
Public
Notifications
You must be signed in to change notification settings
Fork
464
Star
1.2k
Code
Issues
45
Pull requests
35
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
google-cloud-php
/
Dms
/
src
/
V1
/
GenerateSshScriptRequest.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
210 lines (186 loc) · 5.8 KB
Breadcrumbs
google-cloud-php
/
Dms
/
src
/
V1
/
GenerateSshScriptRequest.php
Copy path
File metadata and controls
210 lines (186 loc) · 5.8 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/clouddms/v1/clouddms.proto
namespace
Google
\
Cloud
\
CloudDms
\
V1
;
use
Google
\
Protobuf
\
Internal
\
GPBType
;
use
Google
\
Protobuf
\
Internal
\
GPBUtil
;
use
Google
\
Protobuf
\
RepeatedField
;
/**
* Request message for 'GenerateSshScript' request.
*
* Generated from protobuf message <code>google.cloud.clouddms.v1.GenerateSshScriptRequest</code>
*/
class
GenerateSshScriptRequest
extends
\
Google
\
Protobuf
\
Internal
\Message
{
/**
* Name of the migration job resource to generate the SSH script.
*
* Generated from protobuf field <code>string migration_job = 1 [(.google.api.resource_reference) = {</code>
*/
protected
$
migration_job
=
''
;
/**
* Required. Bastion VM Instance name to use or to create.
*
* Generated from protobuf field <code>string vm = 2 [(.google.api.field_behavior) = REQUIRED];</code>
*/
protected
$
vm
=
''
;
/**
* The port that will be open on the bastion host.
*
* Generated from protobuf field <code>int32 vm_port = 3;</code>
*/
protected
$
vm_port
=
0
;
protected
$
vm_config
;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $migration_job
* Name of the migration job resource to generate the SSH script.
* @type string $vm
* Required. Bastion VM Instance name to use or to create.
* @type \Google\Cloud\CloudDms\V1\VmCreationConfig $vm_creation_config
* The VM creation configuration
* @type \Google\Cloud\CloudDms\V1\VmSelectionConfig $vm_selection_config
* The VM selection configuration
* @type int $vm_port
* The port that will be open on the bastion host.
* }
*/
public
function
__construct
(
$
data
=
NULL
) {
\
GPBMetadata
\
Google
\
Cloud
\
Clouddms
\
V1
\Clouddms::
initOnce
();
parent
::
__construct
(
$
data
);
}
/**
* Name of the migration job resource to generate the SSH script.
*
* Generated from protobuf field <code>string migration_job = 1 [(.google.api.resource_reference) = {</code>
* @return string
*/
public
function
getMigrationJob
()
{
return
$
this
->
migration_job
;
}
/**
* Name of the migration job resource to generate the SSH script.
*
* Generated from protobuf field <code>string migration_job = 1 [(.google.api.resource_reference) = {</code>
* @param string $var
* @return $this
*/
public
function
setMigrationJob
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
migration_job
=
$
var
;
return
$
this
;
}
/**
* Required. Bastion VM Instance name to use or to create.
*
* Generated from protobuf field <code>string vm = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public
function
getVm
()
{
return
$
this
->
vm
;
}
/**
* Required. Bastion VM Instance name to use or to create.
*
* Generated from protobuf field <code>string vm = 2 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public
function
setVm
(
$
var
)
{
GPBUtil::
checkString
(
$
var
,
True
);
$
this
->
vm
=
$
var
;
return
$
this
;
}
/**
* The VM creation configuration
*
* Generated from protobuf field <code>.google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100;</code>
* @return \Google\Cloud\CloudDms\V1\VmCreationConfig|null
*/
public
function
getVmCreationConfig
()
{
return
$
this
->
readOneof
(
100
);
}
public
function
hasVmCreationConfig
()
{
return
$
this
->
hasOneof
(
100
);
}
/**
* The VM creation configuration
*
* Generated from protobuf field <code>.google.cloud.clouddms.v1.VmCreationConfig vm_creation_config = 100;</code>
* @param \Google\Cloud\CloudDms\V1\VmCreationConfig $var
* @return $this
*/
public
function
setVmCreationConfig
(
$
var
)
{
GPBUtil::
checkMessage
(
$
var
, \
Google
\
Cloud
\
CloudDms
\
V1
\VmCreationConfig::class);
$
this
->
writeOneof
(
100
,
$
var
);
return
$
this
;
}
/**
* The VM selection configuration
*
* Generated from protobuf field <code>.google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101;</code>
* @return \Google\Cloud\CloudDms\V1\VmSelectionConfig|null
*/
public
function
getVmSelectionConfig
()
{
return
$
this
->
readOneof
(
101
);
}
public
function
hasVmSelectionConfig
()
{
return
$
this
->
hasOneof
(
101
);
}
/**
* The VM selection configuration
*
* Generated from protobuf field <code>.google.cloud.clouddms.v1.VmSelectionConfig vm_selection_config = 101;</code>
* @param \Google\Cloud\CloudDms\V1\VmSelectionConfig $var
* @return $this
*/
public
function
setVmSelectionConfig
(
$
var
)
{
GPBUtil::
checkMessage
(
$
var
, \
Google
\
Cloud
\
CloudDms
\
V1
\VmSelectionConfig::class);
$
this
->
writeOneof
(
101
,
$
var
);
return
$
this
;
}
/**
* The port that will be open on the bastion host.
*
* Generated from protobuf field <code>int32 vm_port = 3;</code>
* @return int
*/
public
function
getVmPort
()
{
return
$
this
->
vm_port
;
}
/**
* The port that will be open on the bastion host.
*
* Generated from protobuf field <code>int32 vm_port = 3;</code>
* @param int $var
* @return $this
*/
public
function
setVmPort
(
$
var
)
{
GPBUtil::
checkInt32
(
$
var
);
$
this
->
vm_port
=
$
var
;
return
$
this
;
}
/**
* @return string
*/
public
function
getVmConfig
()
{
return
$
this
->
whichOneof
(
"
vm_config
"
);
}
}
Back
|
FazBrowse Home
|
New Git URL