google-api-client 0.18.0 → 0.18.1

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 (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +9 -0
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1 -1
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +238 -10
  9. data/generated/google/apis/admin_directory_v1/representations.rb +101 -0
  10. data/generated/google/apis/admin_directory_v1/service.rb +529 -1
  11. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  12. data/generated/google/apis/androidmanagement_v1/classes.rb +7 -0
  13. data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
  14. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  15. data/generated/google/apis/androidpublisher_v1_1/classes.rb +9 -0
  16. data/generated/google/apis/androidpublisher_v1_1/representations.rb +1 -0
  17. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  18. data/generated/google/apis/androidpublisher_v2/classes.rb +34 -0
  19. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  20. data/generated/google/apis/appengine_v1.rb +1 -1
  21. data/generated/google/apis/appengine_v1/classes.rb +21 -17
  22. data/generated/google/apis/appengine_v1beta.rb +1 -1
  23. data/generated/google/apis/appengine_v1beta/classes.rb +21 -17
  24. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  25. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
  26. data/generated/google/apis/calendar_v3.rb +1 -1
  27. data/generated/google/apis/calendar_v3/classes.rb +326 -0
  28. data/generated/google/apis/calendar_v3/representations.rb +118 -0
  29. data/generated/google/apis/calendar_v3/service.rb +28 -4
  30. data/generated/google/apis/classroom_v1.rb +1 -1
  31. data/generated/google/apis/classroom_v1/classes.rb +69 -0
  32. data/generated/google/apis/classroom_v1/representations.rb +31 -0
  33. data/generated/google/apis/classroom_v1/service.rb +88 -0
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +49 -0
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -0
  37. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  38. data/generated/google/apis/cloudfunctions_v1/classes.rb +9 -12
  39. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  40. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +25 -0
  41. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +4 -0
  42. data/generated/google/apis/cloudresourcemanager_v1/service.rb +8 -3
  43. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +7 -3
  45. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +8 -6
  47. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +19 -13
  48. data/generated/google/apis/cloudshell_v1.rb +35 -0
  49. data/generated/google/apis/cloudshell_v1/classes.rb +409 -0
  50. data/generated/google/apis/cloudshell_v1/representations.rb +161 -0
  51. data/generated/google/apis/cloudshell_v1/service.rb +214 -0
  52. data/generated/google/apis/cloudshell_v1alpha1.rb +35 -0
  53. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +403 -0
  54. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +160 -0
  55. data/generated/google/apis/cloudshell_v1alpha1/service.rb +237 -0
  56. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +106 -13
  58. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +31 -1
  59. data/generated/google/apis/cloudtasks_v2beta2/service.rb +63 -8
  60. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  61. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  62. data/generated/google/apis/container_v1.rb +2 -2
  63. data/generated/google/apis/container_v1/classes.rb +6 -7
  64. data/generated/google/apis/container_v1/service.rb +2 -2
  65. data/generated/google/apis/container_v1beta1.rb +2 -2
  66. data/generated/google/apis/container_v1beta1/classes.rb +4 -4
  67. data/generated/google/apis/container_v1beta1/service.rb +3 -3
  68. data/generated/google/apis/content_v2.rb +1 -1
  69. data/generated/google/apis/content_v2/classes.rb +257 -0
  70. data/generated/google/apis/content_v2/representations.rb +114 -0
  71. data/generated/google/apis/content_v2/service.rb +84 -0
  72. data/generated/google/apis/content_v2sandbox.rb +1 -1
  73. data/generated/google/apis/content_v2sandbox/classes.rb +257 -0
  74. data/generated/google/apis/content_v2sandbox/representations.rb +114 -0
  75. data/generated/google/apis/content_v2sandbox/service.rb +84 -0
  76. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  77. data/generated/google/apis/dialogflow_v2beta1/classes.rb +16 -0
  78. data/generated/google/apis/digitalassetlinks_v1.rb +32 -0
  79. data/generated/google/apis/digitalassetlinks_v1/classes.rb +305 -0
  80. data/generated/google/apis/digitalassetlinks_v1/representations.rb +133 -0
  81. data/generated/google/apis/digitalassetlinks_v1/service.rb +324 -0
  82. data/generated/google/apis/dlp_v2beta2.rb +36 -0
  83. data/generated/google/apis/dlp_v2beta2/classes.rb +5475 -0
  84. data/generated/google/apis/dlp_v2beta2/representations.rb +2734 -0
  85. data/generated/google/apis/dlp_v2beta2/service.rb +1135 -0
  86. data/generated/google/apis/drive_v2.rb +1 -1
  87. data/generated/google/apis/drive_v2/service.rb +25 -16
  88. data/generated/google/apis/drive_v3.rb +1 -1
  89. data/generated/google/apis/drive_v3/service.rb +1 -1
  90. data/generated/google/apis/monitoring_v3.rb +1 -1
  91. data/generated/google/apis/monitoring_v3/classes.rb +50 -1
  92. data/generated/google/apis/monitoring_v3/representations.rb +16 -0
  93. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  94. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +6 -5
  95. data/generated/google/apis/slides_v1.rb +4 -1
  96. data/generated/google/apis/speech_v1.rb +1 -4
  97. data/generated/google/apis/speech_v1beta1.rb +1 -4
  98. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  99. data/generated/google/apis/streetviewpublish_v1/classes.rb +0 -2
  100. data/generated/google/apis/streetviewpublish_v1/service.rb +6 -0
  101. data/generated/google/apis/testing_v1.rb +1 -1
  102. data/generated/google/apis/testing_v1/classes.rb +81 -0
  103. data/generated/google/apis/testing_v1/representations.rb +45 -0
  104. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  105. data/generated/google/apis/youtube_v3.rb +1 -1
  106. data/generated/google/apis/youtube_v3/classes.rb +0 -6
  107. data/generated/google/apis/youtube_v3/representations.rb +0 -1
  108. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  109. data/generated/google/apis/youtubereporting_v1/classes.rb +576 -19
  110. data/generated/google/apis/youtubereporting_v1/representations.rb +218 -12
  111. data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
  112. data/lib/google/apis/version.rb +1 -1
  113. metadata +18 -2
@@ -0,0 +1,1135 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DlpV2beta2
23
+ # DLP API
24
+ #
25
+ # The Google Data Loss Prevention API provides methods for detection of privacy-
26
+ # sensitive fragments in text, images, and Google Cloud Platform storage
27
+ # repositories.
28
+ #
29
+ # @example
30
+ # require 'google/apis/dlp_v2beta2'
31
+ #
32
+ # Dlp = Google::Apis::DlpV2beta2 # Alias the module
33
+ # service = Dlp::DLPService.new
34
+ #
35
+ # @see https://cloud.google.com/dlp/docs/
36
+ class DLPService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://dlp.googleapis.com/', '')
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Returns sensitive information types DLP supports.
53
+ # @param [String] language_code
54
+ # Optional BCP-47 language code for localized info type friendly
55
+ # names. If omitted, or if localized strings are not available,
56
+ # en-US strings will be returned.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def list_info_types(language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v2beta2/infoTypes', options)
76
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse::Representation
77
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInfoTypesResponse
78
+ command.query['languageCode'] = language_code unless language_code.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Creates an Deidentify template for re-using frequently used configuration
85
+ # for Deidentifying content, images, and storage.
86
+ # @param [String] parent
87
+ # The parent resource name, for example projects/my-project-id or
88
+ # organizations/my-org-id.
89
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_create_deidentify_template_request_object
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def create_organization_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:post, 'v2beta2/{+parent}/deidentifyTemplates', options)
109
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest::Representation
110
+ command.request_object = google_privacy_dlp_v2beta2_create_deidentify_template_request_object
111
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
112
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
113
+ command.params['parent'] = parent unless parent.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ # Deletes inspect templates.
120
+ # @param [String] name
121
+ # Resource name of the organization and inspectTemplate to be deleted, for
122
+ # example `organizations/433245324/deidentifyTemplates/432452342`.
123
+ # @param [String] fields
124
+ # Selector specifying which fields to include in a partial response.
125
+ # @param [String] quota_user
126
+ # Available to use for quota purposes for server-side applications. Can be any
127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
128
+ # @param [Google::Apis::RequestOptions] options
129
+ # Request-specific options
130
+ #
131
+ # @yield [result, err] Result & error if block supplied
132
+ # @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
133
+ # @yieldparam err [StandardError] error object if request failed
134
+ #
135
+ # @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
136
+ #
137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
140
+ def delete_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
141
+ command = make_simple_command(:delete, 'v2beta2/{+name}', options)
142
+ command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
143
+ command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
144
+ command.params['name'] = name unless name.nil?
145
+ command.query['fields'] = fields unless fields.nil?
146
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
147
+ execute_or_queue_command(command, &block)
148
+ end
149
+
150
+ # Gets an inspect template.
151
+ # @param [String] name
152
+ # Resource name of the organization and inspectTemplate to be read, for
153
+ # example `organizations/433245324/deidentifyTemplates/432452342`.
154
+ # @param [String] fields
155
+ # Selector specifying which fields to include in a partial response.
156
+ # @param [String] quota_user
157
+ # Available to use for quota purposes for server-side applications. Can be any
158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
159
+ # @param [Google::Apis::RequestOptions] options
160
+ # Request-specific options
161
+ #
162
+ # @yield [result, err] Result & error if block supplied
163
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
164
+ # @yieldparam err [StandardError] error object if request failed
165
+ #
166
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
167
+ #
168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
171
+ def get_organization_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
172
+ command = make_simple_command(:get, 'v2beta2/{+name}', options)
173
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
174
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
175
+ command.params['name'] = name unless name.nil?
176
+ command.query['fields'] = fields unless fields.nil?
177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
178
+ execute_or_queue_command(command, &block)
179
+ end
180
+
181
+ # Lists inspect templates.
182
+ # @param [String] parent
183
+ # The parent resource name, for example projects/my-project-id or
184
+ # organizations/my-org-id.
185
+ # @param [Fixnum] page_size
186
+ # Optional size of the page, can be limited by server. If zero server returns
187
+ # a page of max size 100.
188
+ # @param [String] page_token
189
+ # Optional page token to continue retrieval. Comes from previous call
190
+ # to `ListDeidentifyTemplates`.
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
193
+ # @param [String] quota_user
194
+ # Available to use for quota purposes for server-side applications. Can be any
195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
196
+ # @param [Google::Apis::RequestOptions] options
197
+ # Request-specific options
198
+ #
199
+ # @yield [result, err] Result & error if block supplied
200
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse] parsed result object
201
+ # @yieldparam err [StandardError] error object if request failed
202
+ #
203
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse]
204
+ #
205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
208
+ def list_organization_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
209
+ command = make_simple_command(:get, 'v2beta2/{+parent}/deidentifyTemplates', options)
210
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse::Representation
211
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
212
+ command.params['parent'] = parent unless parent.nil?
213
+ command.query['pageSize'] = page_size unless page_size.nil?
214
+ command.query['pageToken'] = page_token unless page_token.nil?
215
+ command.query['fields'] = fields unless fields.nil?
216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
217
+ execute_or_queue_command(command, &block)
218
+ end
219
+
220
+ # Updates the inspect template.
221
+ # @param [String] name
222
+ # Resource name of organization and inspectTemplate to be updated, for
223
+ # example `organizations/433245324/deidentifyTemplates/432452342`.
224
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_update_deidentify_template_request_object
225
+ # @param [String] fields
226
+ # Selector specifying which fields to include in a partial response.
227
+ # @param [String] quota_user
228
+ # Available to use for quota purposes for server-side applications. Can be any
229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [Google::Apis::RequestOptions] options
231
+ # Request-specific options
232
+ #
233
+ # @yield [result, err] Result & error if block supplied
234
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
238
+ #
239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
242
+ def patch_organization_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:patch, 'v2beta2/{+name}', options)
244
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest::Representation
245
+ command.request_object = google_privacy_dlp_v2beta2_update_deidentify_template_request_object
246
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
247
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
248
+ command.params['name'] = name unless name.nil?
249
+ command.query['fields'] = fields unless fields.nil?
250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
251
+ execute_or_queue_command(command, &block)
252
+ end
253
+
254
+ # Creates an inspect template for re-using frequently used configuration
255
+ # for inspecting content, images, and storage.
256
+ # @param [String] parent
257
+ # The parent resource name, for example projects/my-project-id or
258
+ # organizations/my-org-id.
259
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest] google_privacy_dlp_v2beta2_create_inspect_template_request_object
260
+ # @param [String] fields
261
+ # Selector specifying which fields to include in a partial response.
262
+ # @param [String] quota_user
263
+ # Available to use for quota purposes for server-side applications. Can be any
264
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
265
+ # @param [Google::Apis::RequestOptions] options
266
+ # Request-specific options
267
+ #
268
+ # @yield [result, err] Result & error if block supplied
269
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
270
+ # @yieldparam err [StandardError] error object if request failed
271
+ #
272
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
273
+ #
274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
277
+ def create_organization_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
278
+ command = make_simple_command(:post, 'v2beta2/{+parent}/inspectTemplates', options)
279
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest::Representation
280
+ command.request_object = google_privacy_dlp_v2beta2_create_inspect_template_request_object
281
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
282
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
283
+ command.params['parent'] = parent unless parent.nil?
284
+ command.query['fields'] = fields unless fields.nil?
285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ execute_or_queue_command(command, &block)
287
+ end
288
+
289
+ # Deletes inspect templates.
290
+ # @param [String] name
291
+ # Resource name of the organization and inspectTemplate to be deleted, for
292
+ # example `organizations/433245324/inspectTemplates/432452342`.
293
+ # @param [String] fields
294
+ # Selector specifying which fields to include in a partial response.
295
+ # @param [String] quota_user
296
+ # Available to use for quota purposes for server-side applications. Can be any
297
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
298
+ # @param [Google::Apis::RequestOptions] options
299
+ # Request-specific options
300
+ #
301
+ # @yield [result, err] Result & error if block supplied
302
+ # @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
303
+ # @yieldparam err [StandardError] error object if request failed
304
+ #
305
+ # @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
306
+ #
307
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
310
+ def delete_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
311
+ command = make_simple_command(:delete, 'v2beta2/{+name}', options)
312
+ command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
313
+ command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
314
+ command.params['name'] = name unless name.nil?
315
+ command.query['fields'] = fields unless fields.nil?
316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
317
+ execute_or_queue_command(command, &block)
318
+ end
319
+
320
+ # Gets an inspect template.
321
+ # @param [String] name
322
+ # Resource name of the organization and inspectTemplate to be read, for
323
+ # example `organizations/433245324/inspectTemplates/432452342`.
324
+ # @param [String] fields
325
+ # Selector specifying which fields to include in a partial response.
326
+ # @param [String] quota_user
327
+ # Available to use for quota purposes for server-side applications. Can be any
328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
329
+ # @param [Google::Apis::RequestOptions] options
330
+ # Request-specific options
331
+ #
332
+ # @yield [result, err] Result & error if block supplied
333
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
334
+ # @yieldparam err [StandardError] error object if request failed
335
+ #
336
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
337
+ #
338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
341
+ def get_organization_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
342
+ command = make_simple_command(:get, 'v2beta2/{+name}', options)
343
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
344
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
345
+ command.params['name'] = name unless name.nil?
346
+ command.query['fields'] = fields unless fields.nil?
347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
348
+ execute_or_queue_command(command, &block)
349
+ end
350
+
351
+ # Lists inspect templates.
352
+ # @param [String] parent
353
+ # The parent resource name, for example projects/my-project-id or
354
+ # organizations/my-org-id.
355
+ # @param [Fixnum] page_size
356
+ # Optional size of the page, can be limited by server. If zero server returns
357
+ # a page of max size 100.
358
+ # @param [String] page_token
359
+ # Optional page token to continue retrieval. Comes from previous call
360
+ # to `ListInspectTemplates`.
361
+ # @param [String] fields
362
+ # Selector specifying which fields to include in a partial response.
363
+ # @param [String] quota_user
364
+ # Available to use for quota purposes for server-side applications. Can be any
365
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
366
+ # @param [Google::Apis::RequestOptions] options
367
+ # Request-specific options
368
+ #
369
+ # @yield [result, err] Result & error if block supplied
370
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse] parsed result object
371
+ # @yieldparam err [StandardError] error object if request failed
372
+ #
373
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse]
374
+ #
375
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
376
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
377
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
378
+ def list_organization_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
379
+ command = make_simple_command(:get, 'v2beta2/{+parent}/inspectTemplates', options)
380
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse::Representation
381
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
382
+ command.params['parent'] = parent unless parent.nil?
383
+ command.query['pageSize'] = page_size unless page_size.nil?
384
+ command.query['pageToken'] = page_token unless page_token.nil?
385
+ command.query['fields'] = fields unless fields.nil?
386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
390
+ # Updates the inspect template.
391
+ # @param [String] name
392
+ # Resource name of organization and inspectTemplate to be updated, for
393
+ # example `organizations/433245324/inspectTemplates/432452342`.
394
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest] google_privacy_dlp_v2beta2_update_inspect_template_request_object
395
+ # @param [String] fields
396
+ # Selector specifying which fields to include in a partial response.
397
+ # @param [String] quota_user
398
+ # Available to use for quota purposes for server-side applications. Can be any
399
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
400
+ # @param [Google::Apis::RequestOptions] options
401
+ # Request-specific options
402
+ #
403
+ # @yield [result, err] Result & error if block supplied
404
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
405
+ # @yieldparam err [StandardError] error object if request failed
406
+ #
407
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
408
+ #
409
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
410
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
411
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
412
+ def patch_organization_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
413
+ command = make_simple_command(:patch, 'v2beta2/{+name}', options)
414
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest::Representation
415
+ command.request_object = google_privacy_dlp_v2beta2_update_inspect_template_request_object
416
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
417
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
418
+ command.params['name'] = name unless name.nil?
419
+ command.query['fields'] = fields unless fields.nil?
420
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
421
+ execute_or_queue_command(command, &block)
422
+ end
423
+
424
+ # De-identifies potentially sensitive info from a ContentItem.
425
+ # This method has limits on input size and output size.
426
+ # [How-to guide](/dlp/docs/deidentify-sensitive-data)
427
+ # @param [String] parent
428
+ # The parent resource name, for example projects/my-project-id.
429
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentRequest] google_privacy_dlp_v2beta2_deidentify_content_request_object
430
+ # @param [String] fields
431
+ # Selector specifying which fields to include in a partial response.
432
+ # @param [String] quota_user
433
+ # Available to use for quota purposes for server-side applications. Can be any
434
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
435
+ # @param [Google::Apis::RequestOptions] options
436
+ # Request-specific options
437
+ #
438
+ # @yield [result, err] Result & error if block supplied
439
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse] parsed result object
440
+ # @yieldparam err [StandardError] error object if request failed
441
+ #
442
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse]
443
+ #
444
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
445
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
446
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
447
+ def deidentify_project_content(parent, google_privacy_dlp_v2beta2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
448
+ command = make_simple_command(:post, 'v2beta2/{+parent}/content:deidentify', options)
449
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentRequest::Representation
450
+ command.request_object = google_privacy_dlp_v2beta2_deidentify_content_request_object
451
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse::Representation
452
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyContentResponse
453
+ command.params['parent'] = parent unless parent.nil?
454
+ command.query['fields'] = fields unless fields.nil?
455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
456
+ execute_or_queue_command(command, &block)
457
+ end
458
+
459
+ # Finds potentially sensitive info in content.
460
+ # This method has limits on input size, processing time, and output size.
461
+ # [How-to guide for text](/dlp/docs/inspecting-text), [How-to guide for
462
+ # images](/dlp/docs/inspecting-images)
463
+ # @param [String] parent
464
+ # The parent resource name, for example projects/my-project-id.
465
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentRequest] google_privacy_dlp_v2beta2_inspect_content_request_object
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
468
+ # @param [String] quota_user
469
+ # Available to use for quota purposes for server-side applications. Can be any
470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [Google::Apis::RequestOptions] options
472
+ # Request-specific options
473
+ #
474
+ # @yield [result, err] Result & error if block supplied
475
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse] parsed result object
476
+ # @yieldparam err [StandardError] error object if request failed
477
+ #
478
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse]
479
+ #
480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
483
+ def inspect_project_content(parent, google_privacy_dlp_v2beta2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:post, 'v2beta2/{+parent}/content:inspect', options)
485
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentRequest::Representation
486
+ command.request_object = google_privacy_dlp_v2beta2_inspect_content_request_object
487
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse::Representation
488
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectContentResponse
489
+ command.params['parent'] = parent unless parent.nil?
490
+ command.query['fields'] = fields unless fields.nil?
491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
492
+ execute_or_queue_command(command, &block)
493
+ end
494
+
495
+ # Re-identify content that has been de-identified.
496
+ # @param [String] parent
497
+ # The parent resource name.
498
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentRequest] google_privacy_dlp_v2beta2_reidentify_content_request_object
499
+ # @param [String] fields
500
+ # Selector specifying which fields to include in a partial response.
501
+ # @param [String] quota_user
502
+ # Available to use for quota purposes for server-side applications. Can be any
503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
504
+ # @param [Google::Apis::RequestOptions] options
505
+ # Request-specific options
506
+ #
507
+ # @yield [result, err] Result & error if block supplied
508
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse] parsed result object
509
+ # @yieldparam err [StandardError] error object if request failed
510
+ #
511
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse]
512
+ #
513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
516
+ def reidentify_project_content(parent, google_privacy_dlp_v2beta2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
517
+ command = make_simple_command(:post, 'v2beta2/{+parent}/content:reidentify', options)
518
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentRequest::Representation
519
+ command.request_object = google_privacy_dlp_v2beta2_reidentify_content_request_object
520
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse::Representation
521
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ReidentifyContentResponse
522
+ command.params['parent'] = parent unless parent.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ execute_or_queue_command(command, &block)
526
+ end
527
+
528
+ # Schedules a job to compute risk analysis metrics over content in a Google
529
+ # Cloud Platform repository. [How-to guide`(/dlp/docs/compute-risk-analysis)
530
+ # @param [String] parent
531
+ # The parent resource name, for example projects/my-project-id.
532
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest] google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object
533
+ # @param [String] fields
534
+ # Selector specifying which fields to include in a partial response.
535
+ # @param [String] quota_user
536
+ # Available to use for quota purposes for server-side applications. Can be any
537
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
538
+ # @param [Google::Apis::RequestOptions] options
539
+ # Request-specific options
540
+ #
541
+ # @yield [result, err] Result & error if block supplied
542
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob] parsed result object
543
+ # @yieldparam err [StandardError] error object if request failed
544
+ #
545
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob]
546
+ #
547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
550
+ def analyze_project_data_source(parent, google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
551
+ command = make_simple_command(:post, 'v2beta2/{+parent}/dataSource:analyze', options)
552
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest::Representation
553
+ command.request_object = google_privacy_dlp_v2beta2_analyze_data_source_risk_request_object
554
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation
555
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
556
+ command.params['parent'] = parent unless parent.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ execute_or_queue_command(command, &block)
560
+ end
561
+
562
+ # Schedules a job scanning content in a Google Cloud Platform data
563
+ # repository. [How-to guide](/dlp/docs/inspecting-storage)
564
+ # @param [String] parent
565
+ # The parent resource name, for example projects/my-project-id.
566
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectDataSourceRequest] google_privacy_dlp_v2beta2_inspect_data_source_request_object
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
569
+ # @param [String] quota_user
570
+ # Available to use for quota purposes for server-side applications. Can be any
571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
572
+ # @param [Google::Apis::RequestOptions] options
573
+ # Request-specific options
574
+ #
575
+ # @yield [result, err] Result & error if block supplied
576
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob] parsed result object
577
+ # @yieldparam err [StandardError] error object if request failed
578
+ #
579
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob]
580
+ #
581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
584
+ def inspect_project_data_source(parent, google_privacy_dlp_v2beta2_inspect_data_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
585
+ command = make_simple_command(:post, 'v2beta2/{+parent}/dataSource:inspect', options)
586
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectDataSourceRequest::Representation
587
+ command.request_object = google_privacy_dlp_v2beta2_inspect_data_source_request_object
588
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation
589
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
590
+ command.params['parent'] = parent unless parent.nil?
591
+ command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
593
+ execute_or_queue_command(command, &block)
594
+ end
595
+
596
+ # Creates an Deidentify template for re-using frequently used configuration
597
+ # for Deidentifying content, images, and storage.
598
+ # @param [String] parent
599
+ # The parent resource name, for example projects/my-project-id or
600
+ # organizations/my-org-id.
601
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_create_deidentify_template_request_object
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # Available to use for quota purposes for server-side applications. Can be any
606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def create_project_deidentify_template(parent, google_privacy_dlp_v2beta2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
620
+ command = make_simple_command(:post, 'v2beta2/{+parent}/deidentifyTemplates', options)
621
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest::Representation
622
+ command.request_object = google_privacy_dlp_v2beta2_create_deidentify_template_request_object
623
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
624
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
625
+ command.params['parent'] = parent unless parent.nil?
626
+ command.query['fields'] = fields unless fields.nil?
627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
628
+ execute_or_queue_command(command, &block)
629
+ end
630
+
631
+ # Deletes inspect templates.
632
+ # @param [String] name
633
+ # Resource name of the organization and inspectTemplate to be deleted, for
634
+ # example `organizations/433245324/deidentifyTemplates/432452342`.
635
+ # @param [String] fields
636
+ # Selector specifying which fields to include in a partial response.
637
+ # @param [String] quota_user
638
+ # Available to use for quota purposes for server-side applications. Can be any
639
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
640
+ # @param [Google::Apis::RequestOptions] options
641
+ # Request-specific options
642
+ #
643
+ # @yield [result, err] Result & error if block supplied
644
+ # @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
645
+ # @yieldparam err [StandardError] error object if request failed
646
+ #
647
+ # @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
648
+ #
649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
652
+ def delete_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
653
+ command = make_simple_command(:delete, 'v2beta2/{+name}', options)
654
+ command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
655
+ command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
656
+ command.params['name'] = name unless name.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
+ execute_or_queue_command(command, &block)
660
+ end
661
+
662
+ # Gets an inspect template.
663
+ # @param [String] name
664
+ # Resource name of the organization and inspectTemplate to be read, for
665
+ # example `organizations/433245324/deidentifyTemplates/432452342`.
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # @param [Google::Apis::RequestOptions] options
672
+ # Request-specific options
673
+ #
674
+ # @yield [result, err] Result & error if block supplied
675
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
676
+ # @yieldparam err [StandardError] error object if request failed
677
+ #
678
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
679
+ #
680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
683
+ def get_project_deidentify_template(name, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:get, 'v2beta2/{+name}', options)
685
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
686
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
687
+ command.params['name'] = name unless name.nil?
688
+ command.query['fields'] = fields unless fields.nil?
689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
690
+ execute_or_queue_command(command, &block)
691
+ end
692
+
693
+ # Lists inspect templates.
694
+ # @param [String] parent
695
+ # The parent resource name, for example projects/my-project-id or
696
+ # organizations/my-org-id.
697
+ # @param [Fixnum] page_size
698
+ # Optional size of the page, can be limited by server. If zero server returns
699
+ # a page of max size 100.
700
+ # @param [String] page_token
701
+ # Optional page token to continue retrieval. Comes from previous call
702
+ # to `ListDeidentifyTemplates`.
703
+ # @param [String] fields
704
+ # Selector specifying which fields to include in a partial response.
705
+ # @param [String] quota_user
706
+ # Available to use for quota purposes for server-side applications. Can be any
707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
708
+ # @param [Google::Apis::RequestOptions] options
709
+ # Request-specific options
710
+ #
711
+ # @yield [result, err] Result & error if block supplied
712
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse] parsed result object
713
+ # @yieldparam err [StandardError] error object if request failed
714
+ #
715
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse]
716
+ #
717
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
718
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
719
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
720
+ def list_project_deidentify_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
721
+ command = make_simple_command(:get, 'v2beta2/{+parent}/deidentifyTemplates', options)
722
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse::Representation
723
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse
724
+ command.params['parent'] = parent unless parent.nil?
725
+ command.query['pageSize'] = page_size unless page_size.nil?
726
+ command.query['pageToken'] = page_token unless page_token.nil?
727
+ command.query['fields'] = fields unless fields.nil?
728
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
729
+ execute_or_queue_command(command, &block)
730
+ end
731
+
732
+ # Updates the inspect template.
733
+ # @param [String] name
734
+ # Resource name of organization and inspectTemplate to be updated, for
735
+ # example `organizations/433245324/deidentifyTemplates/432452342`.
736
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest] google_privacy_dlp_v2beta2_update_deidentify_template_request_object
737
+ # @param [String] fields
738
+ # Selector specifying which fields to include in a partial response.
739
+ # @param [String] quota_user
740
+ # Available to use for quota purposes for server-side applications. Can be any
741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
742
+ # @param [Google::Apis::RequestOptions] options
743
+ # Request-specific options
744
+ #
745
+ # @yield [result, err] Result & error if block supplied
746
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate] parsed result object
747
+ # @yieldparam err [StandardError] error object if request failed
748
+ #
749
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate]
750
+ #
751
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
752
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
753
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
754
+ def patch_project_deidentify_template(name, google_privacy_dlp_v2beta2_update_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
755
+ command = make_simple_command(:patch, 'v2beta2/{+name}', options)
756
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest::Representation
757
+ command.request_object = google_privacy_dlp_v2beta2_update_deidentify_template_request_object
758
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate::Representation
759
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DeidentifyTemplate
760
+ command.params['name'] = name unless name.nil?
761
+ command.query['fields'] = fields unless fields.nil?
762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
763
+ execute_or_queue_command(command, &block)
764
+ end
765
+
766
+ # Starts asynchronous cancellation on a long-running DlpJob. The server
767
+ # makes a best effort to cancel the DlpJob, but success is not
768
+ # guaranteed.
769
+ # @param [String] name
770
+ # The name of the DlpJob resource to be cancelled.
771
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CancelDlpJobRequest] google_privacy_dlp_v2beta2_cancel_dlp_job_request_object
772
+ # @param [String] fields
773
+ # Selector specifying which fields to include in a partial response.
774
+ # @param [String] quota_user
775
+ # Available to use for quota purposes for server-side applications. Can be any
776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
777
+ # @param [Google::Apis::RequestOptions] options
778
+ # Request-specific options
779
+ #
780
+ # @yield [result, err] Result & error if block supplied
781
+ # @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
782
+ # @yieldparam err [StandardError] error object if request failed
783
+ #
784
+ # @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
785
+ #
786
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
789
+ def cancel_project_dlp_job(name, google_privacy_dlp_v2beta2_cancel_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
790
+ command = make_simple_command(:post, 'v2beta2/{+name}:cancel', options)
791
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CancelDlpJobRequest::Representation
792
+ command.request_object = google_privacy_dlp_v2beta2_cancel_dlp_job_request_object
793
+ command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
794
+ command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
795
+ command.params['name'] = name unless name.nil?
796
+ command.query['fields'] = fields unless fields.nil?
797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
801
+ # Deletes a long-running DlpJob. This method indicates that the client is
802
+ # no longer interested in the DlpJob result. The job will be cancelled if
803
+ # possible.
804
+ # @param [String] name
805
+ # The name of the DlpJob resource to be deleted.
806
+ # @param [String] fields
807
+ # Selector specifying which fields to include in a partial response.
808
+ # @param [String] quota_user
809
+ # Available to use for quota purposes for server-side applications. Can be any
810
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
811
+ # @param [Google::Apis::RequestOptions] options
812
+ # Request-specific options
813
+ #
814
+ # @yield [result, err] Result & error if block supplied
815
+ # @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
816
+ # @yieldparam err [StandardError] error object if request failed
817
+ #
818
+ # @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
819
+ #
820
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
821
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
823
+ def delete_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
824
+ command = make_simple_command(:delete, 'v2beta2/{+name}', options)
825
+ command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
826
+ command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
827
+ command.params['name'] = name unless name.nil?
828
+ command.query['fields'] = fields unless fields.nil?
829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
830
+ execute_or_queue_command(command, &block)
831
+ end
832
+
833
+ # Gets the latest state of a long-running DlpJob.
834
+ # @param [String] name
835
+ # The name of the DlpJob resource.
836
+ # @param [String] fields
837
+ # Selector specifying which fields to include in a partial response.
838
+ # @param [String] quota_user
839
+ # Available to use for quota purposes for server-side applications. Can be any
840
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
841
+ # @param [Google::Apis::RequestOptions] options
842
+ # Request-specific options
843
+ #
844
+ # @yield [result, err] Result & error if block supplied
845
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob] parsed result object
846
+ # @yieldparam err [StandardError] error object if request failed
847
+ #
848
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob]
849
+ #
850
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
853
+ def get_project_dlp_job(name, fields: nil, quota_user: nil, options: nil, &block)
854
+ command = make_simple_command(:get, 'v2beta2/{+name}', options)
855
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob::Representation
856
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DlpJob
857
+ command.params['name'] = name unless name.nil?
858
+ command.query['fields'] = fields unless fields.nil?
859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
860
+ execute_or_queue_command(command, &block)
861
+ end
862
+
863
+ # Lists DlpJobs that match the specified filter in the request.
864
+ # @param [String] parent
865
+ # The parent resource name, for example projects/my-project-id.
866
+ # @param [String] filter
867
+ # Optional. Allows filtering.
868
+ # Supported syntax:
869
+ # * Filter expressions are made up of one or more restrictions.
870
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
871
+ # sequence of restrictions implicitly uses `AND`.
872
+ # * A restriction has the form of `<field> <operator> <value>`.
873
+ # * Supported fields/values for inspect jobs:
874
+ # - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
875
+ # - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
876
+ # * Supported fields for risk analysis jobs:
877
+ # - `state` - RUNNING|CANCELED|FINISHED|FAILED
878
+ # * The operator must be `=` or `!=`.
879
+ # Examples:
880
+ # * inspected_storage = cloud_storage AND state = done
881
+ # * inspected_storage = cloud_storage OR inspected_storage = bigquery
882
+ # * inspected_storage = cloud_storage AND (state = done OR state = canceled)
883
+ # The length of this field should be no more than 500 characters.
884
+ # @param [Fixnum] page_size
885
+ # The standard list page size.
886
+ # @param [String] page_token
887
+ # The standard list page token.
888
+ # @param [String] type
889
+ # The type of job. Defaults to `DlpJobType.INSPECT`
890
+ # @param [String] fields
891
+ # Selector specifying which fields to include in a partial response.
892
+ # @param [String] quota_user
893
+ # Available to use for quota purposes for server-side applications. Can be any
894
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
895
+ # @param [Google::Apis::RequestOptions] options
896
+ # Request-specific options
897
+ #
898
+ # @yield [result, err] Result & error if block supplied
899
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse] parsed result object
900
+ # @yieldparam err [StandardError] error object if request failed
901
+ #
902
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse]
903
+ #
904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
907
+ def list_project_dlp_jobs(parent, filter: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
908
+ command = make_simple_command(:get, 'v2beta2/{+parent}/dlpJobs', options)
909
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse::Representation
910
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListDlpJobsResponse
911
+ command.params['parent'] = parent unless parent.nil?
912
+ command.query['filter'] = filter unless filter.nil?
913
+ command.query['pageSize'] = page_size unless page_size.nil?
914
+ command.query['pageToken'] = page_token unless page_token.nil?
915
+ command.query['type'] = type unless type.nil?
916
+ command.query['fields'] = fields unless fields.nil?
917
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
918
+ execute_or_queue_command(command, &block)
919
+ end
920
+
921
+ # Redacts potentially sensitive info from an image.
922
+ # This method has limits on input size, processing time, and output size.
923
+ # [How-to guide](/dlp/docs/redacting-sensitive-data-images)
924
+ # @param [String] parent
925
+ # The parent resource name, for example projects/my-project-id.
926
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageRequest] google_privacy_dlp_v2beta2_redact_image_request_object
927
+ # @param [String] fields
928
+ # Selector specifying which fields to include in a partial response.
929
+ # @param [String] quota_user
930
+ # Available to use for quota purposes for server-side applications. Can be any
931
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
932
+ # @param [Google::Apis::RequestOptions] options
933
+ # Request-specific options
934
+ #
935
+ # @yield [result, err] Result & error if block supplied
936
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse] parsed result object
937
+ # @yieldparam err [StandardError] error object if request failed
938
+ #
939
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse]
940
+ #
941
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
942
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
943
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
944
+ def redact_project_image(parent, google_privacy_dlp_v2beta2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
945
+ command = make_simple_command(:post, 'v2beta2/{+parent}/image:redact', options)
946
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageRequest::Representation
947
+ command.request_object = google_privacy_dlp_v2beta2_redact_image_request_object
948
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse::Representation
949
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2RedactImageResponse
950
+ command.params['parent'] = parent unless parent.nil?
951
+ command.query['fields'] = fields unless fields.nil?
952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
953
+ execute_or_queue_command(command, &block)
954
+ end
955
+
956
+ # Creates an inspect template for re-using frequently used configuration
957
+ # for inspecting content, images, and storage.
958
+ # @param [String] parent
959
+ # The parent resource name, for example projects/my-project-id or
960
+ # organizations/my-org-id.
961
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest] google_privacy_dlp_v2beta2_create_inspect_template_request_object
962
+ # @param [String] fields
963
+ # Selector specifying which fields to include in a partial response.
964
+ # @param [String] quota_user
965
+ # Available to use for quota purposes for server-side applications. Can be any
966
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
967
+ # @param [Google::Apis::RequestOptions] options
968
+ # Request-specific options
969
+ #
970
+ # @yield [result, err] Result & error if block supplied
971
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
972
+ # @yieldparam err [StandardError] error object if request failed
973
+ #
974
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
975
+ #
976
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
977
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
978
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
979
+ def create_project_inspect_template(parent, google_privacy_dlp_v2beta2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
980
+ command = make_simple_command(:post, 'v2beta2/{+parent}/inspectTemplates', options)
981
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CreateInspectTemplateRequest::Representation
982
+ command.request_object = google_privacy_dlp_v2beta2_create_inspect_template_request_object
983
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
984
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
985
+ command.params['parent'] = parent unless parent.nil?
986
+ command.query['fields'] = fields unless fields.nil?
987
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
988
+ execute_or_queue_command(command, &block)
989
+ end
990
+
991
+ # Deletes inspect templates.
992
+ # @param [String] name
993
+ # Resource name of the organization and inspectTemplate to be deleted, for
994
+ # example `organizations/433245324/inspectTemplates/432452342`.
995
+ # @param [String] fields
996
+ # Selector specifying which fields to include in a partial response.
997
+ # @param [String] quota_user
998
+ # Available to use for quota purposes for server-side applications. Can be any
999
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1000
+ # @param [Google::Apis::RequestOptions] options
1001
+ # Request-specific options
1002
+ #
1003
+ # @yield [result, err] Result & error if block supplied
1004
+ # @yieldparam result [Google::Apis::DlpV2beta2::GoogleProtobufEmpty] parsed result object
1005
+ # @yieldparam err [StandardError] error object if request failed
1006
+ #
1007
+ # @return [Google::Apis::DlpV2beta2::GoogleProtobufEmpty]
1008
+ #
1009
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1010
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1011
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1012
+ def delete_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
1013
+ command = make_simple_command(:delete, 'v2beta2/{+name}', options)
1014
+ command.response_representation = Google::Apis::DlpV2beta2::GoogleProtobufEmpty::Representation
1015
+ command.response_class = Google::Apis::DlpV2beta2::GoogleProtobufEmpty
1016
+ command.params['name'] = name unless name.nil?
1017
+ command.query['fields'] = fields unless fields.nil?
1018
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1019
+ execute_or_queue_command(command, &block)
1020
+ end
1021
+
1022
+ # Gets an inspect template.
1023
+ # @param [String] name
1024
+ # Resource name of the organization and inspectTemplate to be read, for
1025
+ # example `organizations/433245324/inspectTemplates/432452342`.
1026
+ # @param [String] fields
1027
+ # Selector specifying which fields to include in a partial response.
1028
+ # @param [String] quota_user
1029
+ # Available to use for quota purposes for server-side applications. Can be any
1030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1031
+ # @param [Google::Apis::RequestOptions] options
1032
+ # Request-specific options
1033
+ #
1034
+ # @yield [result, err] Result & error if block supplied
1035
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
1036
+ # @yieldparam err [StandardError] error object if request failed
1037
+ #
1038
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
1039
+ #
1040
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1041
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1042
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1043
+ def get_project_inspect_template(name, fields: nil, quota_user: nil, options: nil, &block)
1044
+ command = make_simple_command(:get, 'v2beta2/{+name}', options)
1045
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
1046
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
1047
+ command.params['name'] = name unless name.nil?
1048
+ command.query['fields'] = fields unless fields.nil?
1049
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1050
+ execute_or_queue_command(command, &block)
1051
+ end
1052
+
1053
+ # Lists inspect templates.
1054
+ # @param [String] parent
1055
+ # The parent resource name, for example projects/my-project-id or
1056
+ # organizations/my-org-id.
1057
+ # @param [Fixnum] page_size
1058
+ # Optional size of the page, can be limited by server. If zero server returns
1059
+ # a page of max size 100.
1060
+ # @param [String] page_token
1061
+ # Optional page token to continue retrieval. Comes from previous call
1062
+ # to `ListInspectTemplates`.
1063
+ # @param [String] fields
1064
+ # Selector specifying which fields to include in a partial response.
1065
+ # @param [String] quota_user
1066
+ # Available to use for quota purposes for server-side applications. Can be any
1067
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1068
+ # @param [Google::Apis::RequestOptions] options
1069
+ # Request-specific options
1070
+ #
1071
+ # @yield [result, err] Result & error if block supplied
1072
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse] parsed result object
1073
+ # @yieldparam err [StandardError] error object if request failed
1074
+ #
1075
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse]
1076
+ #
1077
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1078
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1079
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1080
+ def list_project_inspect_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1081
+ command = make_simple_command(:get, 'v2beta2/{+parent}/inspectTemplates', options)
1082
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse::Representation
1083
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2ListInspectTemplatesResponse
1084
+ command.params['parent'] = parent unless parent.nil?
1085
+ command.query['pageSize'] = page_size unless page_size.nil?
1086
+ command.query['pageToken'] = page_token unless page_token.nil?
1087
+ command.query['fields'] = fields unless fields.nil?
1088
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1089
+ execute_or_queue_command(command, &block)
1090
+ end
1091
+
1092
+ # Updates the inspect template.
1093
+ # @param [String] name
1094
+ # Resource name of organization and inspectTemplate to be updated, for
1095
+ # example `organizations/433245324/inspectTemplates/432452342`.
1096
+ # @param [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest] google_privacy_dlp_v2beta2_update_inspect_template_request_object
1097
+ # @param [String] fields
1098
+ # Selector specifying which fields to include in a partial response.
1099
+ # @param [String] quota_user
1100
+ # Available to use for quota purposes for server-side applications. Can be any
1101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1102
+ # @param [Google::Apis::RequestOptions] options
1103
+ # Request-specific options
1104
+ #
1105
+ # @yield [result, err] Result & error if block supplied
1106
+ # @yieldparam result [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate] parsed result object
1107
+ # @yieldparam err [StandardError] error object if request failed
1108
+ #
1109
+ # @return [Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate]
1110
+ #
1111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
+ def patch_project_inspect_template(name, google_privacy_dlp_v2beta2_update_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1115
+ command = make_simple_command(:patch, 'v2beta2/{+name}', options)
1116
+ command.request_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest::Representation
1117
+ command.request_object = google_privacy_dlp_v2beta2_update_inspect_template_request_object
1118
+ command.response_representation = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate::Representation
1119
+ command.response_class = Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2InspectTemplate
1120
+ command.params['name'] = name unless name.nil?
1121
+ command.query['fields'] = fields unless fields.nil?
1122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1123
+ execute_or_queue_command(command, &block)
1124
+ end
1125
+
1126
+ protected
1127
+
1128
+ def apply_command_defaults(command)
1129
+ command.query['key'] = key unless key.nil?
1130
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1131
+ end
1132
+ end
1133
+ end
1134
+ end
1135
+ end