@googleapis/securitycenter 9.0.0 → 11.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,38 +697,6 @@ 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
- }
732
700
  delete(paramsOrCallback, optionsOrCallback, callback) {
733
701
  let params = (paramsOrCallback ||
734
702
  {});
@@ -793,38 +761,6 @@ var securitycenter_v1;
793
761
  return (0, googleapis_common_1.createAPIRequest)(parameters);
794
762
  }
795
763
  }
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
- }
828
764
  patch(paramsOrCallback, optionsOrCallback, callback) {
829
765
  let params = (paramsOrCallback ||
830
766
  {});
@@ -1793,6 +1729,7 @@ var securitycenter_v1;
1793
1729
  constructor(context) {
1794
1730
  this.context = context;
1795
1731
  this.assets = new Resource$Organizations$Assets(this.context);
1732
+ this.attackPaths = new Resource$Organizations$Attackpaths(this.context);
1796
1733
  this.bigQueryExports = new Resource$Organizations$Bigqueryexports(this.context);
1797
1734
  this.eventThreatDetectionSettings =
1798
1735
  new Resource$Organizations$Eventthreatdetectionsettings(this.context);
@@ -1807,6 +1744,7 @@ var securitycenter_v1;
1807
1744
  new Resource$Organizations$Securityhealthanalyticssettings(this.context);
1808
1745
  this.simulations = new Resource$Organizations$Simulations(this.context);
1809
1746
  this.sources = new Resource$Organizations$Sources(this.context);
1747
+ this.valuedResources = new Resource$Organizations$Valuedresources(this.context);
1810
1748
  }
1811
1749
  getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) {
1812
1750
  let params = (paramsOrCallback ||
@@ -2008,6 +1946,44 @@ var securitycenter_v1;
2008
1946
  }
2009
1947
  }
2010
1948
  securitycenter_v1.Resource$Organizations$Assets = Resource$Organizations$Assets;
1949
+ class Resource$Organizations$Attackpaths {
1950
+ constructor(context) {
1951
+ this.context = context;
1952
+ }
1953
+ list(paramsOrCallback, optionsOrCallback, callback) {
1954
+ let params = (paramsOrCallback ||
1955
+ {});
1956
+ let options = (optionsOrCallback || {});
1957
+ if (typeof paramsOrCallback === 'function') {
1958
+ callback = paramsOrCallback;
1959
+ params = {};
1960
+ options = {};
1961
+ }
1962
+ if (typeof optionsOrCallback === 'function') {
1963
+ callback = optionsOrCallback;
1964
+ options = {};
1965
+ }
1966
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
1967
+ const parameters = {
1968
+ options: Object.assign({
1969
+ url: (rootUrl + '/v1/{+parent}/attackPaths').replace(/([^:]\/)\/+/g, '$1'),
1970
+ method: 'GET',
1971
+ apiVersion: '',
1972
+ }, options),
1973
+ params,
1974
+ requiredParams: ['parent'],
1975
+ pathParams: ['parent'],
1976
+ context: this.context,
1977
+ };
1978
+ if (callback) {
1979
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1980
+ }
1981
+ else {
1982
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1983
+ }
1984
+ }
1985
+ }
1986
+ securitycenter_v1.Resource$Organizations$Attackpaths = Resource$Organizations$Attackpaths;
2011
1987
  class Resource$Organizations$Bigqueryexports {
2012
1988
  constructor(context) {
2013
1989
  this.context = context;
@@ -2542,39 +2518,6 @@ var securitycenter_v1;
2542
2518
  constructor(context) {
2543
2519
  this.context = context;
2544
2520
  }
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
- }
2578
2521
  delete(paramsOrCallback, optionsOrCallback, callback) {
2579
2522
  let params = (paramsOrCallback ||
2580
2523
  {});
@@ -2640,38 +2583,6 @@ var securitycenter_v1;
2640
2583
  return (0, googleapis_common_1.createAPIRequest)(parameters);
2641
2584
  }
2642
2585
  }
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
- }
2675
2586
  patch(paramsOrCallback, optionsOrCallback, callback) {
2676
2587
  let params = (paramsOrCallback ||
2677
2588
  {});
@@ -4446,6 +4357,44 @@ var securitycenter_v1;
4446
4357
  }
4447
4358
  }
4448
4359
  securitycenter_v1.Resource$Organizations$Sources$Findings$Externalsystems = Resource$Organizations$Sources$Findings$Externalsystems;
4360
+ class Resource$Organizations$Valuedresources {
4361
+ constructor(context) {
4362
+ this.context = context;
4363
+ }
4364
+ list(paramsOrCallback, optionsOrCallback, callback) {
4365
+ let params = (paramsOrCallback ||
4366
+ {});
4367
+ let options = (optionsOrCallback || {});
4368
+ if (typeof paramsOrCallback === 'function') {
4369
+ callback = paramsOrCallback;
4370
+ params = {};
4371
+ options = {};
4372
+ }
4373
+ if (typeof optionsOrCallback === 'function') {
4374
+ callback = optionsOrCallback;
4375
+ options = {};
4376
+ }
4377
+ const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/';
4378
+ const parameters = {
4379
+ options: Object.assign({
4380
+ url: (rootUrl + '/v1/{+parent}/valuedResources').replace(/([^:]\/)\/+/g, '$1'),
4381
+ method: 'GET',
4382
+ apiVersion: '',
4383
+ }, options),
4384
+ params,
4385
+ requiredParams: ['parent'],
4386
+ pathParams: ['parent'],
4387
+ context: this.context,
4388
+ };
4389
+ if (callback) {
4390
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4391
+ }
4392
+ else {
4393
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4394
+ }
4395
+ }
4396
+ }
4397
+ securitycenter_v1.Resource$Organizations$Valuedresources = Resource$Organizations$Valuedresources;
4449
4398
  class Resource$Projects {
4450
4399
  constructor(context) {
4451
4400
  this.context = context;
@@ -5099,38 +5048,6 @@ var securitycenter_v1;
5099
5048
  constructor(context) {
5100
5049
  this.context = context;
5101
5050
  }
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
- }
5134
5051
  delete(paramsOrCallback, optionsOrCallback, callback) {
5135
5052
  let params = (paramsOrCallback ||
5136
5053
  {});
@@ -5195,38 +5112,6 @@ var securitycenter_v1;
5195
5112
  return (0, googleapis_common_1.createAPIRequest)(parameters);
5196
5113
  }
5197
5114
  }
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
- }
5230
5115
  patch(paramsOrCallback, optionsOrCallback, callback) {
5231
5116
  let params = (paramsOrCallback ||
5232
5117
  {});