@@ -311,6 +311,151 @@ public Get set(String parameterName, Object value) {
311311 return (Get ) super .set (parameterName , value );
312312 }
313313 }
314+ /**
315+ * GetEntitlement returns the entitlement for the provided project.
316+ *
317+ * Create a request for the method "locations.getEntitlement".
318+ *
319+ * This request holds the parameters needed by the apim server. After setting any optional
320+ * parameters, call the {@link GetEntitlement#execute()} method to invoke the remote operation.
321+ *
322+ * @param name Required. The entitlement resource name Format: projects/{project}/locations/{location}/entitlement
323+ * @return the request
324+ */
325+ public GetEntitlement getEntitlement (java .lang .String name ) throws java .io .IOException {
326+ GetEntitlement result = new GetEntitlement (name );
327+ initialize (result );
328+ return result ;
329+ }
330+
331+ public class GetEntitlement extends APIManagementRequest <com .google .api .services .apim .v1alpha .model .Entitlement > {
332+
333+ private static final String REST_PATH = "v1alpha/{+name}" ;
334+
335+ private final java .util .regex .Pattern NAME_PATTERN =
336+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/entitlement$" );
337+
338+ /**
339+ * GetEntitlement returns the entitlement for the provided project.
340+ *
341+ * Create a request for the method "locations.getEntitlement".
342+ *
343+ * This request holds the parameters needed by the the apim server. After setting any optional
344+ * parameters, call the {@link GetEntitlement#execute()} method to invoke the remote operation.
345+ * <p> {@link GetEntitlement#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
346+ * ientRequest)} must be called to initialize this instance immediately after invoking the
347+ * constructor. </p>
348+ *
349+ * @param name Required. The entitlement resource name Format: projects/{project}/locations/{location}/entitlement
350+ * @since 1.13
351+ */
352+ protected GetEntitlement (java .lang .String name ) {
353+ super (APIManagement .this , "GET" , REST_PATH , null , com .google .api .services .apim .v1alpha .model .Entitlement .class );
354+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
355+ if (!getSuppressPatternChecks ()) {
356+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
357+ "Parameter name must conform to the pattern " +
358+ "^projects/[^/]+/locations/[^/]+/entitlement$" );
359+ }
360+ }
361+
362+ @ Override
363+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
364+ return super .executeUsingHead ();
365+ }
366+
367+ @ Override
368+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
369+ return super .buildHttpRequestUsingHead ();
370+ }
371+
372+ @ Override
373+ public GetEntitlement set$Xgafv (java .lang .String $Xgafv ) {
374+ return (GetEntitlement ) super .set$Xgafv ($Xgafv );
375+ }
376+
377+ @ Override
378+ public GetEntitlement setAccessToken (java .lang .String accessToken ) {
379+ return (GetEntitlement ) super .setAccessToken (accessToken );
380+ }
381+
382+ @ Override
383+ public GetEntitlement setAlt (java .lang .String alt ) {
384+ return (GetEntitlement ) super .setAlt (alt );
385+ }
386+
387+ @ Override
388+ public GetEntitlement setCallback (java .lang .String callback ) {
389+ return (GetEntitlement ) super .setCallback (callback );
390+ }
391+
392+ @ Override
393+ public GetEntitlement setFields (java .lang .String fields ) {
394+ return (GetEntitlement ) super .setFields (fields );
395+ }
396+
397+ @ Override
398+ public GetEntitlement setKey (java .lang .String key ) {
399+ return (GetEntitlement ) super .setKey (key );
400+ }
401+
402+ @ Override
403+ public GetEntitlement setOauthToken (java .lang .String oauthToken ) {
404+ return (GetEntitlement ) super .setOauthToken (oauthToken );
405+ }
406+
407+ @ Override
408+ public GetEntitlement setPrettyPrint (java .lang .Boolean prettyPrint ) {
409+ return (GetEntitlement ) super .setPrettyPrint (prettyPrint );
410+ }
411+
412+ @ Override
413+ public GetEntitlement setQuotaUser (java .lang .String quotaUser ) {
414+ return (GetEntitlement ) super .setQuotaUser (quotaUser );
415+ }
416+
417+ @ Override
418+ public GetEntitlement setUploadType (java .lang .String uploadType ) {
419+ return (GetEntitlement ) super .setUploadType (uploadType );
420+ }
421+
422+ @ Override
423+ public GetEntitlement setUploadProtocol (java .lang .String uploadProtocol ) {
424+ return (GetEntitlement ) super .setUploadProtocol (uploadProtocol );
425+ }
426+
427+ /**
428+ * Required. The entitlement resource name Format:
429+ * projects/{project}/locations/{location}/entitlement
430+ */
431+ @ com .google .api .client .util .Key
432+ private java .lang .String name ;
433+
434+ /** Required. The entitlement resource name Format: projects/{project}/locations/{location}/entitlement
435+ */
436+ public java .lang .String getName () {
437+ return name ;
438+ }
439+
440+ /**
441+ * Required. The entitlement resource name Format:
442+ * projects/{project}/locations/{location}/entitlement
443+ */
444+ public GetEntitlement setName (java .lang .String name ) {
445+ if (!getSuppressPatternChecks ()) {
446+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
447+ "Parameter name must conform to the pattern " +
448+ "^projects/[^/]+/locations/[^/]+/entitlement$" );
449+ }
450+ this .name = name ;
451+ return this ;
452+ }
453+
454+ @ Override
455+ public GetEntitlement set (String parameterName , Object value ) {
456+ return (GetEntitlement ) super .set (parameterName , value );
457+ }
458+ }
314459 /**
315460 * Lists information about the supported locations for this service.
316461 *
0 commit comments