@@ -133,6 +133,188 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog
133
133
super .initialize (httpClientRequest );
134
134
}
135
135
136
+ /**
137
+ * An accessor for creating requests from the Projects collection.
138
+ *
139
+ * <p>The typical use is:</p>
140
+ * <pre>
141
+ * {@code CloudOSLogin oslogin = new CloudOSLogin(...);}
142
+ * {@code CloudOSLogin.Projects.List request = oslogin.projects().list(parameters ...)}
143
+ * </pre>
144
+ *
145
+ * @return the resource collection
146
+ */
147
+ public Projects projects () {
148
+ return new Projects ();
149
+ }
150
+
151
+ /**
152
+ * The "projects" collection of methods.
153
+ */
154
+ public class Projects {
155
+
156
+ /**
157
+ * An accessor for creating requests from the Locations collection.
158
+ *
159
+ * <p>The typical use is:</p>
160
+ * <pre>
161
+ * {@code CloudOSLogin oslogin = new CloudOSLogin(...);}
162
+ * {@code CloudOSLogin.Locations.List request = oslogin.locations().list(parameters ...)}
163
+ * </pre>
164
+ *
165
+ * @return the resource collection
166
+ */
167
+ public Locations locations () {
168
+ return new Locations ();
169
+ }
170
+
171
+ /**
172
+ * The "locations" collection of methods.
173
+ */
174
+ public class Locations {
175
+
176
+ /**
177
+ * Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.
178
+ *
179
+ * Create a request for the method "locations.signSshPublicKey".
180
+ *
181
+ * This request holds the parameters needed by the oslogin server. After setting any optional
182
+ * parameters, call the {@link SignSshPublicKey#execute()} method to invoke the remote operation.
183
+ *
184
+ * @param parent Required. The parent for the signing request. Format: projects/{project}/locations/{location}
185
+ * @param content the {@link com.google.api.services.oslogin.v1alpha.model.GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest}
186
+ * @return the request
187
+ */
188
+ public SignSshPublicKey signSshPublicKey (java .lang .String parent , com .google .api .services .oslogin .v1alpha .model .GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest content ) throws java .io .IOException {
189
+ SignSshPublicKey result = new SignSshPublicKey (parent , content );
190
+ initialize (result );
191
+ return result ;
192
+ }
193
+
194
+ public class SignSshPublicKey extends CloudOSLoginRequest <com .google .api .services .oslogin .v1alpha .model .GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse > {
195
+
196
+ private static final String REST_PATH = "v1alpha/{+parent}:signSshPublicKey" ;
197
+
198
+ private final java .util .regex .Pattern PARENT_PATTERN =
199
+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+$" );
200
+
201
+ /**
202
+ * Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute
203
+ * Engine.
204
+ *
205
+ * Create a request for the method "locations.signSshPublicKey".
206
+ *
207
+ * This request holds the parameters needed by the the oslogin server. After setting any optional
208
+ * parameters, call the {@link SignSshPublicKey#execute()} method to invoke the remote operation.
209
+ * <p> {@link SignSshPublicKey#initialize(com.google.api.client.googleapis.services.AbstractGoogle
210
+ * ClientRequest)} must be called to initialize this instance immediately after invoking the
211
+ * constructor. </p>
212
+ *
213
+ * @param parent Required. The parent for the signing request. Format: projects/{project}/locations/{location}
214
+ * @param content the {@link com.google.api.services.oslogin.v1alpha.model.GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest}
215
+ * @since 1.13
216
+ */
217
+ protected SignSshPublicKey (java .lang .String parent , com .google .api .services .oslogin .v1alpha .model .GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyRequest content ) {
218
+ super (CloudOSLogin .this , "POST" , REST_PATH , content , com .google .api .services .oslogin .v1alpha .model .GoogleCloudOsloginControlplaneRegionalV1alphaSignSshPublicKeyResponse .class );
219
+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
220
+ if (!getSuppressPatternChecks ()) {
221
+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
222
+ "Parameter parent must conform to the pattern " +
223
+ "^projects/[^/]+/locations/[^/]+$" );
224
+ }
225
+ }
226
+
227
+ @ Override
228
+ public SignSshPublicKey set$Xgafv (java .lang .String $Xgafv ) {
229
+ return (SignSshPublicKey ) super .set$Xgafv ($Xgafv );
230
+ }
231
+
232
+ @ Override
233
+ public SignSshPublicKey setAccessToken (java .lang .String accessToken ) {
234
+ return (SignSshPublicKey ) super .setAccessToken (accessToken );
235
+ }
236
+
237
+ @ Override
238
+ public SignSshPublicKey setAlt (java .lang .String alt ) {
239
+ return (SignSshPublicKey ) super .setAlt (alt );
240
+ }
241
+
242
+ @ Override
243
+ public SignSshPublicKey setCallback (java .lang .String callback ) {
244
+ return (SignSshPublicKey ) super .setCallback (callback );
245
+ }
246
+
247
+ @ Override
248
+ public SignSshPublicKey setFields (java .lang .String fields ) {
249
+ return (SignSshPublicKey ) super .setFields (fields );
250
+ }
251
+
252
+ @ Override
253
+ public SignSshPublicKey setKey (java .lang .String key ) {
254
+ return (SignSshPublicKey ) super .setKey (key );
255
+ }
256
+
257
+ @ Override
258
+ public SignSshPublicKey setOauthToken (java .lang .String oauthToken ) {
259
+ return (SignSshPublicKey ) super .setOauthToken (oauthToken );
260
+ }
261
+
262
+ @ Override
263
+ public SignSshPublicKey setPrettyPrint (java .lang .Boolean prettyPrint ) {
264
+ return (SignSshPublicKey ) super .setPrettyPrint (prettyPrint );
265
+ }
266
+
267
+ @ Override
268
+ public SignSshPublicKey setQuotaUser (java .lang .String quotaUser ) {
269
+ return (SignSshPublicKey ) super .setQuotaUser (quotaUser );
270
+ }
271
+
272
+ @ Override
273
+ public SignSshPublicKey setUploadType (java .lang .String uploadType ) {
274
+ return (SignSshPublicKey ) super .setUploadType (uploadType );
275
+ }
276
+
277
+ @ Override
278
+ public SignSshPublicKey setUploadProtocol (java .lang .String uploadProtocol ) {
279
+ return (SignSshPublicKey ) super .setUploadProtocol (uploadProtocol );
280
+ }
281
+
282
+ /**
283
+ * Required. The parent for the signing request. Format:
284
+ * projects/{project}/locations/{location}
285
+ */
286
+ @ com .google .api .client .util .Key
287
+ private java .lang .String parent ;
288
+
289
+ /** Required. The parent for the signing request. Format: projects/{project}/locations/{location}
290
+ */
291
+ public java .lang .String getParent () {
292
+ return parent ;
293
+ }
294
+
295
+ /**
296
+ * Required. The parent for the signing request. Format:
297
+ * projects/{project}/locations/{location}
298
+ */
299
+ public SignSshPublicKey setParent (java .lang .String parent ) {
300
+ if (!getSuppressPatternChecks ()) {
301
+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
302
+ "Parameter parent must conform to the pattern " +
303
+ "^projects/[^/]+/locations/[^/]+$" );
304
+ }
305
+ this .parent = parent ;
306
+ return this ;
307
+ }
308
+
309
+ @ Override
310
+ public SignSshPublicKey set (String parameterName , Object value ) {
311
+ return (SignSshPublicKey ) super .set (parameterName , value );
312
+ }
313
+ }
314
+
315
+ }
316
+ }
317
+
136
318
/**
137
319
* An accessor for creating requests from the Users collection.
138
320
*
0 commit comments