@maxim_mazurok/gapi.client.dlp-v2 0.0.20231008 → 0.0.20231022

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.
Files changed (3) hide show
  1. package/index.d.ts +1677 -864
  2. package/package.json +1 -1
  3. package/tests.ts +499 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dlp-v2",
3
- "version": "0.0.20231008",
3
+ "version": "0.0.20231022",
4
4
  "description": "TypeScript typings for Cloud Data Loss Prevention (DLP) v2",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20231008
6
+ // Revision: 20231022
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -3954,6 +3954,255 @@ gapi.load('client', async () => {
3954
3954
  },
3955
3955
  updateMask: "Test string",
3956
3956
  });
3957
+ /** Creates a config for discovery to scan and profile storage. */
3958
+ await gapi.client.dlp.organizations.locations.discoveryConfigs.create({
3959
+ parent: "Test string",
3960
+ }, {
3961
+ configId: "Test string",
3962
+ discoveryConfig: {
3963
+ actions: [
3964
+ {
3965
+ exportData: {
3966
+ profileTable: {
3967
+ datasetId: "Test string",
3968
+ projectId: "Test string",
3969
+ tableId: "Test string",
3970
+ },
3971
+ },
3972
+ pubSubNotification: {
3973
+ detailOfMessage: "Test string",
3974
+ event: "Test string",
3975
+ pubsubCondition: {
3976
+ expressions: {
3977
+ conditions: [
3978
+ {
3979
+ minimumRiskScore: "Test string",
3980
+ minimumSensitivityScore: "Test string",
3981
+ }
3982
+ ],
3983
+ logicalOperator: "Test string",
3984
+ },
3985
+ },
3986
+ topic: "Test string",
3987
+ },
3988
+ }
3989
+ ],
3990
+ createTime: "Test string",
3991
+ displayName: "Test string",
3992
+ errors: [
3993
+ {
3994
+ details: {
3995
+ code: 42,
3996
+ details: [
3997
+ {
3998
+ A: 42
3999
+ }
4000
+ ],
4001
+ message: "Test string",
4002
+ },
4003
+ timestamps: [
4004
+ "Test string"
4005
+ ],
4006
+ }
4007
+ ],
4008
+ inspectTemplates: [
4009
+ "Test string"
4010
+ ],
4011
+ lastRunTime: "Test string",
4012
+ name: "Test string",
4013
+ orgConfig: {
4014
+ location: {
4015
+ folderId: "Test string",
4016
+ organizationId: "Test string",
4017
+ },
4018
+ projectId: "Test string",
4019
+ },
4020
+ status: "Test string",
4021
+ targets: [
4022
+ {
4023
+ bigQueryTarget: {
4024
+ cadence: {
4025
+ schemaModifiedCadence: {
4026
+ frequency: "Test string",
4027
+ types: [
4028
+ "Test string"
4029
+ ],
4030
+ },
4031
+ tableModifiedCadence: {
4032
+ frequency: "Test string",
4033
+ types: [
4034
+ "Test string"
4035
+ ],
4036
+ },
4037
+ },
4038
+ conditions: {
4039
+ createdAfter: "Test string",
4040
+ orConditions: {
4041
+ minAge: "Test string",
4042
+ minRowCount: 42,
4043
+ },
4044
+ typeCollection: "Test string",
4045
+ types: {
4046
+ types: [
4047
+ "Test string"
4048
+ ],
4049
+ },
4050
+ },
4051
+ disabled: {
4052
+ },
4053
+ filter: {
4054
+ otherTables: {
4055
+ },
4056
+ tables: {
4057
+ includeRegexes: {
4058
+ patterns: [
4059
+ {
4060
+ datasetIdRegex: "Test string",
4061
+ projectIdRegex: "Test string",
4062
+ tableIdRegex: "Test string",
4063
+ }
4064
+ ],
4065
+ },
4066
+ },
4067
+ },
4068
+ },
4069
+ }
4070
+ ],
4071
+ updateTime: "Test string",
4072
+ },
4073
+ });
4074
+ /** Deletes a discovery configuration. */
4075
+ await gapi.client.dlp.organizations.locations.discoveryConfigs.delete({
4076
+ name: "Test string",
4077
+ });
4078
+ /** Gets a discovery configuration. */
4079
+ await gapi.client.dlp.organizations.locations.discoveryConfigs.get({
4080
+ name: "Test string",
4081
+ });
4082
+ /** Lists discovery configurations. */
4083
+ await gapi.client.dlp.organizations.locations.discoveryConfigs.list({
4084
+ orderBy: "Test string",
4085
+ pageSize: 42,
4086
+ pageToken: "Test string",
4087
+ parent: "Test string",
4088
+ });
4089
+ /** Updates a discovery configuration. */
4090
+ await gapi.client.dlp.organizations.locations.discoveryConfigs.patch({
4091
+ name: "Test string",
4092
+ }, {
4093
+ discoveryConfig: {
4094
+ actions: [
4095
+ {
4096
+ exportData: {
4097
+ profileTable: {
4098
+ datasetId: "Test string",
4099
+ projectId: "Test string",
4100
+ tableId: "Test string",
4101
+ },
4102
+ },
4103
+ pubSubNotification: {
4104
+ detailOfMessage: "Test string",
4105
+ event: "Test string",
4106
+ pubsubCondition: {
4107
+ expressions: {
4108
+ conditions: [
4109
+ {
4110
+ minimumRiskScore: "Test string",
4111
+ minimumSensitivityScore: "Test string",
4112
+ }
4113
+ ],
4114
+ logicalOperator: "Test string",
4115
+ },
4116
+ },
4117
+ topic: "Test string",
4118
+ },
4119
+ }
4120
+ ],
4121
+ createTime: "Test string",
4122
+ displayName: "Test string",
4123
+ errors: [
4124
+ {
4125
+ details: {
4126
+ code: 42,
4127
+ details: [
4128
+ {
4129
+ A: 42
4130
+ }
4131
+ ],
4132
+ message: "Test string",
4133
+ },
4134
+ timestamps: [
4135
+ "Test string"
4136
+ ],
4137
+ }
4138
+ ],
4139
+ inspectTemplates: [
4140
+ "Test string"
4141
+ ],
4142
+ lastRunTime: "Test string",
4143
+ name: "Test string",
4144
+ orgConfig: {
4145
+ location: {
4146
+ folderId: "Test string",
4147
+ organizationId: "Test string",
4148
+ },
4149
+ projectId: "Test string",
4150
+ },
4151
+ status: "Test string",
4152
+ targets: [
4153
+ {
4154
+ bigQueryTarget: {
4155
+ cadence: {
4156
+ schemaModifiedCadence: {
4157
+ frequency: "Test string",
4158
+ types: [
4159
+ "Test string"
4160
+ ],
4161
+ },
4162
+ tableModifiedCadence: {
4163
+ frequency: "Test string",
4164
+ types: [
4165
+ "Test string"
4166
+ ],
4167
+ },
4168
+ },
4169
+ conditions: {
4170
+ createdAfter: "Test string",
4171
+ orConditions: {
4172
+ minAge: "Test string",
4173
+ minRowCount: 42,
4174
+ },
4175
+ typeCollection: "Test string",
4176
+ types: {
4177
+ types: [
4178
+ "Test string"
4179
+ ],
4180
+ },
4181
+ },
4182
+ disabled: {
4183
+ },
4184
+ filter: {
4185
+ otherTables: {
4186
+ },
4187
+ tables: {
4188
+ includeRegexes: {
4189
+ patterns: [
4190
+ {
4191
+ datasetIdRegex: "Test string",
4192
+ projectIdRegex: "Test string",
4193
+ tableIdRegex: "Test string",
4194
+ }
4195
+ ],
4196
+ },
4197
+ },
4198
+ },
4199
+ },
4200
+ }
4201
+ ],
4202
+ updateTime: "Test string",
4203
+ },
4204
+ updateMask: "Test string",
4205
+ });
3957
4206
  /**
3958
4207
  * Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to
3959
4208
  * learn more.
@@ -15422,6 +15671,255 @@ gapi.load('client', async () => {
15422
15671
  },
15423
15672
  updateMask: "Test string",
15424
15673
  });
15674
+ /** Creates a config for discovery to scan and profile storage. */
15675
+ await gapi.client.dlp.projects.locations.discoveryConfigs.create({
15676
+ parent: "Test string",
15677
+ }, {
15678
+ configId: "Test string",
15679
+ discoveryConfig: {
15680
+ actions: [
15681
+ {
15682
+ exportData: {
15683
+ profileTable: {
15684
+ datasetId: "Test string",
15685
+ projectId: "Test string",
15686
+ tableId: "Test string",
15687
+ },
15688
+ },
15689
+ pubSubNotification: {
15690
+ detailOfMessage: "Test string",
15691
+ event: "Test string",
15692
+ pubsubCondition: {
15693
+ expressions: {
15694
+ conditions: [
15695
+ {
15696
+ minimumRiskScore: "Test string",
15697
+ minimumSensitivityScore: "Test string",
15698
+ }
15699
+ ],
15700
+ logicalOperator: "Test string",
15701
+ },
15702
+ },
15703
+ topic: "Test string",
15704
+ },
15705
+ }
15706
+ ],
15707
+ createTime: "Test string",
15708
+ displayName: "Test string",
15709
+ errors: [
15710
+ {
15711
+ details: {
15712
+ code: 42,
15713
+ details: [
15714
+ {
15715
+ A: 42
15716
+ }
15717
+ ],
15718
+ message: "Test string",
15719
+ },
15720
+ timestamps: [
15721
+ "Test string"
15722
+ ],
15723
+ }
15724
+ ],
15725
+ inspectTemplates: [
15726
+ "Test string"
15727
+ ],
15728
+ lastRunTime: "Test string",
15729
+ name: "Test string",
15730
+ orgConfig: {
15731
+ location: {
15732
+ folderId: "Test string",
15733
+ organizationId: "Test string",
15734
+ },
15735
+ projectId: "Test string",
15736
+ },
15737
+ status: "Test string",
15738
+ targets: [
15739
+ {
15740
+ bigQueryTarget: {
15741
+ cadence: {
15742
+ schemaModifiedCadence: {
15743
+ frequency: "Test string",
15744
+ types: [
15745
+ "Test string"
15746
+ ],
15747
+ },
15748
+ tableModifiedCadence: {
15749
+ frequency: "Test string",
15750
+ types: [
15751
+ "Test string"
15752
+ ],
15753
+ },
15754
+ },
15755
+ conditions: {
15756
+ createdAfter: "Test string",
15757
+ orConditions: {
15758
+ minAge: "Test string",
15759
+ minRowCount: 42,
15760
+ },
15761
+ typeCollection: "Test string",
15762
+ types: {
15763
+ types: [
15764
+ "Test string"
15765
+ ],
15766
+ },
15767
+ },
15768
+ disabled: {
15769
+ },
15770
+ filter: {
15771
+ otherTables: {
15772
+ },
15773
+ tables: {
15774
+ includeRegexes: {
15775
+ patterns: [
15776
+ {
15777
+ datasetIdRegex: "Test string",
15778
+ projectIdRegex: "Test string",
15779
+ tableIdRegex: "Test string",
15780
+ }
15781
+ ],
15782
+ },
15783
+ },
15784
+ },
15785
+ },
15786
+ }
15787
+ ],
15788
+ updateTime: "Test string",
15789
+ },
15790
+ });
15791
+ /** Deletes a discovery configuration. */
15792
+ await gapi.client.dlp.projects.locations.discoveryConfigs.delete({
15793
+ name: "Test string",
15794
+ });
15795
+ /** Gets a discovery configuration. */
15796
+ await gapi.client.dlp.projects.locations.discoveryConfigs.get({
15797
+ name: "Test string",
15798
+ });
15799
+ /** Lists discovery configurations. */
15800
+ await gapi.client.dlp.projects.locations.discoveryConfigs.list({
15801
+ orderBy: "Test string",
15802
+ pageSize: 42,
15803
+ pageToken: "Test string",
15804
+ parent: "Test string",
15805
+ });
15806
+ /** Updates a discovery configuration. */
15807
+ await gapi.client.dlp.projects.locations.discoveryConfigs.patch({
15808
+ name: "Test string",
15809
+ }, {
15810
+ discoveryConfig: {
15811
+ actions: [
15812
+ {
15813
+ exportData: {
15814
+ profileTable: {
15815
+ datasetId: "Test string",
15816
+ projectId: "Test string",
15817
+ tableId: "Test string",
15818
+ },
15819
+ },
15820
+ pubSubNotification: {
15821
+ detailOfMessage: "Test string",
15822
+ event: "Test string",
15823
+ pubsubCondition: {
15824
+ expressions: {
15825
+ conditions: [
15826
+ {
15827
+ minimumRiskScore: "Test string",
15828
+ minimumSensitivityScore: "Test string",
15829
+ }
15830
+ ],
15831
+ logicalOperator: "Test string",
15832
+ },
15833
+ },
15834
+ topic: "Test string",
15835
+ },
15836
+ }
15837
+ ],
15838
+ createTime: "Test string",
15839
+ displayName: "Test string",
15840
+ errors: [
15841
+ {
15842
+ details: {
15843
+ code: 42,
15844
+ details: [
15845
+ {
15846
+ A: 42
15847
+ }
15848
+ ],
15849
+ message: "Test string",
15850
+ },
15851
+ timestamps: [
15852
+ "Test string"
15853
+ ],
15854
+ }
15855
+ ],
15856
+ inspectTemplates: [
15857
+ "Test string"
15858
+ ],
15859
+ lastRunTime: "Test string",
15860
+ name: "Test string",
15861
+ orgConfig: {
15862
+ location: {
15863
+ folderId: "Test string",
15864
+ organizationId: "Test string",
15865
+ },
15866
+ projectId: "Test string",
15867
+ },
15868
+ status: "Test string",
15869
+ targets: [
15870
+ {
15871
+ bigQueryTarget: {
15872
+ cadence: {
15873
+ schemaModifiedCadence: {
15874
+ frequency: "Test string",
15875
+ types: [
15876
+ "Test string"
15877
+ ],
15878
+ },
15879
+ tableModifiedCadence: {
15880
+ frequency: "Test string",
15881
+ types: [
15882
+ "Test string"
15883
+ ],
15884
+ },
15885
+ },
15886
+ conditions: {
15887
+ createdAfter: "Test string",
15888
+ orConditions: {
15889
+ minAge: "Test string",
15890
+ minRowCount: 42,
15891
+ },
15892
+ typeCollection: "Test string",
15893
+ types: {
15894
+ types: [
15895
+ "Test string"
15896
+ ],
15897
+ },
15898
+ },
15899
+ disabled: {
15900
+ },
15901
+ filter: {
15902
+ otherTables: {
15903
+ },
15904
+ tables: {
15905
+ includeRegexes: {
15906
+ patterns: [
15907
+ {
15908
+ datasetIdRegex: "Test string",
15909
+ projectIdRegex: "Test string",
15910
+ tableIdRegex: "Test string",
15911
+ }
15912
+ ],
15913
+ },
15914
+ },
15915
+ },
15916
+ },
15917
+ }
15918
+ ],
15919
+ updateTime: "Test string",
15920
+ },
15921
+ updateMask: "Test string",
15922
+ });
15425
15923
  /**
15426
15924
  * Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See
15427
15925
  * https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.