google-api-client 0.27.2 → 0.27.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  4. data/generated/google/apis/bigtableadmin_v2/classes.rb +45 -0
  5. data/generated/google/apis/bigtableadmin_v2/representations.rb +17 -0
  6. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  7. data/generated/google/apis/cloudkms_v1.rb +4 -1
  8. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  9. data/generated/google/apis/cloudtrace_v2/classes.rb +2 -2
  10. data/generated/google/apis/compute_alpha.rb +1 -1
  11. data/generated/google/apis/compute_alpha/classes.rb +1198 -13
  12. data/generated/google/apis/compute_alpha/representations.rb +406 -0
  13. data/generated/google/apis/compute_alpha/service.rb +200 -4
  14. data/generated/google/apis/compute_beta.rb +1 -1
  15. data/generated/google/apis/compute_beta/classes.rb +23 -9
  16. data/generated/google/apis/compute_beta/representations.rb +2 -0
  17. data/generated/google/apis/compute_beta/service.rb +41 -4
  18. data/generated/google/apis/compute_v1.rb +1 -1
  19. data/generated/google/apis/compute_v1/classes.rb +65 -6
  20. data/generated/google/apis/compute_v1/representations.rb +19 -0
  21. data/generated/google/apis/compute_v1/service.rb +4 -4
  22. data/generated/google/apis/container_v1.rb +1 -1
  23. data/generated/google/apis/container_v1/classes.rb +145 -0
  24. data/generated/google/apis/container_v1/representations.rb +54 -0
  25. data/generated/google/apis/container_v1/service.rb +69 -0
  26. data/generated/google/apis/container_v1beta1.rb +1 -1
  27. data/generated/google/apis/container_v1beta1/classes.rb +177 -0
  28. data/generated/google/apis/container_v1beta1/representations.rb +70 -0
  29. data/generated/google/apis/container_v1beta1/service.rb +69 -0
  30. data/generated/google/apis/containeranalysis_v1alpha1.rb +35 -0
  31. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +2780 -0
  32. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1106 -0
  33. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +1329 -0
  34. data/generated/google/apis/containeranalysis_v1beta1.rb +35 -0
  35. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2702 -0
  36. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1152 -0
  37. data/generated/google/apis/containeranalysis_v1beta1/service.rb +932 -0
  38. data/generated/google/apis/content_v2.rb +1 -1
  39. data/generated/google/apis/content_v2/classes.rb +84 -14
  40. data/generated/google/apis/content_v2/representations.rb +24 -0
  41. data/generated/google/apis/content_v2_1.rb +1 -1
  42. data/generated/google/apis/content_v2_1/classes.rb +70 -11
  43. data/generated/google/apis/content_v2_1/representations.rb +25 -3
  44. data/generated/google/apis/dialogflow_v2.rb +1 -1
  45. data/generated/google/apis/dialogflow_v2/classes.rb +20 -20
  46. data/generated/google/apis/dialogflow_v2/service.rb +6 -6
  47. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  48. data/generated/google/apis/dialogflow_v2beta1/classes.rb +20 -20
  49. data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
  50. data/generated/google/apis/dns_v1.rb +1 -1
  51. data/generated/google/apis/dns_v1/classes.rb +19 -10
  52. data/generated/google/apis/dns_v1beta2.rb +1 -1
  53. data/generated/google/apis/dns_v1beta2/classes.rb +31 -22
  54. data/generated/google/apis/dns_v2beta1.rb +1 -1
  55. data/generated/google/apis/dns_v2beta1/classes.rb +19 -10
  56. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  57. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  58. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  59. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  60. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +7 -0
  61. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  62. data/generated/google/apis/firestore_v1.rb +1 -1
  63. data/generated/google/apis/firestore_v1/classes.rb +18 -0
  64. data/generated/google/apis/firestore_v1/representations.rb +6 -0
  65. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  66. data/generated/google/apis/firestore_v1beta1/classes.rb +18 -0
  67. data/generated/google/apis/firestore_v1beta1/representations.rb +6 -0
  68. data/generated/google/apis/fitness_v1.rb +1 -1
  69. data/generated/google/apis/fitness_v1/classes.rb +2 -1
  70. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  71. data/generated/google/apis/jobs_v3p1beta1/classes.rb +169 -0
  72. data/generated/google/apis/jobs_v3p1beta1/representations.rb +33 -0
  73. data/generated/google/apis/jobs_v3p1beta1/service.rb +32 -0
  74. data/generated/google/apis/libraryagent_v1.rb +34 -0
  75. data/generated/google/apis/libraryagent_v1/classes.rb +151 -0
  76. data/generated/google/apis/libraryagent_v1/representations.rb +86 -0
  77. data/generated/google/apis/libraryagent_v1/service.rb +265 -0
  78. data/generated/google/apis/oslogin_v1.rb +2 -2
  79. data/generated/google/apis/oslogin_v1/service.rb +1 -1
  80. data/generated/google/apis/oslogin_v1alpha.rb +2 -2
  81. data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
  82. data/generated/google/apis/oslogin_v1beta.rb +2 -2
  83. data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
  84. data/generated/google/apis/remotebuildexecution_v1.rb +34 -0
  85. data/generated/google/apis/remotebuildexecution_v1/classes.rb +3858 -0
  86. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1196 -0
  87. data/generated/google/apis/remotebuildexecution_v1/service.rb +374 -0
  88. data/generated/google/apis/remotebuildexecution_v1alpha.rb +34 -0
  89. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +3709 -0
  90. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1113 -0
  91. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +400 -0
  92. data/generated/google/apis/remotebuildexecution_v2.rb +34 -0
  93. data/generated/google/apis/remotebuildexecution_v2/classes.rb +4460 -0
  94. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1431 -0
  95. data/generated/google/apis/remotebuildexecution_v2/service.rb +542 -0
  96. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  97. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -0
  98. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +2 -0
  99. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  100. data/generated/google/apis/servicenetworking_v1beta/classes.rb +12 -0
  101. data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -0
  102. data/generated/google/apis/serviceusage_v1.rb +1 -1
  103. data/generated/google/apis/serviceusage_v1/classes.rb +12 -0
  104. data/generated/google/apis/serviceusage_v1/representations.rb +2 -0
  105. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  106. data/generated/google/apis/serviceusage_v1beta1/classes.rb +12 -0
  107. data/generated/google/apis/serviceusage_v1beta1/representations.rb +2 -0
  108. data/generated/google/apis/sheets_v4.rb +1 -1
  109. data/generated/google/apis/sheets_v4/classes.rb +4 -4
  110. data/generated/google/apis/slides_v1.rb +1 -1
  111. data/generated/google/apis/slides_v1/classes.rb +5 -5
  112. data/generated/google/apis/speech_v1.rb +1 -1
  113. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  114. data/generated/google/apis/testing_v1.rb +1 -1
  115. data/generated/google/apis/testing_v1/classes.rb +9 -0
  116. data/generated/google/apis/testing_v1/representations.rb +1 -0
  117. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  118. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +7 -0
  119. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +2 -0
  120. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  121. data/lib/google/apis/version.rb +1 -1
  122. metadata +26 -2
