@@ -5408,6 +5408,308 @@ public List set(String parameterName, Object value) {
54085408 }
54095409
54105410 }
5411+ /**
5412+ * An accessor for creating requests from the SharePools collection.
5413+ *
5414+ * <p>The typical use is:</p>
5415+ * <pre>
5416+ * {@code CloudFilestore file = new CloudFilestore(...);}
5417+ * {@code CloudFilestore.SharePools.List request = file.sharePools().list(parameters ...)}
5418+ * </pre>
5419+ *
5420+ * @return the resource collection
5421+ */
5422+ public SharePools sharePools () {
5423+ return new SharePools ();
5424+ }
5425+
5426+ /**
5427+ * The "sharePools" collection of methods.
5428+ */
5429+ public class SharePools {
5430+
5431+ /**
5432+ * Acquires a share synchronously from the pre-provisioned share pool.
5433+ *
5434+ * Create a request for the method "sharePools.acquireShare".
5435+ *
5436+ * This request holds the parameters needed by the file server. After setting any optional
5437+ * parameters, call the {@link AcquireShare#execute()} method to invoke the remote operation.
5438+ *
5439+ * @param parent Required. The parent share pool path, in the format
5440+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5441+ * @param content the {@link com.google.api.services.file.v1beta1.model.AcquireShareRequest}
5442+ * @return the request
5443+ */
5444+ public AcquireShare acquireShare (java .lang .String parent , com .google .api .services .file .v1beta1 .model .AcquireShareRequest content ) throws java .io .IOException {
5445+ AcquireShare result = new AcquireShare (parent , content );
5446+ initialize (result );
5447+ return result ;
5448+ }
5449+
5450+ public class AcquireShare extends CloudFilestoreRequest <com .google .api .services .file .v1beta1 .model .AcquireShareResponse > {
5451+
5452+ private static final String REST_PATH = "v1beta1/{+parent}:acquireShare" ;
5453+
5454+ private final java .util .regex .Pattern PARENT_PATTERN =
5455+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/sharePools/[^/]+$" );
5456+
5457+ /**
5458+ * Acquires a share synchronously from the pre-provisioned share pool.
5459+ *
5460+ * Create a request for the method "sharePools.acquireShare".
5461+ *
5462+ * This request holds the parameters needed by the the file server. After setting any optional
5463+ * parameters, call the {@link AcquireShare#execute()} method to invoke the remote operation. <p>
5464+ * {@link
5465+ * AcquireShare#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
5466+ * must be called to initialize this instance immediately after invoking the constructor. </p>
5467+ *
5468+ * @param parent Required. The parent share pool path, in the format
5469+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5470+ * @param content the {@link com.google.api.services.file.v1beta1.model.AcquireShareRequest}
5471+ * @since 1.13
5472+ */
5473+ protected AcquireShare (java .lang .String parent , com .google .api .services .file .v1beta1 .model .AcquireShareRequest content ) {
5474+ super (CloudFilestore .this , "POST" , REST_PATH , content , com .google .api .services .file .v1beta1 .model .AcquireShareResponse .class );
5475+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
5476+ if (!getSuppressPatternChecks ()) {
5477+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
5478+ "Parameter parent must conform to the pattern " +
5479+ "^projects/[^/]+/locations/[^/]+/sharePools/[^/]+$" );
5480+ }
5481+ }
5482+
5483+ @ Override
5484+ public AcquireShare set$Xgafv (java .lang .String $Xgafv ) {
5485+ return (AcquireShare ) super .set$Xgafv ($Xgafv );
5486+ }
5487+
5488+ @ Override
5489+ public AcquireShare setAccessToken (java .lang .String accessToken ) {
5490+ return (AcquireShare ) super .setAccessToken (accessToken );
5491+ }
5492+
5493+ @ Override
5494+ public AcquireShare setAlt (java .lang .String alt ) {
5495+ return (AcquireShare ) super .setAlt (alt );
5496+ }
5497+
5498+ @ Override
5499+ public AcquireShare setCallback (java .lang .String callback ) {
5500+ return (AcquireShare ) super .setCallback (callback );
5501+ }
5502+
5503+ @ Override
5504+ public AcquireShare setFields (java .lang .String fields ) {
5505+ return (AcquireShare ) super .setFields (fields );
5506+ }
5507+
5508+ @ Override
5509+ public AcquireShare setKey (java .lang .String key ) {
5510+ return (AcquireShare ) super .setKey (key );
5511+ }
5512+
5513+ @ Override
5514+ public AcquireShare setOauthToken (java .lang .String oauthToken ) {
5515+ return (AcquireShare ) super .setOauthToken (oauthToken );
5516+ }
5517+
5518+ @ Override
5519+ public AcquireShare setPrettyPrint (java .lang .Boolean prettyPrint ) {
5520+ return (AcquireShare ) super .setPrettyPrint (prettyPrint );
5521+ }
5522+
5523+ @ Override
5524+ public AcquireShare setQuotaUser (java .lang .String quotaUser ) {
5525+ return (AcquireShare ) super .setQuotaUser (quotaUser );
5526+ }
5527+
5528+ @ Override
5529+ public AcquireShare setUploadType (java .lang .String uploadType ) {
5530+ return (AcquireShare ) super .setUploadType (uploadType );
5531+ }
5532+
5533+ @ Override
5534+ public AcquireShare setUploadProtocol (java .lang .String uploadProtocol ) {
5535+ return (AcquireShare ) super .setUploadProtocol (uploadProtocol );
5536+ }
5537+
5538+ /**
5539+ * Required. The parent share pool path, in the format
5540+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5541+ */
5542+ @ com .google .api .client .util .Key
5543+ private java .lang .String parent ;
5544+
5545+ /** Required. The parent share pool path, in the format
5546+ `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5547+ */
5548+ public java .lang .String getParent () {
5549+ return parent ;
5550+ }
5551+
5552+ /**
5553+ * Required. The parent share pool path, in the format
5554+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5555+ */
5556+ public AcquireShare setParent (java .lang .String parent ) {
5557+ if (!getSuppressPatternChecks ()) {
5558+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
5559+ "Parameter parent must conform to the pattern " +
5560+ "^projects/[^/]+/locations/[^/]+/sharePools/[^/]+$" );
5561+ }
5562+ this .parent = parent ;
5563+ return this ;
5564+ }
5565+
5566+ @ Override
5567+ public AcquireShare set (String parameterName , Object value ) {
5568+ return (AcquireShare ) super .set (parameterName , value );
5569+ }
5570+ }
5571+ /**
5572+ * Releases a share synchronously, marking it for background scrubbing.
5573+ *
5574+ * Create a request for the method "sharePools.releaseShare".
5575+ *
5576+ * This request holds the parameters needed by the file server. After setting any optional
5577+ * parameters, call the {@link ReleaseShare#execute()} method to invoke the remote operation.
5578+ *
5579+ * @param parent Required. The parent share pool path, in the format
5580+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5581+ * @param content the {@link com.google.api.services.file.v1beta1.model.ReleaseShareRequest}
5582+ * @return the request
5583+ */
5584+ public ReleaseShare releaseShare (java .lang .String parent , com .google .api .services .file .v1beta1 .model .ReleaseShareRequest content ) throws java .io .IOException {
5585+ ReleaseShare result = new ReleaseShare (parent , content );
5586+ initialize (result );
5587+ return result ;
5588+ }
5589+
5590+ public class ReleaseShare extends CloudFilestoreRequest <com .google .api .services .file .v1beta1 .model .ReleaseShareResponse > {
5591+
5592+ private static final String REST_PATH = "v1beta1/{+parent}:releaseShare" ;
5593+
5594+ private final java .util .regex .Pattern PARENT_PATTERN =
5595+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/sharePools/[^/]+$" );
5596+
5597+ /**
5598+ * Releases a share synchronously, marking it for background scrubbing.
5599+ *
5600+ * Create a request for the method "sharePools.releaseShare".
5601+ *
5602+ * This request holds the parameters needed by the the file server. After setting any optional
5603+ * parameters, call the {@link ReleaseShare#execute()} method to invoke the remote operation. <p>
5604+ * {@link
5605+ * ReleaseShare#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
5606+ * must be called to initialize this instance immediately after invoking the constructor. </p>
5607+ *
5608+ * @param parent Required. The parent share pool path, in the format
5609+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5610+ * @param content the {@link com.google.api.services.file.v1beta1.model.ReleaseShareRequest}
5611+ * @since 1.13
5612+ */
5613+ protected ReleaseShare (java .lang .String parent , com .google .api .services .file .v1beta1 .model .ReleaseShareRequest content ) {
5614+ super (CloudFilestore .this , "POST" , REST_PATH , content , com .google .api .services .file .v1beta1 .model .ReleaseShareResponse .class );
5615+ this .parent = com .google .api .client .util .Preconditions .checkNotNull (parent , "Required parameter parent must be specified." );
5616+ if (!getSuppressPatternChecks ()) {
5617+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
5618+ "Parameter parent must conform to the pattern " +
5619+ "^projects/[^/]+/locations/[^/]+/sharePools/[^/]+$" );
5620+ }
5621+ }
5622+
5623+ @ Override
5624+ public ReleaseShare set$Xgafv (java .lang .String $Xgafv ) {
5625+ return (ReleaseShare ) super .set$Xgafv ($Xgafv );
5626+ }
5627+
5628+ @ Override
5629+ public ReleaseShare setAccessToken (java .lang .String accessToken ) {
5630+ return (ReleaseShare ) super .setAccessToken (accessToken );
5631+ }
5632+
5633+ @ Override
5634+ public ReleaseShare setAlt (java .lang .String alt ) {
5635+ return (ReleaseShare ) super .setAlt (alt );
5636+ }
5637+
5638+ @ Override
5639+ public ReleaseShare setCallback (java .lang .String callback ) {
5640+ return (ReleaseShare ) super .setCallback (callback );
5641+ }
5642+
5643+ @ Override
5644+ public ReleaseShare setFields (java .lang .String fields ) {
5645+ return (ReleaseShare ) super .setFields (fields );
5646+ }
5647+
5648+ @ Override
5649+ public ReleaseShare setKey (java .lang .String key ) {
5650+ return (ReleaseShare ) super .setKey (key );
5651+ }
5652+
5653+ @ Override
5654+ public ReleaseShare setOauthToken (java .lang .String oauthToken ) {
5655+ return (ReleaseShare ) super .setOauthToken (oauthToken );
5656+ }
5657+
5658+ @ Override
5659+ public ReleaseShare setPrettyPrint (java .lang .Boolean prettyPrint ) {
5660+ return (ReleaseShare ) super .setPrettyPrint (prettyPrint );
5661+ }
5662+
5663+ @ Override
5664+ public ReleaseShare setQuotaUser (java .lang .String quotaUser ) {
5665+ return (ReleaseShare ) super .setQuotaUser (quotaUser );
5666+ }
5667+
5668+ @ Override
5669+ public ReleaseShare setUploadType (java .lang .String uploadType ) {
5670+ return (ReleaseShare ) super .setUploadType (uploadType );
5671+ }
5672+
5673+ @ Override
5674+ public ReleaseShare setUploadProtocol (java .lang .String uploadProtocol ) {
5675+ return (ReleaseShare ) super .setUploadProtocol (uploadProtocol );
5676+ }
5677+
5678+ /**
5679+ * Required. The parent share pool path, in the format
5680+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5681+ */
5682+ @ com .google .api .client .util .Key
5683+ private java .lang .String parent ;
5684+
5685+ /** Required. The parent share pool path, in the format
5686+ `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5687+ */
5688+ public java .lang .String getParent () {
5689+ return parent ;
5690+ }
5691+
5692+ /**
5693+ * Required. The parent share pool path, in the format
5694+ * `projects/{project}/locations/{location}/sharePools/{share_pool}`.
5695+ */
5696+ public ReleaseShare setParent (java .lang .String parent ) {
5697+ if (!getSuppressPatternChecks ()) {
5698+ com .google .api .client .util .Preconditions .checkArgument (PARENT_PATTERN .matcher (parent ).matches (),
5699+ "Parameter parent must conform to the pattern " +
5700+ "^projects/[^/]+/locations/[^/]+/sharePools/[^/]+$" );
5701+ }
5702+ this .parent = parent ;
5703+ return this ;
5704+ }
5705+
5706+ @ Override
5707+ public ReleaseShare set (String parameterName , Object value ) {
5708+ return (ReleaseShare ) super .set (parameterName , value );
5709+ }
5710+ }
5711+
5712+ }
54115713 }
54125714 }
54135715
0 commit comments