blob: 0f1d25a2d012b036a77dd1a19e82a5314d44a3bc [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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.billingAccounts.html">billingAccounts</a> . <a href="logging_v2.billingAccounts.locations.html">locations</a> . <a href="logging_v2.billingAccounts.locations.buckets.html">buckets</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Lists buckets (Beta).</p>
80<p class="toc_element">
81 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
84 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
89 <pre>Lists buckets (Beta).
90
91Args:
92 parent: string, Required. The parent resource whose buckets are to be listed:
93&quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot;
94&quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]&quot;
95&quot;billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]&quot;
96&quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]&quot;
97Note: The locations portion of the resource must be specified, but supplying the character - in place of LOCATION_ID will return all buckets. (required)
98 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.
99 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.
100 x__xgafv: string, V1 error format.
101 Allowed values
102 1 - v1 error format
103 2 - v2 error format
104
105Returns:
106 An object of the form:
107
108 { # The response from ListBuckets (Beta).
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 &quot;buckets&quot;: [ # A list of buckets.
110 { # Describes a repository of logs (Beta).
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700112 &quot;retentionDays&quot;: 42, # Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700113 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
114 &quot;name&quot;: &quot;A String&quot;, # The resource name of the bucket. For example: &quot;projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: &quot;global&quot; &quot;us-central1&quot;For the location of global it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
115 &quot;description&quot;: &quot;A String&quot;, # Describes this bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700116 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The bucket lifecycle state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 },
118 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700119 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 }</pre>
121</div>
122
123<div class="method">
124 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
125 <pre>Retrieves the next page of results.
126
127Args:
128 previous_request: The request for the previous page. (required)
129 previous_response: The response from the request for the previous page. (required)
130
131Returns:
132 A request object that you can call &#x27;execute()&#x27; on to request the next
133 page. Returns None if there are no more items in the collection.
134 </pre>
135</div>
136
137<div class="method">
138 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
139 <pre>Updates a bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be returned.A buckets region may not be modified after it is created. This method is in Beta.
140
141Args:
142 name: string, Required. The full resource name of the bucket to update.
143&quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot;
144&quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot;
145&quot;billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot;
146&quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot;
147Example: &quot;projects/my-project-id/locations/my-location/buckets/my-bucket-id&quot;. Also requires permission &quot;resourcemanager.projects.updateLiens&quot; to set the locked property (required)
148 body: object, The request body.
149 The object takes the form of:
150
151{ # Describes a repository of logs (Beta).
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;retentionDays&quot;: 42, # Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700154 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
155 &quot;name&quot;: &quot;A String&quot;, # The resource name of the bucket. For example: &quot;projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: &quot;global&quot; &quot;us-central1&quot;For the location of global it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
156 &quot;description&quot;: &quot;A String&quot;, # Describes this bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700157 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The bucket lifecycle state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158}
159
160 updateMask: string, Required. Field mask that specifies the fields in bucket that need an update. A bucket 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.FieldMaskExample: updateMask=retention_days.
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165
166Returns:
167 An object of the form:
168
169 { # Describes a repository of logs (Beta).
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700171 &quot;retentionDays&quot;: 42, # Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700172 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
173 &quot;name&quot;: &quot;A String&quot;, # The resource name of the bucket. For example: &quot;projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: &quot;global&quot; &quot;us-central1&quot;For the location of global it is unspecified where logs are actually stored. Once a bucket has been created, the location can not be changed.
174 &quot;description&quot;: &quot;A String&quot;, # Describes this bucket.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700175 &quot;lifecycleState&quot;: &quot;A String&quot;, # Output only. The bucket lifecycle state.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 }</pre>
177</div>
178
179</body></html>