google-api-client 0.39.4 → 0.39.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  5. data/generated/google/apis/apigee_v1.rb +1 -1
  6. data/generated/google/apis/apigee_v1/classes.rb +7 -0
  7. data/generated/google/apis/apigee_v1/representations.rb +1 -0
  8. data/generated/google/apis/apigee_v1/service.rb +9 -1
  9. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  10. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +1010 -0
  11. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +380 -0
  12. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  13. data/generated/google/apis/bigquery_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2/classes.rb +12 -1
  15. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  16. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  17. data/generated/google/apis/bigqueryreservation_v1/service.rb +8 -8
  18. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  19. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +18 -14
  20. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +93 -68
  21. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  22. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +21 -0
  23. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +6 -0
  24. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  25. data/generated/google/apis/binaryauthorization_v1/classes.rb +4 -1
  26. data/generated/google/apis/calendar_v3.rb +1 -1
  27. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1/classes.rb +371 -27
  30. data/generated/google/apis/cloudasset_v1/representations.rb +97 -0
  31. data/generated/google/apis/cloudasset_v1/service.rb +186 -8
  32. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  33. data/generated/google/apis/cloudasset_v1beta1/classes.rb +23 -10
  34. data/generated/google/apis/cloudasset_v1beta1/service.rb +12 -3
  35. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  36. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +42 -10
  37. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +2 -0
  38. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -0
  41. data/generated/google/apis/cloudbuild_v1/service.rb +121 -0
  42. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +142 -0
  44. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +60 -0
  45. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -0
  46. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  47. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +142 -0
  48. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +60 -0
  49. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +121 -0
  50. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  51. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +6 -0
  52. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +1 -0
  53. data/generated/google/apis/container_v1beta1.rb +1 -1
  54. data/generated/google/apis/container_v1beta1/classes.rb +35 -0
  55. data/generated/google/apis/container_v1beta1/representations.rb +17 -0
  56. data/generated/google/apis/content_v2_1.rb +1 -1
  57. data/generated/google/apis/content_v2_1/classes.rb +6 -0
  58. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  59. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  60. data/generated/google/apis/dataproc_v1beta2/classes.rb +26 -12
  61. data/generated/google/apis/dataproc_v1beta2/service.rb +35 -21
  62. data/generated/google/apis/datastore_v1.rb +1 -1
  63. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  64. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  65. data/generated/google/apis/datastore_v1beta3/classes.rb +1 -1
  66. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  67. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  68. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  69. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  70. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  71. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  72. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  73. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  74. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  76. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  77. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  78. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  79. data/generated/google/apis/dfareporting_v3_3/classes.rb +2 -2
  80. data/generated/google/apis/dfareporting_v3_3/service.rb +2 -2
  81. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  82. data/generated/google/apis/dfareporting_v3_4/classes.rb +2 -2
  83. data/generated/google/apis/dfareporting_v3_4/service.rb +2 -2
  84. data/generated/google/apis/dialogflow_v2.rb +1 -1
  85. data/generated/google/apis/dialogflow_v2/classes.rb +3 -0
  86. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  87. data/generated/google/apis/dialogflow_v2beta1/classes.rb +3 -0
  88. data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
  89. data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
  90. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5022 -0
  91. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2057 -0
  92. data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
  93. data/generated/google/apis/displayvideo_v1.rb +1 -1
  94. data/generated/google/apis/displayvideo_v1/service.rb +7 -2
  95. data/generated/google/apis/dlp_v2.rb +1 -1
  96. data/generated/google/apis/dlp_v2/classes.rb +9 -21
  97. data/generated/google/apis/dlp_v2/service.rb +79 -142
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v1/classes.rb +160 -261
  100. data/generated/google/apis/dns_v1/representations.rb +17 -0
  101. data/generated/google/apis/dns_v1/service.rb +21 -141
  102. data/generated/google/apis/dns_v1beta2.rb +1 -1
  103. data/generated/google/apis/dns_v1beta2/classes.rb +189 -273
  104. data/generated/google/apis/dns_v1beta2/representations.rb +32 -0
  105. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  106. data/generated/google/apis/dns_v2beta1.rb +1 -1
  107. data/generated/google/apis/dns_v2beta1/classes.rb +160 -261
  108. data/generated/google/apis/dns_v2beta1/representations.rb +17 -0
  109. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  110. data/generated/google/apis/file_v1.rb +1 -1
  111. data/generated/google/apis/file_v1/classes.rb +31 -0
  112. data/generated/google/apis/file_v1/representations.rb +15 -0
  113. data/generated/google/apis/file_v1beta1.rb +1 -1
  114. data/generated/google/apis/file_v1beta1/classes.rb +31 -0
  115. data/generated/google/apis/file_v1beta1/representations.rb +15 -0
  116. data/generated/google/apis/{pagespeedonline_v1.rb → firebaseml_v1.rb} +11 -9
  117. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  118. data/generated/google/apis/firebaseml_v1/representations.rb +112 -0
  119. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  120. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_management_v1management/service.rb +1 -1
  124. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  125. data/generated/google/apis/iamcredentials_v1/classes.rb +26 -2
  126. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  127. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  128. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  129. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  130. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  131. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  132. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  133. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  134. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  135. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  136. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  137. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  138. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  139. data/generated/google/apis/securitycenter_v1.rb +1 -1
  140. data/generated/google/apis/securitycenter_v1/classes.rb +27 -12
  141. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  142. data/generated/google/apis/securitycenter_v1beta1/classes.rb +27 -12
  143. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  144. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +27 -12
  145. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  146. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -31
  147. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
  148. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  149. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +0 -31
  150. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -1
  151. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  152. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -31
  153. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  154. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  155. data/generated/google/apis/servicenetworking_v1/classes.rb +379 -31
  156. data/generated/google/apis/servicenetworking_v1/representations.rb +209 -1
  157. data/generated/google/apis/servicenetworking_v1/service.rb +187 -0
  158. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1beta/classes.rb +188 -31
  160. data/generated/google/apis/servicenetworking_v1beta/representations.rb +130 -1
  161. data/generated/google/apis/serviceusage_v1.rb +1 -1
  162. data/generated/google/apis/serviceusage_v1/classes.rb +0 -31
  163. data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
  164. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  165. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -31
  166. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -1
  167. data/generated/google/apis/tasks_v1.rb +3 -3
  168. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  169. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  170. data/generated/google/apis/tasks_v1/service.rb +79 -128
  171. data/generated/google/apis/translate_v3.rb +1 -1
  172. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  173. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  174. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  175. data/generated/google/apis/websecurityscanner_v1/classes.rb +7 -5
  176. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  177. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  178. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  179. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  180. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  181. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +9 -7
  182. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  183. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  184. data/generated/google/apis/youtube_v3.rb +5 -5
  185. data/generated/google/apis/youtube_v3/classes.rb +1260 -1244
  186. data/generated/google/apis/youtube_v3/representations.rb +64 -192
  187. data/generated/google/apis/youtube_v3/service.rb +1833 -2125
  188. data/lib/google/apis/version.rb +1 -1
  189. metadata +19 -7
  190. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  191. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  192. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
