Debian Codegraph @

docs/dyn/connectors_v1.projects.locations.connections.eventSubscriptions.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="connectors_v1.html">Connectors API</a> . <a href="connectors_v1.projects.html">projects</a> . <a href="connectors_v1.projects.locations.html">locations</a> . <a href="connectors_v1.projects.locations.connections.html">connections</a> . <a href="connectors_v1.projects.locations.connections.eventSubscriptions.html">eventSubscriptions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, eventSubscriptionId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new EventSubscription in a given project,location and connection.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single EventSubscription.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single EventSubscription.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">List EventSubscriptions in a given project,location and connection.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the parameters of a single EventSubscription.</p>
98 <p class="toc_element">
99 <code><a href="#retry">retry(name, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">RetryEventSubscription retries the registration of Subscription.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="create">create(parent, body=None, eventSubscriptionId=None, x__xgafv=None)</code>
109 <pre>Creates a new EventSubscription in a given project,location and connection.
110
111 Args:
112 parent: string, Required. Parent resource of the EventSubscription, of the form: `projects/*/locations/*/connections/*` (required)
113 body: object, The request body.
114 The object takes the form of:
115
116 { # represents the Connector&#x27;s EventSubscription resource
117 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
118 &quot;destinations&quot;: { # Message for EventSubscription Destination to act on receiving an event # Optional. The destination to hit when we receive an event
119 &quot;endpoint&quot;: { # Endpoint message includes details of the Destination endpoint. # OPTION 1: Hit an endpoint when we receive an event.
120 &quot;endpointUri&quot;: &quot;A String&quot;, # Optional. The URI of the Endpoint.
121 &quot;headers&quot;: [ # Optional. List of Header to be added to the Endpoint.
122 { # Header details for a given header to be added to Endpoint.
123 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of Header.
124 &quot;value&quot;: &quot;A String&quot;, # Optional. Value of Header.
125 },
126 ],
127 },
128 &quot;pubsub&quot;: { # Pub/Sub message includes details of the Destination Pub/Sub topic. # OPTION 3: Write the event to Pub/Sub topic.
129 &quot;attributes&quot;: { # Optional. Pub/Sub message attributes to be added to the Pub/Sub message.
130 &quot;a_key&quot;: &quot;A String&quot;,
131 },
132 &quot;configVariables&quot;: [ # Optional. Configuration for configuring the trigger
133 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
134 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
135 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
136 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
137 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
138 },
139 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
140 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
141 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
142 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
143 },
144 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
145 },
146 ],
147 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project id which has the Pub/Sub topic.
148 &quot;topicId&quot;: &quot;A String&quot;, # Required. The topic id of the Pub/Sub topic.
149 },
150 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. Service account needed for runtime plane to trigger IP workflow.
151 &quot;type&quot;: &quot;A String&quot;, # Optional. type of the destination
152 },
153 &quot;eventTypeId&quot;: &quot;A String&quot;, # Optional. Event type id of the event of current EventSubscription.
154 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter for the event subscription. Incoming events are filtered based on the filter expression.
155 &quot;jms&quot;: { # JMS message denotes the source of the event # Optional. JMS is the source for the event listener.
156 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the JMS source. i.e. queueName or topicName
157 &quot;type&quot;: &quot;A String&quot;, # Optional. Type of the JMS Source. i.e. Queue or Topic
158 },
159 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
160 &quot;status&quot;: { # EventSubscription Status denotes the status of the EventSubscription resource. # Optional. Status indicates the status of the event subscription resource
161 &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the state.
162 &quot;state&quot;: &quot;A String&quot;, # Output only. State of Event Subscription resource.
163 },
164 &quot;subscriber&quot;: &quot;A String&quot;, # Optional. name of the Subscriber for the current EventSubscription.
165 &quot;subscriberLink&quot;: &quot;A String&quot;, # Optional. Link for Subscriber of the current EventSubscription.
166 &quot;triggerConfigVariables&quot;: [ # Optional. Configuration for configuring the trigger
167 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
168 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
169 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
170 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
171 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
172 },
173 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
174 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
175 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
176 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
177 },
178 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
179 },
180 ],
181 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
182 }
183
184 eventSubscriptionId: string, Required. Identifier to assign to the Event Subscription. Must be unique within scope of the parent resource.
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190 Returns:
191 An object of the form:
192
193 { # This resource represents a long-running operation that is the result of a network API call.
194 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
195 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
196 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
197 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
198 {
199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
200 },
201 ],
202 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
203 },
204 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
208 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
209 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
210 },
211 }</pre>
212 </div>
213
214 <div class="method">
215 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
216 <pre>Deletes a single EventSubscription.
217
218 Args:
219 name: string, Required. Resource name of the form: `projects/*/locations/*/connections/*/eventsubscriptions/*` (required)
220 x__xgafv: string, V1 error format.
221 Allowed values
222 1 - v1 error format
223 2 - v2 error format
224
225 Returns:
226 An object of the form:
227
228 { # This resource represents a long-running operation that is the result of a network API call.
229 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
230 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
231 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
232 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
233 {
234 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
235 },
236 ],
237 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
238 },
239 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
240 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
241 },
242 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
243 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
244 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
245 },
246 }</pre>
247 </div>
248
249 <div class="method">
250 <code class="details" id="get">get(name, x__xgafv=None)</code>
251 <pre>Gets details of a single EventSubscription.
252
253 Args:
254 name: string, Required. Resource name of the form: `projects/*/locations/*/connections/*/eventSubscriptions/*` (required)
255 x__xgafv: string, V1 error format.
256 Allowed values
257 1 - v1 error format
258 2 - v2 error format
259
260 Returns:
261 An object of the form:
262
263 { # represents the Connector&#x27;s EventSubscription resource
264 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
265 &quot;destinations&quot;: { # Message for EventSubscription Destination to act on receiving an event # Optional. The destination to hit when we receive an event
266 &quot;endpoint&quot;: { # Endpoint message includes details of the Destination endpoint. # OPTION 1: Hit an endpoint when we receive an event.
267 &quot;endpointUri&quot;: &quot;A String&quot;, # Optional. The URI of the Endpoint.
268 &quot;headers&quot;: [ # Optional. List of Header to be added to the Endpoint.
269 { # Header details for a given header to be added to Endpoint.
270 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of Header.
271 &quot;value&quot;: &quot;A String&quot;, # Optional. Value of Header.
272 },
273 ],
274 },
275 &quot;pubsub&quot;: { # Pub/Sub message includes details of the Destination Pub/Sub topic. # OPTION 3: Write the event to Pub/Sub topic.
276 &quot;attributes&quot;: { # Optional. Pub/Sub message attributes to be added to the Pub/Sub message.
277 &quot;a_key&quot;: &quot;A String&quot;,
278 },
279 &quot;configVariables&quot;: [ # Optional. Configuration for configuring the trigger
280 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
281 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
282 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
283 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
284 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
285 },
286 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
287 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
288 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
289 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
290 },
291 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
292 },
293 ],
294 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project id which has the Pub/Sub topic.
295 &quot;topicId&quot;: &quot;A String&quot;, # Required. The topic id of the Pub/Sub topic.
296 },
297 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. Service account needed for runtime plane to trigger IP workflow.
298 &quot;type&quot;: &quot;A String&quot;, # Optional. type of the destination
299 },
300 &quot;eventTypeId&quot;: &quot;A String&quot;, # Optional. Event type id of the event of current EventSubscription.
301 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter for the event subscription. Incoming events are filtered based on the filter expression.
302 &quot;jms&quot;: { # JMS message denotes the source of the event # Optional. JMS is the source for the event listener.
303 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the JMS source. i.e. queueName or topicName
304 &quot;type&quot;: &quot;A String&quot;, # Optional. Type of the JMS Source. i.e. Queue or Topic
305 },
306 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
307 &quot;status&quot;: { # EventSubscription Status denotes the status of the EventSubscription resource. # Optional. Status indicates the status of the event subscription resource
308 &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the state.
309 &quot;state&quot;: &quot;A String&quot;, # Output only. State of Event Subscription resource.
310 },
311 &quot;subscriber&quot;: &quot;A String&quot;, # Optional. name of the Subscriber for the current EventSubscription.
312 &quot;subscriberLink&quot;: &quot;A String&quot;, # Optional. Link for Subscriber of the current EventSubscription.
313 &quot;triggerConfigVariables&quot;: [ # Optional. Configuration for configuring the trigger
314 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
315 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
316 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
317 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
318 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
319 },
320 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
321 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
322 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
323 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
324 },
325 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
326 },
327 ],
328 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
329 }</pre>
330 </div>
331
332 <div class="method">
333 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
334 <pre>List EventSubscriptions in a given project,location and connection.
335
336 Args:
337 parent: string, Required. Parent resource of the EventSubscription, of the form: `projects/*/locations/*/connections/*` (required)
338 filter: string, Filter.
339 orderBy: string, Order by parameters.
340 pageSize: integer, Page size.
341 pageToken: string, Page token.
342 x__xgafv: string, V1 error format.
343 Allowed values
344 1 - v1 error format
345 2 - v2 error format
346
347 Returns:
348 An object of the form:
349
350 { # Response message for ConnectorsService.ListEventSubscriptions
351 &quot;eventSubscriptions&quot;: [ # Subscriptions.
352 { # represents the Connector&#x27;s EventSubscription resource
353 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
354 &quot;destinations&quot;: { # Message for EventSubscription Destination to act on receiving an event # Optional. The destination to hit when we receive an event
355 &quot;endpoint&quot;: { # Endpoint message includes details of the Destination endpoint. # OPTION 1: Hit an endpoint when we receive an event.
356 &quot;endpointUri&quot;: &quot;A String&quot;, # Optional. The URI of the Endpoint.
357 &quot;headers&quot;: [ # Optional. List of Header to be added to the Endpoint.
358 { # Header details for a given header to be added to Endpoint.
359 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of Header.
360 &quot;value&quot;: &quot;A String&quot;, # Optional. Value of Header.
361 },
362 ],
363 },
364 &quot;pubsub&quot;: { # Pub/Sub message includes details of the Destination Pub/Sub topic. # OPTION 3: Write the event to Pub/Sub topic.
365 &quot;attributes&quot;: { # Optional. Pub/Sub message attributes to be added to the Pub/Sub message.
366 &quot;a_key&quot;: &quot;A String&quot;,
367 },
368 &quot;configVariables&quot;: [ # Optional. Configuration for configuring the trigger
369 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
370 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
371 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
372 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
373 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
374 },
375 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
376 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
377 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
378 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
379 },
380 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
381 },
382 ],
383 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project id which has the Pub/Sub topic.
384 &quot;topicId&quot;: &quot;A String&quot;, # Required. The topic id of the Pub/Sub topic.
385 },
386 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. Service account needed for runtime plane to trigger IP workflow.
387 &quot;type&quot;: &quot;A String&quot;, # Optional. type of the destination
388 },
389 &quot;eventTypeId&quot;: &quot;A String&quot;, # Optional. Event type id of the event of current EventSubscription.
390 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter for the event subscription. Incoming events are filtered based on the filter expression.
391 &quot;jms&quot;: { # JMS message denotes the source of the event # Optional. JMS is the source for the event listener.
392 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the JMS source. i.e. queueName or topicName
393 &quot;type&quot;: &quot;A String&quot;, # Optional. Type of the JMS Source. i.e. Queue or Topic
394 },
395 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
396 &quot;status&quot;: { # EventSubscription Status denotes the status of the EventSubscription resource. # Optional. Status indicates the status of the event subscription resource
397 &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the state.
398 &quot;state&quot;: &quot;A String&quot;, # Output only. State of Event Subscription resource.
399 },
400 &quot;subscriber&quot;: &quot;A String&quot;, # Optional. name of the Subscriber for the current EventSubscription.
401 &quot;subscriberLink&quot;: &quot;A String&quot;, # Optional. Link for Subscriber of the current EventSubscription.
402 &quot;triggerConfigVariables&quot;: [ # Optional. Configuration for configuring the trigger
403 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
404 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
405 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
406 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
407 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
408 },
409 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
410 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
411 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
412 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
413 },
414 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
415 },
416 ],
417 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
418 },
419 ],
420 &quot;nextPageToken&quot;: &quot;A String&quot;, # Next page token.
421 &quot;unreachable&quot;: [ # Locations that could not be reached.
422 &quot;A String&quot;,
423 ],
424 }</pre>
425 </div>
426
427 <div class="method">
428 <code class="details" id="list_next">list_next()</code>
429 <pre>Retrieves the next page of results.
430
431 Args:
432 previous_request: The request for the previous page. (required)
433 previous_response: The response from the request for the previous page. (required)
434
435 Returns:
436 A request object that you can call &#x27;execute()&#x27; on to request the next
437 page. Returns None if there are no more items in the collection.
438 </pre>
439 </div>
440
441 <div class="method">
442 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
443 <pre>Updates the parameters of a single EventSubscription.
444
445 Args:
446 name: string, Required. Identifier. Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription} (required)
447 body: object, The request body.
448 The object takes the form of:
449
450 { # represents the Connector&#x27;s EventSubscription resource
451 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
452 &quot;destinations&quot;: { # Message for EventSubscription Destination to act on receiving an event # Optional. The destination to hit when we receive an event
453 &quot;endpoint&quot;: { # Endpoint message includes details of the Destination endpoint. # OPTION 1: Hit an endpoint when we receive an event.
454 &quot;endpointUri&quot;: &quot;A String&quot;, # Optional. The URI of the Endpoint.
455 &quot;headers&quot;: [ # Optional. List of Header to be added to the Endpoint.
456 { # Header details for a given header to be added to Endpoint.
457 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of Header.
458 &quot;value&quot;: &quot;A String&quot;, # Optional. Value of Header.
459 },
460 ],
461 },
462 &quot;pubsub&quot;: { # Pub/Sub message includes details of the Destination Pub/Sub topic. # OPTION 3: Write the event to Pub/Sub topic.
463 &quot;attributes&quot;: { # Optional. Pub/Sub message attributes to be added to the Pub/Sub message.
464 &quot;a_key&quot;: &quot;A String&quot;,
465 },
466 &quot;configVariables&quot;: [ # Optional. Configuration for configuring the trigger
467 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
468 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
469 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
470 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
471 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
472 },
473 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
474 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
475 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
476 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
477 },
478 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
479 },
480 ],
481 &quot;projectId&quot;: &quot;A String&quot;, # Required. The project id which has the Pub/Sub topic.
482 &quot;topicId&quot;: &quot;A String&quot;, # Required. The topic id of the Pub/Sub topic.
483 },
484 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. Service account needed for runtime plane to trigger IP workflow.
485 &quot;type&quot;: &quot;A String&quot;, # Optional. type of the destination
486 },
487 &quot;eventTypeId&quot;: &quot;A String&quot;, # Optional. Event type id of the event of current EventSubscription.
488 &quot;filter&quot;: &quot;A String&quot;, # Optional. Filter for the event subscription. Incoming events are filtered based on the filter expression.
489 &quot;jms&quot;: { # JMS message denotes the source of the event # Optional. JMS is the source for the event listener.
490 &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the JMS source. i.e. queueName or topicName
491 &quot;type&quot;: &quot;A String&quot;, # Optional. Type of the JMS Source. i.e. Queue or Topic
492 },
493 &quot;name&quot;: &quot;A String&quot;, # Required. Identifier. Resource name of the EventSubscription. Format: projects/{project}/locations/{location}/connections/{connection}/eventSubscriptions/{event_subscription}
494 &quot;status&quot;: { # EventSubscription Status denotes the status of the EventSubscription resource. # Optional. Status indicates the status of the event subscription resource
495 &quot;description&quot;: &quot;A String&quot;, # Output only. Description of the state.
496 &quot;state&quot;: &quot;A String&quot;, # Output only. State of Event Subscription resource.
497 },
498 &quot;subscriber&quot;: &quot;A String&quot;, # Optional. name of the Subscriber for the current EventSubscription.
499 &quot;subscriberLink&quot;: &quot;A String&quot;, # Optional. Link for Subscriber of the current EventSubscription.
500 &quot;triggerConfigVariables&quot;: [ # Optional. Configuration for configuring the trigger
501 { # ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.
502 &quot;boolValue&quot;: True or False, # Optional. Value is a bool.
503 &quot;encryptionKeyValue&quot;: { # Encryption Key value. # Optional. Value is a Encryption Key.
504 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The [KMS key name] with which the content of the Operation is encrypted. The expected format: `projects/*/locations/*/keyRings/*/cryptoKeys/*`. Will be empty string if google managed.
505 &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the encryption key.
506 },
507 &quot;intValue&quot;: &quot;A String&quot;, # Optional. Value is an integer
508 &quot;key&quot;: &quot;A String&quot;, # Optional. Key of the config variable.
509 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. Value is a secret.
510 &quot;secretVersion&quot;: &quot;A String&quot;, # Optional. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
511 },
512 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. Value is a string.
513 },
514 ],
515 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Updated time.
516 }
517
518 updateMask: string, Required. The list of fields to update. Fields are specified relative to the Subscription. A field will be overwritten if it is in the mask. You can modify only the fields listed below. To update the EventSubscription details: * `serviceAccount`
519 x__xgafv: string, V1 error format.
520 Allowed values
521 1 - v1 error format
522 2 - v2 error format
523
524 Returns:
525 An object of the form:
526
527 { # This resource represents a long-running operation that is the result of a network API call.
528 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
529 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
530 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
531 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
532 {
533 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
534 },
535 ],
536 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
537 },
538 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
539 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
540 },
541 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
542 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
543 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
544 },
545 }</pre>
546 </div>
547
548 <div class="method">
549 <code class="details" id="retry">retry(name, body=None, x__xgafv=None)</code>
550 <pre>RetryEventSubscription retries the registration of Subscription.
551
552 Args:
553 name: string, Required. Resource name of the form: `projects/*/locations/*/connections/*/eventSubscriptions/*` (required)
554 body: object, The request body.
555 The object takes the form of:
556
557 { # Request message for ConnectorsService.RefreshEventSubscription
558 }
559
560 x__xgafv: string, V1 error format.
561 Allowed values
562 1 - v1 error format
563 2 - v2 error format
564
565 Returns:
566 An object of the form:
567
568 { # This resource represents a long-running operation that is the result of a network API call.
569 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
570 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
571 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
572 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
573 {
574 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
575 },
576 ],
577 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
578 },
579 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
580 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
581 },
582 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
583 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
584 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
585 },
586 }</pre>
587 </div>
588
589 </body></html>