@googleapis/storage 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -104,6 +104,7 @@ export namespace storage_v1 {
104
104
  buckets: Resource$Buckets;
105
105
  channels: Resource$Channels;
106
106
  defaultObjectAccessControls: Resource$Defaultobjectaccesscontrols;
107
+ managedFolders: Resource$Managedfolders;
107
108
  notifications: Resource$Notifications;
108
109
  objectAccessControls: Resource$Objectaccesscontrols;
109
110
  objects: Resource$Objects;
@@ -123,6 +124,7 @@ export namespace storage_v1 {
123
124
  this.channels = new Resource$Channels(this.context);
124
125
  this.defaultObjectAccessControls =
125
126
  new Resource$Defaultobjectaccesscontrols(this.context);
127
+ this.managedFolders = new Resource$Managedfolders(this.context);
126
128
  this.notifications = new Resource$Notifications(this.context);
127
129
  this.objectAccessControls = new Resource$Objectaccesscontrols(
128
130
  this.context
@@ -641,6 +643,60 @@ export namespace storage_v1 {
641
643
  */
642
644
  nextPageToken?: string | null;
643
645
  }
646
+ /**
647
+ * A managed folder.
648
+ */
649
+ export interface Schema$ManagedFolder {
650
+ /**
651
+ * The name of the bucket containing this managed folder.
652
+ */
653
+ bucket?: string | null;
654
+ /**
655
+ * The creation time of the managed folder in RFC 3339 format.
656
+ */
657
+ createTime?: string | null;
658
+ /**
659
+ * The ID of the managed folder, including the bucket name and managed folder name.
660
+ */
661
+ id?: string | null;
662
+ /**
663
+ * The kind of item this is. For managed folders, this is always storage#managedFolder.
664
+ */
665
+ kind?: string | null;
666
+ /**
667
+ * The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
668
+ */
669
+ metageneration?: string | null;
670
+ /**
671
+ * The name of the managed folder. Required if not specified by URL parameter.
672
+ */
673
+ name?: string | null;
674
+ /**
675
+ * The link to this managed folder.
676
+ */
677
+ selfLink?: string | null;
678
+ /**
679
+ * The last update time of the managed folder metadata in RFC 3339 format.
680
+ */
681
+ updateTime?: string | null;
682
+ }
683
+ /**
684
+ * A list of managed folders.
685
+ */
686
+ export interface Schema$ManagedFolders {
687
+ /**
688
+ * The list of items.
689
+ */
690
+ items?: Schema$ManagedFolder[];
691
+ /**
692
+ * The kind of item this is. For lists of managed folders, this is always storage#managedFolders.
693
+ */
694
+ kind?: string | null;
695
+ /**
696
+ * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
697
+ */
698
+ nextPageToken?: string | null;
699
+ }
644
700
  /**
645
701
  * A subscription to receive Google PubSub notifications.
646
702
  */
@@ -946,7 +1002,7 @@ export namespace storage_v1 {
946
1002
  prefixes?: string[] | null;
947
1003
  }
948
1004
  /**
949
- * A bucket/object IAM policy.
1005
+ * A bucket/object/managedFolder IAM policy.
950
1006
  */
951
1007
  export interface Schema$Policy {
952
1008
  /**
@@ -966,7 +1022,7 @@ export namespace storage_v1 {
966
1022
  */
967
1023
  kind?: string | null;
968
1024
  /**
969
- * The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, and projects/_/buckets/bucket/objects/object for objects. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
1025
+ * The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
970
1026
  */
971
1027
  resourceId?: string | null;
972
1028
  /**
@@ -1017,7 +1073,7 @@ export namespace storage_v1 {
1017
1073
  kind?: string | null;
1018
1074
  }
1019
1075
  /**
1020
- * A storage.(buckets|objects).testIamPermissions response.
1076
+ * A storage.(buckets|objects|managedFolders).testIamPermissions response.
1021
1077
  */
1022
1078
  export interface Schema$TestIamPermissionsResponse {
1023
1079
  /**
@@ -1025,7 +1081,7 @@ export namespace storage_v1 {
1025
1081
  */
1026
1082
  kind?: string | null;
1027
1083
  /**
1028
- * The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or objects. The supported permissions are as follows:
1084
+ * The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported permissions are as follows:
1029
1085
  * - storage.buckets.delete — Delete bucket.
1030
1086
  * - storage.buckets.get — Read bucket metadata.
1031
1087
  * - storage.buckets.getIamPolicy — Read bucket IAM policy.
@@ -1040,6 +1096,12 @@ export namespace storage_v1 {
1040
1096
  * - storage.objects.list — List objects.
1041
1097
  * - storage.objects.setIamPolicy — Update object IAM policy.
1042
1098
  * - storage.objects.update — Update object metadata.
1099
+ * - storage.managedFolders.delete — Delete managed folder.
1100
+ * - storage.managedFolders.get — Read managed folder metadata.
1101
+ * - storage.managedFolders.getIamPolicy — Read managed folder IAM policy.
1102
+ * - storage.managedFolders.create — Create managed folder.
1103
+ * - storage.managedFolders.list — List managed folders.
1104
+ * - storage.managedFolders.setIamPolicy — Update managed folder IAM policy.
1043
1105
  */
1044
1106
  permissions?: string[] | null;
1045
1107
  }
@@ -3527,14 +3589,14 @@ export namespace storage_v1 {
3527
3589
  requestBody?: Schema$ObjectAccessControl;
3528
3590
  }
3529
3591
 
3530
- export class Resource$Notifications {
3592
+ export class Resource$Managedfolders {
3531
3593
  context: APIRequestContext;
3532
3594
  constructor(context: APIRequestContext) {
3533
3595
  this.context = context;
3534
3596
  }
3535
3597
 
3536
3598
  /**
3537
- * Permanently deletes a notification subscription.
3599
+ * Permanently deletes a managed folder.
3538
3600
  *
3539
3601
  * @param params - Parameters for request
3540
3602
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3542,31 +3604,31 @@ export namespace storage_v1 {
3542
3604
  * @returns A promise if used with async/await, or void if used with a callback.
3543
3605
  */
3544
3606
  delete(
3545
- params: Params$Resource$Notifications$Delete,
3607
+ params: Params$Resource$Managedfolders$Delete,
3546
3608
  options: StreamMethodOptions
3547
3609
  ): GaxiosPromise<Readable>;
3548
3610
  delete(
3549
- params?: Params$Resource$Notifications$Delete,
3611
+ params?: Params$Resource$Managedfolders$Delete,
3550
3612
  options?: MethodOptions
3551
3613
  ): GaxiosPromise<void>;
3552
3614
  delete(
3553
- params: Params$Resource$Notifications$Delete,
3615
+ params: Params$Resource$Managedfolders$Delete,
3554
3616
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3555
3617
  callback: BodyResponseCallback<Readable>
3556
3618
  ): void;
3557
3619
  delete(
3558
- params: Params$Resource$Notifications$Delete,
3620
+ params: Params$Resource$Managedfolders$Delete,
3559
3621
  options: MethodOptions | BodyResponseCallback<void>,
3560
3622
  callback: BodyResponseCallback<void>
3561
3623
  ): void;
3562
3624
  delete(
3563
- params: Params$Resource$Notifications$Delete,
3625
+ params: Params$Resource$Managedfolders$Delete,
3564
3626
  callback: BodyResponseCallback<void>
3565
3627
  ): void;
3566
3628
  delete(callback: BodyResponseCallback<void>): void;
3567
3629
  delete(
3568
3630
  paramsOrCallback?:
3569
- | Params$Resource$Notifications$Delete
3631
+ | Params$Resource$Managedfolders$Delete
3570
3632
  | BodyResponseCallback<void>
3571
3633
  | BodyResponseCallback<Readable>,
3572
3634
  optionsOrCallback?:
@@ -3577,12 +3639,12 @@ export namespace storage_v1 {
3577
3639
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
3578
3640
  ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
3579
3641
  let params = (paramsOrCallback ||
3580
- {}) as Params$Resource$Notifications$Delete;
3642
+ {}) as Params$Resource$Managedfolders$Delete;
3581
3643
  let options = (optionsOrCallback || {}) as MethodOptions;
3582
3644
 
3583
3645
  if (typeof paramsOrCallback === 'function') {
3584
3646
  callback = paramsOrCallback;
3585
- params = {} as Params$Resource$Notifications$Delete;
3647
+ params = {} as Params$Resource$Managedfolders$Delete;
3586
3648
  options = {};
3587
3649
  }
3588
3650
 
@@ -3596,16 +3658,15 @@ export namespace storage_v1 {
3596
3658
  options: Object.assign(
3597
3659
  {
3598
3660
  url: (
3599
- rootUrl +
3600
- '/storage/v1/b/{bucket}/notificationConfigs/{notification}'
3661
+ rootUrl + '/storage/v1/b/{bucket}/managedFolders/{managedFolder}'
3601
3662
  ).replace(/([^:]\/)\/+/g, '$1'),
3602
3663
  method: 'DELETE',
3603
3664
  },
3604
3665
  options
3605
3666
  ),
3606
3667
  params,
3607
- requiredParams: ['bucket', 'notification'],
3608
- pathParams: ['bucket', 'notification'],
3668
+ requiredParams: ['bucket', 'managedFolder'],
3669
+ pathParams: ['bucket', 'managedFolder'],
3609
3670
  context: this.context,
3610
3671
  };
3611
3672
  if (callback) {
@@ -3619,7 +3680,7 @@ export namespace storage_v1 {
3619
3680
  }
3620
3681
 
3621
3682
  /**
3622
- * View a notification configuration.
3683
+ * Returns metadata of the specified managed folder.
3623
3684
  *
3624
3685
  * @param params - Parameters for request
3625
3686
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3627,49 +3688,49 @@ export namespace storage_v1 {
3627
3688
  * @returns A promise if used with async/await, or void if used with a callback.
3628
3689
  */
3629
3690
  get(
3630
- params: Params$Resource$Notifications$Get,
3691
+ params: Params$Resource$Managedfolders$Get,
3631
3692
  options: StreamMethodOptions
3632
3693
  ): GaxiosPromise<Readable>;
3633
3694
  get(
3634
- params?: Params$Resource$Notifications$Get,
3695
+ params?: Params$Resource$Managedfolders$Get,
3635
3696
  options?: MethodOptions
3636
- ): GaxiosPromise<Schema$Notification>;
3697
+ ): GaxiosPromise<Schema$ManagedFolder>;
3637
3698
  get(
3638
- params: Params$Resource$Notifications$Get,
3699
+ params: Params$Resource$Managedfolders$Get,
3639
3700
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3640
3701
  callback: BodyResponseCallback<Readable>
3641
3702
  ): void;
3642
3703
  get(
3643
- params: Params$Resource$Notifications$Get,
3644
- options: MethodOptions | BodyResponseCallback<Schema$Notification>,
3645
- callback: BodyResponseCallback<Schema$Notification>
3704
+ params: Params$Resource$Managedfolders$Get,
3705
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>,
3706
+ callback: BodyResponseCallback<Schema$ManagedFolder>
3646
3707
  ): void;
3647
3708
  get(
3648
- params: Params$Resource$Notifications$Get,
3649
- callback: BodyResponseCallback<Schema$Notification>
3709
+ params: Params$Resource$Managedfolders$Get,
3710
+ callback: BodyResponseCallback<Schema$ManagedFolder>
3650
3711
  ): void;
3651
- get(callback: BodyResponseCallback<Schema$Notification>): void;
3712
+ get(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
3652
3713
  get(
3653
3714
  paramsOrCallback?:
3654
- | Params$Resource$Notifications$Get
3655
- | BodyResponseCallback<Schema$Notification>
3715
+ | Params$Resource$Managedfolders$Get
3716
+ | BodyResponseCallback<Schema$ManagedFolder>
3656
3717
  | BodyResponseCallback<Readable>,
3657
3718
  optionsOrCallback?:
3658
3719
  | MethodOptions
3659
3720
  | StreamMethodOptions
3660
- | BodyResponseCallback<Schema$Notification>
3721
+ | BodyResponseCallback<Schema$ManagedFolder>
3661
3722
  | BodyResponseCallback<Readable>,
3662
3723
  callback?:
3663
- | BodyResponseCallback<Schema$Notification>
3724
+ | BodyResponseCallback<Schema$ManagedFolder>
3664
3725
  | BodyResponseCallback<Readable>
3665
- ): void | GaxiosPromise<Schema$Notification> | GaxiosPromise<Readable> {
3726
+ ): void | GaxiosPromise<Schema$ManagedFolder> | GaxiosPromise<Readable> {
3666
3727
  let params = (paramsOrCallback ||
3667
- {}) as Params$Resource$Notifications$Get;
3728
+ {}) as Params$Resource$Managedfolders$Get;
3668
3729
  let options = (optionsOrCallback || {}) as MethodOptions;
3669
3730
 
3670
3731
  if (typeof paramsOrCallback === 'function') {
3671
3732
  callback = paramsOrCallback;
3672
- params = {} as Params$Resource$Notifications$Get;
3733
+ params = {} as Params$Resource$Managedfolders$Get;
3673
3734
  options = {};
3674
3735
  }
3675
3736
 
@@ -3683,80 +3744,79 @@ export namespace storage_v1 {
3683
3744
  options: Object.assign(
3684
3745
  {
3685
3746
  url: (
3686
- rootUrl +
3687
- '/storage/v1/b/{bucket}/notificationConfigs/{notification}'
3747
+ rootUrl + '/storage/v1/b/{bucket}/managedFolders/{managedFolder}'
3688
3748
  ).replace(/([^:]\/)\/+/g, '$1'),
3689
3749
  method: 'GET',
3690
3750
  },
3691
3751
  options
3692
3752
  ),
3693
3753
  params,
3694
- requiredParams: ['bucket', 'notification'],
3695
- pathParams: ['bucket', 'notification'],
3754
+ requiredParams: ['bucket', 'managedFolder'],
3755
+ pathParams: ['bucket', 'managedFolder'],
3696
3756
  context: this.context,
3697
3757
  };
3698
3758
  if (callback) {
3699
- createAPIRequest<Schema$Notification>(
3759
+ createAPIRequest<Schema$ManagedFolder>(
3700
3760
  parameters,
3701
3761
  callback as BodyResponseCallback<unknown>
3702
3762
  );
3703
3763
  } else {
3704
- return createAPIRequest<Schema$Notification>(parameters);
3764
+ return createAPIRequest<Schema$ManagedFolder>(parameters);
3705
3765
  }
3706
3766
  }
3707
3767
 
3708
3768
  /**
3709
- * Creates a notification subscription for a given bucket.
3769
+ * Returns an IAM policy for the specified managed folder.
3710
3770
  *
3711
3771
  * @param params - Parameters for request
3712
3772
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3713
3773
  * @param callback - Optional callback that handles the response.
3714
3774
  * @returns A promise if used with async/await, or void if used with a callback.
3715
3775
  */
3716
- insert(
3717
- params: Params$Resource$Notifications$Insert,
3776
+ getIamPolicy(
3777
+ params: Params$Resource$Managedfolders$Getiampolicy,
3718
3778
  options: StreamMethodOptions
3719
3779
  ): GaxiosPromise<Readable>;
3720
- insert(
3721
- params?: Params$Resource$Notifications$Insert,
3780
+ getIamPolicy(
3781
+ params?: Params$Resource$Managedfolders$Getiampolicy,
3722
3782
  options?: MethodOptions
3723
- ): GaxiosPromise<Schema$Notification>;
3724
- insert(
3725
- params: Params$Resource$Notifications$Insert,
3783
+ ): GaxiosPromise<Schema$Policy>;
3784
+ getIamPolicy(
3785
+ params: Params$Resource$Managedfolders$Getiampolicy,
3726
3786
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3727
3787
  callback: BodyResponseCallback<Readable>
3728
3788
  ): void;
3729
- insert(
3730
- params: Params$Resource$Notifications$Insert,
3731
- options: MethodOptions | BodyResponseCallback<Schema$Notification>,
3732
- callback: BodyResponseCallback<Schema$Notification>
3789
+ getIamPolicy(
3790
+ params: Params$Resource$Managedfolders$Getiampolicy,
3791
+ options: MethodOptions | BodyResponseCallback<Schema$Policy>,
3792
+ callback: BodyResponseCallback<Schema$Policy>
3733
3793
  ): void;
3734
- insert(
3735
- params: Params$Resource$Notifications$Insert,
3736
- callback: BodyResponseCallback<Schema$Notification>
3794
+ getIamPolicy(
3795
+ params: Params$Resource$Managedfolders$Getiampolicy,
3796
+ callback: BodyResponseCallback<Schema$Policy>
3737
3797
  ): void;
3738
- insert(callback: BodyResponseCallback<Schema$Notification>): void;
3739
- insert(
3798
+ getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
3799
+ getIamPolicy(
3740
3800
  paramsOrCallback?:
3741
- | Params$Resource$Notifications$Insert
3742
- | BodyResponseCallback<Schema$Notification>
3801
+ | Params$Resource$Managedfolders$Getiampolicy
3802
+ | BodyResponseCallback<Schema$Policy>
3743
3803
  | BodyResponseCallback<Readable>,
3744
3804
  optionsOrCallback?:
3745
3805
  | MethodOptions
3746
3806
  | StreamMethodOptions
3747
- | BodyResponseCallback<Schema$Notification>
3807
+ | BodyResponseCallback<Schema$Policy>
3748
3808
  | BodyResponseCallback<Readable>,
3749
3809
  callback?:
3750
- | BodyResponseCallback<Schema$Notification>
3810
+ | BodyResponseCallback<Schema$Policy>
3751
3811
  | BodyResponseCallback<Readable>
3752
- ): void | GaxiosPromise<Schema$Notification> | GaxiosPromise<Readable> {
3812
+ ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
3753
3813
  let params = (paramsOrCallback ||
3754
- {}) as Params$Resource$Notifications$Insert;
3814
+ {}) as Params$Resource$Managedfolders$Getiampolicy;
3755
3815
  let options = (optionsOrCallback || {}) as MethodOptions;
3756
3816
 
3757
3817
  if (typeof paramsOrCallback === 'function') {
3758
3818
  callback = paramsOrCallback;
3759
- params = {} as Params$Resource$Notifications$Insert;
3819
+ params = {} as Params$Resource$Managedfolders$Getiampolicy;
3760
3820
  options = {};
3761
3821
  }
3762
3822
 
@@ -3770,79 +3830,80 @@ export namespace storage_v1 {
3770
3830
  options: Object.assign(
3771
3831
  {
3772
3832
  url: (
3773
- rootUrl + '/storage/v1/b/{bucket}/notificationConfigs'
3833
+ rootUrl +
3834
+ '/storage/v1/b/{bucket}/managedFolders/{managedFolder}/iam'
3774
3835
  ).replace(/([^:]\/)\/+/g, '$1'),
3775
- method: 'POST',
3836
+ method: 'GET',
3776
3837
  },
3777
3838
  options
3778
3839
  ),
3779
3840
  params,
3780
- requiredParams: ['bucket'],
3781
- pathParams: ['bucket'],
3841
+ requiredParams: ['bucket', 'managedFolder'],
3842
+ pathParams: ['bucket', 'managedFolder'],
3782
3843
  context: this.context,
3783
3844
  };
3784
3845
  if (callback) {
3785
- createAPIRequest<Schema$Notification>(
3846
+ createAPIRequest<Schema$Policy>(
3786
3847
  parameters,
3787
3848
  callback as BodyResponseCallback<unknown>
3788
3849
  );
3789
3850
  } else {
3790
- return createAPIRequest<Schema$Notification>(parameters);
3851
+ return createAPIRequest<Schema$Policy>(parameters);
3791
3852
  }
3792
3853
  }
3793
3854
 
3794
3855
  /**
3795
- * Retrieves a list of notification subscriptions for a given bucket.
3856
+ * Creates a new managed folder.
3796
3857
  *
3797
3858
  * @param params - Parameters for request
3798
3859
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3799
3860
  * @param callback - Optional callback that handles the response.
3800
3861
  * @returns A promise if used with async/await, or void if used with a callback.
3801
3862
  */
3802
- list(
3803
- params: Params$Resource$Notifications$List,
3863
+ insert(
3864
+ params: Params$Resource$Managedfolders$Insert,
3804
3865
  options: StreamMethodOptions
3805
3866
  ): GaxiosPromise<Readable>;
3806
- list(
3807
- params?: Params$Resource$Notifications$List,
3867
+ insert(
3868
+ params?: Params$Resource$Managedfolders$Insert,
3808
3869
  options?: MethodOptions
3809
- ): GaxiosPromise<Schema$Notifications>;
3810
- list(
3811
- params: Params$Resource$Notifications$List,
3870
+ ): GaxiosPromise<Schema$ManagedFolder>;
3871
+ insert(
3872
+ params: Params$Resource$Managedfolders$Insert,
3812
3873
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3813
3874
  callback: BodyResponseCallback<Readable>
3814
3875
  ): void;
3815
- list(
3816
- params: Params$Resource$Notifications$List,
3817
- options: MethodOptions | BodyResponseCallback<Schema$Notifications>,
3818
- callback: BodyResponseCallback<Schema$Notifications>
3876
+ insert(
3877
+ params: Params$Resource$Managedfolders$Insert,
3878
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>,
3879
+ callback: BodyResponseCallback<Schema$ManagedFolder>
3819
3880
  ): void;
3820
- list(
3821
- params: Params$Resource$Notifications$List,
3822
- callback: BodyResponseCallback<Schema$Notifications>
3881
+ insert(
3882
+ params: Params$Resource$Managedfolders$Insert,
3883
+ callback: BodyResponseCallback<Schema$ManagedFolder>
3823
3884
  ): void;
3824
- list(callback: BodyResponseCallback<Schema$Notifications>): void;
3825
- list(
3885
+ insert(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
3886
+ insert(
3826
3887
  paramsOrCallback?:
3827
- | Params$Resource$Notifications$List
3828
- | BodyResponseCallback<Schema$Notifications>
3888
+ | Params$Resource$Managedfolders$Insert
3889
+ | BodyResponseCallback<Schema$ManagedFolder>
3829
3890
  | BodyResponseCallback<Readable>,
3830
3891
  optionsOrCallback?:
3831
3892
  | MethodOptions
3832
3893
  | StreamMethodOptions
3833
- | BodyResponseCallback<Schema$Notifications>
3894
+ | BodyResponseCallback<Schema$ManagedFolder>
3834
3895
  | BodyResponseCallback<Readable>,
3835
3896
  callback?:
3836
- | BodyResponseCallback<Schema$Notifications>
3897
+ | BodyResponseCallback<Schema$ManagedFolder>
3837
3898
  | BodyResponseCallback<Readable>
3838
- ): void | GaxiosPromise<Schema$Notifications> | GaxiosPromise<Readable> {
3899
+ ): void | GaxiosPromise<Schema$ManagedFolder> | GaxiosPromise<Readable> {
3839
3900
  let params = (paramsOrCallback ||
3840
- {}) as Params$Resource$Notifications$List;
3901
+ {}) as Params$Resource$Managedfolders$Insert;
3841
3902
  let options = (optionsOrCallback || {}) as MethodOptions;
3842
3903
 
3843
3904
  if (typeof paramsOrCallback === 'function') {
3844
3905
  callback = paramsOrCallback;
3845
- params = {} as Params$Resource$Notifications$List;
3906
+ params = {} as Params$Resource$Managedfolders$Insert;
3846
3907
  options = {};
3847
3908
  }
3848
3909
 
@@ -3855,10 +3916,11 @@ export namespace storage_v1 {
3855
3916
  const parameters = {
3856
3917
  options: Object.assign(
3857
3918
  {
3858
- url: (
3859
- rootUrl + '/storage/v1/b/{bucket}/notificationConfigs'
3860
- ).replace(/([^:]\/)\/+/g, '$1'),
3861
- method: 'GET',
3919
+ url: (rootUrl + '/storage/v1/b/{bucket}/managedFolders').replace(
3920
+ /([^:]\/)\/+/g,
3921
+ '$1'
3922
+ ),
3923
+ method: 'POST',
3862
3924
  },
3863
3925
  options
3864
3926
  ),
@@ -3868,120 +3930,867 @@ export namespace storage_v1 {
3868
3930
  context: this.context,
3869
3931
  };
3870
3932
  if (callback) {
3871
- createAPIRequest<Schema$Notifications>(
3933
+ createAPIRequest<Schema$ManagedFolder>(
3872
3934
  parameters,
3873
3935
  callback as BodyResponseCallback<unknown>
3874
3936
  );
3875
3937
  } else {
3876
- return createAPIRequest<Schema$Notifications>(parameters);
3938
+ return createAPIRequest<Schema$ManagedFolder>(parameters);
3877
3939
  }
3878
3940
  }
3879
- }
3880
-
3881
- export interface Params$Resource$Notifications$Delete
3882
- extends StandardParameters {
3883
- /**
3884
- * The parent bucket of the notification.
3885
- */
3886
- bucket?: string;
3887
- /**
3888
- * ID of the notification to delete.
3889
- */
3890
- notification?: string;
3891
- /**
3892
- * The project to be billed for this request. Required for Requester Pays buckets.
3893
- */
3894
- userProject?: string;
3895
- }
3896
- export interface Params$Resource$Notifications$Get
3897
- extends StandardParameters {
3898
- /**
3899
- * The parent bucket of the notification.
3900
- */
3901
- bucket?: string;
3902
- /**
3903
- * Notification ID
3904
- */
3905
- notification?: string;
3906
- /**
3907
- * The project to be billed for this request. Required for Requester Pays buckets.
3908
- */
3909
- userProject?: string;
3910
- }
3911
- export interface Params$Resource$Notifications$Insert
3912
- extends StandardParameters {
3913
- /**
3914
- * The parent bucket of the notification.
3915
- */
3916
- bucket?: string;
3917
- /**
3918
- * The project to be billed for this request. Required for Requester Pays buckets.
3919
- */
3920
- userProject?: string;
3921
-
3922
- /**
3923
- * Request body metadata
3924
- */
3925
- requestBody?: Schema$Notification;
3926
- }
3927
- export interface Params$Resource$Notifications$List
3928
- extends StandardParameters {
3929
- /**
3930
- * Name of a Google Cloud Storage bucket.
3931
- */
3932
- bucket?: string;
3933
- /**
3934
- * The project to be billed for this request. Required for Requester Pays buckets.
3935
- */
3936
- userProject?: string;
3937
- }
3938
-
3939
- export class Resource$Objectaccesscontrols {
3940
- context: APIRequestContext;
3941
- constructor(context: APIRequestContext) {
3942
- this.context = context;
3943
- }
3944
3941
 
3945
3942
  /**
3946
- * Permanently deletes the ACL entry for the specified entity on the specified object.
3943
+ * Lists managed folders in the given bucket.
3947
3944
  *
3948
3945
  * @param params - Parameters for request
3949
3946
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3950
3947
  * @param callback - Optional callback that handles the response.
3951
3948
  * @returns A promise if used with async/await, or void if used with a callback.
3952
3949
  */
3953
- delete(
3954
- params: Params$Resource$Objectaccesscontrols$Delete,
3950
+ list(
3951
+ params: Params$Resource$Managedfolders$List,
3955
3952
  options: StreamMethodOptions
3956
3953
  ): GaxiosPromise<Readable>;
3957
- delete(
3958
- params?: Params$Resource$Objectaccesscontrols$Delete,
3954
+ list(
3955
+ params?: Params$Resource$Managedfolders$List,
3959
3956
  options?: MethodOptions
3960
- ): GaxiosPromise<void>;
3961
- delete(
3962
- params: Params$Resource$Objectaccesscontrols$Delete,
3957
+ ): GaxiosPromise<Schema$ManagedFolders>;
3958
+ list(
3959
+ params: Params$Resource$Managedfolders$List,
3963
3960
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
3964
3961
  callback: BodyResponseCallback<Readable>
3965
3962
  ): void;
3966
- delete(
3967
- params: Params$Resource$Objectaccesscontrols$Delete,
3968
- options: MethodOptions | BodyResponseCallback<void>,
3969
- callback: BodyResponseCallback<void>
3963
+ list(
3964
+ params: Params$Resource$Managedfolders$List,
3965
+ options: MethodOptions | BodyResponseCallback<Schema$ManagedFolders>,
3966
+ callback: BodyResponseCallback<Schema$ManagedFolders>
3970
3967
  ): void;
3971
- delete(
3972
- params: Params$Resource$Objectaccesscontrols$Delete,
3973
- callback: BodyResponseCallback<void>
3968
+ list(
3969
+ params: Params$Resource$Managedfolders$List,
3970
+ callback: BodyResponseCallback<Schema$ManagedFolders>
3974
3971
  ): void;
3975
- delete(callback: BodyResponseCallback<void>): void;
3976
- delete(
3972
+ list(callback: BodyResponseCallback<Schema$ManagedFolders>): void;
3973
+ list(
3977
3974
  paramsOrCallback?:
3978
- | Params$Resource$Objectaccesscontrols$Delete
3979
- | BodyResponseCallback<void>
3975
+ | Params$Resource$Managedfolders$List
3976
+ | BodyResponseCallback<Schema$ManagedFolders>
3980
3977
  | BodyResponseCallback<Readable>,
3981
3978
  optionsOrCallback?:
3982
3979
  | MethodOptions
3983
3980
  | StreamMethodOptions
3984
- | BodyResponseCallback<void>
3981
+ | BodyResponseCallback<Schema$ManagedFolders>
3982
+ | BodyResponseCallback<Readable>,
3983
+ callback?:
3984
+ | BodyResponseCallback<Schema$ManagedFolders>
3985
+ | BodyResponseCallback<Readable>
3986
+ ): void | GaxiosPromise<Schema$ManagedFolders> | GaxiosPromise<Readable> {
3987
+ let params = (paramsOrCallback ||
3988
+ {}) as Params$Resource$Managedfolders$List;
3989
+ let options = (optionsOrCallback || {}) as MethodOptions;
3990
+
3991
+ if (typeof paramsOrCallback === 'function') {
3992
+ callback = paramsOrCallback;
3993
+ params = {} as Params$Resource$Managedfolders$List;
3994
+ options = {};
3995
+ }
3996
+
3997
+ if (typeof optionsOrCallback === 'function') {
3998
+ callback = optionsOrCallback;
3999
+ options = {};
4000
+ }
4001
+
4002
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4003
+ const parameters = {
4004
+ options: Object.assign(
4005
+ {
4006
+ url: (rootUrl + '/storage/v1/b/{bucket}/managedFolders').replace(
4007
+ /([^:]\/)\/+/g,
4008
+ '$1'
4009
+ ),
4010
+ method: 'GET',
4011
+ },
4012
+ options
4013
+ ),
4014
+ params,
4015
+ requiredParams: ['bucket'],
4016
+ pathParams: ['bucket'],
4017
+ context: this.context,
4018
+ };
4019
+ if (callback) {
4020
+ createAPIRequest<Schema$ManagedFolders>(
4021
+ parameters,
4022
+ callback as BodyResponseCallback<unknown>
4023
+ );
4024
+ } else {
4025
+ return createAPIRequest<Schema$ManagedFolders>(parameters);
4026
+ }
4027
+ }
4028
+
4029
+ /**
4030
+ * Updates an IAM policy for the specified managed folder.
4031
+ *
4032
+ * @param params - Parameters for request
4033
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4034
+ * @param callback - Optional callback that handles the response.
4035
+ * @returns A promise if used with async/await, or void if used with a callback.
4036
+ */
4037
+ setIamPolicy(
4038
+ params: Params$Resource$Managedfolders$Setiampolicy,
4039
+ options: StreamMethodOptions
4040
+ ): GaxiosPromise<Readable>;
4041
+ setIamPolicy(
4042
+ params?: Params$Resource$Managedfolders$Setiampolicy,
4043
+ options?: MethodOptions
4044
+ ): GaxiosPromise<Schema$Policy>;
4045
+ setIamPolicy(
4046
+ params: Params$Resource$Managedfolders$Setiampolicy,
4047
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4048
+ callback: BodyResponseCallback<Readable>
4049
+ ): void;
4050
+ setIamPolicy(
4051
+ params: Params$Resource$Managedfolders$Setiampolicy,
4052
+ options: MethodOptions | BodyResponseCallback<Schema$Policy>,
4053
+ callback: BodyResponseCallback<Schema$Policy>
4054
+ ): void;
4055
+ setIamPolicy(
4056
+ params: Params$Resource$Managedfolders$Setiampolicy,
4057
+ callback: BodyResponseCallback<Schema$Policy>
4058
+ ): void;
4059
+ setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
4060
+ setIamPolicy(
4061
+ paramsOrCallback?:
4062
+ | Params$Resource$Managedfolders$Setiampolicy
4063
+ | BodyResponseCallback<Schema$Policy>
4064
+ | BodyResponseCallback<Readable>,
4065
+ optionsOrCallback?:
4066
+ | MethodOptions
4067
+ | StreamMethodOptions
4068
+ | BodyResponseCallback<Schema$Policy>
4069
+ | BodyResponseCallback<Readable>,
4070
+ callback?:
4071
+ | BodyResponseCallback<Schema$Policy>
4072
+ | BodyResponseCallback<Readable>
4073
+ ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
4074
+ let params = (paramsOrCallback ||
4075
+ {}) as Params$Resource$Managedfolders$Setiampolicy;
4076
+ let options = (optionsOrCallback || {}) as MethodOptions;
4077
+
4078
+ if (typeof paramsOrCallback === 'function') {
4079
+ callback = paramsOrCallback;
4080
+ params = {} as Params$Resource$Managedfolders$Setiampolicy;
4081
+ options = {};
4082
+ }
4083
+
4084
+ if (typeof optionsOrCallback === 'function') {
4085
+ callback = optionsOrCallback;
4086
+ options = {};
4087
+ }
4088
+
4089
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4090
+ const parameters = {
4091
+ options: Object.assign(
4092
+ {
4093
+ url: (
4094
+ rootUrl +
4095
+ '/storage/v1/b/{bucket}/managedFolders/{managedFolder}/iam'
4096
+ ).replace(/([^:]\/)\/+/g, '$1'),
4097
+ method: 'PUT',
4098
+ },
4099
+ options
4100
+ ),
4101
+ params,
4102
+ requiredParams: ['bucket', 'managedFolder'],
4103
+ pathParams: ['bucket', 'managedFolder'],
4104
+ context: this.context,
4105
+ };
4106
+ if (callback) {
4107
+ createAPIRequest<Schema$Policy>(
4108
+ parameters,
4109
+ callback as BodyResponseCallback<unknown>
4110
+ );
4111
+ } else {
4112
+ return createAPIRequest<Schema$Policy>(parameters);
4113
+ }
4114
+ }
4115
+
4116
+ /**
4117
+ * Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.
4118
+ *
4119
+ * @param params - Parameters for request
4120
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4121
+ * @param callback - Optional callback that handles the response.
4122
+ * @returns A promise if used with async/await, or void if used with a callback.
4123
+ */
4124
+ testIamPermissions(
4125
+ params: Params$Resource$Managedfolders$Testiampermissions,
4126
+ options: StreamMethodOptions
4127
+ ): GaxiosPromise<Readable>;
4128
+ testIamPermissions(
4129
+ params?: Params$Resource$Managedfolders$Testiampermissions,
4130
+ options?: MethodOptions
4131
+ ): GaxiosPromise<Schema$TestIamPermissionsResponse>;
4132
+ testIamPermissions(
4133
+ params: Params$Resource$Managedfolders$Testiampermissions,
4134
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4135
+ callback: BodyResponseCallback<Readable>
4136
+ ): void;
4137
+ testIamPermissions(
4138
+ params: Params$Resource$Managedfolders$Testiampermissions,
4139
+ options:
4140
+ | MethodOptions
4141
+ | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
4142
+ callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
4143
+ ): void;
4144
+ testIamPermissions(
4145
+ params: Params$Resource$Managedfolders$Testiampermissions,
4146
+ callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
4147
+ ): void;
4148
+ testIamPermissions(
4149
+ callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
4150
+ ): void;
4151
+ testIamPermissions(
4152
+ paramsOrCallback?:
4153
+ | Params$Resource$Managedfolders$Testiampermissions
4154
+ | BodyResponseCallback<Schema$TestIamPermissionsResponse>
4155
+ | BodyResponseCallback<Readable>,
4156
+ optionsOrCallback?:
4157
+ | MethodOptions
4158
+ | StreamMethodOptions
4159
+ | BodyResponseCallback<Schema$TestIamPermissionsResponse>
4160
+ | BodyResponseCallback<Readable>,
4161
+ callback?:
4162
+ | BodyResponseCallback<Schema$TestIamPermissionsResponse>
4163
+ | BodyResponseCallback<Readable>
4164
+ ):
4165
+ | void
4166
+ | GaxiosPromise<Schema$TestIamPermissionsResponse>
4167
+ | GaxiosPromise<Readable> {
4168
+ let params = (paramsOrCallback ||
4169
+ {}) as Params$Resource$Managedfolders$Testiampermissions;
4170
+ let options = (optionsOrCallback || {}) as MethodOptions;
4171
+
4172
+ if (typeof paramsOrCallback === 'function') {
4173
+ callback = paramsOrCallback;
4174
+ params = {} as Params$Resource$Managedfolders$Testiampermissions;
4175
+ options = {};
4176
+ }
4177
+
4178
+ if (typeof optionsOrCallback === 'function') {
4179
+ callback = optionsOrCallback;
4180
+ options = {};
4181
+ }
4182
+
4183
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4184
+ const parameters = {
4185
+ options: Object.assign(
4186
+ {
4187
+ url: (
4188
+ rootUrl +
4189
+ '/storage/v1/b/{bucket}/managedFolders/{managedFolder}/iam/testPermissions'
4190
+ ).replace(/([^:]\/)\/+/g, '$1'),
4191
+ method: 'GET',
4192
+ },
4193
+ options
4194
+ ),
4195
+ params,
4196
+ requiredParams: ['bucket', 'managedFolder', 'permissions'],
4197
+ pathParams: ['bucket', 'managedFolder'],
4198
+ context: this.context,
4199
+ };
4200
+ if (callback) {
4201
+ createAPIRequest<Schema$TestIamPermissionsResponse>(
4202
+ parameters,
4203
+ callback as BodyResponseCallback<unknown>
4204
+ );
4205
+ } else {
4206
+ return createAPIRequest<Schema$TestIamPermissionsResponse>(parameters);
4207
+ }
4208
+ }
4209
+ }
4210
+
4211
+ export interface Params$Resource$Managedfolders$Delete
4212
+ extends StandardParameters {
4213
+ /**
4214
+ * Name of the bucket containing the managed folder.
4215
+ */
4216
+ bucket?: string;
4217
+ /**
4218
+ * If set, only deletes the managed folder if its metageneration matches this value.
4219
+ */
4220
+ ifMetagenerationMatch?: string;
4221
+ /**
4222
+ * If set, only deletes the managed folder if its metageneration does not match this value.
4223
+ */
4224
+ ifMetagenerationNotMatch?: string;
4225
+ /**
4226
+ * The managed folder name/path.
4227
+ */
4228
+ managedFolder?: string;
4229
+ }
4230
+ export interface Params$Resource$Managedfolders$Get
4231
+ extends StandardParameters {
4232
+ /**
4233
+ * Name of the bucket containing the managed folder.
4234
+ */
4235
+ bucket?: string;
4236
+ /**
4237
+ * Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration matches the given value.
4238
+ */
4239
+ ifMetagenerationMatch?: string;
4240
+ /**
4241
+ * Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration does not match the given value.
4242
+ */
4243
+ ifMetagenerationNotMatch?: string;
4244
+ /**
4245
+ * The managed folder name/path.
4246
+ */
4247
+ managedFolder?: string;
4248
+ }
4249
+ export interface Params$Resource$Managedfolders$Getiampolicy
4250
+ extends StandardParameters {
4251
+ /**
4252
+ * Name of the bucket containing the managed folder.
4253
+ */
4254
+ bucket?: string;
4255
+ /**
4256
+ * The managed folder name/path.
4257
+ */
4258
+ managedFolder?: string;
4259
+ /**
4260
+ * The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails.
4261
+ */
4262
+ optionsRequestedPolicyVersion?: number;
4263
+ /**
4264
+ * The project to be billed for this request. Required for Requester Pays buckets.
4265
+ */
4266
+ userProject?: string;
4267
+ }
4268
+ export interface Params$Resource$Managedfolders$Insert
4269
+ extends StandardParameters {
4270
+ /**
4271
+ * Name of the bucket containing the managed folder.
4272
+ */
4273
+ bucket?: string;
4274
+
4275
+ /**
4276
+ * Request body metadata
4277
+ */
4278
+ requestBody?: Schema$ManagedFolder;
4279
+ }
4280
+ export interface Params$Resource$Managedfolders$List
4281
+ extends StandardParameters {
4282
+ /**
4283
+ * Name of the bucket containing the managed folder.
4284
+ */
4285
+ bucket?: string;
4286
+ /**
4287
+ * Maximum number of items return in a single page of responses.
4288
+ */
4289
+ pageSize?: number;
4290
+ /**
4291
+ * A previously-returned page token representing part of the larger set of results to view.
4292
+ */
4293
+ pageToken?: string;
4294
+ /**
4295
+ * The managed folder name/path prefix to filter the output list of results.
4296
+ */
4297
+ prefix?: string;
4298
+ }
4299
+ export interface Params$Resource$Managedfolders$Setiampolicy
4300
+ extends StandardParameters {
4301
+ /**
4302
+ * Name of the bucket containing the managed folder.
4303
+ */
4304
+ bucket?: string;
4305
+ /**
4306
+ * The managed folder name/path.
4307
+ */
4308
+ managedFolder?: string;
4309
+ /**
4310
+ * The project to be billed for this request. Required for Requester Pays buckets.
4311
+ */
4312
+ userProject?: string;
4313
+
4314
+ /**
4315
+ * Request body metadata
4316
+ */
4317
+ requestBody?: Schema$Policy;
4318
+ }
4319
+ export interface Params$Resource$Managedfolders$Testiampermissions
4320
+ extends StandardParameters {
4321
+ /**
4322
+ * Name of the bucket containing the managed folder.
4323
+ */
4324
+ bucket?: string;
4325
+ /**
4326
+ * The managed folder name/path.
4327
+ */
4328
+ managedFolder?: string;
4329
+ /**
4330
+ * Permissions to test.
4331
+ */
4332
+ permissions?: string[];
4333
+ /**
4334
+ * The project to be billed for this request. Required for Requester Pays buckets.
4335
+ */
4336
+ userProject?: string;
4337
+ }
4338
+
4339
+ export class Resource$Notifications {
4340
+ context: APIRequestContext;
4341
+ constructor(context: APIRequestContext) {
4342
+ this.context = context;
4343
+ }
4344
+
4345
+ /**
4346
+ * Permanently deletes a notification subscription.
4347
+ *
4348
+ * @param params - Parameters for request
4349
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4350
+ * @param callback - Optional callback that handles the response.
4351
+ * @returns A promise if used with async/await, or void if used with a callback.
4352
+ */
4353
+ delete(
4354
+ params: Params$Resource$Notifications$Delete,
4355
+ options: StreamMethodOptions
4356
+ ): GaxiosPromise<Readable>;
4357
+ delete(
4358
+ params?: Params$Resource$Notifications$Delete,
4359
+ options?: MethodOptions
4360
+ ): GaxiosPromise<void>;
4361
+ delete(
4362
+ params: Params$Resource$Notifications$Delete,
4363
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4364
+ callback: BodyResponseCallback<Readable>
4365
+ ): void;
4366
+ delete(
4367
+ params: Params$Resource$Notifications$Delete,
4368
+ options: MethodOptions | BodyResponseCallback<void>,
4369
+ callback: BodyResponseCallback<void>
4370
+ ): void;
4371
+ delete(
4372
+ params: Params$Resource$Notifications$Delete,
4373
+ callback: BodyResponseCallback<void>
4374
+ ): void;
4375
+ delete(callback: BodyResponseCallback<void>): void;
4376
+ delete(
4377
+ paramsOrCallback?:
4378
+ | Params$Resource$Notifications$Delete
4379
+ | BodyResponseCallback<void>
4380
+ | BodyResponseCallback<Readable>,
4381
+ optionsOrCallback?:
4382
+ | MethodOptions
4383
+ | StreamMethodOptions
4384
+ | BodyResponseCallback<void>
4385
+ | BodyResponseCallback<Readable>,
4386
+ callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
4387
+ ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
4388
+ let params = (paramsOrCallback ||
4389
+ {}) as Params$Resource$Notifications$Delete;
4390
+ let options = (optionsOrCallback || {}) as MethodOptions;
4391
+
4392
+ if (typeof paramsOrCallback === 'function') {
4393
+ callback = paramsOrCallback;
4394
+ params = {} as Params$Resource$Notifications$Delete;
4395
+ options = {};
4396
+ }
4397
+
4398
+ if (typeof optionsOrCallback === 'function') {
4399
+ callback = optionsOrCallback;
4400
+ options = {};
4401
+ }
4402
+
4403
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4404
+ const parameters = {
4405
+ options: Object.assign(
4406
+ {
4407
+ url: (
4408
+ rootUrl +
4409
+ '/storage/v1/b/{bucket}/notificationConfigs/{notification}'
4410
+ ).replace(/([^:]\/)\/+/g, '$1'),
4411
+ method: 'DELETE',
4412
+ },
4413
+ options
4414
+ ),
4415
+ params,
4416
+ requiredParams: ['bucket', 'notification'],
4417
+ pathParams: ['bucket', 'notification'],
4418
+ context: this.context,
4419
+ };
4420
+ if (callback) {
4421
+ createAPIRequest<void>(
4422
+ parameters,
4423
+ callback as BodyResponseCallback<unknown>
4424
+ );
4425
+ } else {
4426
+ return createAPIRequest<void>(parameters);
4427
+ }
4428
+ }
4429
+
4430
+ /**
4431
+ * View a notification configuration.
4432
+ *
4433
+ * @param params - Parameters for request
4434
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4435
+ * @param callback - Optional callback that handles the response.
4436
+ * @returns A promise if used with async/await, or void if used with a callback.
4437
+ */
4438
+ get(
4439
+ params: Params$Resource$Notifications$Get,
4440
+ options: StreamMethodOptions
4441
+ ): GaxiosPromise<Readable>;
4442
+ get(
4443
+ params?: Params$Resource$Notifications$Get,
4444
+ options?: MethodOptions
4445
+ ): GaxiosPromise<Schema$Notification>;
4446
+ get(
4447
+ params: Params$Resource$Notifications$Get,
4448
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4449
+ callback: BodyResponseCallback<Readable>
4450
+ ): void;
4451
+ get(
4452
+ params: Params$Resource$Notifications$Get,
4453
+ options: MethodOptions | BodyResponseCallback<Schema$Notification>,
4454
+ callback: BodyResponseCallback<Schema$Notification>
4455
+ ): void;
4456
+ get(
4457
+ params: Params$Resource$Notifications$Get,
4458
+ callback: BodyResponseCallback<Schema$Notification>
4459
+ ): void;
4460
+ get(callback: BodyResponseCallback<Schema$Notification>): void;
4461
+ get(
4462
+ paramsOrCallback?:
4463
+ | Params$Resource$Notifications$Get
4464
+ | BodyResponseCallback<Schema$Notification>
4465
+ | BodyResponseCallback<Readable>,
4466
+ optionsOrCallback?:
4467
+ | MethodOptions
4468
+ | StreamMethodOptions
4469
+ | BodyResponseCallback<Schema$Notification>
4470
+ | BodyResponseCallback<Readable>,
4471
+ callback?:
4472
+ | BodyResponseCallback<Schema$Notification>
4473
+ | BodyResponseCallback<Readable>
4474
+ ): void | GaxiosPromise<Schema$Notification> | GaxiosPromise<Readable> {
4475
+ let params = (paramsOrCallback ||
4476
+ {}) as Params$Resource$Notifications$Get;
4477
+ let options = (optionsOrCallback || {}) as MethodOptions;
4478
+
4479
+ if (typeof paramsOrCallback === 'function') {
4480
+ callback = paramsOrCallback;
4481
+ params = {} as Params$Resource$Notifications$Get;
4482
+ options = {};
4483
+ }
4484
+
4485
+ if (typeof optionsOrCallback === 'function') {
4486
+ callback = optionsOrCallback;
4487
+ options = {};
4488
+ }
4489
+
4490
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4491
+ const parameters = {
4492
+ options: Object.assign(
4493
+ {
4494
+ url: (
4495
+ rootUrl +
4496
+ '/storage/v1/b/{bucket}/notificationConfigs/{notification}'
4497
+ ).replace(/([^:]\/)\/+/g, '$1'),
4498
+ method: 'GET',
4499
+ },
4500
+ options
4501
+ ),
4502
+ params,
4503
+ requiredParams: ['bucket', 'notification'],
4504
+ pathParams: ['bucket', 'notification'],
4505
+ context: this.context,
4506
+ };
4507
+ if (callback) {
4508
+ createAPIRequest<Schema$Notification>(
4509
+ parameters,
4510
+ callback as BodyResponseCallback<unknown>
4511
+ );
4512
+ } else {
4513
+ return createAPIRequest<Schema$Notification>(parameters);
4514
+ }
4515
+ }
4516
+
4517
+ /**
4518
+ * Creates a notification subscription for a given bucket.
4519
+ *
4520
+ * @param params - Parameters for request
4521
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4522
+ * @param callback - Optional callback that handles the response.
4523
+ * @returns A promise if used with async/await, or void if used with a callback.
4524
+ */
4525
+ insert(
4526
+ params: Params$Resource$Notifications$Insert,
4527
+ options: StreamMethodOptions
4528
+ ): GaxiosPromise<Readable>;
4529
+ insert(
4530
+ params?: Params$Resource$Notifications$Insert,
4531
+ options?: MethodOptions
4532
+ ): GaxiosPromise<Schema$Notification>;
4533
+ insert(
4534
+ params: Params$Resource$Notifications$Insert,
4535
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4536
+ callback: BodyResponseCallback<Readable>
4537
+ ): void;
4538
+ insert(
4539
+ params: Params$Resource$Notifications$Insert,
4540
+ options: MethodOptions | BodyResponseCallback<Schema$Notification>,
4541
+ callback: BodyResponseCallback<Schema$Notification>
4542
+ ): void;
4543
+ insert(
4544
+ params: Params$Resource$Notifications$Insert,
4545
+ callback: BodyResponseCallback<Schema$Notification>
4546
+ ): void;
4547
+ insert(callback: BodyResponseCallback<Schema$Notification>): void;
4548
+ insert(
4549
+ paramsOrCallback?:
4550
+ | Params$Resource$Notifications$Insert
4551
+ | BodyResponseCallback<Schema$Notification>
4552
+ | BodyResponseCallback<Readable>,
4553
+ optionsOrCallback?:
4554
+ | MethodOptions
4555
+ | StreamMethodOptions
4556
+ | BodyResponseCallback<Schema$Notification>
4557
+ | BodyResponseCallback<Readable>,
4558
+ callback?:
4559
+ | BodyResponseCallback<Schema$Notification>
4560
+ | BodyResponseCallback<Readable>
4561
+ ): void | GaxiosPromise<Schema$Notification> | GaxiosPromise<Readable> {
4562
+ let params = (paramsOrCallback ||
4563
+ {}) as Params$Resource$Notifications$Insert;
4564
+ let options = (optionsOrCallback || {}) as MethodOptions;
4565
+
4566
+ if (typeof paramsOrCallback === 'function') {
4567
+ callback = paramsOrCallback;
4568
+ params = {} as Params$Resource$Notifications$Insert;
4569
+ options = {};
4570
+ }
4571
+
4572
+ if (typeof optionsOrCallback === 'function') {
4573
+ callback = optionsOrCallback;
4574
+ options = {};
4575
+ }
4576
+
4577
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4578
+ const parameters = {
4579
+ options: Object.assign(
4580
+ {
4581
+ url: (
4582
+ rootUrl + '/storage/v1/b/{bucket}/notificationConfigs'
4583
+ ).replace(/([^:]\/)\/+/g, '$1'),
4584
+ method: 'POST',
4585
+ },
4586
+ options
4587
+ ),
4588
+ params,
4589
+ requiredParams: ['bucket'],
4590
+ pathParams: ['bucket'],
4591
+ context: this.context,
4592
+ };
4593
+ if (callback) {
4594
+ createAPIRequest<Schema$Notification>(
4595
+ parameters,
4596
+ callback as BodyResponseCallback<unknown>
4597
+ );
4598
+ } else {
4599
+ return createAPIRequest<Schema$Notification>(parameters);
4600
+ }
4601
+ }
4602
+
4603
+ /**
4604
+ * Retrieves a list of notification subscriptions for a given bucket.
4605
+ *
4606
+ * @param params - Parameters for request
4607
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4608
+ * @param callback - Optional callback that handles the response.
4609
+ * @returns A promise if used with async/await, or void if used with a callback.
4610
+ */
4611
+ list(
4612
+ params: Params$Resource$Notifications$List,
4613
+ options: StreamMethodOptions
4614
+ ): GaxiosPromise<Readable>;
4615
+ list(
4616
+ params?: Params$Resource$Notifications$List,
4617
+ options?: MethodOptions
4618
+ ): GaxiosPromise<Schema$Notifications>;
4619
+ list(
4620
+ params: Params$Resource$Notifications$List,
4621
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4622
+ callback: BodyResponseCallback<Readable>
4623
+ ): void;
4624
+ list(
4625
+ params: Params$Resource$Notifications$List,
4626
+ options: MethodOptions | BodyResponseCallback<Schema$Notifications>,
4627
+ callback: BodyResponseCallback<Schema$Notifications>
4628
+ ): void;
4629
+ list(
4630
+ params: Params$Resource$Notifications$List,
4631
+ callback: BodyResponseCallback<Schema$Notifications>
4632
+ ): void;
4633
+ list(callback: BodyResponseCallback<Schema$Notifications>): void;
4634
+ list(
4635
+ paramsOrCallback?:
4636
+ | Params$Resource$Notifications$List
4637
+ | BodyResponseCallback<Schema$Notifications>
4638
+ | BodyResponseCallback<Readable>,
4639
+ optionsOrCallback?:
4640
+ | MethodOptions
4641
+ | StreamMethodOptions
4642
+ | BodyResponseCallback<Schema$Notifications>
4643
+ | BodyResponseCallback<Readable>,
4644
+ callback?:
4645
+ | BodyResponseCallback<Schema$Notifications>
4646
+ | BodyResponseCallback<Readable>
4647
+ ): void | GaxiosPromise<Schema$Notifications> | GaxiosPromise<Readable> {
4648
+ let params = (paramsOrCallback ||
4649
+ {}) as Params$Resource$Notifications$List;
4650
+ let options = (optionsOrCallback || {}) as MethodOptions;
4651
+
4652
+ if (typeof paramsOrCallback === 'function') {
4653
+ callback = paramsOrCallback;
4654
+ params = {} as Params$Resource$Notifications$List;
4655
+ options = {};
4656
+ }
4657
+
4658
+ if (typeof optionsOrCallback === 'function') {
4659
+ callback = optionsOrCallback;
4660
+ options = {};
4661
+ }
4662
+
4663
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4664
+ const parameters = {
4665
+ options: Object.assign(
4666
+ {
4667
+ url: (
4668
+ rootUrl + '/storage/v1/b/{bucket}/notificationConfigs'
4669
+ ).replace(/([^:]\/)\/+/g, '$1'),
4670
+ method: 'GET',
4671
+ },
4672
+ options
4673
+ ),
4674
+ params,
4675
+ requiredParams: ['bucket'],
4676
+ pathParams: ['bucket'],
4677
+ context: this.context,
4678
+ };
4679
+ if (callback) {
4680
+ createAPIRequest<Schema$Notifications>(
4681
+ parameters,
4682
+ callback as BodyResponseCallback<unknown>
4683
+ );
4684
+ } else {
4685
+ return createAPIRequest<Schema$Notifications>(parameters);
4686
+ }
4687
+ }
4688
+ }
4689
+
4690
+ export interface Params$Resource$Notifications$Delete
4691
+ extends StandardParameters {
4692
+ /**
4693
+ * The parent bucket of the notification.
4694
+ */
4695
+ bucket?: string;
4696
+ /**
4697
+ * ID of the notification to delete.
4698
+ */
4699
+ notification?: string;
4700
+ /**
4701
+ * The project to be billed for this request. Required for Requester Pays buckets.
4702
+ */
4703
+ userProject?: string;
4704
+ }
4705
+ export interface Params$Resource$Notifications$Get
4706
+ extends StandardParameters {
4707
+ /**
4708
+ * The parent bucket of the notification.
4709
+ */
4710
+ bucket?: string;
4711
+ /**
4712
+ * Notification ID
4713
+ */
4714
+ notification?: string;
4715
+ /**
4716
+ * The project to be billed for this request. Required for Requester Pays buckets.
4717
+ */
4718
+ userProject?: string;
4719
+ }
4720
+ export interface Params$Resource$Notifications$Insert
4721
+ extends StandardParameters {
4722
+ /**
4723
+ * The parent bucket of the notification.
4724
+ */
4725
+ bucket?: string;
4726
+ /**
4727
+ * The project to be billed for this request. Required for Requester Pays buckets.
4728
+ */
4729
+ userProject?: string;
4730
+
4731
+ /**
4732
+ * Request body metadata
4733
+ */
4734
+ requestBody?: Schema$Notification;
4735
+ }
4736
+ export interface Params$Resource$Notifications$List
4737
+ extends StandardParameters {
4738
+ /**
4739
+ * Name of a Google Cloud Storage bucket.
4740
+ */
4741
+ bucket?: string;
4742
+ /**
4743
+ * The project to be billed for this request. Required for Requester Pays buckets.
4744
+ */
4745
+ userProject?: string;
4746
+ }
4747
+
4748
+ export class Resource$Objectaccesscontrols {
4749
+ context: APIRequestContext;
4750
+ constructor(context: APIRequestContext) {
4751
+ this.context = context;
4752
+ }
4753
+
4754
+ /**
4755
+ * Permanently deletes the ACL entry for the specified entity on the specified object.
4756
+ *
4757
+ * @param params - Parameters for request
4758
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4759
+ * @param callback - Optional callback that handles the response.
4760
+ * @returns A promise if used with async/await, or void if used with a callback.
4761
+ */
4762
+ delete(
4763
+ params: Params$Resource$Objectaccesscontrols$Delete,
4764
+ options: StreamMethodOptions
4765
+ ): GaxiosPromise<Readable>;
4766
+ delete(
4767
+ params?: Params$Resource$Objectaccesscontrols$Delete,
4768
+ options?: MethodOptions
4769
+ ): GaxiosPromise<void>;
4770
+ delete(
4771
+ params: Params$Resource$Objectaccesscontrols$Delete,
4772
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4773
+ callback: BodyResponseCallback<Readable>
4774
+ ): void;
4775
+ delete(
4776
+ params: Params$Resource$Objectaccesscontrols$Delete,
4777
+ options: MethodOptions | BodyResponseCallback<void>,
4778
+ callback: BodyResponseCallback<void>
4779
+ ): void;
4780
+ delete(
4781
+ params: Params$Resource$Objectaccesscontrols$Delete,
4782
+ callback: BodyResponseCallback<void>
4783
+ ): void;
4784
+ delete(callback: BodyResponseCallback<void>): void;
4785
+ delete(
4786
+ paramsOrCallback?:
4787
+ | Params$Resource$Objectaccesscontrols$Delete
4788
+ | BodyResponseCallback<void>
4789
+ | BodyResponseCallback<Readable>,
4790
+ optionsOrCallback?:
4791
+ | MethodOptions
4792
+ | StreamMethodOptions
4793
+ | BodyResponseCallback<void>
3985
4794
  | BodyResponseCallback<Readable>,
3986
4795
  callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
3987
4796
  ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
@@ -6253,6 +7062,10 @@ export namespace storage_v1 {
6253
7062
  * Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
6254
7063
  */
6255
7064
  endOffset?: string;
7065
+ /**
7066
+ * Only applicable if delimiter is set to '/'. If true, will also include folders and managed folders (besides objects) in the returned prefixes.
7067
+ */
7068
+ includeFoldersAsPrefixes?: boolean;
6256
7069
  /**
6257
7070
  * If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
6258
7071
  */