@@ -0,0 +1,296 @@
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 DialogflowV3alpha1
23
+ # Dialogflow API
24
+ #
25
+ # Builds conversational interfaces (for example, chatbots, and voice-powered
26
+ # apps and devices).
27
+ #
28
+ # @example
29
+ # require 'google/apis/dialogflow_v3alpha1'
30
+ #
31
+ # Dialogflow = Google::Apis::DialogflowV3alpha1 # Alias the module
32
+ # service = Dialogflow::DialogflowService.new
33
+ #
34
+ # @see https://cloud.google.com/dialogflow/
35
+ class DialogflowService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://dialogflow.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Starts asynchronous cancellation on a long-running operation. The server
52
+ # makes a best effort to cancel the operation, but success is not
53
+ # guaranteed. If the server doesn't support this method, it returns
54
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
55
+ # Operations.GetOperation or
56
+ # other methods to check whether the cancellation succeeded or whether the
57
+ # operation completed despite cancellation. On successful cancellation,
58
+ # the operation is not deleted; instead, it becomes an operation with
59
+ # an Operation.error value with a google.rpc.Status.code of 1,
60
+ # corresponding to `Code.CANCELLED`.
61
+ # @param [String] name
62
+ # The name of the operation resource to be cancelled.
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
81
+ command = make_simple_command(:post, 'v3alpha1/{+name}:cancel', options)
82
+ command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty::Representation
83
+ command.response_class = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty
84
+ command.params['name'] = name unless name.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ execute_or_queue_command(command, &block)
88
+ end
89
+
90
+ # Gets the latest state of a long-running operation. Clients can use this
91
+ # method to poll the operation result at intervals as recommended by the API
92
+ # service.
93
+ # @param [String] name
94
+ # The name of the operation resource.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [String] quota_user
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation] parsed result object
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'v3alpha1/{+name}', options)
114
+ command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation::Representation
115
+ command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
122
+ # Lists operations that match the specified filter in the request. If the
123
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
124
+ # NOTE: the `name` binding allows API services to override the binding
125
+ # to use different resource name schemes, such as `users/*/operations`. To
126
+ # override the binding, API services can add a binding such as
127
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
128
+ # For backwards compatibility, the default name includes the operations
129
+ # collection id, however overriding users must ensure the name binding
130
+ # is the parent resource, without the operations collection id.
131
+ # @param [String] name
132
+ # The name of the operation's parent resource.
133
+ # @param [String] filter
134
+ # The standard list filter.
135
+ # @param [Fixnum] page_size
136
+ # The standard list page size.
137
+ # @param [String] page_token
138
+ # The standard list page token.
139
+ # @param [String] fields
140
+ # Selector specifying which fields to include in a partial response.
141
+ # @param [String] quota_user
142
+ # Available to use for quota purposes for server-side applications. Can be any
143
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
144
+ # @param [Google::Apis::RequestOptions] options
145
+ # Request-specific options
146
+ #
147
+ # @yield [result, err] Result & error if block supplied
148
+ # @yieldparam result [Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse] parsed result object
149
+ # @yieldparam err [StandardError] error object if request failed
150
+ #
151
+ # @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse]
152
+ #
153
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
154
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
155
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
156
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
157
+ command = make_simple_command(:get, 'v3alpha1/{+name}/operations', options)
158
+ command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse::Representation
159
+ command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse
160
+ command.params['name'] = name unless name.nil?
161
+ command.query['filter'] = filter unless filter.nil?
162
+ command.query['pageSize'] = page_size unless page_size.nil?
163
+ command.query['pageToken'] = page_token unless page_token.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ execute_or_queue_command(command, &block)
167
+ end
168
+
169
+ # Starts asynchronous cancellation on a long-running operation. The server
170
+ # makes a best effort to cancel the operation, but success is not
171
+ # guaranteed. If the server doesn't support this method, it returns
172
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
173
+ # Operations.GetOperation or
174
+ # other methods to check whether the cancellation succeeded or whether the
175
+ # operation completed despite cancellation. On successful cancellation,
176
+ # the operation is not deleted; instead, it becomes an operation with
177
+ # an Operation.error value with a google.rpc.Status.code of 1,
178
+ # corresponding to `Code.CANCELLED`.
179
+ # @param [String] name
180
+ # The name of the operation resource to be cancelled.
181
+ # @param [String] fields
182
+ # Selector specifying which fields to include in a partial response.
183
+ # @param [String] quota_user
184
+ # Available to use for quota purposes for server-side applications. Can be any
185
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
186
+ # @param [Google::Apis::RequestOptions] options
187
+ # Request-specific options
188
+ #
189
+ # @yield [result, err] Result & error if block supplied
190
+ # @yieldparam result [Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty] parsed result object
191
+ # @yieldparam err [StandardError] error object if request failed
192
+ #
193
+ # @return [Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty]
194
+ #
195
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
196
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
197
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
198
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
199
+ command = make_simple_command(:post, 'v3alpha1/{+name}:cancel', options)
200
+ command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty::Representation
201
+ command.response_class = Google::Apis::DialogflowV3alpha1::GoogleProtobufEmpty
202
+ command.params['name'] = name unless name.nil?
203
+ command.query['fields'] = fields unless fields.nil?
204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
205
+ execute_or_queue_command(command, &block)
206
+ end
207
+
208
+ # Gets the latest state of a long-running operation. Clients can use this
209
+ # method to poll the operation result at intervals as recommended by the API
210
+ # service.
211
+ # @param [String] name
212
+ # The name of the operation resource.
213
+ # @param [String] fields
214
+ # Selector specifying which fields to include in a partial response.
215
+ # @param [String] quota_user
216
+ # Available to use for quota purposes for server-side applications. Can be any
217
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
218
+ # @param [Google::Apis::RequestOptions] options
219
+ # Request-specific options
220
+ #
221
+ # @yield [result, err] Result & error if block supplied
222
+ # @yieldparam result [Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation] parsed result object
223
+ # @yieldparam err [StandardError] error object if request failed
224
+ #
225
+ # @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation]
226
+ #
227
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
230
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
231
+ command = make_simple_command(:get, 'v3alpha1/{+name}', options)
232
+ command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation::Representation
233
+ command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningOperation
234
+ command.params['name'] = name unless name.nil?
235
+ command.query['fields'] = fields unless fields.nil?
236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
237
+ execute_or_queue_command(command, &block)
238
+ end
239
+
240
+ # Lists operations that match the specified filter in the request. If the
241
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
242
+ # NOTE: the `name` binding allows API services to override the binding
243
+ # to use different resource name schemes, such as `users/*/operations`. To
244
+ # override the binding, API services can add a binding such as
245
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
246
+ # For backwards compatibility, the default name includes the operations
247
+ # collection id, however overriding users must ensure the name binding
248
+ # is the parent resource, without the operations collection id.
249
+ # @param [String] name
250
+ # The name of the operation's parent resource.
251
+ # @param [String] filter
252
+ # The standard list filter.
253
+ # @param [Fixnum] page_size
254
+ # The standard list page size.
255
+ # @param [String] page_token
256
+ # The standard list page token.
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:get, 'v3alpha1/{+name}/operations', options)
276
+ command.response_representation = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse::Representation
277
+ command.response_class = Google::Apis::DialogflowV3alpha1::GoogleLongrunningListOperationsResponse
278
+ command.params['name'] = name unless name.nil?
279
+ command.query['filter'] = filter unless filter.nil?
280
+ command.query['pageSize'] = page_size unless page_size.nil?
281
+ command.query['pageToken'] = page_token unless page_token.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ execute_or_queue_command(command, &block)
285
+ end
286
+
287
+ protected
288
+
289
+ def apply_command_defaults(command)
290
+ command.query['key'] = key unless key.nil?
291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
292
+ end
293
+ end
294
+ end
295
+ end
296
+ end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/display-video/
27
27
  module DisplayvideoV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200505'
