Debian Codegraph @

docs/dyn/storage_v1.notifications.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="storage_v1.html">Cloud Storage JSON API</a> . <a href="storage_v1.notifications.html">notifications</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="#delete">delete(bucket, notification, userProject=None)</a></code></p>
82 <p class="firstline">Permanently deletes a notification subscription.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(bucket, notification, userProject=None)</a></code></p>
85 <p class="firstline">View a notification configuration.</p>
86 <p class="toc_element">
87 <code><a href="#insert">insert(bucket, body=None, userProject=None)</a></code></p>
88 <p class="firstline">Creates a notification subscription for a given bucket.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(bucket, userProject=None)</a></code></p>
91 <p class="firstline">Retrieves a list of notification subscriptions for a given bucket.</p>
92 <h3>Method Details</h3>
93 <div class="method">
94 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96 </div>
97
98 <div class="method">
99 <code class="details" id="delete">delete(bucket, notification, userProject=None)</code>
100 <pre>Permanently deletes a notification subscription.
101
102 Args:
103 bucket: string, The parent bucket of the notification. (required)
104 notification: string, ID of the notification to delete. (required)
105 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
106 </pre>
107 </div>
108
109 <div class="method">
110 <code class="details" id="get">get(bucket, notification, userProject=None)</code>
111 <pre>View a notification configuration.
112
113 Args:
114 bucket: string, The parent bucket of the notification. (required)
115 notification: string, Notification ID (required)
116 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
117
118 Returns:
119 An object of the form:
120
121 { # A subscription to receive Google PubSub notifications.
122 &quot;custom_attributes&quot;: { # An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
123 &quot;a_key&quot;: &quot;A String&quot;,
124 },
125 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for this subscription notification.
126 &quot;event_types&quot;: [ # If present, only send notifications about listed event types. If empty, sent notifications for all event types.
127 &quot;A String&quot;,
128 ],
129 &quot;id&quot;: &quot;A String&quot;, # The ID of the notification.
130 &quot;kind&quot;: &quot;storage#notification&quot;, # The kind of item this is. For notifications, this is always storage#notification.
131 &quot;object_name_prefix&quot;: &quot;A String&quot;, # If present, only apply this notification configuration to object names that begin with this prefix.
132 &quot;payload_format&quot;: &quot;JSON_API_V1&quot;, # The desired content of the Payload.
133 &quot;selfLink&quot;: &quot;A String&quot;, # The canonical URL of this notification.
134 &quot;topic&quot;: &quot;A String&quot;, # The Cloud PubSub topic to which this subscription publishes. Formatted as: &#x27;//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}&#x27;
135 }</pre>
136 </div>
137
138 <div class="method">
139 <code class="details" id="insert">insert(bucket, body=None, userProject=None)</code>
140 <pre>Creates a notification subscription for a given bucket.
141
142 Args:
143 bucket: string, The parent bucket of the notification. (required)
144 body: object, The request body.
145 The object takes the form of:
146
147 { # A subscription to receive Google PubSub notifications.
148 &quot;custom_attributes&quot;: { # An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
149 &quot;a_key&quot;: &quot;A String&quot;,
150 },
151 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for this subscription notification.
152 &quot;event_types&quot;: [ # If present, only send notifications about listed event types. If empty, sent notifications for all event types.
153 &quot;A String&quot;,
154 ],
155 &quot;id&quot;: &quot;A String&quot;, # The ID of the notification.
156 &quot;kind&quot;: &quot;storage#notification&quot;, # The kind of item this is. For notifications, this is always storage#notification.
157 &quot;object_name_prefix&quot;: &quot;A String&quot;, # If present, only apply this notification configuration to object names that begin with this prefix.
158 &quot;payload_format&quot;: &quot;JSON_API_V1&quot;, # The desired content of the Payload.
159 &quot;selfLink&quot;: &quot;A String&quot;, # The canonical URL of this notification.
160 &quot;topic&quot;: &quot;A String&quot;, # The Cloud PubSub topic to which this subscription publishes. Formatted as: &#x27;//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}&#x27;
161 }
162
163 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
164
165 Returns:
166 An object of the form:
167
168 { # A subscription to receive Google PubSub notifications.
169 &quot;custom_attributes&quot;: { # An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
170 &quot;a_key&quot;: &quot;A String&quot;,
171 },
172 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for this subscription notification.
173 &quot;event_types&quot;: [ # If present, only send notifications about listed event types. If empty, sent notifications for all event types.
174 &quot;A String&quot;,
175 ],
176 &quot;id&quot;: &quot;A String&quot;, # The ID of the notification.
177 &quot;kind&quot;: &quot;storage#notification&quot;, # The kind of item this is. For notifications, this is always storage#notification.
178 &quot;object_name_prefix&quot;: &quot;A String&quot;, # If present, only apply this notification configuration to object names that begin with this prefix.
179 &quot;payload_format&quot;: &quot;JSON_API_V1&quot;, # The desired content of the Payload.
180 &quot;selfLink&quot;: &quot;A String&quot;, # The canonical URL of this notification.
181 &quot;topic&quot;: &quot;A String&quot;, # The Cloud PubSub topic to which this subscription publishes. Formatted as: &#x27;//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}&#x27;
182 }</pre>
183 </div>
184
185 <div class="method">
186 <code class="details" id="list">list(bucket, userProject=None)</code>
187 <pre>Retrieves a list of notification subscriptions for a given bucket.
188
189 Args:
190 bucket: string, Name of a Google Cloud Storage bucket. (required)
191 userProject: string, The project to be billed for this request. Required for Requester Pays buckets.
192
193 Returns:
194 An object of the form:
195
196 { # A list of notification subscriptions.
197 &quot;items&quot;: [ # The list of items.
198 { # A subscription to receive Google PubSub notifications.
199 &quot;custom_attributes&quot;: { # An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
200 &quot;a_key&quot;: &quot;A String&quot;,
201 },
202 &quot;etag&quot;: &quot;A String&quot;, # HTTP 1.1 Entity tag for this subscription notification.
203 &quot;event_types&quot;: [ # If present, only send notifications about listed event types. If empty, sent notifications for all event types.
204 &quot;A String&quot;,
205 ],
206 &quot;id&quot;: &quot;A String&quot;, # The ID of the notification.
207 &quot;kind&quot;: &quot;storage#notification&quot;, # The kind of item this is. For notifications, this is always storage#notification.
208 &quot;object_name_prefix&quot;: &quot;A String&quot;, # If present, only apply this notification configuration to object names that begin with this prefix.
209 &quot;payload_format&quot;: &quot;JSON_API_V1&quot;, # The desired content of the Payload.
210 &quot;selfLink&quot;: &quot;A String&quot;, # The canonical URL of this notification.
211 &quot;topic&quot;: &quot;A String&quot;, # The Cloud PubSub topic to which this subscription publishes. Formatted as: &#x27;//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}&#x27;
212 },
213 ],
214 &quot;kind&quot;: &quot;storage#notifications&quot;, # The kind of item this is. For lists of notifications, this is always storage#notifications.
215 }</pre>
216 </div>
217
218 </body></html>