@googleapis/securitycenter 8.1.0 → 9.0.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/build/v1.js CHANGED
@@ -697,6 +697,38 @@ var securitycenter_v1;
697
697
  constructor(context) {
698
698
  this.context = context;
699
699
  }
700
+ create(paramsOrCallback, optionsOrCallback, callback) {
701
+ let params = (paramsOrCallback ||
702
+ {});
703
+ let options = (optionsOrCallback || {});
704
+ if (typeof paramsOrCallback === 'function') {
705
+ callback = paramsOrCallback;
706
+ params = {};
707
+ options = {};
708
+ }
709
+ if (typeof optionsOrCallback === 'function') {
710
+ callback = optionsOrCallback;
711
+ options = {};
712
+ }
713
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
714
+ const parameters = {
715
+ options: Object.assign({
716
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'),
717
+ method: 'POST',
718
+ apiVersion: '',
719
+ }, options),
720
+ params,
721
+ requiredParams: ['parent'],
722
+ pathParams: ['parent'],
723
+ context: this.context,
724
+ };
725
+ if (callback) {
726
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
727
+ }
728
+ else {
729
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
730
+ }
731
+ }
700
732
  delete(paramsOrCallback, optionsOrCallback, callback) {
701
733
  let params = (paramsOrCallback ||
702
734
  {});
@@ -761,6 +793,38 @@ var securitycenter_v1;
761
793
  return (0, googleapis_common_1.createAPIRequest)(parameters);
762
794
  }
763
795
  }
796
+ list(paramsOrCallback, optionsOrCallback, callback) {
797
+ let params = (paramsOrCallback ||
798
+ {});
799
+ let options = (optionsOrCallback || {});
800
+ if (typeof paramsOrCallback === 'function') {
801
+ callback = paramsOrCallback;
802
+ params = {};
803
+ options = {};
804
+ }
805
+ if (typeof optionsOrCallback === 'function') {
806
+ callback = optionsOrCallback;
807
+ options = {};
808
+ }
809
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
810
+ const parameters = {
811
+ options: Object.assign({
812
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
813
+ method: 'GET',
814
+ apiVersion: '',
815
+ }, options),
816
+ params,
817
+ requiredParams: ['parent'],
818
+ pathParams: ['parent'],
819
+ context: this.context,
820
+ };
821
+ if (callback) {
822
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
823
+ }
824
+ else {
825
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
826
+ }
827
+ }
764
828
  patch(paramsOrCallback, optionsOrCallback, callback) {
765
829
  let params = (paramsOrCallback ||
766
830
  {});
@@ -2478,6 +2542,39 @@ var securitycenter_v1;
2478
2542
  constructor(context) {
2479
2543
  this.context = context;
2480
2544
  }
2545
+ create(paramsOrCallback, optionsOrCallback, callback) {
2546
+ let params = (paramsOrCallback ||
2547
+ {});
2548
+ let options = (optionsOrCallback || {});
2549
+ if (typeof paramsOrCallback === 'function') {
2550
+ callback = paramsOrCallback;
2551
+ params =
2552
+ {};
2553
+ options = {};
2554
+ }
2555
+ if (typeof optionsOrCallback === 'function') {
2556
+ callback = optionsOrCallback;
2557
+ options = {};
2558
+ }
2559
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
2560
+ const parameters = {
2561
+ options: Object.assign({
2562
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'),
2563
+ method: 'POST',
2564
+ apiVersion: '',
2565
+ }, options),
2566
+ params,
2567
+ requiredParams: ['parent'],
2568
+ pathParams: ['parent'],
2569
+ context: this.context,
2570
+ };
2571
+ if (callback) {
2572
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2573
+ }
2574
+ else {
2575
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2576
+ }
2577
+ }
2481
2578
  delete(paramsOrCallback, optionsOrCallback, callback) {
2482
2579
  let params = (paramsOrCallback ||
2483
2580
  {});
@@ -2543,6 +2640,38 @@ var securitycenter_v1;
2543
2640
  return (0, googleapis_common_1.createAPIRequest)(parameters);
2544
2641
  }
2545
2642
  }