29
+ REVISION = '20200519'
30
30
 
31
31
  # Create, see, edit, and permanently delete your Display & Video 360 entities and reports
32
32
  AUTH_DISPLAY_VIDEO = 'https://www.googleapis.com/auth/display-video'
@@ -737,8 +737,7 @@ module Google
737
737
  # * Between `(` and `)` there can only be restrictions combined by `OR`
738
738
  # for the same field.
739
739
  # * A restriction has the form of ``field` `operator` `value``.
740
- # * The operator must be `EQUALS (=)`.
741
- # * Supported fields:
740
+ # * The operator must be `EQUALS (=)` for the following fields:
742
741
  # - `entityStatus`
743
742
  # - `creativeType`.
744
743
  # - `dimensions`
@@ -747,6 +746,8 @@ module Google
747
746
  # - `approvalStatus`
748
747
  # - `exchangeReviewStatus`
749
748
  # - `dynamic`
749
+ # * The operator must be `HAS (:)` for the following fields:
750
+ # - `lineItemIds`
750
751
  # * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may
751
752
  # be at most one restriction.
752
753
  # * For `dimensions`, the value is in the form of `"`width`x`height`"`.
@@ -754,6 +755,8 @@ module Google
754
755
  # ``exchange`-`reviewStatus``.
755
756
  # * For `minDuration` and `maxDuration`, the value is in the form of
756
757
  # `"`duration`s"`. Only seconds are supported with millisecond granularity.
758
+ # * There may be multiple `lineItemIds` restrictions in order to search
759
+ # against multiple possible line item IDs.
757
760
  # Examples:
758
761
  # * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"`
759
762
  # * All active creatives with 300x400 or 50x100 dimensions:
@@ -764,6 +767,8 @@ module Google
764
767
  # `dynamic="true" AND minDuration="5.2s" AND
765
768
  # (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED"
766
769
  # OR exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")`
770
+ # * All video creatives that are associated with line item ID 1 or 2:
771
+ # creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)
767
772
  # The length of this field should be no more than 500 characters.
768
773
  # @param [String] order_by
769
774
  # Field by which to sort the list.
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2
29
29
  VERSION = 'V2'
30
- REVISION = '20200505'
30
+ REVISION = '20200516'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1155,8 +1155,7 @@ module Google
1155
1155
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
1156
1156
  attr_accessor :deidentify_template
1157
1157
 
1158
- # The geographic location to store the deidentification template. Reserved
1159
- # for future extensions.
1158
+ # Deprecated. This field has no effect.
1160
1159
  # Corresponds to the JSON property `locationId`
1161
1160
  # @return [String]
1162
1161
  attr_accessor :location_id
@@ -1200,8 +1199,7 @@ module Google
1200
1199
  # @return [String]
1201
1200
  attr_accessor :job_id
1202
1201
 
1203
- # The geographic location to store and process the job. Reserved for
1204
- # future extensions.
1202
+ # Deprecated. This field has no effect.
1205
1203
  # Corresponds to the JSON property `locationId`
1206
1204
  # @return [String]
1207
1205
  attr_accessor :location_id
@@ -1237,8 +1235,7 @@ module Google
1237
1235
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
1238
1236
  attr_accessor :inspect_template
1239
1237
 
1240
- # The geographic location to store the inspection template. Reserved for
1241
- # future extensions.
1238
+ # Deprecated. This field has no effect.
1242
1239
  # Corresponds to the JSON property `locationId`
1243
1240
  # @return [String]
1244
1241
  attr_accessor :location_id
@@ -1273,8 +1270,7 @@ module Google
1273
1270
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
1274
1271
  attr_accessor :job_trigger
1275
1272
 
1276
- # The geographic location to store the job trigger. Reserved for
1277
- # future extensions.
1273
+ # Deprecated. This field has no effect.
1278
1274
  # Corresponds to the JSON property `locationId`
1279
1275
  # @return [String]
1280
1276
  attr_accessor :location_id
@@ -1310,8 +1306,7 @@ module Google
1310
1306
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig]
1311
1307
  attr_accessor :config
1312
1308
 
1313
- # The geographic location to store the stored infoType. Reserved for
1314
- # future extensions.
1309
+ # Deprecated. This field has no effect.
1315
1310
  # Corresponds to the JSON property `locationId`
1316
1311
  # @return [String]
1317
1312
  attr_accessor :location_id
