Debian Codegraph @

docs/dyn/logging_v2.organizations.locations.logScopes.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="logging_v2.html">Cloud Logging API</a> . <a href="logging_v2.organizations.html">organizations</a> . <a href="logging_v2.organizations.locations.html">locations</a> . <a href="logging_v2.organizations.locations.logScopes.html">logScopes</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, logScopeId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a log scope.</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 log scope.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets a log scope.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists log scopes.</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 a log scope.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, logScopeId=None, x__xgafv=None)</code>
106 <pre>Creates a log scope.
107
108 Args:
109 parent: string, Required. The parent resource in which to create the log scope: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]&quot; For example:&quot;projects/my-project/locations/global&quot; (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Describes a group of resources to read log entries from.
114 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the log scope.
115 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes this log scope.The maximum length of the description is 8000 characters.
116 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope
117 &quot;resourceNames&quot;: [ # Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.
118 &quot;A String&quot;,
119 ],
120 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the log scope.
121 }
122
123 logScopeId: string, Required. A client-assigned identifier such as &quot;log-scope&quot;. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
124 x__xgafv: string, V1 error format.
125 Allowed values
126 1 - v1 error format
127 2 - v2 error format
128
129 Returns:
130 An object of the form:
131
132 { # Describes a group of resources to read log entries from.
133 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the log scope.
134 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes this log scope.The maximum length of the description is 8000 characters.
135 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope
136 &quot;resourceNames&quot;: [ # Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.
137 &quot;A String&quot;,
138 ],
139 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the log scope.
140 }</pre>
141 </div>
142
143 <div class="method">
144 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
145 <pre>Deletes a log scope.
146
147 Args:
148 name: string, Required. The resource name of the log scope to delete: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]&quot; For example:&quot;projects/my-project/locations/global/logScopes/my-log-scope&quot; (required)
149 x__xgafv: string, V1 error format.
150 Allowed values
151 1 - v1 error format
152 2 - v2 error format
153
154 Returns:
155 An object of the form:
156
157 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
158 }</pre>
159 </div>
160
161 <div class="method">
162 <code class="details" id="get">get(name, x__xgafv=None)</code>
163 <pre>Gets a log scope.
164
165 Args:
166 name: string, Required. The resource name of the log scope: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]&quot; For example:&quot;projects/my-project/locations/global/logScopes/my-log-scope&quot; (required)
167 x__xgafv: string, V1 error format.
168 Allowed values
169 1 - v1 error format
170 2 - v2 error format
171
172 Returns:
173 An object of the form:
174
175 { # Describes a group of resources to read log entries from.
176 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the log scope.
177 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes this log scope.The maximum length of the description is 8000 characters.
178 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope
179 &quot;resourceNames&quot;: [ # Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.
180 &quot;A String&quot;,
181 ],
182 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the log scope.
183 }</pre>
184 </div>
185
186 <div class="method">
187 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
188 <pre>Lists log scopes.
189
190 Args:
191 parent: string, Required. The parent resource whose log scopes are to be listed: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; (required)
192 pageSize: integer, Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
193 pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
194 x__xgafv: string, V1 error format.
195 Allowed values
196 1 - v1 error format
197 2 - v2 error format
198
199 Returns:
200 An object of the form:
201
202 { # The response from ListLogScopes. Every project has a _Default log scope that cannot be modified or deleted.
203 &quot;logScopes&quot;: [ # A list of log scopes.
204 { # Describes a group of resources to read log entries from.
205 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the log scope.
206 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes this log scope.The maximum length of the description is 8000 characters.
207 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope
208 &quot;resourceNames&quot;: [ # Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.
209 &quot;A String&quot;,
210 ],
211 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the log scope.
212 },
213 ],
214 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.
215 }</pre>
216 </div>
217
218 <div class="method">
219 <code class="details" id="list_next">list_next()</code>
220 <pre>Retrieves the next page of results.
221
222 Args:
223 previous_request: The request for the previous page. (required)
224 previous_response: The response from the request for the previous page. (required)
225
226 Returns:
227 A request object that you can call &#x27;execute()&#x27; on to request the next
228 page. Returns None if there are no more items in the collection.
229 </pre>
230 </div>
231
232 <div class="method">
233 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
234 <pre>Updates a log scope.
235
236 Args:
237 name: string, Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope (required)
238 body: object, The request body.
239 The object takes the form of:
240
241 { # Describes a group of resources to read log entries from.
242 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the log scope.
243 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes this log scope.The maximum length of the description is 8000 characters.
244 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope
245 &quot;resourceNames&quot;: [ # Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.
246 &quot;A String&quot;,
247 ],
248 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the log scope.
249 }
250
251 updateMask: string, Optional. Field mask that specifies the fields in log_scope that need an update. A field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example: updateMask=description
252 x__xgafv: string, V1 error format.
253 Allowed values
254 1 - v1 error format
255 2 - v2 error format
256
257 Returns:
258 An object of the form:
259
260 { # Describes a group of resources to read log entries from.
261 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the log scope.
262 &quot;description&quot;: &quot;A String&quot;, # Optional. Describes this log scope.The maximum length of the description is 8000 characters.
263 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the log scope.Log scopes are only available in the global location. For example:projects/my-project/locations/global/logScopes/my-log-scope
264 &quot;resourceNames&quot;: [ # Required. Names of one or more parent resources (organizations and folders are not supported.): projects/[PROJECT_ID]May alternatively be one or more views: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]A log scope can include a maximum of 5 projects and a maximum of 100 resources in total.
265 &quot;A String&quot;,
266 ],
267 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the log scope.
268 }</pre>
269 </div>
270
271 </body></html>