2643
+ list(paramsOrCallback, optionsOrCallback, callback) {
2644
+ let params = (paramsOrCallback ||
2645
+ {});
2646
+ let options = (optionsOrCallback || {});
2647
+ if (typeof paramsOrCallback === 'function') {
2648
+ callback = paramsOrCallback;
2649
+ params = {};
2650
+ options = {};
2651
+ }
2652
+ if (typeof optionsOrCallback === 'function') {
2653
+ callback = optionsOrCallback;
2654
+ options = {};
2655
+ }
2656
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
2657
+ const parameters = {
2658
+ options: Object.assign({
2659
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
2660
+ method: 'GET',
2661
+ apiVersion: '',
2662
+ }, options),
2663
+ params,
2664
+ requiredParams: ['parent'],
2665
+ pathParams: ['parent'],
2666
+ context: this.context,
2667
+ };
2668
+ if (callback) {
2669
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2670
+ }
2671
+ else {
2672
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2673
+ }
2674
+ }
2546
2675
  patch(paramsOrCallback, optionsOrCallback, callback) {
2547
2676
  let params = (paramsOrCallback ||
2548
2677
  {});
@@ -4970,6 +5099,38 @@ var securitycenter_v1;
4970
5099
  constructor(context) {
4971
5100
  this.context = context;
4972
5101
  }
5102
+ create(paramsOrCallback, optionsOrCallback, callback) {
5103
+ let params = (paramsOrCallback ||
5104
+ {});
5105
+ let options = (optionsOrCallback || {});
5106
+ if (typeof paramsOrCallback === 'function') {
5107
+ callback = paramsOrCallback;
5108
+ params = {};
5109
+ options = {};
5110
+ }
5111
+ if (typeof optionsOrCallback === 'function') {
5112
+ callback = optionsOrCallback;
5113
+ options = {};
5114
+ }
5115
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
5116
+ const parameters = {
5117
+ options: Object.assign({
5118
+ url: (rootUrl + '/v1/{+parent}/muteConfigs').replace(/([^:]\/)\/+/g, '$1'),
5119
+ method: 'POST',
5120
+ apiVersion: '',
5121
+ }, options),
5122
+ params,
5123
+ requiredParams: ['parent'],
5124
+ pathParams: ['parent'],
5125
+ context: this.context,
5126
+ };
5127
+ if (callback) {
5128
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
5129
+ }
5130
+ else {
5131
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
5132
+ }
5133
+ }
4973
5134
  delete(paramsOrCallback, optionsOrCallback, callback) {
4974
5135
  let params = (paramsOrCallback ||
4975
5136
  {});
@@ -5034,6 +5195,38 @@ var securitycenter_v1;
5034
5195
  return (0, googleapis_common_1.createAPIRequest)(parameters);
5035
5196
  }
5036
5197
  }
5198
+ list(paramsOrCallback, optionsOrCallback, callback) {
5199
+ let params = (paramsOrCallback ||
5200
+ {});
5201
+ let options = (optionsOrCallback || {});
5202
+ if (typeof paramsOrCallback === 'function') {
5203
+ callback = paramsOrCallback;
5204
+ params = {};
5205
+ options = {};
5206
+ }
5207
+ if (typeof optionsOrCallback === 'function') {
5208
+ callback = optionsOrCallback;
5209
+ options = {};
5210
+ }
5211
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
5212
+ const parameters = {
5213
+ options: Object.assign({
5214
+ url: (rootUrl + '/v1/{+parent}').replace(/([^:]\/)\/+/g, '$1'),
5215
+ method: 'GET',
5216
+ apiVersion: '',
5217
+ }, options),
5218
+ params,
5219
+ requiredParams: ['parent'],
5220
+ pathParams: ['parent'],
5221
+ context: this.context,
5222
+ };
5223
+ if (callback) {
5224
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
5225
+ }
5226
+ else {
5227
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
5228
+ }
5229
+ }
5037
5230
  patch(paramsOrCallback, optionsOrCallback, callback) {
5038
5231
  let params = (paramsOrCallback ||
5039
5232
  {});