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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +45 -0
- data/generated/google/apis/bigtableadmin_v2/representations.rb +17 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +4 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1198 -13
- data/generated/google/apis/compute_alpha/representations.rb +406 -0
- data/generated/google/apis/compute_alpha/service.rb +200 -4
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +23 -9
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +41 -4
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +65 -6
- data/generated/google/apis/compute_v1/representations.rb +19 -0
- data/generated/google/apis/compute_v1/service.rb +4 -4
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +145 -0
- data/generated/google/apis/container_v1/representations.rb +54 -0
- data/generated/google/apis/container_v1/service.rb +69 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +177 -0
- data/generated/google/apis/container_v1beta1/representations.rb +70 -0
- data/generated/google/apis/container_v1beta1/service.rb +69 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +35 -0
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +2780 -0
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1106 -0
- data/generated/google/apis/containeranalysis_v1alpha1/service.rb +1329 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +35 -0
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2702 -0
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1152 -0
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +932 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +84 -14
- data/generated/google/apis/content_v2/representations.rb +24 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +70 -11
- data/generated/google/apis/content_v2_1/representations.rb +25 -3
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +20 -20
- data/generated/google/apis/dialogflow_v2/service.rb +6 -6
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +20 -20
- data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +19 -10
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +31 -22
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +19 -10
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +7 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +18 -0
- data/generated/google/apis/firestore_v1/representations.rb +6 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +18 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +6 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +2 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +169 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +33 -0
- data/generated/google/apis/jobs_v3p1beta1/service.rb +32 -0
- data/generated/google/apis/libraryagent_v1.rb +34 -0
- data/generated/google/apis/libraryagent_v1/classes.rb +151 -0
- data/generated/google/apis/libraryagent_v1/representations.rb +86 -0
- data/generated/google/apis/libraryagent_v1/service.rb +265 -0
- data/generated/google/apis/oslogin_v1.rb +2 -2
- data/generated/google/apis/oslogin_v1/service.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +2 -2
- data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +34 -0
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +3858 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1196 -0
- data/generated/google/apis/remotebuildexecution_v1/service.rb +374 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +34 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +3709 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1113 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +400 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +34 -0
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +4460 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1431 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +542 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +2 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +12 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +12 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +2 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +12 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +2 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4 -4
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +5 -5
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +9 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +7 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +26 -2
@@ -0,0 +1,1329 @@
|
|
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 ContaineranalysisV1alpha1
|
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_v1alpha1'
|
30
|
+
#
|
31
|
+
# Containeranalysis = Google::Apis::ContaineranalysisV1alpha1 # 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 a new `Note`.
|
52
|
+
# @param [String] parent
|
53
|
+
# This field contains the project Id for example:
|
54
|
+
# "projects/`project_id`
|
55
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object
|
56
|
+
# @param [String] name
|
57
|
+
# The name of the project.
|
58
|
+
# Should be of the form "providers/`provider_id`".
|
59
|
+
# @Deprecated
|
60
|
+
# @param [String] note_id
|
61
|
+
# The ID to use for this note.
|
62
|
+
# @param [String] fields
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
64
|
+
# @param [String] quota_user
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
68
|
+
# Request-specific options
|
69
|
+
#
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
71
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Note] parsed result object
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
73
|
+
#
|
74
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Note]
|
75
|
+
#
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
+
def create_project_note(parent, note_object = nil, name: nil, note_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
80
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/notes', options)
|
81
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
82
|
+
command.request_object = note_object
|
83
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
84
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Note
|
85
|
+
command.params['parent'] = parent unless parent.nil?
|
86
|
+
command.query['name'] = name unless name.nil?
|
87
|
+
command.query['noteId'] = note_id unless note_id.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
93
|
+
# Deletes the given `Note` from the system.
|
94
|
+
# @param [String] name
|
95
|
+
# The name of the note in the form of
|
96
|
+
# "providers/`provider_id`/notes/`NOTE_ID`"
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
103
|
+
# Request-specific options
|
104
|
+
#
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
106
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Empty] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Empty]
|
110
|
+
#
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
+
def delete_project_note(name, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
116
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Empty::Representation
|
117
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Empty
|
118
|
+
command.params['name'] = name unless name.nil?
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
121
|
+
execute_or_queue_command(command, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Returns the requested `Note`.
|
125
|
+
# @param [String] name
|
126
|
+
# The name of the note in the form of
|
127
|
+
# "providers/`provider_id`/notes/`NOTE_ID`"
|
128
|
+
# @param [String] fields
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
130
|
+
# @param [String] quota_user
|
131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
133
|
+
# @param [Google::Apis::RequestOptions] options
|
134
|
+
# Request-specific options
|
135
|
+
#
|
136
|
+
# @yield [result, err] Result & error if block supplied
|
137
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Note] parsed result object
|
138
|
+
# @yieldparam err [StandardError] error object if request failed
|
139
|
+
#
|
140
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Note]
|
141
|
+
#
|
142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
+
def get_project_note(name, fields: nil, quota_user: nil, options: nil, &block)
|
146
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
147
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
148
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Note
|
149
|
+
command.params['name'] = name unless name.nil?
|
150
|
+
command.query['fields'] = fields unless fields.nil?
|
151
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
152
|
+
execute_or_queue_command(command, &block)
|
153
|
+
end
|
154
|
+
|
155
|
+
# Gets the access control policy for a note or an `Occurrence` resource.
|
156
|
+
# Requires `containeranalysis.notes.setIamPolicy` or
|
157
|
+
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
158
|
+
# a note or occurrence, respectively.
|
159
|
+
# Attempting to call this method on a resource without the required
|
160
|
+
# permission will result in a `PERMISSION_DENIED` error. Attempting to call
|
161
|
+
# this method on a non-existent resource will result in a `NOT_FOUND` error
|
162
|
+
# if the user has list permission on the project, or a `PERMISSION_DENIED`
|
163
|
+
# error otherwise. The resource takes the following formats:
|
164
|
+
# `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for occurrences and
|
165
|
+
# projects/`PROJECT_ID`/notes/`NOTE_ID` for notes
|
166
|
+
# @param [String] resource
|
167
|
+
# REQUIRED: The resource for which the policy is being requested.
|
168
|
+
# See the operation documentation for the appropriate value for this field.
|
169
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object
|
170
|
+
# @param [String] fields
|
171
|
+
# Selector specifying which fields to include in a partial response.
|
172
|
+
# @param [String] quota_user
|
173
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
174
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
175
|
+
# @param [Google::Apis::RequestOptions] options
|
176
|
+
# Request-specific options
|
177
|
+
#
|
178
|
+
# @yield [result, err] Result & error if block supplied
|
179
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Policy] parsed result object
|
180
|
+
# @yieldparam err [StandardError] error object if request failed
|
181
|
+
#
|
182
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Policy]
|
183
|
+
#
|
184
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
185
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
186
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
187
|
+
def get_project_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
188
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:getIamPolicy', options)
|
189
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest::Representation
|
190
|
+
command.request_object = get_iam_policy_request_object
|
191
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Policy::Representation
|
192
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Policy
|
193
|
+
command.params['resource'] = resource unless resource.nil?
|
194
|
+
command.query['fields'] = fields unless fields.nil?
|
195
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
196
|
+
execute_or_queue_command(command, &block)
|
197
|
+
end
|
198
|
+
|
199
|
+
# Lists all `Notes` for a given project.
|
200
|
+
# @param [String] parent
|
201
|
+
# This field contains the project Id for example: "projects/`PROJECT_ID`".
|
202
|
+
# @param [String] filter
|
203
|
+
# The filter expression.
|
204
|
+
# @param [String] name
|
205
|
+
# The name field will contain the project Id for example:
|
206
|
+
# "providers/`provider_id`
|
207
|
+
# @Deprecated
|
208
|
+
# @param [Fixnum] page_size
|
209
|
+
# Number of notes to return in the list.
|
210
|
+
# @param [String] page_token
|
211
|
+
# Token to provide to skip to a particular spot in the list.
|
212
|
+
# @param [String] fields
|
213
|
+
# Selector specifying which fields to include in a partial response.
|
214
|
+
# @param [String] quota_user
|
215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
217
|
+
# @param [Google::Apis::RequestOptions] options
|
218
|
+
# Request-specific options
|
219
|
+
#
|
220
|
+
# @yield [result, err] Result & error if block supplied
|
221
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse] parsed result object
|
222
|
+
# @yieldparam err [StandardError] error object if request failed
|
223
|
+
#
|
224
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse]
|
225
|
+
#
|
226
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
227
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
228
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
229
|
+
def list_project_notes(parent, filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
230
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/notes', options)
|
231
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse::Representation
|
232
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse
|
233
|
+
command.params['parent'] = parent unless parent.nil?
|
234
|
+
command.query['filter'] = filter unless filter.nil?
|
235
|
+
command.query['name'] = name unless name.nil?
|
236
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
237
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
238
|
+
command.query['fields'] = fields unless fields.nil?
|
239
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
240
|
+
execute_or_queue_command(command, &block)
|
241
|
+
end
|
242
|
+
|
243
|
+
# Updates an existing `Note`.
|
244
|
+
# @param [String] name
|
245
|
+
# The name of the note.
|
246
|
+
# Should be of the form "projects/`provider_id`/notes/`note_id`".
|
247
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object
|
248
|
+
# @param [String] update_mask
|
249
|
+
# The fields to update.
|
250
|
+
# @param [String] fields
|
251
|
+
# Selector specifying which fields to include in a partial response.
|
252
|
+
# @param [String] quota_user
|
253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
255
|
+
# @param [Google::Apis::RequestOptions] options
|
256
|
+
# Request-specific options
|
257
|
+
#
|
258
|
+
# @yield [result, err] Result & error if block supplied
|
259
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Note] parsed result object
|
260
|
+
# @yieldparam err [StandardError] error object if request failed
|
261
|
+
#
|
262
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Note]
|
263
|
+
#
|
264
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
265
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
266
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
267
|
+
def patch_project_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
268
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
269
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
270
|
+
command.request_object = note_object
|
271
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
272
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Note
|
273
|
+
command.params['name'] = name unless name.nil?
|
274
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
275
|
+
command.query['fields'] = fields unless fields.nil?
|
276
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
277
|
+
execute_or_queue_command(command, &block)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Sets the access control policy on the specified `Note` or `Occurrence`.
|
281
|
+
# Requires `containeranalysis.notes.setIamPolicy` or
|
282
|
+
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
283
|
+
# a `Note` or an `Occurrence`, respectively.
|
284
|
+
# Attempting to call this method without these permissions will result in a `
|
285
|
+
# `PERMISSION_DENIED` error.
|
286
|
+
# Attempting to call this method on a non-existent resource will result in a
|
287
|
+
# `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission
|
288
|
+
# on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or
|
289
|
+
# a `PERMISSION_DENIED` error otherwise. The resource takes the following
|
290
|
+
# formats: `projects/`projectid`/occurrences/`occurrenceid`` for occurrences
|
291
|
+
# and projects/`projectid`/notes/`noteid` for notes
|
292
|
+
# @param [String] resource
|
293
|
+
# REQUIRED: The resource for which the policy is being specified.
|
294
|
+
# See the operation documentation for the appropriate value for this field.
|
295
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
296
|
+
# @param [String] fields
|
297
|
+
# Selector specifying which fields to include in a partial response.
|
298
|
+
# @param [String] quota_user
|
299
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
300
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
301
|
+
# @param [Google::Apis::RequestOptions] options
|
302
|
+
# Request-specific options
|
303
|
+
#
|
304
|
+
# @yield [result, err] Result & error if block supplied
|
305
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Policy] parsed result object
|
306
|
+
# @yieldparam err [StandardError] error object if request failed
|
307
|
+
#
|
308
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Policy]
|
309
|
+
#
|
310
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
311
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
312
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
313
|
+
def set_project_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
314
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
315
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest::Representation
|
316
|
+
command.request_object = set_iam_policy_request_object
|
317
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Policy::Representation
|
318
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Policy
|
319
|
+
command.params['resource'] = resource unless resource.nil?
|
320
|
+
command.query['fields'] = fields unless fields.nil?
|
321
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
322
|
+
execute_or_queue_command(command, &block)
|
323
|
+
end
|
324
|
+
|
325
|
+
# Returns the permissions that a caller has on the specified note or
|
326
|
+
# occurrence resource. Requires list permission on the project (for example,
|
327
|
+
# "storage.objects.list" on the containing bucket for testing permission of
|
328
|
+
# an object). Attempting to call this method on a non-existent resource will
|
329
|
+
# result in a `NOT_FOUND` error if the user has list permission on the
|
330
|
+
# project, or a `PERMISSION_DENIED` error otherwise. The resource takes the
|
331
|
+
# following formats: `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for
|
332
|
+
# `Occurrences` and `projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes`
|
333
|
+
# @param [String] resource
|
334
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
335
|
+
# See the operation documentation for the appropriate value for this field.
|
336
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
337
|
+
# @param [String] fields
|
338
|
+
# Selector specifying which fields to include in a partial response.
|
339
|
+
# @param [String] quota_user
|
340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
342
|
+
# @param [Google::Apis::RequestOptions] options
|
343
|
+
# Request-specific options
|
344
|
+
#
|
345
|
+
# @yield [result, err] Result & error if block supplied
|
346
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse] parsed result object
|
347
|
+
# @yieldparam err [StandardError] error object if request failed
|
348
|
+
#
|
349
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse]
|
350
|
+
#
|
351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
354
|
+
def test_project_note_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
355
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
356
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest::Representation
|
357
|
+
command.request_object = test_iam_permissions_request_object
|
358
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse::Representation
|
359
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse
|
360
|
+
command.params['resource'] = resource unless resource.nil?
|
361
|
+
command.query['fields'] = fields unless fields.nil?
|
362
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
363
|
+
execute_or_queue_command(command, &block)
|
364
|
+
end
|
365
|
+
|
366
|
+
# Lists `Occurrences` referencing the specified `Note`. Use this method to
|
367
|
+
# get all occurrences referencing your `Note` across all your customer
|
368
|
+
# projects.
|
369
|
+
# @param [String] name
|
370
|
+
# The name field will contain the note name for example:
|
371
|
+
# "provider/`provider_id`/notes/`note_id`"
|
372
|
+
# @param [String] filter
|
373
|
+
# The filter expression.
|
374
|
+
# @param [Fixnum] page_size
|
375
|
+
# Number of notes to return in the list.
|
376
|
+
# @param [String] page_token
|
377
|
+
# Token to provide to skip to a particular spot in the list.
|
378
|
+
# @param [String] fields
|
379
|
+
# Selector specifying which fields to include in a partial response.
|
380
|
+
# @param [String] quota_user
|
381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
383
|
+
# @param [Google::Apis::RequestOptions] options
|
384
|
+
# Request-specific options
|
385
|
+
#
|
386
|
+
# @yield [result, err] Result & error if block supplied
|
387
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse] parsed result object
|
388
|
+
# @yieldparam err [StandardError] error object if request failed
|
389
|
+
#
|
390
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse]
|
391
|
+
#
|
392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
395
|
+
def list_project_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
396
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}/occurrences', options)
|
397
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse::Representation
|
398
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse
|
399
|
+
command.params['name'] = name unless name.nil?
|
400
|
+
command.query['filter'] = filter unless filter.nil?
|
401
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
402
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
403
|
+
command.query['fields'] = fields unless fields.nil?
|
404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
405
|
+
execute_or_queue_command(command, &block)
|
406
|
+
end
|
407
|
+
|
408
|
+
# Creates a new `Occurrence`. Use this method to create `Occurrences`
|
409
|
+
# for a resource.
|
410
|
+
# @param [String] parent
|
411
|
+
# This field contains the project Id for example: "projects/`project_id`"
|
412
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::Occurrence] occurrence_object
|
413
|
+
# @param [String] name
|
414
|
+
# The name of the project. Should be of the form "projects/`project_id`".
|
415
|
+
# @Deprecated
|
416
|
+
# @param [String] fields
|
417
|
+
# Selector specifying which fields to include in a partial response.
|
418
|
+
# @param [String] quota_user
|
419
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
420
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
421
|
+
# @param [Google::Apis::RequestOptions] options
|
422
|
+
# Request-specific options
|
423
|
+
#
|
424
|
+
# @yield [result, err] Result & error if block supplied
|
425
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Occurrence] parsed result object
|
426
|
+
# @yieldparam err [StandardError] error object if request failed
|
427
|
+
#
|
428
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Occurrence]
|
429
|
+
#
|
430
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
431
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
432
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
433
|
+
def create_project_occurrence(parent, occurrence_object = nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
434
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/occurrences', options)
|
435
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::Occurrence::Representation
|
436
|
+
command.request_object = occurrence_object
|
437
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Occurrence::Representation
|
438
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Occurrence
|
439
|
+
command.params['parent'] = parent unless parent.nil?
|
440
|
+
command.query['name'] = name unless name.nil?
|
441
|
+
command.query['fields'] = fields unless fields.nil?
|
442
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
443
|
+
execute_or_queue_command(command, &block)
|
444
|
+
end
|
445
|
+
|
446
|
+
# Deletes the given `Occurrence` from the system. Use this when
|
447
|
+
# an `Occurrence` is no longer applicable for the given resource.
|
448
|
+
# @param [String] name
|
449
|
+
# The name of the occurrence in the form of
|
450
|
+
# "projects/`project_id`/occurrences/`OCCURRENCE_ID`"
|
451
|
+
# @param [String] fields
|
452
|
+
# Selector specifying which fields to include in a partial response.
|
453
|
+
# @param [String] quota_user
|
454
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
455
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
456
|
+
# @param [Google::Apis::RequestOptions] options
|
457
|
+
# Request-specific options
|
458
|
+
#
|
459
|
+
# @yield [result, err] Result & error if block supplied
|
460
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Empty] parsed result object
|
461
|
+
# @yieldparam err [StandardError] error object if request failed
|
462
|
+
#
|
463
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Empty]
|
464
|
+
#
|
465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
468
|
+
def delete_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block)
|
469
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
470
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Empty::Representation
|
471
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Empty
|
472
|
+
command.params['name'] = name unless name.nil?
|
473
|
+
command.query['fields'] = fields unless fields.nil?
|
474
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
475
|
+
execute_or_queue_command(command, &block)
|
476
|
+
end
|
477
|
+
|
478
|
+
# Returns the requested `Occurrence`.
|
479
|
+
# @param [String] name
|
480
|
+
# The name of the occurrence of the form
|
481
|
+
# "projects/`project_id`/occurrences/`OCCURRENCE_ID`"
|
482
|
+
# @param [String] fields
|
483
|
+
# Selector specifying which fields to include in a partial response.
|
484
|
+
# @param [String] quota_user
|
485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
487
|
+
# @param [Google::Apis::RequestOptions] options
|
488
|
+
# Request-specific options
|
489
|
+
#
|
490
|
+
# @yield [result, err] Result & error if block supplied
|
491
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Occurrence] parsed result object
|
492
|
+
# @yieldparam err [StandardError] error object if request failed
|
493
|
+
#
|
494
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Occurrence]
|
495
|
+
#
|
496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
499
|
+
def get_project_occurrence(name, fields: nil, quota_user: nil, options: nil, &block)
|
500
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
501
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Occurrence::Representation
|
502
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Occurrence
|
503
|
+
command.params['name'] = name unless name.nil?
|
504
|
+
command.query['fields'] = fields unless fields.nil?
|
505
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
506
|
+
execute_or_queue_command(command, &block)
|
507
|
+
end
|
508
|
+
|
509
|
+
# Gets the access control policy for a note or an `Occurrence` resource.
|
510
|
+
# Requires `containeranalysis.notes.setIamPolicy` or
|
511
|
+
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
512
|
+
# a note or occurrence, respectively.
|
513
|
+
# Attempting to call this method on a resource without the required
|
514
|
+
# permission will result in a `PERMISSION_DENIED` error. Attempting to call
|
515
|
+
# this method on a non-existent resource will result in a `NOT_FOUND` error
|
516
|
+
# if the user has list permission on the project, or a `PERMISSION_DENIED`
|
517
|
+
# error otherwise. The resource takes the following formats:
|
518
|
+
# `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for occurrences and
|
519
|
+
# projects/`PROJECT_ID`/notes/`NOTE_ID` for notes
|
520
|
+
# @param [String] resource
|
521
|
+
# REQUIRED: The resource for which the policy is being requested.
|
522
|
+
# See the operation documentation for the appropriate value for this field.
|
523
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object
|
524
|
+
# @param [String] fields
|
525
|
+
# Selector specifying which fields to include in a partial response.
|
526
|
+
# @param [String] quota_user
|
527
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
528
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
529
|
+
# @param [Google::Apis::RequestOptions] options
|
530
|
+
# Request-specific options
|
531
|
+
#
|
532
|
+
# @yield [result, err] Result & error if block supplied
|
533
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Policy] parsed result object
|
534
|
+
# @yieldparam err [StandardError] error object if request failed
|
535
|
+
#
|
536
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Policy]
|
537
|
+
#
|
538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
541
|
+
def get_occurrence_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
542
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:getIamPolicy', options)
|
543
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest::Representation
|
544
|
+
command.request_object = get_iam_policy_request_object
|
545
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Policy::Representation
|
546
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Policy
|
547
|
+
command.params['resource'] = resource unless resource.nil?
|
548
|
+
command.query['fields'] = fields unless fields.nil?
|
549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
550
|
+
execute_or_queue_command(command, &block)
|
551
|
+
end
|
552
|
+
|
553
|
+
# Gets the `Note` attached to the given `Occurrence`.
|
554
|
+
# @param [String] name
|
555
|
+
# The name of the occurrence in the form
|
556
|
+
# "projects/`project_id`/occurrences/`OCCURRENCE_ID`"
|
557
|
+
# @param [String] fields
|
558
|
+
# Selector specifying which fields to include in a partial response.
|
559
|
+
# @param [String] quota_user
|
560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
562
|
+
# @param [Google::Apis::RequestOptions] options
|
563
|
+
# Request-specific options
|
564
|
+
#
|
565
|
+
# @yield [result, err] Result & error if block supplied
|
566
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Note] parsed result object
|
567
|
+
# @yieldparam err [StandardError] error object if request failed
|
568
|
+
#
|
569
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Note]
|
570
|
+
#
|
571
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
572
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
573
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
574
|
+
def get_project_occurrence_notes(name, fields: nil, quota_user: nil, options: nil, &block)
|
575
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}/notes', options)
|
576
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
577
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Note
|
578
|
+
command.params['name'] = name unless name.nil?
|
579
|
+
command.query['fields'] = fields unless fields.nil?
|
580
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
581
|
+
execute_or_queue_command(command, &block)
|
582
|
+
end
|
583
|
+
|
584
|
+
# Gets a summary of the number and severity of occurrences.
|
585
|
+
# @param [String] parent
|
586
|
+
# This contains the project Id for example: projects/`project_id`
|
587
|
+
# @param [String] filter
|
588
|
+
# The filter expression.
|
589
|
+
# @param [String] fields
|
590
|
+
# Selector specifying which fields to include in a partial response.
|
591
|
+
# @param [String] quota_user
|
592
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
593
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
594
|
+
# @param [Google::Apis::RequestOptions] options
|
595
|
+
# Request-specific options
|
596
|
+
#
|
597
|
+
# @yield [result, err] Result & error if block supplied
|
598
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::GetVulnzOccurrencesSummaryResponse] parsed result object
|
599
|
+
# @yieldparam err [StandardError] error object if request failed
|
600
|
+
#
|
601
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::GetVulnzOccurrencesSummaryResponse]
|
602
|
+
#
|
603
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
604
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
605
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
606
|
+
def get_project_occurrence_vulnerability_summary(parent, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
607
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/occurrences:vulnerabilitySummary', options)
|
608
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::GetVulnzOccurrencesSummaryResponse::Representation
|
609
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::GetVulnzOccurrencesSummaryResponse
|
610
|
+
command.params['parent'] = parent unless parent.nil?
|
611
|
+
command.query['filter'] = filter unless filter.nil?
|
612
|
+
command.query['fields'] = fields unless fields.nil?
|
613
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
|
+
execute_or_queue_command(command, &block)
|
615
|
+
end
|
616
|
+
|
617
|
+
# Lists active `Occurrences` for a given project matching the filters.
|
618
|
+
# @param [String] parent
|
619
|
+
# This contains the project Id for example: projects/`project_id`.
|
620
|
+
# @param [String] filter
|
621
|
+
# The filter expression.
|
622
|
+
# @param [String] kind
|
623
|
+
# The kind of occurrences to filter on.
|
624
|
+
# @param [String] name
|
625
|
+
# The name field contains the project Id. For example:
|
626
|
+
# "projects/`project_id`
|
627
|
+
# @Deprecated
|
628
|
+
# @param [Fixnum] page_size
|
629
|
+
# Number of occurrences to return in the list.
|
630
|
+
# @param [String] page_token
|
631
|
+
# Token to provide to skip to a particular spot in the list.
|
632
|
+
# @param [String] fields
|
633
|
+
# Selector specifying which fields to include in a partial response.
|
634
|
+
# @param [String] quota_user
|
635
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
636
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
637
|
+
# @param [Google::Apis::RequestOptions] options
|
638
|
+
# Request-specific options
|
639
|
+
#
|
640
|
+
# @yield [result, err] Result & error if block supplied
|
641
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ListOccurrencesResponse] parsed result object
|
642
|
+
# @yieldparam err [StandardError] error object if request failed
|
643
|
+
#
|
644
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ListOccurrencesResponse]
|
645
|
+
#
|
646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
649
|
+
def list_project_occurrences(parent, filter: nil, kind: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
650
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/occurrences', options)
|
651
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ListOccurrencesResponse::Representation
|
652
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ListOccurrencesResponse
|
653
|
+
command.params['parent'] = parent unless parent.nil?
|
654
|
+
command.query['filter'] = filter unless filter.nil?
|
655
|
+
command.query['kind'] = kind unless kind.nil?
|
656
|
+
command.query['name'] = name unless name.nil?
|
657
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
658
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
659
|
+
command.query['fields'] = fields unless fields.nil?
|
660
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
661
|
+
execute_or_queue_command(command, &block)
|
662
|
+
end
|
663
|
+
|
664
|
+
# Updates an existing occurrence.
|
665
|
+
# @param [String] name
|
666
|
+
# The name of the occurrence.
|
667
|
+
# Should be of the form "projects/`project_id`/occurrences/`OCCURRENCE_ID`".
|
668
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::Occurrence] occurrence_object
|
669
|
+
# @param [String] update_mask
|
670
|
+
# The fields to update.
|
671
|
+
# @param [String] fields
|
672
|
+
# Selector specifying which fields to include in a partial response.
|
673
|
+
# @param [String] quota_user
|
674
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
675
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
676
|
+
# @param [Google::Apis::RequestOptions] options
|
677
|
+
# Request-specific options
|
678
|
+
#
|
679
|
+
# @yield [result, err] Result & error if block supplied
|
680
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Occurrence] parsed result object
|
681
|
+
# @yieldparam err [StandardError] error object if request failed
|
682
|
+
#
|
683
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Occurrence]
|
684
|
+
#
|
685
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
686
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
687
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
688
|
+
def patch_project_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
689
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
690
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::Occurrence::Representation
|
691
|
+
command.request_object = occurrence_object
|
692
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Occurrence::Representation
|
693
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Occurrence
|
694
|
+
command.params['name'] = name unless name.nil?
|
695
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
696
|
+
command.query['fields'] = fields unless fields.nil?
|
697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
698
|
+
execute_or_queue_command(command, &block)
|
699
|
+
end
|
700
|
+
|
701
|
+
# Sets the access control policy on the specified `Note` or `Occurrence`.
|
702
|
+
# Requires `containeranalysis.notes.setIamPolicy` or
|
703
|
+
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
704
|
+
# a `Note` or an `Occurrence`, respectively.
|
705
|
+
# Attempting to call this method without these permissions will result in a `
|
706
|
+
# `PERMISSION_DENIED` error.
|
707
|
+
# Attempting to call this method on a non-existent resource will result in a
|
708
|
+
# `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission
|
709
|
+
# on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or
|
710
|
+
# a `PERMISSION_DENIED` error otherwise. The resource takes the following
|
711
|
+
# formats: `projects/`projectid`/occurrences/`occurrenceid`` for occurrences
|
712
|
+
# and projects/`projectid`/notes/`noteid` for notes
|
713
|
+
# @param [String] resource
|
714
|
+
# REQUIRED: The resource for which the policy is being specified.
|
715
|
+
# See the operation documentation for the appropriate value for this field.
|
716
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
717
|
+
# @param [String] fields
|
718
|
+
# Selector specifying which fields to include in a partial response.
|
719
|
+
# @param [String] quota_user
|
720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
722
|
+
# @param [Google::Apis::RequestOptions] options
|
723
|
+
# Request-specific options
|
724
|
+
#
|
725
|
+
# @yield [result, err] Result & error if block supplied
|
726
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Policy] parsed result object
|
727
|
+
# @yieldparam err [StandardError] error object if request failed
|
728
|
+
#
|
729
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Policy]
|
730
|
+
#
|
731
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
732
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
733
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
734
|
+
def set_occurrence_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
735
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
736
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest::Representation
|
737
|
+
command.request_object = set_iam_policy_request_object
|
738
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Policy::Representation
|
739
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Policy
|
740
|
+
command.params['resource'] = resource unless resource.nil?
|
741
|
+
command.query['fields'] = fields unless fields.nil?
|
742
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
743
|
+
execute_or_queue_command(command, &block)
|
744
|
+
end
|
745
|
+
|
746
|
+
# Returns the permissions that a caller has on the specified note or
|
747
|
+
# occurrence resource. Requires list permission on the project (for example,
|
748
|
+
# "storage.objects.list" on the containing bucket for testing permission of
|
749
|
+
# an object). Attempting to call this method on a non-existent resource will
|
750
|
+
# result in a `NOT_FOUND` error if the user has list permission on the
|
751
|
+
# project, or a `PERMISSION_DENIED` error otherwise. The resource takes the
|
752
|
+
# following formats: `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for
|
753
|
+
# `Occurrences` and `projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes`
|
754
|
+
# @param [String] resource
|
755
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
756
|
+
# See the operation documentation for the appropriate value for this field.
|
757
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
758
|
+
# @param [String] fields
|
759
|
+
# Selector specifying which fields to include in a partial response.
|
760
|
+
# @param [String] quota_user
|
761
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
762
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
763
|
+
# @param [Google::Apis::RequestOptions] options
|
764
|
+
# Request-specific options
|
765
|
+
#
|
766
|
+
# @yield [result, err] Result & error if block supplied
|
767
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse] parsed result object
|
768
|
+
# @yieldparam err [StandardError] error object if request failed
|
769
|
+
#
|
770
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse]
|
771
|
+
#
|
772
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
773
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
774
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
775
|
+
def test_occurrence_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
776
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
777
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest::Representation
|
778
|
+
command.request_object = test_iam_permissions_request_object
|
779
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse::Representation
|
780
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse
|
781
|
+
command.params['resource'] = resource unless resource.nil?
|
782
|
+
command.query['fields'] = fields unless fields.nil?
|
783
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
784
|
+
execute_or_queue_command(command, &block)
|
785
|
+
end
|
786
|
+
|
787
|
+
# Creates a new `Operation`.
|
788
|
+
# @param [String] parent
|
789
|
+
# The project Id that this operation should be created under.
|
790
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::CreateOperationRequest] create_operation_request_object
|
791
|
+
# @param [String] fields
|
792
|
+
# Selector specifying which fields to include in a partial response.
|
793
|
+
# @param [String] quota_user
|
794
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
795
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
796
|
+
# @param [Google::Apis::RequestOptions] options
|
797
|
+
# Request-specific options
|
798
|
+
#
|
799
|
+
# @yield [result, err] Result & error if block supplied
|
800
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Operation] parsed result object
|
801
|
+
# @yieldparam err [StandardError] error object if request failed
|
802
|
+
#
|
803
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Operation]
|
804
|
+
#
|
805
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
806
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
807
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
808
|
+
def create_operation(parent, create_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
809
|
+
command = make_simple_command(:post, 'v1alpha1/{+parent}/operations', options)
|
810
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::CreateOperationRequest::Representation
|
811
|
+
command.request_object = create_operation_request_object
|
812
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Operation::Representation
|
813
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Operation
|
814
|
+
command.params['parent'] = parent unless parent.nil?
|
815
|
+
command.query['fields'] = fields unless fields.nil?
|
816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
817
|
+
execute_or_queue_command(command, &block)
|
818
|
+
end
|
819
|
+
|
820
|
+
# Updates an existing operation returns an error if operation
|
821
|
+
# does not exist. The only valid operations are to update mark the done bit
|
822
|
+
# change the result.
|
823
|
+
# @param [String] name
|
824
|
+
# The name of the Operation.
|
825
|
+
# Should be of the form "projects/`provider_id`/operations/`operation_id`".
|
826
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::UpdateOperationRequest] update_operation_request_object
|
827
|
+
# @param [String] fields
|
828
|
+
# Selector specifying which fields to include in a partial response.
|
829
|
+
# @param [String] quota_user
|
830
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
831
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
832
|
+
# @param [Google::Apis::RequestOptions] options
|
833
|
+
# Request-specific options
|
834
|
+
#
|
835
|
+
# @yield [result, err] Result & error if block supplied
|
836
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Operation] parsed result object
|
837
|
+
# @yieldparam err [StandardError] error object if request failed
|
838
|
+
#
|
839
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Operation]
|
840
|
+
#
|
841
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
842
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
843
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
844
|
+
def patch_project_operation(name, update_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
845
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
846
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::UpdateOperationRequest::Representation
|
847
|
+
command.request_object = update_operation_request_object
|
848
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Operation::Representation
|
849
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Operation
|
850
|
+
command.params['name'] = name unless name.nil?
|
851
|
+
command.query['fields'] = fields unless fields.nil?
|
852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
853
|
+
execute_or_queue_command(command, &block)
|
854
|
+
end
|
855
|
+
|
856
|
+
# Gets a specific scan configuration for a project.
|
857
|
+
# @param [String] name
|
858
|
+
# The name of the ScanConfig in the form
|
859
|
+
# projects/`project_id`/scanConfigs/`scan_config_id`
|
860
|
+
# @param [String] fields
|
861
|
+
# Selector specifying which fields to include in a partial response.
|
862
|
+
# @param [String] quota_user
|
863
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
864
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
865
|
+
# @param [Google::Apis::RequestOptions] options
|
866
|
+
# Request-specific options
|
867
|
+
#
|
868
|
+
# @yield [result, err] Result & error if block supplied
|
869
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ScanConfig] parsed result object
|
870
|
+
# @yieldparam err [StandardError] error object if request failed
|
871
|
+
#
|
872
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ScanConfig]
|
873
|
+
#
|
874
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
875
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
876
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
877
|
+
def get_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
878
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
879
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ScanConfig::Representation
|
880
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ScanConfig
|
881
|
+
command.params['name'] = name unless name.nil?
|
882
|
+
command.query['fields'] = fields unless fields.nil?
|
883
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
884
|
+
execute_or_queue_command(command, &block)
|
885
|
+
end
|
886
|
+
|
887
|
+
# Lists scan configurations for a project.
|
888
|
+
# @param [String] parent
|
889
|
+
# This containers the project Id i.e.: projects/`project_id`
|
890
|
+
# @param [String] filter
|
891
|
+
# The filter expression.
|
892
|
+
# @param [Fixnum] page_size
|
893
|
+
# The number of items to return.
|
894
|
+
# @param [String] page_token
|
895
|
+
# The page token to use for the next request.
|
896
|
+
# @param [String] fields
|
897
|
+
# Selector specifying which fields to include in a partial response.
|
898
|
+
# @param [String] quota_user
|
899
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
900
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
901
|
+
# @param [Google::Apis::RequestOptions] options
|
902
|
+
# Request-specific options
|
903
|
+
#
|
904
|
+
# @yield [result, err] Result & error if block supplied
|
905
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ListScanConfigsResponse] parsed result object
|
906
|
+
# @yieldparam err [StandardError] error object if request failed
|
907
|
+
#
|
908
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ListScanConfigsResponse]
|
909
|
+
#
|
910
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
911
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
912
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
913
|
+
def list_project_scan_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
914
|
+
command = make_simple_command(:get, 'v1alpha1/{+parent}/scanConfigs', options)
|
915
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ListScanConfigsResponse::Representation
|
916
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ListScanConfigsResponse
|
917
|
+
command.params['parent'] = parent unless parent.nil?
|
918
|
+
command.query['filter'] = filter unless filter.nil?
|
919
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
920
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
921
|
+
command.query['fields'] = fields unless fields.nil?
|
922
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
923
|
+
execute_or_queue_command(command, &block)
|
924
|
+
end
|
925
|
+
|
926
|
+
# Updates the scan configuration to a new value.
|
927
|
+
# @param [String] name
|
928
|
+
# The scan config to update of the form
|
929
|
+
# projects/`project_id`/scanConfigs/`scan_config_id`.
|
930
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::ScanConfig] scan_config_object
|
931
|
+
# @param [String] update_mask
|
932
|
+
# The fields to update.
|
933
|
+
# @param [String] fields
|
934
|
+
# Selector specifying which fields to include in a partial response.
|
935
|
+
# @param [String] quota_user
|
936
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
937
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
938
|
+
# @param [Google::Apis::RequestOptions] options
|
939
|
+
# Request-specific options
|
940
|
+
#
|
941
|
+
# @yield [result, err] Result & error if block supplied
|
942
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ScanConfig] parsed result object
|
943
|
+
# @yieldparam err [StandardError] error object if request failed
|
944
|
+
#
|
945
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ScanConfig]
|
946
|
+
#
|
947
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
948
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
949
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
950
|
+
def patch_project_scan_config(name, scan_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
951
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
952
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::ScanConfig::Representation
|
953
|
+
command.request_object = scan_config_object
|
954
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ScanConfig::Representation
|
955
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ScanConfig
|
956
|
+
command.params['name'] = name unless name.nil?
|
957
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
958
|
+
command.query['fields'] = fields unless fields.nil?
|
959
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
960
|
+
execute_or_queue_command(command, &block)
|
961
|
+
end
|
962
|
+
|
963
|
+
# Creates a new `Note`.
|
964
|
+
# @param [String] name
|
965
|
+
# The name of the project.
|
966
|
+
# Should be of the form "providers/`provider_id`".
|
967
|
+
# @Deprecated
|
968
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object
|
969
|
+
# @param [String] note_id
|
970
|
+
# The ID to use for this note.
|
971
|
+
# @param [String] parent
|
972
|
+
# This field contains the project Id for example:
|
973
|
+
# "projects/`project_id`
|
974
|
+
# @param [String] fields
|
975
|
+
# Selector specifying which fields to include in a partial response.
|
976
|
+
# @param [String] quota_user
|
977
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
978
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
979
|
+
# @param [Google::Apis::RequestOptions] options
|
980
|
+
# Request-specific options
|
981
|
+
#
|
982
|
+
# @yield [result, err] Result & error if block supplied
|
983
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Note] parsed result object
|
984
|
+
# @yieldparam err [StandardError] error object if request failed
|
985
|
+
#
|
986
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Note]
|
987
|
+
#
|
988
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
989
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
990
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
991
|
+
def create_provider_note(name, note_object = nil, note_id: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
992
|
+
command = make_simple_command(:post, 'v1alpha1/{+name}/notes', options)
|
993
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
994
|
+
command.request_object = note_object
|
995
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
996
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Note
|
997
|
+
command.params['name'] = name unless name.nil?
|
998
|
+
command.query['noteId'] = note_id unless note_id.nil?
|
999
|
+
command.query['parent'] = parent unless parent.nil?
|
1000
|
+
command.query['fields'] = fields unless fields.nil?
|
1001
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1002
|
+
execute_or_queue_command(command, &block)
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
# Deletes the given `Note` from the system.
|
1006
|
+
# @param [String] name
|
1007
|
+
# The name of the note in the form of
|
1008
|
+
# "providers/`provider_id`/notes/`NOTE_ID`"
|
1009
|
+
# @param [String] fields
|
1010
|
+
# Selector specifying which fields to include in a partial response.
|
1011
|
+
# @param [String] quota_user
|
1012
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1013
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1014
|
+
# @param [Google::Apis::RequestOptions] options
|
1015
|
+
# Request-specific options
|
1016
|
+
#
|
1017
|
+
# @yield [result, err] Result & error if block supplied
|
1018
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Empty] parsed result object
|
1019
|
+
# @yieldparam err [StandardError] error object if request failed
|
1020
|
+
#
|
1021
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Empty]
|
1022
|
+
#
|
1023
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1024
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1025
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1026
|
+
def delete_provider_note(name, fields: nil, quota_user: nil, options: nil, &block)
|
1027
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
1028
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Empty::Representation
|
1029
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Empty
|
1030
|
+
command.params['name'] = name unless name.nil?
|
1031
|
+
command.query['fields'] = fields unless fields.nil?
|
1032
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1033
|
+
execute_or_queue_command(command, &block)
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Returns the requested `Note`.
|
1037
|
+
# @param [String] name
|
1038
|
+
# The name of the note in the form of
|
1039
|
+
# "providers/`provider_id`/notes/`NOTE_ID`"
|
1040
|
+
# @param [String] fields
|
1041
|
+
# Selector specifying which fields to include in a partial response.
|
1042
|
+
# @param [String] quota_user
|
1043
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1044
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1045
|
+
# @param [Google::Apis::RequestOptions] options
|
1046
|
+
# Request-specific options
|
1047
|
+
#
|
1048
|
+
# @yield [result, err] Result & error if block supplied
|
1049
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Note] parsed result object
|
1050
|
+
# @yieldparam err [StandardError] error object if request failed
|
1051
|
+
#
|
1052
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Note]
|
1053
|
+
#
|
1054
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1055
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1056
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1057
|
+
def get_provider_note(name, fields: nil, quota_user: nil, options: nil, &block)
|
1058
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
1059
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
1060
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Note
|
1061
|
+
command.params['name'] = name unless name.nil?
|
1062
|
+
command.query['fields'] = fields unless fields.nil?
|
1063
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1064
|
+
execute_or_queue_command(command, &block)
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# Gets the access control policy for a note or an `Occurrence` resource.
|
1068
|
+
# Requires `containeranalysis.notes.setIamPolicy` or
|
1069
|
+
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
1070
|
+
# a note or occurrence, respectively.
|
1071
|
+
# Attempting to call this method on a resource without the required
|
1072
|
+
# permission will result in a `PERMISSION_DENIED` error. Attempting to call
|
1073
|
+
# this method on a non-existent resource will result in a `NOT_FOUND` error
|
1074
|
+
# if the user has list permission on the project, or a `PERMISSION_DENIED`
|
1075
|
+
# error otherwise. The resource takes the following formats:
|
1076
|
+
# `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for occurrences and
|
1077
|
+
# projects/`PROJECT_ID`/notes/`NOTE_ID` for notes
|
1078
|
+
# @param [String] resource
|
1079
|
+
# REQUIRED: The resource for which the policy is being requested.
|
1080
|
+
# See the operation documentation for the appropriate value for this field.
|
1081
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest] get_iam_policy_request_object
|
1082
|
+
# @param [String] fields
|
1083
|
+
# Selector specifying which fields to include in a partial response.
|
1084
|
+
# @param [String] quota_user
|
1085
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1086
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1087
|
+
# @param [Google::Apis::RequestOptions] options
|
1088
|
+
# Request-specific options
|
1089
|
+
#
|
1090
|
+
# @yield [result, err] Result & error if block supplied
|
1091
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Policy] parsed result object
|
1092
|
+
# @yieldparam err [StandardError] error object if request failed
|
1093
|
+
#
|
1094
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Policy]
|
1095
|
+
#
|
1096
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1097
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1098
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1099
|
+
def get_provider_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1100
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:getIamPolicy', options)
|
1101
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::GetIamPolicyRequest::Representation
|
1102
|
+
command.request_object = get_iam_policy_request_object
|
1103
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Policy::Representation
|
1104
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Policy
|
1105
|
+
command.params['resource'] = resource unless resource.nil?
|
1106
|
+
command.query['fields'] = fields unless fields.nil?
|
1107
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1108
|
+
execute_or_queue_command(command, &block)
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# Lists all `Notes` for a given project.
|
1112
|
+
# @param [String] name
|
1113
|
+
# The name field will contain the project Id for example:
|
1114
|
+
# "providers/`provider_id`
|
1115
|
+
# @Deprecated
|
1116
|
+
# @param [String] filter
|
1117
|
+
# The filter expression.
|
1118
|
+
# @param [Fixnum] page_size
|
1119
|
+
# Number of notes to return in the list.
|
1120
|
+
# @param [String] page_token
|
1121
|
+
# Token to provide to skip to a particular spot in the list.
|
1122
|
+
# @param [String] parent
|
1123
|
+
# This field contains the project Id for example: "projects/`PROJECT_ID`".
|
1124
|
+
# @param [String] fields
|
1125
|
+
# Selector specifying which fields to include in a partial response.
|
1126
|
+
# @param [String] quota_user
|
1127
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1128
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1129
|
+
# @param [Google::Apis::RequestOptions] options
|
1130
|
+
# Request-specific options
|
1131
|
+
#
|
1132
|
+
# @yield [result, err] Result & error if block supplied
|
1133
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse] parsed result object
|
1134
|
+
# @yieldparam err [StandardError] error object if request failed
|
1135
|
+
#
|
1136
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse]
|
1137
|
+
#
|
1138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1141
|
+
def list_provider_notes(name, filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1142
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}/notes', options)
|
1143
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse::Representation
|
1144
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ListNotesResponse
|
1145
|
+
command.params['name'] = name unless name.nil?
|
1146
|
+
command.query['filter'] = filter unless filter.nil?
|
1147
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1148
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1149
|
+
command.query['parent'] = parent unless parent.nil?
|
1150
|
+
command.query['fields'] = fields unless fields.nil?
|
1151
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1152
|
+
execute_or_queue_command(command, &block)
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# Updates an existing `Note`.
|
1156
|
+
# @param [String] name
|
1157
|
+
# The name of the note.
|
1158
|
+
# Should be of the form "projects/`provider_id`/notes/`note_id`".
|
1159
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::Note] note_object
|
1160
|
+
# @param [String] update_mask
|
1161
|
+
# The fields to update.
|
1162
|
+
# @param [String] fields
|
1163
|
+
# Selector specifying which fields to include in a partial response.
|
1164
|
+
# @param [String] quota_user
|
1165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1167
|
+
# @param [Google::Apis::RequestOptions] options
|
1168
|
+
# Request-specific options
|
1169
|
+
#
|
1170
|
+
# @yield [result, err] Result & error if block supplied
|
1171
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Note] parsed result object
|
1172
|
+
# @yieldparam err [StandardError] error object if request failed
|
1173
|
+
#
|
1174
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Note]
|
1175
|
+
#
|
1176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1179
|
+
def patch_provider_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1180
|
+
command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
|
1181
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
1182
|
+
command.request_object = note_object
|
1183
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Note::Representation
|
1184
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Note
|
1185
|
+
command.params['name'] = name unless name.nil?
|
1186
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1187
|
+
command.query['fields'] = fields unless fields.nil?
|
1188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1189
|
+
execute_or_queue_command(command, &block)
|
1190
|
+
end
|
1191
|
+
|
1192
|
+
# Sets the access control policy on the specified `Note` or `Occurrence`.
|
1193
|
+
# Requires `containeranalysis.notes.setIamPolicy` or
|
1194
|
+
# `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
1195
|
+
# a `Note` or an `Occurrence`, respectively.
|
1196
|
+
# Attempting to call this method without these permissions will result in a `
|
1197
|
+
# `PERMISSION_DENIED` error.
|
1198
|
+
# Attempting to call this method on a non-existent resource will result in a
|
1199
|
+
# `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission
|
1200
|
+
# on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or
|
1201
|
+
# a `PERMISSION_DENIED` error otherwise. The resource takes the following
|
1202
|
+
# formats: `projects/`projectid`/occurrences/`occurrenceid`` for occurrences
|
1203
|
+
# and projects/`projectid`/notes/`noteid` for notes
|
1204
|
+
# @param [String] resource
|
1205
|
+
# REQUIRED: The resource for which the policy is being specified.
|
1206
|
+
# See the operation documentation for the appropriate value for this field.
|
1207
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
1208
|
+
# @param [String] fields
|
1209
|
+
# Selector specifying which fields to include in a partial response.
|
1210
|
+
# @param [String] quota_user
|
1211
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1212
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1213
|
+
# @param [Google::Apis::RequestOptions] options
|
1214
|
+
# Request-specific options
|
1215
|
+
#
|
1216
|
+
# @yield [result, err] Result & error if block supplied
|
1217
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::Policy] parsed result object
|
1218
|
+
# @yieldparam err [StandardError] error object if request failed
|
1219
|
+
#
|
1220
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::Policy]
|
1221
|
+
#
|
1222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1225
|
+
def set_provider_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1226
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
1227
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::SetIamPolicyRequest::Representation
|
1228
|
+
command.request_object = set_iam_policy_request_object
|
1229
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::Policy::Representation
|
1230
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::Policy
|
1231
|
+
command.params['resource'] = resource unless resource.nil?
|
1232
|
+
command.query['fields'] = fields unless fields.nil?
|
1233
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1234
|
+
execute_or_queue_command(command, &block)
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
# Returns the permissions that a caller has on the specified note or
|
1238
|
+
# occurrence resource. Requires list permission on the project (for example,
|
1239
|
+
# "storage.objects.list" on the containing bucket for testing permission of
|
1240
|
+
# an object). Attempting to call this method on a non-existent resource will
|
1241
|
+
# result in a `NOT_FOUND` error if the user has list permission on the
|
1242
|
+
# project, or a `PERMISSION_DENIED` error otherwise. The resource takes the
|
1243
|
+
# following formats: `projects/`PROJECT_ID`/occurrences/`OCCURRENCE_ID`` for
|
1244
|
+
# `Occurrences` and `projects/`PROJECT_ID`/notes/`NOTE_ID`` for `Notes`
|
1245
|
+
# @param [String] resource
|
1246
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
1247
|
+
# See the operation documentation for the appropriate value for this field.
|
1248
|
+
# @param [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1249
|
+
# @param [String] fields
|
1250
|
+
# Selector specifying which fields to include in a partial response.
|
1251
|
+
# @param [String] quota_user
|
1252
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1253
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1254
|
+
# @param [Google::Apis::RequestOptions] options
|
1255
|
+
# Request-specific options
|
1256
|
+
#
|
1257
|
+
# @yield [result, err] Result & error if block supplied
|
1258
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse] parsed result object
|
1259
|
+
# @yieldparam err [StandardError] error object if request failed
|
1260
|
+
#
|
1261
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse]
|
1262
|
+
#
|
1263
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1264
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1265
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1266
|
+
def test_provider_note_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1267
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
1268
|
+
command.request_representation = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsRequest::Representation
|
1269
|
+
command.request_object = test_iam_permissions_request_object
|
1270
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse::Representation
|
1271
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::TestIamPermissionsResponse
|
1272
|
+
command.params['resource'] = resource unless resource.nil?
|
1273
|
+
command.query['fields'] = fields unless fields.nil?
|
1274
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1275
|
+
execute_or_queue_command(command, &block)
|
1276
|
+
end
|
1277
|
+
|
1278
|
+
# Lists `Occurrences` referencing the specified `Note`. Use this method to
|
1279
|
+
# get all occurrences referencing your `Note` across all your customer
|
1280
|
+
# projects.
|
1281
|
+
# @param [String] name
|
1282
|
+
# The name field will contain the note name for example:
|
1283
|
+
# "provider/`provider_id`/notes/`note_id`"
|
1284
|
+
# @param [String] filter
|
1285
|
+
# The filter expression.
|
1286
|
+
# @param [Fixnum] page_size
|
1287
|
+
# Number of notes to return in the list.
|
1288
|
+
# @param [String] page_token
|
1289
|
+
# Token to provide to skip to a particular spot in the list.
|
1290
|
+
# @param [String] fields
|
1291
|
+
# Selector specifying which fields to include in a partial response.
|
1292
|
+
# @param [String] quota_user
|
1293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1295
|
+
# @param [Google::Apis::RequestOptions] options
|
1296
|
+
# Request-specific options
|
1297
|
+
#
|
1298
|
+
# @yield [result, err] Result & error if block supplied
|
1299
|
+
# @yieldparam result [Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse] parsed result object
|
1300
|
+
# @yieldparam err [StandardError] error object if request failed
|
1301
|
+
#
|
1302
|
+
# @return [Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse]
|
1303
|
+
#
|
1304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1307
|
+
def list_provider_note_occurrences(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1308
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}/occurrences', options)
|
1309
|
+
command.response_representation = Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse::Representation
|
1310
|
+
command.response_class = Google::Apis::ContaineranalysisV1alpha1::ListNoteOccurrencesResponse
|
1311
|
+
command.params['name'] = name unless name.nil?
|
1312
|
+
command.query['filter'] = filter unless filter.nil?
|
1313
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1314
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1315
|
+
command.query['fields'] = fields unless fields.nil?
|
1316
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1317
|
+
execute_or_queue_command(command, &block)
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
protected
|
1321
|
+
|
1322
|
+
def apply_command_defaults(command)
|
1323
|
+
command.query['key'] = key unless key.nil?
|
1324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1325
|
+
end
|
1326
|
+
end
|
1327
|
+
end
|
1328
|
+
end
|
1329
|
+
end
|