Debian Codegraph @

docs/dyn/networkmanagement_v1.organizations.locations.vpcFlowLogsConfigs.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="networkmanagement_v1.html">Network Management API</a> . <a href="networkmanagement_v1.organizations.html">organizations</a> . <a href="networkmanagement_v1.organizations.locations.html">locations</a> . <a href="networkmanagement_v1.organizations.locations.vpcFlowLogsConfigs.html">vpcFlowLogsConfigs</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, vpcFlowLogsConfigId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description</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 specific `VpcFlowLogsConfig`.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the details of a specific `VpcFlowLogsConfig`.</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">Lists all `VpcFlowLogsConfigs` in a given organization.</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 an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description</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, vpcFlowLogsConfigId=None, x__xgafv=None)</code>
106 <pre>Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description
107
108 Args:
109 parent: string, Required. The parent resource of the VpcFlowLogsConfig to create, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # A configuration to generate VPC Flow Logs.
114 &quot;aggregationInterval&quot;: &quot;A String&quot;, # Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
115 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the config was created.
116 &quot;crossProjectMetadata&quot;: &quot;A String&quot;, # Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
117 &quot;description&quot;: &quot;A String&quot;, # Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
118 &quot;filterExpr&quot;: &quot;A String&quot;, # Optional. Export filter used to define which VPC Flow Logs should be logged.
119 &quot;flowSampling&quot;: 3.14, # Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
120 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
121 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
122 &quot;a_key&quot;: &quot;A String&quot;,
123 },
124 &quot;metadata&quot;: &quot;A String&quot;, # Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
125 &quot;metadataFields&quot;: [ # Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if &quot;metadata&quot; was set to CUSTOM_METADATA.
126 &quot;A String&quot;,
127 ],
128 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
129 &quot;network&quot;: &quot;A String&quot;, # Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
130 &quot;state&quot;: &quot;A String&quot;, # Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
131 &quot;subnet&quot;: &quot;A String&quot;, # Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
132 &quot;targetResourceState&quot;: &quot;A String&quot;, # Output only. Describes the state of the configured target resource for diagnostic purposes.
133 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the config was updated.
134 &quot;vpnTunnel&quot;: &quot;A String&quot;, # Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
135 }
136
137 vpcFlowLogsConfigId: string, Required. ID of the `VpcFlowLogsConfig`.
138 x__xgafv: string, V1 error format.
139 Allowed values
140 1 - v1 error format
141 2 - v2 error format
142
143 Returns:
144 An object of the form:
145
146 { # This resource represents a long-running operation that is the result of a network API call.
147 &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.
148 &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.
149 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
150 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
151 {
152 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
153 },
154 ],
155 &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.
156 },
157 &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.
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
160 &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}`.
161 &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`.
162 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
163 },
164 }</pre>
165 </div>
166
167 <div class="method">
168 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
169 <pre>Deletes a specific `VpcFlowLogsConfig`.
170
171 Args:
172 name: string, Required. The resource name of the VpcFlowLogsConfig, in one of the following formats: - For a project-level resource: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For an organization-level resource: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` (required)
173 x__xgafv: string, V1 error format.
174 Allowed values
175 1 - v1 error format
176 2 - v2 error format
177
178 Returns:
179 An object of the form:
180
181 { # This resource represents a long-running operation that is the result of a network API call.
182 &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.
183 &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.
184 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
185 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
186 {
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
189 ],
190 &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.
191 },
192 &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.
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195 &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}`.
196 &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`.
197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
198 },
199 }</pre>
200 </div>
201
202 <div class="method">
203 <code class="details" id="get">get(name, x__xgafv=None)</code>
204 <pre>Gets the details of a specific `VpcFlowLogsConfig`.
205
206 Args:
207 name: string, Required. The resource name of the VpcFlowLogsConfig, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level resources: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` (required)
208 x__xgafv: string, V1 error format.
209 Allowed values
210 1 - v1 error format
211 2 - v2 error format
212
213 Returns:
214 An object of the form:
215
216 { # A configuration to generate VPC Flow Logs.
217 &quot;aggregationInterval&quot;: &quot;A String&quot;, # Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
218 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the config was created.
219 &quot;crossProjectMetadata&quot;: &quot;A String&quot;, # Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
220 &quot;description&quot;: &quot;A String&quot;, # Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
221 &quot;filterExpr&quot;: &quot;A String&quot;, # Optional. Export filter used to define which VPC Flow Logs should be logged.
222 &quot;flowSampling&quot;: 3.14, # Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
223 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
224 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
225 &quot;a_key&quot;: &quot;A String&quot;,
226 },
227 &quot;metadata&quot;: &quot;A String&quot;, # Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
228 &quot;metadataFields&quot;: [ # Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if &quot;metadata&quot; was set to CUSTOM_METADATA.
229 &quot;A String&quot;,
230 ],
231 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
232 &quot;network&quot;: &quot;A String&quot;, # Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
233 &quot;state&quot;: &quot;A String&quot;, # Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
234 &quot;subnet&quot;: &quot;A String&quot;, # Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
235 &quot;targetResourceState&quot;: &quot;A String&quot;, # Output only. Describes the state of the configured target resource for diagnostic purposes.
236 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the config was updated.
237 &quot;vpnTunnel&quot;: &quot;A String&quot;, # Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
238 }</pre>
239 </div>
240
241 <div class="method">
242 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
243 <pre>Lists all `VpcFlowLogsConfigs` in a given organization.
244
245 Args:
246 parent: string, Required. The parent resource of the VpcFlowLogsConfig, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global` (required)
247 filter: string, Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).
248 orderBy: string, Optional. Field to use to sort the list.
249 pageSize: integer, Optional. Number of `VpcFlowLogsConfigs` to return.
250 pageToken: string, Optional. Page token from an earlier query, as returned in `next_page_token`.
251 x__xgafv: string, V1 error format.
252 Allowed values
253 1 - v1 error format
254 2 - v2 error format
255
256 Returns:
257 An object of the form:
258
259 { # Response for the `ListVpcFlowLogsConfigs` method.
260 &quot;nextPageToken&quot;: &quot;A String&quot;, # Page token to fetch the next set of configurations.
261 &quot;unreachable&quot;: [ # Locations that could not be reached (when querying all locations with `-`).
262 &quot;A String&quot;,
263 ],
264 &quot;vpcFlowLogsConfigs&quot;: [ # List of VPC Flow Log configurations.
265 { # A configuration to generate VPC Flow Logs.
266 &quot;aggregationInterval&quot;: &quot;A String&quot;, # Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
267 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the config was created.
268 &quot;crossProjectMetadata&quot;: &quot;A String&quot;, # Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
269 &quot;description&quot;: &quot;A String&quot;, # Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
270 &quot;filterExpr&quot;: &quot;A String&quot;, # Optional. Export filter used to define which VPC Flow Logs should be logged.
271 &quot;flowSampling&quot;: 3.14, # Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
272 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
273 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
274 &quot;a_key&quot;: &quot;A String&quot;,
275 },
276 &quot;metadata&quot;: &quot;A String&quot;, # Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
277 &quot;metadataFields&quot;: [ # Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if &quot;metadata&quot; was set to CUSTOM_METADATA.
278 &quot;A String&quot;,
279 ],
280 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
281 &quot;network&quot;: &quot;A String&quot;, # Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
282 &quot;state&quot;: &quot;A String&quot;, # Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
283 &quot;subnet&quot;: &quot;A String&quot;, # Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
284 &quot;targetResourceState&quot;: &quot;A String&quot;, # Output only. Describes the state of the configured target resource for diagnostic purposes.
285 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the config was updated.
286 &quot;vpnTunnel&quot;: &quot;A String&quot;, # Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
287 },
288 ],
289 }</pre>
290 </div>
291
292 <div class="method">
293 <code class="details" id="list_next">list_next()</code>
294 <pre>Retrieves the next page of results.
295
296 Args:
297 previous_request: The request for the previous page. (required)
298 previous_response: The response from the request for the previous page. (required)
299
300 Returns:
301 A request object that you can call &#x27;execute()&#x27; on to request the next
302 page. Returns None if there are no more items in the collection.
303 </pre>
304 </div>
305
306 <div class="method">
307 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
308 <pre>Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description
309
310 Args:
311 name: string, Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` (required)
312 body: object, The request body.
313 The object takes the form of:
314
315 { # A configuration to generate VPC Flow Logs.
316 &quot;aggregationInterval&quot;: &quot;A String&quot;, # Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
317 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the config was created.
318 &quot;crossProjectMetadata&quot;: &quot;A String&quot;, # Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
319 &quot;description&quot;: &quot;A String&quot;, # Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
320 &quot;filterExpr&quot;: &quot;A String&quot;, # Optional. Export filter used to define which VPC Flow Logs should be logged.
321 &quot;flowSampling&quot;: 3.14, # Optional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
322 &quot;interconnectAttachment&quot;: &quot;A String&quot;, # Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
323 &quot;labels&quot;: { # Optional. Resource labels to represent user-provided metadata.
324 &quot;a_key&quot;: &quot;A String&quot;,
325 },
326 &quot;metadata&quot;: &quot;A String&quot;, # Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
327 &quot;metadataFields&quot;: [ # Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if &quot;metadata&quot; was set to CUSTOM_METADATA.
328 &quot;A String&quot;,
329 ],
330 &quot;name&quot;: &quot;A String&quot;, # Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
331 &quot;network&quot;: &quot;A String&quot;, # Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
332 &quot;state&quot;: &quot;A String&quot;, # Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
333 &quot;subnet&quot;: &quot;A String&quot;, # Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
334 &quot;targetResourceState&quot;: &quot;A String&quot;, # Output only. Describes the state of the configured target resource for diagnostic purposes.
335 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the config was updated.
336 &quot;vpnTunnel&quot;: &quot;A String&quot;, # Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
337 }
338
339 updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field. For example, to change the state of the configuration to ENABLED, specify `update_mask` = `&quot;state&quot;`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = { name = &quot;projects/my-project/locations/global/vpcFlowLogsConfigs/my-config&quot; state = &quot;ENABLED&quot; }`
340 x__xgafv: string, V1 error format.
341 Allowed values
342 1 - v1 error format
343 2 - v2 error format
344
345 Returns:
346 An object of the form:
347
348 { # This resource represents a long-running operation that is the result of a network API call.
349 &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.
350 &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.
351 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
352 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
353 {
354 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
355 },
356 ],
357 &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.
358 },
359 &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.
360 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
361 },
362 &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}`.
363 &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`.
364 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
365 },
366 }</pre>
367 </div>
368
369 </body></html>