@@ -0,0 +1,932 @@
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 ContaineranalysisV1beta1
23
+ # Container Analysis API
24
+ #
25
+ # An implementation of the Grafeas API, which stores, and enables querying and
26
+ # retrieval of critical metadata about all of your software artifacts.
27
+ #
28
+ # @example
29
+ # require 'google/apis/containeranalysis_v1beta1'
30
+ #
31
+ # Containeranalysis = Google::Apis::ContaineranalysisV1beta1 # Alias the module
32
+ # service = Containeranalysis::ContainerAnalysisService.new
33
+ #
34
+ # @see https://cloud.google.com/container-analysis/api/reference/rest/
35
+ class ContainerAnalysisService < 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://containeranalysis.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Creates new notes in batch.
52
+ # @param [String] parent
53
+ # The name of the project in the form of `projects/[PROJECT_ID]`, under which
54
+ # the notes are to be created.
55
+ # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest] batch_create_notes_request_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def batch_create_notes(parent, batch_create_notes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1beta1/{+parent}/notes:batchCreate', options)
75
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest::Representation
76
+ command.request_object = batch_create_notes_request_object
77
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse::Representation
78
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse
79
+ command.params['parent'] = parent unless parent.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Creates a new note.
86
+ # @param [String] parent
87
+ # The name of the project in the form of `projects/[PROJECT_ID]`, under which
88
+ # the note is to be created.
89
+ # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object
90
+ # @param [String] note_id
91
+ # The ID to use for this note.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [String] quota_user
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [Google::Apis::RequestOptions] options
98
+ # Request-specific options
99
+ #
100
+ # @yield [result, err] Result & error if block supplied
101
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
102
+ # @yieldparam err [StandardError] error object if request failed
103
+ #
104
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
105
+ #
106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
109
+ def create_project_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ command = make_simple_command(:post, 'v1beta1/{+parent}/notes', options)
111
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
112
+ command.request_object = note_object
113
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
114
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
115
+ command.params['parent'] = parent unless parent.nil?
116
+ command.query['noteId'] = note_id unless note_id.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
+ # Deletes the specified note.
123
+ # @param [String] name
124
+ # The name of the note in the form of
125
+ # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
126
+ # @param [String] fields
127
+ # Selector specifying which fields to include in a partial response.
128
+ # @param [String] quota_user
129
+ # Available to use for quota purposes for server-side applications. Can be any
130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
131
+ # @param [Google::Apis::RequestOptions] options
132
+ # Request-specific options
133
+ #
134
+ # @yield [result, err] Result & error if block supplied
135
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Empty] parsed result object
136
+ # @yieldparam err [StandardError] error object if request failed
137
+ #
138
+ # @return [Google::Apis::ContaineranalysisV1beta1::Empty]
139
+ #
140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
143
+ def delete_project_note(name, fields: nil, quota_user: nil, options: nil, &block)
144
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
145
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation
146
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Empty
147
+ command.params['name'] = name unless name.nil?
148
+ command.query['fields'] = fields unless fields.nil?
149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
150
+ execute_or_queue_command(command, &block)
151
+ end
152
+
153
+ # Gets the specified note.
154
+ # @param [String] name
155
+ # The name of the note in the form of
156
+ # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
159
+ # @param [String] quota_user
160
+ # Available to use for quota purposes for server-side applications. Can be any
161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
162
+ # @param [Google::Apis::RequestOptions] options
163
+ # Request-specific options
164
+ #
165
+ # @yield [result, err] Result & error if block supplied
166
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
167
+ # @yieldparam err [StandardError] error object if request failed
168
+ #
169
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
170
+ #
171
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
174
+ def get_project_note(name, fields: nil, quota_user: nil, options: nil, &block)
175
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
176
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
177
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
178
+ command.params['name'] = name unless name.nil?
179
+ command.query['fields'] = fields unless fields.nil?
180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
181
+ execute_or_queue_command(command, &block)
182
+ end
183
+
184
+ # Gets the access control policy for a note or an occurrence resource.
185
+ # Requires `containeranalysis.notes.setIamPolicy` or
186
+ # `containeranalysis.occurrences.setIamPolicy` permission if the resource is
187
+ # a note or occurrence, respectively.
188
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
189
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
190
+ # occurrences.
191
+ # @param [String] resource
192
+ # REQUIRED: The resource for which the policy is being requested.
193
+ # See the operation documentation for the appropriate value for this field.
194
+ # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
195
+ # @param [String] fields
196
+ # Selector specifying which fields to include in a partial response.
197
+ # @param [String] quota_user
198
+ # Available to use for quota purposes for server-side applications. Can be any
199
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
200
+ # @param [Google::Apis::RequestOptions] options
201
+ # Request-specific options
202
+ #
203
+ # @yield [result, err] Result & error if block supplied
204
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
205
+ # @yieldparam err [StandardError] error object if request failed
206
+ #
207
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
208
+ #
209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
212
+ def get_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
213
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
214
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation
215
+ command.request_object = get_iam_policy_request_object
216
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
217
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
218
+ command.params['resource'] = resource unless resource.nil?
219
+ command.query['fields'] = fields unless fields.nil?
220
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
221
+ execute_or_queue_command(command, &block)
222
+ end
223
+
224
+ # Lists notes for the specified project.
225
+ # @param [String] parent
226
+ # The name of the project to list notes for in the form of
227
+ # `projects/[PROJECT_ID]`.
228
+ # @param [String] filter
229
+ # The filter expression.
230
+ # @param [Fixnum] page_size
231
+ # Number of notes to return in the list. Must be positive. Max allowed page
232
+ # size is 1000. If not specified, page size defaults to 20.
233
+ # @param [String] page_token
234
+ # Token to provide to skip to a particular spot in the list.
235
+ # @param [String] fields
236
+ # Selector specifying which fields to include in a partial response.
237
+ # @param [String] quota_user
238
+ # Available to use for quota purposes for server-side applications. Can be any
239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
240
+ # @param [Google::Apis::RequestOptions] options
241
+ # Request-specific options
242
+ #
243
+ # @yield [result, err] Result & error if block supplied
244
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ListNotesResponse] parsed result object
245
+ # @yieldparam err [StandardError] error object if request failed
246
+ #
247
+ # @return [Google::Apis::ContaineranalysisV1beta1::ListNotesResponse]
248
+ #
249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
252
+ def list_project_notes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
253
+ command = make_simple_command(:get, 'v1beta1/{+parent}/notes', options)
254
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListNotesResponse::Representation
255
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::ListNotesResponse
256
+ command.params['parent'] = parent unless parent.nil?
257
+ command.query['filter'] = filter unless filter.nil?
258
+ command.query['pageSize'] = page_size unless page_size.nil?
259
+ command.query['pageToken'] = page_token unless page_token.nil?
260
+ command.query['fields'] = fields unless fields.nil?
261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
262
+ execute_or_queue_command(command, &block)
263
+ end
264
+
265
+ # Updates the specified note.
266
+ # @param [String] name
267
+ # The name of the note in the form of
268
+ # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
269
+ # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object
270
+ # @param [String] update_mask
271
+ # The fields to update.
272
+ # @param [String] fields
273
+ # Selector specifying which fields to include in a partial response.
274
+ # @param [String] quota_user
275
+ # Available to use for quota purposes for server-side applications. Can be any
276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
277
+ # @param [Google::Apis::RequestOptions] options
278
+ # Request-specific options
279
+ #
280
+ # @yield [result, err] Result & error if block supplied
281
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
282
+ # @yieldparam err [StandardError] error object if request failed
283
+ #
284
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
285
+ #
286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
289
+ def patch_project_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
290
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
291
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
292
+ command.request_object = note_object
293
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
294
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
295
+ command.params['name'] = name unless name.nil?
296
+ command.query['updateMask'] = update_mask unless update_mask.nil?
297
+ command.query['fields'] = fields unless fields.nil?
298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
299
+ execute_or_queue_command(command, &block)
300
+ end
301
+
302
+ # Sets the access control policy on the specified note or occurrence.
303
+ # Requires `containeranalysis.notes.setIamPolicy` or
304
+ # `containeranalysis.occurrences.setIamPolicy` permission if the resource is
305
+ # a note or an occurrence, respectively.
306
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
307
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
308
+ # occurrences.
309
+ # @param [String] resource
310
+ # REQUIRED: The resource for which the policy is being specified.
311
+ # See the operation documentation for the appropriate value for this field.
312
+ # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
313
+ # @param [String] fields
314
+ # Selector specifying which fields to include in a partial response.
315
+ # @param [String] quota_user
316
+ # Available to use for quota purposes for server-side applications. Can be any
317
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
318
+ # @param [Google::Apis::RequestOptions] options
319
+ # Request-specific options
320
+ #
321
+ # @yield [result, err] Result & error if block supplied
322
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
323
+ # @yieldparam err [StandardError] error object if request failed
324
+ #
325
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
326
+ #
327
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
328
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
329
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
330
+ def set_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
331
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
332
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation
333
+ command.request_object = set_iam_policy_request_object
334
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
335
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
336
+ command.params['resource'] = resource unless resource.nil?
337
+ command.query['fields'] = fields unless fields.nil?
338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
339
+ execute_or_queue_command(command, &block)
340
+ end
341
+
342
+ # Returns the permissions that a caller has on the specified note or
343
+ # occurrence. Requires list permission on the project (for example,
344
+ # `containeranalysis.notes.list`).
345
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
346
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
347
+ # occurrences.
348
+ # @param [String] resource
349
+ # REQUIRED: The resource for which the policy detail is being requested.
350
+ # See the operation documentation for the appropriate value for this field.
351
+ # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
352
+ # @param [String] fields
353
+ # Selector specifying which fields to include in a partial response.
354
+ # @param [String] quota_user
355
+ # Available to use for quota purposes for server-side applications. Can be any
356
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
357
+ # @param [Google::Apis::RequestOptions] options
358
+ # Request-specific options
359
+ #
360
+ # @yield [result, err] Result & error if block supplied
361
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse] parsed result object
362
+ # @yieldparam err [StandardError] error object if request failed
363
+ #
364
+ # @return [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse]
365
+ #
366
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
367
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
368
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
369
+ def test_note_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
370
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
371
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation
372
+ command.request_object = test_iam_permissions_request_object
373
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation
374
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse
375
+ command.params['resource'] = resource unless resource.nil?
376
+ command.query['fields'] = fields unless fields.nil?
377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
378
+ execute_or_queue_command(command, &block)
379
+ end
380
+
381
+ # Lists occurrences referencing the specified note. Provider projects can use
382
+ # this method to get all occurrences across consumer projects referencing the
383
+ # specified note.
384
+ # @param [String] name
385
+ # The name of the note to list occurrences for in the form of
386
+ # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
387
+ # @param [String] filter
388
+ # The filter expression.
389
+ # @param [Fixnum] page_size
390
+ # Number of occurrences to return in the list.
391
+ # @param [String] page_token
392
+ # Token to provide to skip to a particular spot in the list.
393
+ # @param [String] fields
394
+ # Selector specifying which fields to include in a partial response.
395
+ # @param [String] quota_user
396
+ # Available to use for quota purposes for server-side applications. Can be any
397
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
398
+ # @param [Google::Apis::RequestOptions] options
399
+ # Request-specific options
400
+ #
401
+ # @yield [result, err] Result & error if block supplied
402
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ListNoteOccurrencesResponse] parsed result object
403
+ # @yieldparam err [StandardError] error object if request failed
404
+ #
405
+ # @return [Google::Apis::ContaineranalysisV1beta1::ListNoteOccurrencesResponse]
406
+ #
407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
410
+ def list_project_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
411
+ command = make_simple_command(:get, 'v1beta1/{+name}/occurrences', options)
412
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListNoteOccurrencesResponse::Representation
413
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::ListNoteOccurrencesResponse
414
+ command.params['name'] = name unless name.nil?
415
+ command.query['filter'] = filter unless filter.nil?
416
+ command.query['pageSize'] = page_size unless page_size.nil?
417
+ command.query['pageToken'] = page_token unless page_token.nil?
418
+ command.query['fields'] = fields unless fields.nil?
419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
420
+ execute_or_queue_command(command, &block)
421
+ end
422
+
423
+ # Creates new occurrences in batch.
424
+ # @param [String] parent
425
+ # The name of the project in the form of `projects/[PROJECT_ID]`, under which
426
+ # the occurrences are to be created.
427
+ # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest] batch_create_occurrences_request_object
428
+ # @param [String] fields
429
+ # Selector specifying which fields to include in a partial response.
430
+ # @param [String] quota_user
431
+ # Available to use for quota purposes for server-side applications. Can be any
432
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
433
+ # @param [Google::Apis::RequestOptions] options
434
+ # Request-specific options
435
+ #
436
+ # @yield [result, err] Result & error if block supplied
437
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse] parsed result object
438
+ # @yieldparam err [StandardError] error object if request failed
439
+ #
440
+ # @return [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse]
441
+ #
442
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
445
+ def batch_create_occurrences(parent, batch_create_occurrences_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
446
+ command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences:batchCreate', options)
447
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest::Representation
448
+ command.request_object = batch_create_occurrences_request_object
449
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse::Representation
450
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse
451
+ command.params['parent'] = parent unless parent.nil?
452
+ command.query['fields'] = fields unless fields.nil?
453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
454
+ execute_or_queue_command(command, &block)
455
+ end
456
+
457
+ # Creates a new occurrence.
458
+ # @param [String] parent
459
+ # The name of the project in the form of `projects/[PROJECT_ID]`, under which
460
+ # the occurrence is to be created.
461
+ # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object
462
+ # @param [String] fields
463
+ # Selector specifying which fields to include in a partial response.
464
+ # @param [String] quota_user
465
+ # Available to use for quota purposes for server-side applications. Can be any
466
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
467
+ # @param [Google::Apis::RequestOptions] options
468
+ # Request-specific options
469
+ #
470
+ # @yield [result, err] Result & error if block supplied
471
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Occurrence] parsed result object
472
+ # @yieldparam err [StandardError] error object if request failed
473
+ #
474
+ # @return [Google::Apis::ContaineranalysisV1beta1::Occurrence]
475
+ #
476
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
477
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
478
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
479
+ def create_project_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil, &block)
480
+ command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences', options)
481
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
482
+ command.request_object = occurrence_object
483
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
484
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Occurrence
485
+ command.params['parent'] = parent unless parent.nil?
486
+ command.query['fields'] = fields unless fields.nil?
487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
488
+ execute_or_queue_command(command, &block)
489
+ end
490
+
491
+ # Deletes the specified occurrence. For example, use this method to delete an
492
+ # occurrence when the occurrence is no longer applicable for the given
493
+ # resource.
494
+ # @param [String] name
495
+ # The name of the occurrence in the form of
496
+ # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
497
+ # @param [String] fields
498
+ # Selector specifying which fields to include in a partial response.
499
+ # @param [String] quota_user
500
+ # Available to use for quota purposes for server-side applications. Can be any
501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
502
+ # @param [Google::Apis::RequestOptions] options
503
+ # Request-specific options
504
+ #
505
+ # @yield [result, err] Result & error if block supplied
506
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Empty] parsed result object
507
+ # @yieldparam err [StandardError] error object if request failed
508
+ #
509
+ # @return [Google::Apis::ContaineranalysisV1beta1::Empty]
510
+ #
511
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
514
+ def delete_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block)
515
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
516
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation
517
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Empty
518
+ command.params['name'] = name unless name.nil?
519
+ command.query['fields'] = fields unless fields.nil?
520
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
521
+ execute_or_queue_command(command, &block)
522
+ end
523
+
524
+ # Gets the specified occurrence.
525
+ # @param [String] name
526
+ # The name of the occurrence in the form of
527
+ # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
528
+ # @param [String] fields
529
+ # Selector specifying which fields to include in a partial response.
530
+ # @param [String] quota_user
531
+ # Available to use for quota purposes for server-side applications. Can be any
532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
533
+ # @param [Google::Apis::RequestOptions] options
534
+ # Request-specific options
535
+ #
536
+ # @yield [result, err] Result & error if block supplied
537
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Occurrence] parsed result object
538
+ # @yieldparam err [StandardError] error object if request failed
539
+ #
540
+ # @return [Google::Apis::ContaineranalysisV1beta1::Occurrence]
541
+ #
542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
545
+ def get_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block)
546
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
547
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
548
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Occurrence
549
+ command.params['name'] = name unless name.nil?
550
+ command.query['fields'] = fields unless fields.nil?
551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
552
+ execute_or_queue_command(command, &block)
553
+ end
554
+
555
+ # Gets the access control policy for a note or an occurrence resource.
556
+ # Requires `containeranalysis.notes.setIamPolicy` or
557
+ # `containeranalysis.occurrences.setIamPolicy` permission if the resource is
558
+ # a note or occurrence, respectively.
559
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
560
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
561
+ # occurrences.
562
+ # @param [String] resource
563
+ # REQUIRED: The resource for which the policy is being requested.
564
+ # See the operation documentation for the appropriate value for this field.
565
+ # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
566
+ # @param [String] fields
567
+ # Selector specifying which fields to include in a partial response.
568
+ # @param [String] quota_user
569
+ # Available to use for quota purposes for server-side applications. Can be any
570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
571
+ # @param [Google::Apis::RequestOptions] options
572
+ # Request-specific options
573
+ #
574
+ # @yield [result, err] Result & error if block supplied
575
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
576
+ # @yieldparam err [StandardError] error object if request failed
577
+ #
578
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
579
+ #
580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
583
+ def get_occurrence_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
584
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
585
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation
586
+ command.request_object = get_iam_policy_request_object
587
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
588
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
589
+ command.params['resource'] = resource unless resource.nil?
590
+ command.query['fields'] = fields unless fields.nil?
591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
592
+ execute_or_queue_command(command, &block)
593
+ end
594
+
595
+ # Gets the note attached to the specified occurrence. Consumer projects can
596
+ # use this method to get a note that belongs to a provider project.
597
+ # @param [String] name
598
+ # The name of the occurrence in the form of
599
+ # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
600
+ # @param [String] fields
601
+ # Selector specifying which fields to include in a partial response.
602
+ # @param [String] quota_user
603
+ # Available to use for quota purposes for server-side applications. Can be any
604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
605
+ # @param [Google::Apis::RequestOptions] options
606
+ # Request-specific options
607
+ #
608
+ # @yield [result, err] Result & error if block supplied
609
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
610
+ # @yieldparam err [StandardError] error object if request failed
611
+ #
612
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
613
+ #
614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
617
+ def get_project_occurrence_notes(name, fields: nil, quota_user: nil, options: nil, &block)
618
+ command = make_simple_command(:get, 'v1beta1/{+name}/notes', options)
619
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
620
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
621
+ command.params['name'] = name unless name.nil?
622
+ command.query['fields'] = fields unless fields.nil?
623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
624
+ execute_or_queue_command(command, &block)
625
+ end
626
+
627
+ # Gets a summary of the number and severity of occurrences.
628
+ # @param [String] parent
629
+ # The name of the project to get a vulnerability summary for in the form of
630
+ # `projects/[PROJECT_ID]`.
631
+ # @param [String] filter
632
+ # The filter expression.
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
635
+ # @param [String] quota_user
636
+ # Available to use for quota purposes for server-side applications. Can be any
637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
638
+ # @param [Google::Apis::RequestOptions] options
639
+ # Request-specific options
640
+ #
641
+ # @yield [result, err] Result & error if block supplied
642
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary] parsed result object
643
+ # @yieldparam err [StandardError] error object if request failed
644
+ #
645
+ # @return [Google::Apis::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary]
646
+ #
647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
650
+ def get_project_occurrence_vulnerability_summary(parent, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
651
+ command = make_simple_command(:get, 'v1beta1/{+parent}/occurrences:vulnerabilitySummary', options)
652
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary::Representation
653
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::VulnerabilityOccurrencesSummary
654
+ command.params['parent'] = parent unless parent.nil?
655
+ command.query['filter'] = filter unless filter.nil?
656
+ command.query['fields'] = fields unless fields.nil?
657
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
658
+ execute_or_queue_command(command, &block)
659
+ end
660
+
661
+ # Lists occurrences for the specified project.
662
+ # @param [String] parent
663
+ # The name of the project to list occurrences for in the form of
664
+ # `projects/[PROJECT_ID]`.
665
+ # @param [String] filter
666
+ # The filter expression.
667
+ # @param [Fixnum] page_size
668
+ # Number of occurrences to return in the list. Must be positive. Max allowed
669
+ # page size is 1000. If not specified, page size defaults to 20.
670
+ # @param [String] page_token
671
+ # Token to provide to skip to a particular spot in the list.
672
+ # @param [String] fields
673
+ # Selector specifying which fields to include in a partial response.
674
+ # @param [String] quota_user
675
+ # Available to use for quota purposes for server-side applications. Can be any
676
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
677
+ # @param [Google::Apis::RequestOptions] options
678
+ # Request-specific options
679
+ #
680
+ # @yield [result, err] Result & error if block supplied
681
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ListOccurrencesResponse] parsed result object
682
+ # @yieldparam err [StandardError] error object if request failed
683
+ #
684
+ # @return [Google::Apis::ContaineranalysisV1beta1::ListOccurrencesResponse]
685
+ #
686
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
689
+ def list_project_occurrences(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
690
+ command = make_simple_command(:get, 'v1beta1/{+parent}/occurrences', options)
691
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListOccurrencesResponse::Representation
692
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::ListOccurrencesResponse
693
+ command.params['parent'] = parent unless parent.nil?
694
+ command.query['filter'] = filter unless filter.nil?
695
+ command.query['pageSize'] = page_size unless page_size.nil?
696
+ command.query['pageToken'] = page_token unless page_token.nil?
697
+ command.query['fields'] = fields unless fields.nil?
698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
699
+ execute_or_queue_command(command, &block)
700
+ end
701
+
702
+ # Updates the specified occurrence.
703
+ # @param [String] name
704
+ # The name of the occurrence in the form of
705
+ # `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
706
+ # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object
707
+ # @param [String] update_mask
708
+ # The fields to update.
709
+ # @param [String] fields
710
+ # Selector specifying which fields to include in a partial response.
711
+ # @param [String] quota_user
712
+ # Available to use for quota purposes for server-side applications. Can be any
713
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
714
+ # @param [Google::Apis::RequestOptions] options
715
+ # Request-specific options
716
+ #
717
+ # @yield [result, err] Result & error if block supplied
718
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Occurrence] parsed result object
719
+ # @yieldparam err [StandardError] error object if request failed
720
+ #
721
+ # @return [Google::Apis::ContaineranalysisV1beta1::Occurrence]
722
+ #
723
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
724
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
725
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
726
+ def patch_project_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
727
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
728
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
729
+ command.request_object = occurrence_object
730
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
731
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Occurrence
732
+ command.params['name'] = name unless name.nil?
733
+ command.query['updateMask'] = update_mask unless update_mask.nil?
734
+ command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ execute_or_queue_command(command, &block)
737
+ end
738
+
739
+ # Sets the access control policy on the specified note or occurrence.
740
+ # Requires `containeranalysis.notes.setIamPolicy` or
741
+ # `containeranalysis.occurrences.setIamPolicy` permission if the resource is
742
+ # a note or an occurrence, respectively.
743
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
744
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
745
+ # occurrences.
746
+ # @param [String] resource
747
+ # REQUIRED: The resource for which the policy is being specified.
748
+ # See the operation documentation for the appropriate value for this field.
749
+ # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
750
+ # @param [String] fields
751
+ # Selector specifying which fields to include in a partial response.
752
+ # @param [String] quota_user
753
+ # Available to use for quota purposes for server-side applications. Can be any
754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
755
+ # @param [Google::Apis::RequestOptions] options
756
+ # Request-specific options
757
+ #
758
+ # @yield [result, err] Result & error if block supplied
759
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
760
+ # @yieldparam err [StandardError] error object if request failed
761
+ #
762
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
763
+ #
764
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
765
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
766
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
767
+ def set_occurrence_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
768
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
769
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation
770
+ command.request_object = set_iam_policy_request_object
771
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
772
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
773
+ command.params['resource'] = resource unless resource.nil?
774
+ command.query['fields'] = fields unless fields.nil?
775
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
776
+ execute_or_queue_command(command, &block)
777
+ end
778
+
779
+ # Returns the permissions that a caller has on the specified note or
780
+ # occurrence. Requires list permission on the project (for example,
781
+ # `containeranalysis.notes.list`).
782
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
783
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
784
+ # occurrences.
785
+ # @param [String] resource
786
+ # REQUIRED: The resource for which the policy detail is being requested.
787
+ # See the operation documentation for the appropriate value for this field.
788
+ # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
789
+ # @param [String] fields
790
+ # Selector specifying which fields to include in a partial response.
791
+ # @param [String] quota_user
792
+ # Available to use for quota purposes for server-side applications. Can be any
793
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
794
+ # @param [Google::Apis::RequestOptions] options
795
+ # Request-specific options
796
+ #
797
+ # @yield [result, err] Result & error if block supplied
798
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse] parsed result object
799
+ # @yieldparam err [StandardError] error object if request failed
800
+ #
801
+ # @return [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse]
802
+ #
803
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
806
+ def test_occurrence_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
807
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
808
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation
809
+ command.request_object = test_iam_permissions_request_object
810
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation
811
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse
812
+ command.params['resource'] = resource unless resource.nil?
813
+ command.query['fields'] = fields unless fields.nil?
814
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
815
+ execute_or_queue_command(command, &block)
816
+ end
817
+
818
+ # Gets the specified scan configuration.
819
+ # @param [String] name
820
+ # The name of the scan configuration in the form of
821
+ # `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
822
+ # @param [String] fields
823
+ # Selector specifying which fields to include in a partial response.
824
+ # @param [String] quota_user
825
+ # Available to use for quota purposes for server-side applications. Can be any
826
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
827
+ # @param [Google::Apis::RequestOptions] options
828
+ # Request-specific options
829
+ #
830
+ # @yield [result, err] Result & error if block supplied
831
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ScanConfig] parsed result object
832
+ # @yieldparam err [StandardError] error object if request failed
833
+ #
834
+ # @return [Google::Apis::ContaineranalysisV1beta1::ScanConfig]
835
+ #
836
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
837
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
838
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
839
+ def get_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block)
840
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
841
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
842
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::ScanConfig
843
+ command.params['name'] = name unless name.nil?
844
+ command.query['fields'] = fields unless fields.nil?
845
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
846
+ execute_or_queue_command(command, &block)
847
+ end
848
+
849
+ # Lists scan configurations for the specified project.
850
+ # @param [String] parent
851
+ # The name of the project to list scan configurations for in the form of
852
+ # `projects/[PROJECT_ID]`.
853
+ # @param [String] filter
854
+ # The filter expression.
855
+ # @param [Fixnum] page_size
856
+ # The number of scan configs to return in the list.
857
+ # @param [String] page_token
858
+ # Token to provide to skip to a particular spot in the list.
859
+ # @param [String] fields
860
+ # Selector specifying which fields to include in a partial response.
861
+ # @param [String] quota_user
862
+ # Available to use for quota purposes for server-side applications. Can be any
863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
864
+ # @param [Google::Apis::RequestOptions] options
865
+ # Request-specific options
866
+ #
867
+ # @yield [result, err] Result & error if block supplied
868
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse] parsed result object
869
+ # @yieldparam err [StandardError] error object if request failed
870
+ #
871
+ # @return [Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse]
872
+ #
873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
876
+ def list_project_scan_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
877
+ command = make_simple_command(:get, 'v1beta1/{+parent}/scanConfigs', options)
878
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse::Representation
879
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse
880
+ command.params['parent'] = parent unless parent.nil?
881
+ command.query['filter'] = filter unless filter.nil?
882
+ command.query['pageSize'] = page_size unless page_size.nil?
883
+ command.query['pageToken'] = page_token unless page_token.nil?
884
+ command.query['fields'] = fields unless fields.nil?
885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
886
+ execute_or_queue_command(command, &block)
887
+ end
888
+
889
+ # Updates the specified scan configuration.
890
+ # @param [String] name
891
+ # The name of the scan configuration in the form of
892
+ # `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
893
+ # @param [Google::Apis::ContaineranalysisV1beta1::ScanConfig] scan_config_object
894
+ # @param [String] fields
895
+ # Selector specifying which fields to include in a partial response.
896
+ # @param [String] quota_user
897
+ # Available to use for quota purposes for server-side applications. Can be any
898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
899
+ # @param [Google::Apis::RequestOptions] options
900
+ # Request-specific options
901
+ #
902
+ # @yield [result, err] Result & error if block supplied
903
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ScanConfig] parsed result object
904
+ # @yieldparam err [StandardError] error object if request failed
905
+ #
906
+ # @return [Google::Apis::ContaineranalysisV1beta1::ScanConfig]
907
+ #
908
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
911
+ def update_project_scan_config(name, scan_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
913
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
914
+ command.request_object = scan_config_object
915
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
916
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::ScanConfig
917
+ command.params['name'] = name unless name.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ execute_or_queue_command(command, &block)
921
+ end
922
+
923
+ protected
924
+
925
+ def apply_command_defaults(command)
926
+ command.query['key'] = key unless key.nil?
927
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
928
+ end
929
+ end
930
+ end
931
+ end
932
+ end