@@ -1835,8 +1830,7 @@ module Google
1835
1830
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
1836
1831
  attr_accessor :item
1837
1832
 
1838
- # The geographic location to process de-identification. Reserved for future
1839
- # extensions.
1833
+ # Deprecated. This field has no effect.
1840
1834
  # Corresponds to the JSON property `locationId`
1841
1835
  # @return [String]
1842
1836
  attr_accessor :location_id
@@ -3314,10 +3308,7 @@ module Google
3314
3308
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
3315
3309
  attr_accessor :item
3316
3310
 
3317
- # The geographic location to process content inspection. Reserved for future
3318
- # extensions.
3319
- # When inspecting images location is restricted to 'global', 'us', 'asia',
3320
- # and 'europe'.
3311
+ # Deprecated. This field has no effect.
3321
3312
  # Corresponds to the JSON property `locationId`
3322
3313
  # @return [String]
3323
3314
  attr_accessor :location_id
@@ -5262,9 +5253,7 @@ module Google
5262
5253
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig]
5263
5254
  attr_accessor :inspect_config
5264
5255
 
5265
- # The geographic location to process the request. Reserved for future
5266
- # extensions.
5267
- # Location is restricted to 'global', 'us', 'asia', and 'europe'.
5256
+ # Deprecated. This field has no effect.
5268
5257
  # Corresponds to the JSON property `locationId`
5269
5258
  # @return [String]
5270
5259
  attr_accessor :location_id
@@ -5370,8 +5359,7 @@ module Google
5370
5359
  # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
5371
5360
  attr_accessor :item
5372
5361
 
5373
- # The geographic location to process content reidentification. Reserved for
5374
- # future extensions.
5362
+ # Deprecated. This field has no effect.
5375
5363
  # Corresponds to the JSON property `locationId`
5376
5364
  # @return [String]
5377
5365
  attr_accessor :location_id
@@ -60,8 +60,9 @@ module Google
60
60
  # names. If omitted, or if localized strings are not available,
61
61
  # en-US strings will be returned.
62
62
  # @param [String] location_id
63
- # The geographic location to list info types. Reserved for future
64
- # extensions.
63
+ # Deprecated. This field has no effect.
64
+ # @param [String] parent
65
+ # The parent resource name, for example locations/`location_id`.
65
66
  # @param [String] fields
66
67
  # Selector specifying which fields to include in a partial response.
67
68
  # @param [String] quota_user
@@ -79,13 +80,14 @@ module Google
79
80
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
81
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
82
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- def list_info_types(filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
83
+ def list_info_types(filter: nil, language_code: nil, location_id: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
83
84
  command = make_simple_command(:get, 'v2/infoTypes', options)
84
85
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
85
86
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
86
87
  command.query['filter'] = filter unless filter.nil?
87
88
  command.query['languageCode'] = language_code unless language_code.nil?
88
89
  command.query['locationId'] = location_id unless location_id.nil?
90
+ command.query['parent'] = parent unless parent.nil?
89
91
  command.query['fields'] = fields unless fields.nil?
90
92
  command.query['quotaUser'] = quota_user unless quota_user.nil?
91
93
  execute_or_queue_command(command, &block)
@@ -94,9 +96,8 @@ module Google
94
96
  # Returns a list of the sensitive information types that the DLP API
95
97
  # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
96
98
  # learn more.
97
- # @param [String] location_id
98
- # The geographic location to list info types. Reserved for future
99
- # extensions.
99
+ # @param [String] parent
100
+ # The parent resource name, for example locations/`location_id`.
100
101
  # @param [String] filter
101
102
  # filter to only return infoTypes supported by certain parts of the
102
103
  # API. Defaults to supported_by=INSPECT.
@@ -104,6 +105,8 @@ module Google
104
105
  # BCP-47 language code for localized infoType friendly
105
106
  # names. If omitted, or if localized strings are not available,
106
107
  # en-US strings will be returned.
108
+ # @param [String] location_id
109
+ # Deprecated. This field has no effect.
107
110
  # @param [String] fields
108
111
  # Selector specifying which fields to include in a partial response.
109
112
  # @param [String] quota_user
@@ -121,13 +124,14 @@ module Google
121
124
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
125
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
126
  # @raise [Google::Apis::AuthorizationError] Authorization is required
124
- def list_location_info_types(location_id, filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
125
- command = make_simple_command(:get, 'v2/locations/{locationId}/infoTypes', options)
127
+ def list_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
128
+ command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
126
129
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
127
130
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
128
- command.params['locationId'] = location_id unless location_id.nil?
131
+ command.params['parent'] = parent unless parent.nil?
129
132
  command.query['filter'] = filter unless filter.nil?
130
133
  command.query['languageCode'] = language_code unless language_code.nil?
134
+ command.query['locationId'] = location_id unless location_id.nil?
131
135
  command.query['fields'] = fields unless fields.nil?
132
136
  command.query['quotaUser'] = quota_user unless quota_user.nil?
133
137
  execute_or_queue_command(command, &block)
@@ -247,8 +251,7 @@ module Google
247
251
  # Required. The parent resource name, for example projects/my-project-id or
248
252
  # organizations/my-org-id.
249
253
  # @param [String] location_id
250
- # The geographic location where deidentifications templates will be retrieved
251
- # from. Use `-` for all locations. Reserved for future extensions.
254
+ # Deprecated. This field has no effect.
252
255
  # @param [String] order_by
253
256
  # Comma separated list of fields to order by,
254
257
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -445,8 +448,7 @@ module Google
445
448
  # Required. The parent resource name, for example projects/my-project-id or
446
449
  # organizations/my-org-id.
447
450
  # @param [String] location_id
448
- # The geographic location where inspection templates will be retrieved from.
449
- # Use `-` for all locations. Reserved for future extensions.
451
+ # Deprecated. This field has no effect.
450
452
  # @param [String] order_by
451
453
  # Comma separated list of fields to order by,
452
454
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -538,9 +540,6 @@ module Google
538
540
  # @param [String] parent
539
541
  # Required. The parent resource name, for example projects/my-project-id or
540
542
  # organizations/my-org-id.
541
- # @param [String] location_id
542
- # The geographic location to store the deidentification template. Reserved
543
- # for future extensions.
544
543
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
545
544
  # @param [String] fields
546
545
  # Selector specifying which fields to include in a partial response.
@@ -559,14 +558,13 @@ module Google
559
558
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
560
559
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
561
560
  # @raise [Google::Apis::AuthorizationError] Authorization is required
562
- def create_organization_location_deidentify_template(parent, location_id, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
563
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
561
+ def create_organization_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
562
+ command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
564
563
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
565
564
  command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
566
565
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
567
566
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
568
567
  command.params['parent'] = parent unless parent.nil?
569
- command.params['locationId'] = location_id unless location_id.nil?
570
568
  command.query['fields'] = fields unless fields.nil?
571
569
  command.query['quotaUser'] = quota_user unless quota_user.nil?
572
570
  execute_or_queue_command(command, &block)
@@ -649,8 +647,7 @@ module Google
649
647
  # Required. The parent resource name, for example projects/my-project-id or
650
648
  # organizations/my-org-id.
651
649
  # @param [String] location_id
652
- # The geographic location where deidentifications templates will be retrieved
653
- # from. Use `-` for all locations. Reserved for future extensions.
650
+ # Deprecated. This field has no effect.
654
651
  # @param [String] order_by
655
652
  # Comma separated list of fields to order by,
656
653
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -685,12 +682,12 @@ module Google
685
682
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
686
683
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
687
684
  # @raise [Google::Apis::AuthorizationError] Authorization is required
688
- def list_organization_location_deidentify_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
689
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
685
+ def list_organization_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
686
+ command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
690
687
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
691
688
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
692
689
  command.params['parent'] = parent unless parent.nil?
693
- command.params['locationId'] = location_id unless location_id.nil?
690
+ command.query['locationId'] = location_id unless location_id.nil?
694
691
  command.query['orderBy'] = order_by unless order_by.nil?
695
692
  command.query['pageSize'] = page_size unless page_size.nil?
696
693
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -743,9 +740,6 @@ module Google
743
740
  # @param [String] parent
744
741
  # Required. The parent resource name, for example projects/my-project-id or
745
742
  # organizations/my-org-id.
746
- # @param [String] location_id
747
- # The geographic location to store the inspection template. Reserved for
748
- # future extensions.
749
743
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
750
744
  # @param [String] fields
751
745
  # Selector specifying which fields to include in a partial response.
@@ -764,14 +758,13 @@ module Google
764
758
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
765
759
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
766
760
  # @raise [Google::Apis::AuthorizationError] Authorization is required
767
- def create_organization_location_inspect_template(parent, location_id, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
768
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
761
+ def create_organization_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
762
+ command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
769
763
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
770
764
  command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
771
765
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
772
766
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
773
767
  command.params['parent'] = parent unless parent.nil?
774
- command.params['locationId'] = location_id unless location_id.nil?
775
768
  command.query['fields'] = fields unless fields.nil?
776
769
  command.query['quotaUser'] = quota_user unless quota_user.nil?
777
770
  execute_or_queue_command(command, &block)
@@ -851,8 +844,7 @@ module Google
851
844
  # Required. The parent resource name, for example projects/my-project-id or
852
845
  # organizations/my-org-id.
853
846
  # @param [String] location_id
854
- # The geographic location where inspection templates will be retrieved from.
855
- # Use `-` for all locations. Reserved for future extensions.
847
+ # Deprecated. This field has no effect.
856
848
  # @param [String] order_by
857
849
  # Comma separated list of fields to order by,
858
850
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -887,12 +879,12 @@ module Google
887
879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
888
880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
889
881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
890
- def list_organization_location_inspect_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
891
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
882
+ def list_organization_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
883
+ command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
892
884
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
893
885
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
894
886
  command.params['parent'] = parent unless parent.nil?
895
- command.params['locationId'] = location_id unless location_id.nil?
887
+ command.query['locationId'] = location_id unless location_id.nil?
896
888
  command.query['orderBy'] = order_by unless order_by.nil?
897
889
  command.query['pageSize'] = page_size unless page_size.nil?
898
890
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -943,9 +935,6 @@ module Google
943
935
  # @param [String] parent
944
936
  # Required. The parent resource name, for example projects/my-project-id or
945
937
  # organizations/my-org-id.
946
- # @param [String] location_id
947
- # The geographic location to store the stored infoType. Reserved for
948
- # future extensions.
949
938
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
950
939
  # @param [String] fields
951
940
  # Selector specifying which fields to include in a partial response.
@@ -964,14 +953,13 @@ module Google
964
953
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
965
954
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
966
955
  # @raise [Google::Apis::AuthorizationError] Authorization is required
967
- def create_organization_location_stored_info_type(parent, location_id, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
968
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
956
+ def create_organization_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
957
+ command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
969
958
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
970
959
  command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
971
960
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
972
961
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
973
962
  command.params['parent'] = parent unless parent.nil?
974
- command.params['locationId'] = location_id unless location_id.nil?
975
963
  command.query['fields'] = fields unless fields.nil?
976
964
  command.query['quotaUser'] = quota_user unless quota_user.nil?
977
965
  execute_or_queue_command(command, &block)
@@ -1053,8 +1041,7 @@ module Google
1053
1041
  # Required. The parent resource name, for example projects/my-project-id or
1054
1042
  # organizations/my-org-id.
1055
1043
  # @param [String] location_id
1056
- # The geographic location where stored infoTypes will be retrieved from.
1057
- # Use `-` for all locations. Reserved for future extensions.
1044
+ # Deprecated. This field has no effect.
1058
1045
  # @param [String] order_by
1059
1046
  # Comma separated list of fields to order by,
1060
1047
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -1090,12 +1077,12 @@ module Google
1090
1077
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1091
1078
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1092
1079
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1093
- def list_organization_location_stored_info_types(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1094
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
1080
+ def list_organization_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1081
+ command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
1095
1082
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
1096
1083
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
1097
1084
  command.params['parent'] = parent unless parent.nil?
1098
- command.params['locationId'] = location_id unless location_id.nil?
1085
+ command.query['locationId'] = location_id unless location_id.nil?
1099
1086
  command.query['orderBy'] = order_by unless order_by.nil?
1100
1087
  command.query['pageSize'] = page_size unless page_size.nil?
1101
1088
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1254,8 +1241,7 @@ module Google
1254
1241
  # Required. The parent resource name, for example projects/my-project-id or
1255
1242
  # organizations/my-org-id.
1256
1243
  # @param [String] location_id
1257
- # The geographic location where stored infoTypes will be retrieved from.
1258
- # Use `-` for all locations. Reserved for future extensions.
1244
+ # Deprecated. This field has no effect.
1259
1245
  # @param [String] order_by
1260
1246
  # Comma separated list of fields to order by,
1261
1247
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -1572,8 +1558,7 @@ module Google
1572
1558
  # Required. The parent resource name, for example projects/my-project-id or
1573
1559
  # organizations/my-org-id.
1574
1560
  # @param [String] location_id
1575
- # The geographic location where deidentifications templates will be retrieved
1576
- # from. Use `-` for all locations. Reserved for future extensions.
1561
+ # Deprecated. This field has no effect.
1577
1562
  # @param [String] order_by
1578
1563
  # Comma separated list of fields to order by,
1579
1564
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -1831,8 +1816,7 @@ module Google
1831
1816
  # * end_time > \"2017-12-12T00:00:00+00:00\"
1832
1817
  # The length of this field should be no more than 500 characters.
1833
1818
  # @param [String] location_id
1834
- # The geographic location where jobs will be retrieved from.
1835
- # Use `-` for all locations. Reserved for future extensions.
1819
+ # Deprecated. This field has no effect.
1836
1820
  # @param [String] order_by
1837
1821
  # Comma separated list of fields to order by,
1838
1822
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -2032,8 +2016,7 @@ module Google
2032
2016
  # Required. The parent resource name, for example projects/my-project-id or
2033
2017
  # organizations/my-org-id.
2034
2018
  # @param [String] location_id
2035
- # The geographic location where inspection templates will be retrieved from.
2036
- # Use `-` for all locations. Reserved for future extensions.
2019
+ # Deprecated. This field has no effect.
2037
2020
  # @param [String] order_by
2038
2021
  # Comma separated list of fields to order by,
2039
2022
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -2277,8 +2260,7 @@ module Google
2277
2260
  # * last_run_time > \"2017-12-12T00:00:00+00:00\"
2278
2261
  # The length of this field should be no more than 500 characters.
2279
2262
  # @param [String] location_id
2280
- # The geographic location where job triggers will be retrieved from.
2281
- # Use `-` for all locations. Reserved for future extensions.
2263
+ # Deprecated. This field has no effect.
2282
2264
  # @param [String] order_by
2283
2265
  # Comma separated list of triggeredJob fields to order by,
2284
2266
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -2374,9 +2356,6 @@ module Google
2374
2356
  # be all types, but may change over time as detectors are updated.
2375
2357
  # @param [String] parent
2376
2358
  # The parent resource name, for example projects/my-project-id.
2377
- # @param [String] location_id
2378
- # The geographic location to process de-identification. Reserved for future
2379
- # extensions.
2380
2359
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
2381
2360
  # @param [String] fields
2382
2361
  # Selector specifying which fields to include in a partial response.
@@ -2395,14 +2374,13 @@ module Google
2395
2374
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2396
2375
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2397
2376
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2398
- def deidentify_project_location_content(parent, location_id, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2399
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:deidentify', options)
2377
+ def deidentify_project_location_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2378
+ command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
2400
2379
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
2401
2380
  command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
2402
2381
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
2403
2382
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
2404
2383
  command.params['parent'] = parent unless parent.nil?
2405
- command.params['locationId'] = location_id unless location_id.nil?
2406
2384
  command.query['fields'] = fields unless fields.nil?
2407
2385
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2408
2386
  execute_or_queue_command(command, &block)
@@ -2417,11 +2395,6 @@ module Google
2417
2395
  # and https://cloud.google.com/dlp/docs/inspecting-text,
2418
2396
  # @param [String] parent
2419
2397
  # The parent resource name, for example projects/my-project-id.
2420
- # @param [String] location_id
2421
- # The geographic location to process content inspection. Reserved for future
2422
- # extensions.
2423
- # When inspecting images location is restricted to 'global', 'us', 'asia',
2424
- # and 'europe'.
2425
2398
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
2426
2399
  # @param [String] fields
2427
2400
  # Selector specifying which fields to include in a partial response.
@@ -2440,14 +2413,13 @@ module Google
2440
2413
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2441
2414
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2442
2415
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2443
- def inspect_project_location_content(parent, location_id, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2444
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:inspect', options)
2416
+ def inspect_project_location_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2417
+ command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
2445
2418
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
2446
2419
  command.request_object = google_privacy_dlp_v2_inspect_content_request_object
2447
2420
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
2448
2421
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
2449
2422
  command.params['parent'] = parent unless parent.nil?
2450
- command.params['locationId'] = location_id unless location_id.nil?
2451
2423
  command.query['fields'] = fields unless fields.nil?
2452
2424
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2453
2425
  execute_or_queue_command(command, &block)
@@ -2460,9 +2432,6 @@ module Google
2460
2432
  # to learn more.
2461
2433
  # @param [String] parent
2462
2434
  # Required. The parent resource name.
2463
- # @param [String] location_id
2464
- # The geographic location to process content reidentification. Reserved for
2465
- # future extensions.
2466
2435
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
2467
2436
  # @param [String] fields
2468
2437
  # Selector specifying which fields to include in a partial response.
@@ -2481,14 +2450,13 @@ module Google
2481
2450
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2482
2451
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2483
2452
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2484
- def reidentify_project_location_content(parent, location_id, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2485
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:reidentify', options)
2453
+ def reidentify_project_location_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2454
+ command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
2486
2455
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
2487
2456
  command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
2488
2457
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
2489
2458
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
2490
2459
  command.params['parent'] = parent unless parent.nil?
2491
- command.params['locationId'] = location_id unless location_id.nil?
2492
2460
  command.query['fields'] = fields unless fields.nil?
2493
2461
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2494
2462
  execute_or_queue_command(command, &block)
@@ -2501,9 +2469,6 @@ module Google
2501
2469
  # @param [String] parent
2502
2470
  # Required. The parent resource name, for example projects/my-project-id or
2503
2471
  # organizations/my-org-id.
2504
- # @param [String] location_id
2505
- # The geographic location to store the deidentification template. Reserved
2506
- # for future extensions.
2507
2472
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
2508
2473
  # @param [String] fields
2509
2474
  # Selector specifying which fields to include in a partial response.
@@ -2522,14 +2487,13 @@ module Google
2522
2487
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2523
2488
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2524
2489
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2525
- def create_project_location_deidentify_template(parent, location_id, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2526
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
2490
+ def create_project_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2491
+ command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
2527
2492
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
2528
2493
  command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
2529
2494
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
2530
2495
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
2531
2496
  command.params['parent'] = parent unless parent.nil?
2532
- command.params['locationId'] = location_id unless location_id.nil?
2533
2497
  command.query['fields'] = fields unless fields.nil?
2534
2498
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2535
2499
  execute_or_queue_command(command, &block)
@@ -2612,8 +2576,7 @@ module Google
2612
2576
  # Required. The parent resource name, for example projects/my-project-id or
2613
2577
  # organizations/my-org-id.
2614
2578
  # @param [String] location_id
2615
- # The geographic location where deidentifications templates will be retrieved
2616
- # from. Use `-` for all locations. Reserved for future extensions.
2579
+ # Deprecated. This field has no effect.
2617
2580
  # @param [String] order_by
2618
2581
  # Comma separated list of fields to order by,
2619
2582
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -2648,12 +2611,12 @@ module Google
2648
2611
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2649
2612
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2650
2613
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2651
- def list_project_location_deidentify_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2652
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
2614
+ def list_project_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2615
+ command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
2653
2616
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
2654
2617
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
2655
2618
  command.params['parent'] = parent unless parent.nil?
2656
- command.params['locationId'] = location_id unless location_id.nil?
2619
+ command.query['locationId'] = location_id unless location_id.nil?
2657
2620
  command.query['orderBy'] = order_by unless order_by.nil?
2658
2621
  command.query['pageSize'] = page_size unless page_size.nil?
2659
2622
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -2745,9 +2708,6 @@ module Google
2745
2708
  # be all types, but may change over time as detectors are updated.
2746
2709
  # @param [String] parent
2747
2710
  # Required. The parent resource name, for example projects/my-project-id.
2748
- # @param [String] location_id
2749
- # The geographic location to store and process the job. Reserved for
2750
- # future extensions.
2751
2711
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
2752
2712
  # @param [String] fields
2753
2713
  # Selector specifying which fields to include in a partial response.
@@ -2766,14 +2726,13 @@ module Google
2766
2726
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2767
2727
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2768
2728
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2769
- def create_project_location_dlp_job(parent, location_id, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2770
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/dlpJobs', options)
2729
+ def create_project_location_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2730
+ command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
2771
2731
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
2772
2732
  command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
2773
2733
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
2774
2734
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
2775
2735
  command.params['parent'] = parent unless parent.nil?
2776
- command.params['locationId'] = location_id unless location_id.nil?
2777
2736
  command.query['fields'] = fields unless fields.nil?
2778
2737
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2779
2738
  execute_or_queue_command(command, &block)
@@ -2926,9 +2885,6 @@ module Google
2926
2885
  # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
2927
2886
  # @param [String] parent
2928
2887
  # Required. The parent resource name, for example projects/my-project-id.
2929
- # @param [String] location_id
2930
- # The geographic location where jobs will be retrieved from.
2931
- # Use `-` for all locations. Reserved for future extensions.
2932
2888
  # @param [String] filter
2933
2889
  # Allows filtering.
2934
2890
  # Supported syntax:
@@ -2953,6 +2909,8 @@ module Google
2953
2909
  # * inspected_storage = cloud_storage AND (state = done OR state = canceled)
2954
2910
  # * end_time > \"2017-12-12T00:00:00+00:00\"
2955
2911
  # The length of this field should be no more than 500 characters.
2912
+ # @param [String] location_id
2913
+ # Deprecated. This field has no effect.
2956
2914
  # @param [String] order_by
2957
2915
  # Comma separated list of fields to order by,
2958
2916
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -2987,13 +2945,13 @@ module Google
2987
2945
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2988
2946
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2989
2947
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2990
- def list_project_location_dlp_jobs(parent, location_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
2991
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/dlpJobs', options)
2948
+ def list_project_location_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
2949
+ command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
2992
2950
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
2993
2951
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
2994
2952
  command.params['parent'] = parent unless parent.nil?
2995
- command.params['locationId'] = location_id unless location_id.nil?
2996
2953
  command.query['filter'] = filter unless filter.nil?
2954
+ command.query['locationId'] = location_id unless location_id.nil?
2997
2955
  command.query['orderBy'] = order_by unless order_by.nil?
2998
2956
  command.query['pageSize'] = page_size unless page_size.nil?
2999
2957
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -3012,10 +2970,6 @@ module Google
3012
2970
  # be all types, but may change over time as detectors are updated.
3013
2971
  # @param [String] parent
3014
2972
  # The parent resource name, for example projects/my-project-id.
3015
- # @param [String] location_id
3016
- # The geographic location to process the request. Reserved for future
3017
- # extensions.
3018
- # Location is restricted to 'global', 'us', 'asia', and 'europe'.
3019
2973
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
3020
2974
  # @param [String] fields
3021
2975
  # Selector specifying which fields to include in a partial response.
@@ -3034,14 +2988,13 @@ module Google
3034
2988
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3035
2989
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3036
2990
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3037
- def redact_project_location_image(parent, location_id, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3038
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/image:redact', options)
2991
+ def redact_project_location_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2992
+ command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
3039
2993
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
3040
2994
  command.request_object = google_privacy_dlp_v2_redact_image_request_object
3041
2995
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
3042
2996
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
3043
2997
  command.params['parent'] = parent unless parent.nil?
3044
- command.params['locationId'] = location_id unless location_id.nil?
3045
2998
  command.query['fields'] = fields unless fields.nil?
3046
2999
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3047
3000
  execute_or_queue_command(command, &block)
@@ -3053,9 +3006,6 @@ module Google
3053
3006
  # @param [String] parent
3054
3007
  # Required. The parent resource name, for example projects/my-project-id or
3055
3008
  # organizations/my-org-id.
3056
- # @param [String] location_id
3057
- # The geographic location to store the inspection template. Reserved for
3058
- # future extensions.
3059
3009
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
3060
3010
  # @param [String] fields
3061
3011
  # Selector specifying which fields to include in a partial response.
@@ -3074,14 +3024,13 @@ module Google
3074
3024
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3075
3025
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3076
3026
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3077
- def create_project_location_inspect_template(parent, location_id, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3078
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
3027
+ def create_project_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3028
+ command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
3079
3029
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
3080
3030
  command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
3081
3031
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
3082
3032
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
3083
3033
  command.params['parent'] = parent unless parent.nil?
3084
- command.params['locationId'] = location_id unless location_id.nil?
3085
3034
  command.query['fields'] = fields unless fields.nil?
3086
3035
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3087
3036
  execute_or_queue_command(command, &block)
@@ -3161,8 +3110,7 @@ module Google
3161
3110
  # Required. The parent resource name, for example projects/my-project-id or
3162
3111
  # organizations/my-org-id.
3163
3112
  # @param [String] location_id
3164
- # The geographic location where inspection templates will be retrieved from.
3165
- # Use `-` for all locations. Reserved for future extensions.
3113
+ # Deprecated. This field has no effect.
3166
3114
  # @param [String] order_by
3167
3115
  # Comma separated list of fields to order by,
3168
3116
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -3197,12 +3145,12 @@ module Google
3197
3145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3198
3146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3199
3147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3200
- def list_project_location_inspect_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3201
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
3148
+ def list_project_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3149
+ command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
3202
3150
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
3203
3151
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
3204
3152
  command.params['parent'] = parent unless parent.nil?
3205
- command.params['locationId'] = location_id unless location_id.nil?
3153
+ command.query['locationId'] = location_id unless location_id.nil?
3206
3154
  command.query['orderBy'] = order_by unless order_by.nil?
3207
3155
  command.query['pageSize'] = page_size unless page_size.nil?
3208
3156
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -3287,9 +3235,6 @@ module Google
3287
3235
  # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
3288
3236
  # @param [String] parent
3289
3237
  # Required. The parent resource name, for example projects/my-project-id.
3290
- # @param [String] location_id
3291
- # The geographic location to store the job trigger. Reserved for
3292
- # future extensions.
3293
3238
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
3294
3239
  # @param [String] fields
3295
3240
  # Selector specifying which fields to include in a partial response.
@@ -3308,14 +3253,13 @@ module Google
3308
3253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3309
3254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3310
3255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3311
- def create_project_location_job_trigger(parent, location_id, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3312
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/jobTriggers', options)
3256
+ def create_project_location_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3257
+ command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
3313
3258
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
3314
3259
  command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
3315
3260
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
3316
3261
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
3317
3262
  command.params['parent'] = parent unless parent.nil?
3318
- command.params['locationId'] = location_id unless location_id.nil?
3319
3263
  command.query['fields'] = fields unless fields.nil?
3320
3264
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3321
3265
  execute_or_queue_command(command, &block)
@@ -3429,9 +3373,6 @@ module Google
3429
3373
  # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
3430
3374
  # @param [String] parent
3431
3375
  # Required. The parent resource name, for example `projects/my-project-id`.
3432
- # @param [String] location_id
3433
- # The geographic location where job triggers will be retrieved from.
3434
- # Use `-` for all locations. Reserved for future extensions.
3435
3376
  # @param [String] filter
3436
3377
  # Allows filtering.
3437
3378
  # Supported syntax:
@@ -3452,6 +3393,8 @@ module Google
3452
3393
  # * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
3453
3394
  # * last_run_time > \"2017-12-12T00:00:00+00:00\"
3454
3395
  # The length of this field should be no more than 500 characters.
3396
+ # @param [String] location_id
3397
+ # Deprecated. This field has no effect.
3455
3398
  # @param [String] order_by
3456
3399
  # Comma separated list of triggeredJob fields to order by,
3457
3400
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -3488,13 +3431,13 @@ module Google
3488
3431
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3489
3432
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3490
3433
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3491
- def list_project_location_job_triggers(parent, location_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3492
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/jobTriggers', options)
3434
+ def list_project_location_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3435
+ command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
3493
3436
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
3494
3437
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
3495
3438
  command.params['parent'] = parent unless parent.nil?
3496
- command.params['locationId'] = location_id unless location_id.nil?
3497
3439
  command.query['filter'] = filter unless filter.nil?
3440
+ command.query['locationId'] = location_id unless location_id.nil?
3498
3441
  command.query['orderBy'] = order_by unless order_by.nil?
3499
3442
  command.query['pageSize'] = page_size unless page_size.nil?
3500
3443
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -3544,9 +3487,6 @@ module Google
3544
3487
  # @param [String] parent
3545
3488
  # Required. The parent resource name, for example projects/my-project-id or
3546
3489
  # organizations/my-org-id.
3547
- # @param [String] location_id
3548
- # The geographic location to store the stored infoType. Reserved for
3549
- # future extensions.
3550
3490
  # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
3551
3491
  # @param [String] fields
3552
3492
  # Selector specifying which fields to include in a partial response.
@@ -3565,14 +3505,13 @@ module Google
3565
3505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3566
3506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3567
3507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3568
- def create_project_location_stored_info_type(parent, location_id, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3569
- command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
3508
+ def create_project_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3509
+ command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
3570
3510
  command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
3571
3511
  command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
3572
3512
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
3573
3513
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
3574
3514
  command.params['parent'] = parent unless parent.nil?
3575
- command.params['locationId'] = location_id unless location_id.nil?
3576
3515
  command.query['fields'] = fields unless fields.nil?
3577
3516
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3578
3517
  execute_or_queue_command(command, &block)
@@ -3654,8 +3593,7 @@ module Google
3654
3593
  # Required. The parent resource name, for example projects/my-project-id or
3655
3594
  # organizations/my-org-id.
3656
3595
  # @param [String] location_id
3657
- # The geographic location where stored infoTypes will be retrieved from.
3658
- # Use `-` for all locations. Reserved for future extensions.
3596
+ # Deprecated. This field has no effect.
3659
3597
  # @param [String] order_by
3660
3598
  # Comma separated list of fields to order by,
3661
3599
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
@@ -3691,12 +3629,12 @@ module Google
3691
3629
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3692
3630
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3693
3631
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3694
- def list_project_location_stored_info_types(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3695
- command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
3632
+ def list_project_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3633
+ command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
3696
3634
  command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
3697
3635
  command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
3698
3636
  command.params['parent'] = parent unless parent.nil?
3699
- command.params['locationId'] = location_id unless location_id.nil?
3637
+ command.query['locationId'] = location_id unless location_id.nil?
3700
3638
  command.query['orderBy'] = order_by unless order_by.nil?
3701
3639
  command.query['pageSize'] = page_size unless page_size.nil?
3702
3640
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -3855,8 +3793,7 @@ module Google
3855
3793
  # Required. The parent resource name, for example projects/my-project-id or
3856
3794
  # organizations/my-org-id.
3857
3795
  # @param [String] location_id
3858
- # The geographic location where stored infoTypes will be retrieved from.
3859
- # Use `-` for all locations. Reserved for future extensions.
3796
+ # Deprecated. This field has no effect.
3860
3797
  # @param [String] order_by
3861
3798
  # Comma separated list of fields to order by,
3862
3799
  # followed by `asc` or `desc` postfix. This list is case-insensitive,