Debian Codegraph @

docs/dyn/networkconnectivity_v1.projects.locations.serviceConnectionMaps.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="networkconnectivity_v1.html">Network Connectivity API</a> . <a href="networkconnectivity_v1.projects.html">projects</a> . <a href="networkconnectivity_v1.projects.locations.html">locations</a> . <a href="networkconnectivity_v1.projects.locations.serviceConnectionMaps.html">serviceConnectionMaps</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, requestId=None, serviceConnectionMapId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new ServiceConnectionMap in a given project and location.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, etag=None, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single ServiceConnectionMap.</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 ServiceConnectionMap.</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 ServiceConnectionMaps in a given project and location.</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, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the parameters of a single ServiceConnectionMap.</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, requestId=None, serviceConnectionMapId=None, x__xgafv=None)</code>
106 <pre>Creates a new ServiceConnectionMap in a given project and location.
107
108 Args:
109 parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionMap. ex. projects/123/locations/us-east1 (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # The ServiceConnectionMap resource.
114 &quot;consumerPscConfigs&quot;: [ # The PSC configurations on consumer side.
115 { # Allow the producer to specify which consumers can connect to it.
116 &quot;consumerInstanceProject&quot;: &quot;A String&quot;, # Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who&#x27;s created a producer instance, this is the project of the producer instance. Format: &#x27;projects/&#x27; Eg. &#x27;projects/consumer-project&#x27; or &#x27;projects/1234&#x27;
117 &quot;disableGlobalAccess&quot;: True or False, # This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
118 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
119 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
120 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
121 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
122 &quot;a_key&quot;: &quot;A String&quot;,
123 },
124 &quot;project&quot;: &quot;A String&quot;, # The consumer project where PSC connections are allowed to be created in.
125 &quot;serviceAttachmentIpAddressMap&quot;: { # Optional. A map to store mapping between customer vip and target service attachment. This field can be used to specify a static IP address for a PSC connection.
126 &quot;a_key&quot;: &quot;A String&quot;,
127 },
128 &quot;state&quot;: &quot;A String&quot;, # Output only. Overall state of PSC Connections management for this consumer psc config.
129 },
130 ],
131 &quot;consumerPscConnections&quot;: [ # Output only. PSC connection details on consumer side.
132 { # PSC connection details on consumer side.
133 &quot;dnsAutomationStatus&quot;: { # The status of DNS automation for a PSC connection. # Output only. The status of DNS automation for this PSC connection.
134 &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). # Output only. The error details if the state is CREATE_FAILED or DELETE_FAILED.
135 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
136 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
137 {
138 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
139 },
140 ],
141 &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.
142 },
143 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. The fully qualified domain name of the DNS record.
144 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of DNS automation.
145 },
146 &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 most recent error during operating this connection.
147 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
148 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
149 {
150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
151 },
152 ],
153 &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.
154 },
155 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details. Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it is not enabled: { &quot;reason&quot;: &quot;API_DISABLED&quot; &quot;domain&quot;: &quot;googleapis.com&quot; &quot;metadata&quot;: { &quot;resource&quot;: &quot;projects/123&quot;, &quot;service&quot;: &quot;pubsub.googleapis.com&quot; } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { &quot;reason&quot;: &quot;STOCKOUT&quot; &quot;domain&quot;: &quot;spanner.googleapis.com&quot;, &quot;metadata&quot;: { &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot; } } # Output only. The error info for the latest error during operating this connection.
156 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is &quot;googleapis.com&quot;.
157 &quot;metadata&quot;: { # Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as, `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of instances that can be created in a single (batch) request.
158 &quot;a_key&quot;: &quot;A String&quot;,
159 },
160 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
161 },
162 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
163 &quot;forwardingRule&quot;: &quot;A String&quot;, # The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.
164 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
165 &quot;ip&quot;: &quot;A String&quot;, # The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.
166 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
167 &quot;network&quot;: &quot;A String&quot;, # The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).
168 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
169 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
170 &quot;a_key&quot;: &quot;A String&quot;,
171 },
172 &quot;project&quot;: &quot;A String&quot;, # The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.
173 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.
174 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.
175 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The URI of a service attachment which is the target of the PSC connection.
176 &quot;state&quot;: &quot;A String&quot;, # The state of the PSC connection.
177 },
178 ],
179 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was created.
180 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
181 &quot;etag&quot;: &quot;A String&quot;, # Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
182 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The infrastructure used for connections between consumers/producers.
183 &quot;labels&quot;: { # User-defined labels.
184 &quot;a_key&quot;: &quot;A String&quot;,
185 },
186 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names
187 &quot;producerPscConfigs&quot;: [ # The PSC configurations on producer side.
188 { # The PSC configurations on producer side.
189 &quot;automatedDnsCreationSpec&quot;: { # The specification for automatically creating a DNS record. # Optional. The specification for automatically creating a DNS record for this PSC connection.
190 &quot;dnsSuffix&quot;: &quot;A String&quot;, # Required. The DNS suffix to use for the DNS record. Must end with a dot. This should be a valid DNS domain name as per RFC 1035. Each label (between dots) can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-service.example.com.&quot;, &quot;internal.&quot;
191 &quot;hostname&quot;: &quot;A String&quot;, # Required. The hostname (the first label of the FQDN) to use for the DNS record. This should be a valid DNS label as per RFC 1035. Generally, this means the hostname can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-instance&quot;, &quot;db-1&quot;
192 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The Time To Live for the DNS record, in seconds. If not provided, a default of 30 seconds will be used.
193 },
194 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The resource path of a service attachment. Example: projects/{projectNumOrId}/regions/{region}/serviceAttachments/{resourceId}.
195 },
196 ],
197 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnectivity.serviceClasses.use IAM permission for the service class.
198 &quot;serviceClassUri&quot;: &quot;A String&quot;, # Output only. The service class uri this ServiceConnectionMap is for.
199 &quot;token&quot;: &quot;A String&quot;, # The token provided by the consumer. This token authenticates that the consumer can create a connection within the specified project and network.
200 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was updated.
201 }
202
203 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
204 serviceConnectionMapId: string, Optional. Resource ID (i.e. &#x27;foo&#x27; in &#x27;[...]/projects/p/locations/l/serviceConnectionMaps/foo&#x27;) See https://google.aip.dev/122#resource-id-segments Unique per location. If one is not provided, one will be generated.
205 x__xgafv: string, V1 error format.
206 Allowed values
207 1 - v1 error format
208 2 - v2 error format
209
210 Returns:
211 An object of the form:
212
213 { # This resource represents a long-running operation that is the result of a network API call.
214 &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.
215 &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.
216 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
217 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
218 {
219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
220 },
221 ],
222 &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.
223 },
224 &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.
225 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
226 },
227 &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}`.
228 &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`.
229 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
230 },
231 }</pre>
232 </div>
233
234 <div class="method">
235 <code class="details" id="delete">delete(name, etag=None, requestId=None, x__xgafv=None)</code>
236 <pre>Deletes a single ServiceConnectionMap.
237
238 Args:
239 name: string, Required. The name of the ServiceConnectionMap to delete. (required)
240 etag: string, Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
241 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
242 x__xgafv: string, V1 error format.
243 Allowed values
244 1 - v1 error format
245 2 - v2 error format
246
247 Returns:
248 An object of the form:
249
250 { # This resource represents a long-running operation that is the result of a network API call.
251 &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.
252 &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.
253 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
254 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
255 {
256 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
257 },
258 ],
259 &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.
260 },
261 &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.
262 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
263 },
264 &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}`.
265 &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`.
266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
267 },
268 }</pre>
269 </div>
270
271 <div class="method">
272 <code class="details" id="get">get(name, x__xgafv=None)</code>
273 <pre>Gets details of a single ServiceConnectionMap.
274
275 Args:
276 name: string, Required. Name of the ServiceConnectionMap to get. (required)
277 x__xgafv: string, V1 error format.
278 Allowed values
279 1 - v1 error format
280 2 - v2 error format
281
282 Returns:
283 An object of the form:
284
285 { # The ServiceConnectionMap resource.
286 &quot;consumerPscConfigs&quot;: [ # The PSC configurations on consumer side.
287 { # Allow the producer to specify which consumers can connect to it.
288 &quot;consumerInstanceProject&quot;: &quot;A String&quot;, # Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who&#x27;s created a producer instance, this is the project of the producer instance. Format: &#x27;projects/&#x27; Eg. &#x27;projects/consumer-project&#x27; or &#x27;projects/1234&#x27;
289 &quot;disableGlobalAccess&quot;: True or False, # This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
290 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
291 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
292 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
293 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
294 &quot;a_key&quot;: &quot;A String&quot;,
295 },
296 &quot;project&quot;: &quot;A String&quot;, # The consumer project where PSC connections are allowed to be created in.
297 &quot;serviceAttachmentIpAddressMap&quot;: { # Optional. A map to store mapping between customer vip and target service attachment. This field can be used to specify a static IP address for a PSC connection.
298 &quot;a_key&quot;: &quot;A String&quot;,
299 },
300 &quot;state&quot;: &quot;A String&quot;, # Output only. Overall state of PSC Connections management for this consumer psc config.
301 },
302 ],
303 &quot;consumerPscConnections&quot;: [ # Output only. PSC connection details on consumer side.
304 { # PSC connection details on consumer side.
305 &quot;dnsAutomationStatus&quot;: { # The status of DNS automation for a PSC connection. # Output only. The status of DNS automation for this PSC connection.
306 &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). # Output only. The error details if the state is CREATE_FAILED or DELETE_FAILED.
307 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
308 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
309 {
310 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
311 },
312 ],
313 &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.
314 },
315 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. The fully qualified domain name of the DNS record.
316 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of DNS automation.
317 },
318 &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 most recent error during operating this connection.
319 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
320 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
321 {
322 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
323 },
324 ],
325 &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.
326 },
327 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details. Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it is not enabled: { &quot;reason&quot;: &quot;API_DISABLED&quot; &quot;domain&quot;: &quot;googleapis.com&quot; &quot;metadata&quot;: { &quot;resource&quot;: &quot;projects/123&quot;, &quot;service&quot;: &quot;pubsub.googleapis.com&quot; } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { &quot;reason&quot;: &quot;STOCKOUT&quot; &quot;domain&quot;: &quot;spanner.googleapis.com&quot;, &quot;metadata&quot;: { &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot; } } # Output only. The error info for the latest error during operating this connection.
328 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is &quot;googleapis.com&quot;.
329 &quot;metadata&quot;: { # Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as, `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of instances that can be created in a single (batch) request.
330 &quot;a_key&quot;: &quot;A String&quot;,
331 },
332 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
333 },
334 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
335 &quot;forwardingRule&quot;: &quot;A String&quot;, # The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.
336 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
337 &quot;ip&quot;: &quot;A String&quot;, # The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.
338 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
339 &quot;network&quot;: &quot;A String&quot;, # The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).
340 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
341 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
342 &quot;a_key&quot;: &quot;A String&quot;,
343 },
344 &quot;project&quot;: &quot;A String&quot;, # The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.
345 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.
346 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.
347 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The URI of a service attachment which is the target of the PSC connection.
348 &quot;state&quot;: &quot;A String&quot;, # The state of the PSC connection.
349 },
350 ],
351 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was created.
352 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
353 &quot;etag&quot;: &quot;A String&quot;, # Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
354 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The infrastructure used for connections between consumers/producers.
355 &quot;labels&quot;: { # User-defined labels.
356 &quot;a_key&quot;: &quot;A String&quot;,
357 },
358 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names
359 &quot;producerPscConfigs&quot;: [ # The PSC configurations on producer side.
360 { # The PSC configurations on producer side.
361 &quot;automatedDnsCreationSpec&quot;: { # The specification for automatically creating a DNS record. # Optional. The specification for automatically creating a DNS record for this PSC connection.
362 &quot;dnsSuffix&quot;: &quot;A String&quot;, # Required. The DNS suffix to use for the DNS record. Must end with a dot. This should be a valid DNS domain name as per RFC 1035. Each label (between dots) can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-service.example.com.&quot;, &quot;internal.&quot;
363 &quot;hostname&quot;: &quot;A String&quot;, # Required. The hostname (the first label of the FQDN) to use for the DNS record. This should be a valid DNS label as per RFC 1035. Generally, this means the hostname can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-instance&quot;, &quot;db-1&quot;
364 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The Time To Live for the DNS record, in seconds. If not provided, a default of 30 seconds will be used.
365 },
366 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The resource path of a service attachment. Example: projects/{projectNumOrId}/regions/{region}/serviceAttachments/{resourceId}.
367 },
368 ],
369 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnectivity.serviceClasses.use IAM permission for the service class.
370 &quot;serviceClassUri&quot;: &quot;A String&quot;, # Output only. The service class uri this ServiceConnectionMap is for.
371 &quot;token&quot;: &quot;A String&quot;, # The token provided by the consumer. This token authenticates that the consumer can create a connection within the specified project and network.
372 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was updated.
373 }</pre>
374 </div>
375
376 <div class="method">
377 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
378 <pre>Lists ServiceConnectionMaps in a given project and location.
379
380 Args:
381 parent: string, Required. The parent resource&#x27;s name. ex. projects/123/locations/us-east1 (required)
382 filter: string, A filter expression that filters the results listed in the response.
383 orderBy: string, Sort the results by a certain order.
384 pageSize: integer, The maximum number of results per page that should be returned.
385 pageToken: string, The page token.
386 x__xgafv: string, V1 error format.
387 Allowed values
388 1 - v1 error format
389 2 - v2 error format
390
391 Returns:
392 An object of the form:
393
394 { # Response for ListServiceConnectionMaps.
395 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.
396 &quot;serviceConnectionMaps&quot;: [ # ServiceConnectionMaps to be returned.
397 { # The ServiceConnectionMap resource.
398 &quot;consumerPscConfigs&quot;: [ # The PSC configurations on consumer side.
399 { # Allow the producer to specify which consumers can connect to it.
400 &quot;consumerInstanceProject&quot;: &quot;A String&quot;, # Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who&#x27;s created a producer instance, this is the project of the producer instance. Format: &#x27;projects/&#x27; Eg. &#x27;projects/consumer-project&#x27; or &#x27;projects/1234&#x27;
401 &quot;disableGlobalAccess&quot;: True or False, # This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
402 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
403 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
404 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
405 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
406 &quot;a_key&quot;: &quot;A String&quot;,
407 },
408 &quot;project&quot;: &quot;A String&quot;, # The consumer project where PSC connections are allowed to be created in.
409 &quot;serviceAttachmentIpAddressMap&quot;: { # Optional. A map to store mapping between customer vip and target service attachment. This field can be used to specify a static IP address for a PSC connection.
410 &quot;a_key&quot;: &quot;A String&quot;,
411 },
412 &quot;state&quot;: &quot;A String&quot;, # Output only. Overall state of PSC Connections management for this consumer psc config.
413 },
414 ],
415 &quot;consumerPscConnections&quot;: [ # Output only. PSC connection details on consumer side.
416 { # PSC connection details on consumer side.
417 &quot;dnsAutomationStatus&quot;: { # The status of DNS automation for a PSC connection. # Output only. The status of DNS automation for this PSC connection.
418 &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). # Output only. The error details if the state is CREATE_FAILED or DELETE_FAILED.
419 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
420 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
421 {
422 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
423 },
424 ],
425 &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.
426 },
427 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. The fully qualified domain name of the DNS record.
428 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of DNS automation.
429 },
430 &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 most recent error during operating this connection.
431 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
432 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
433 {
434 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
435 },
436 ],
437 &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.
438 },
439 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details. Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it is not enabled: { &quot;reason&quot;: &quot;API_DISABLED&quot; &quot;domain&quot;: &quot;googleapis.com&quot; &quot;metadata&quot;: { &quot;resource&quot;: &quot;projects/123&quot;, &quot;service&quot;: &quot;pubsub.googleapis.com&quot; } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { &quot;reason&quot;: &quot;STOCKOUT&quot; &quot;domain&quot;: &quot;spanner.googleapis.com&quot;, &quot;metadata&quot;: { &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot; } } # Output only. The error info for the latest error during operating this connection.
440 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is &quot;googleapis.com&quot;.
441 &quot;metadata&quot;: { # Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as, `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of instances that can be created in a single (batch) request.
442 &quot;a_key&quot;: &quot;A String&quot;,
443 },
444 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
445 },
446 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
447 &quot;forwardingRule&quot;: &quot;A String&quot;, # The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.
448 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
449 &quot;ip&quot;: &quot;A String&quot;, # The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.
450 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
451 &quot;network&quot;: &quot;A String&quot;, # The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).
452 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
453 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
454 &quot;a_key&quot;: &quot;A String&quot;,
455 },
456 &quot;project&quot;: &quot;A String&quot;, # The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.
457 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.
458 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.
459 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The URI of a service attachment which is the target of the PSC connection.
460 &quot;state&quot;: &quot;A String&quot;, # The state of the PSC connection.
461 },
462 ],
463 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was created.
464 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
465 &quot;etag&quot;: &quot;A String&quot;, # Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
466 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The infrastructure used for connections between consumers/producers.
467 &quot;labels&quot;: { # User-defined labels.
468 &quot;a_key&quot;: &quot;A String&quot;,
469 },
470 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names
471 &quot;producerPscConfigs&quot;: [ # The PSC configurations on producer side.
472 { # The PSC configurations on producer side.
473 &quot;automatedDnsCreationSpec&quot;: { # The specification for automatically creating a DNS record. # Optional. The specification for automatically creating a DNS record for this PSC connection.
474 &quot;dnsSuffix&quot;: &quot;A String&quot;, # Required. The DNS suffix to use for the DNS record. Must end with a dot. This should be a valid DNS domain name as per RFC 1035. Each label (between dots) can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-service.example.com.&quot;, &quot;internal.&quot;
475 &quot;hostname&quot;: &quot;A String&quot;, # Required. The hostname (the first label of the FQDN) to use for the DNS record. This should be a valid DNS label as per RFC 1035. Generally, this means the hostname can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-instance&quot;, &quot;db-1&quot;
476 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The Time To Live for the DNS record, in seconds. If not provided, a default of 30 seconds will be used.
477 },
478 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The resource path of a service attachment. Example: projects/{projectNumOrId}/regions/{region}/serviceAttachments/{resourceId}.
479 },
480 ],
481 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnectivity.serviceClasses.use IAM permission for the service class.
482 &quot;serviceClassUri&quot;: &quot;A String&quot;, # Output only. The service class uri this ServiceConnectionMap is for.
483 &quot;token&quot;: &quot;A String&quot;, # The token provided by the consumer. This token authenticates that the consumer can create a connection within the specified project and network.
484 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was updated.
485 },
486 ],
487 &quot;unreachable&quot;: [ # Locations that could not be reached.
488 &quot;A String&quot;,
489 ],
490 }</pre>
491 </div>
492
493 <div class="method">
494 <code class="details" id="list_next">list_next()</code>
495 <pre>Retrieves the next page of results.
496
497 Args:
498 previous_request: The request for the previous page. (required)
499 previous_response: The response from the request for the previous page. (required)
500
501 Returns:
502 A request object that you can call &#x27;execute()&#x27; on to request the next
503 page. Returns None if there are no more items in the collection.
504 </pre>
505 </div>
506
507 <div class="method">
508 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
509 <pre>Updates the parameters of a single ServiceConnectionMap.
510
511 Args:
512 name: string, Immutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names (required)
513 body: object, The request body.
514 The object takes the form of:
515
516 { # The ServiceConnectionMap resource.
517 &quot;consumerPscConfigs&quot;: [ # The PSC configurations on consumer side.
518 { # Allow the producer to specify which consumers can connect to it.
519 &quot;consumerInstanceProject&quot;: &quot;A String&quot;, # Required. The project ID or project number of the consumer project. This project is the one that the consumer uses to interact with the producer instance. From the perspective of a consumer who&#x27;s created a producer instance, this is the project of the producer instance. Format: &#x27;projects/&#x27; Eg. &#x27;projects/consumer-project&#x27; or &#x27;projects/1234&#x27;
520 &quot;disableGlobalAccess&quot;: True or False, # This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region.
521 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
522 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId}/global/networks/{networkId}.
523 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
524 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
525 &quot;a_key&quot;: &quot;A String&quot;,
526 },
527 &quot;project&quot;: &quot;A String&quot;, # The consumer project where PSC connections are allowed to be created in.
528 &quot;serviceAttachmentIpAddressMap&quot;: { # Optional. A map to store mapping between customer vip and target service attachment. This field can be used to specify a static IP address for a PSC connection.
529 &quot;a_key&quot;: &quot;A String&quot;,
530 },
531 &quot;state&quot;: &quot;A String&quot;, # Output only. Overall state of PSC Connections management for this consumer psc config.
532 },
533 ],
534 &quot;consumerPscConnections&quot;: [ # Output only. PSC connection details on consumer side.
535 { # PSC connection details on consumer side.
536 &quot;dnsAutomationStatus&quot;: { # The status of DNS automation for a PSC connection. # Output only. The status of DNS automation for this PSC connection.
537 &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). # Output only. The error details if the state is CREATE_FAILED or DELETE_FAILED.
538 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
539 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
540 {
541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
542 },
543 ],
544 &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.
545 },
546 &quot;fqdn&quot;: &quot;A String&quot;, # Output only. The fully qualified domain name of the DNS record.
547 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of DNS automation.
548 },
549 &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 most recent error during operating this connection.
550 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
551 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
552 {
553 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
554 },
555 ],
556 &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.
557 },
558 &quot;errorInfo&quot;: { # Describes the cause of the error with structured details. Example of an error when contacting the &quot;pubsub.googleapis.com&quot; API when it is not enabled: { &quot;reason&quot;: &quot;API_DISABLED&quot; &quot;domain&quot;: &quot;googleapis.com&quot; &quot;metadata&quot;: { &quot;resource&quot;: &quot;projects/123&quot;, &quot;service&quot;: &quot;pubsub.googleapis.com&quot; } } This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { &quot;reason&quot;: &quot;STOCKOUT&quot; &quot;domain&quot;: &quot;spanner.googleapis.com&quot;, &quot;metadata&quot;: { &quot;availableRegions&quot;: &quot;us-central1,us-east2&quot; } } # Output only. The error info for the latest error during operating this connection.
559 &quot;domain&quot;: &quot;A String&quot;, # The logical grouping to which the &quot;reason&quot; belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: &quot;pubsub.googleapis.com&quot;. If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is &quot;googleapis.com&quot;.
560 &quot;metadata&quot;: { # Additional structured details about this error. Keys must match a regular expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than `{&quot;instanceLimit&quot;: &quot;100/request&quot;}`, should be returned as, `{&quot;instanceLimitPerRequest&quot;: &quot;100&quot;}`, if the client exceeds the number of instances that can be created in a single (batch) request.
561 &quot;a_key&quot;: &quot;A String&quot;,
562 },
563 &quot;reason&quot;: &quot;A String&quot;, # The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE.
564 },
565 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
566 &quot;forwardingRule&quot;: &quot;A String&quot;, # The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId}/regions/us-east1/networks/{resourceId}.
567 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
568 &quot;ip&quot;: &quot;A String&quot;, # The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map.
569 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
570 &quot;network&quot;: &quot;A String&quot;, # The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC).
571 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
572 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
573 &quot;a_key&quot;: &quot;A String&quot;,
574 },
575 &quot;project&quot;: &quot;A String&quot;, # The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map.
576 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map.
577 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the selected subnetwork selected to allocate IP address for this connection.
578 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The URI of a service attachment which is the target of the PSC connection.
579 &quot;state&quot;: &quot;A String&quot;, # The state of the PSC connection.
580 },
581 ],
582 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was created.
583 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
584 &quot;etag&quot;: &quot;A String&quot;, # Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
585 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The infrastructure used for connections between consumers/producers.
586 &quot;labels&quot;: { # User-defined labels.
587 &quot;a_key&quot;: &quot;A String&quot;,
588 },
589 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionMap. Format: projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map} See: https://google.aip.dev/122#fields-representing-resource-names
590 &quot;producerPscConfigs&quot;: [ # The PSC configurations on producer side.
591 { # The PSC configurations on producer side.
592 &quot;automatedDnsCreationSpec&quot;: { # The specification for automatically creating a DNS record. # Optional. The specification for automatically creating a DNS record for this PSC connection.
593 &quot;dnsSuffix&quot;: &quot;A String&quot;, # Required. The DNS suffix to use for the DNS record. Must end with a dot. This should be a valid DNS domain name as per RFC 1035. Each label (between dots) can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-service.example.com.&quot;, &quot;internal.&quot;
594 &quot;hostname&quot;: &quot;A String&quot;, # Required. The hostname (the first label of the FQDN) to use for the DNS record. This should be a valid DNS label as per RFC 1035. Generally, this means the hostname can contain letters, digits, and hyphens, and must not start or end with a hyphen. Example: &quot;my-instance&quot;, &quot;db-1&quot;
595 &quot;ttl&quot;: &quot;A String&quot;, # Optional. The Time To Live for the DNS record, in seconds. If not provided, a default of 30 seconds will be used.
596 },
597 &quot;serviceAttachmentUri&quot;: &quot;A String&quot;, # The resource path of a service attachment. Example: projects/{projectNumOrId}/regions/{region}/serviceAttachments/{resourceId}.
598 },
599 ],
600 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier this ServiceConnectionMap is for. The user of ServiceConnectionMap create API needs to have networkconnectivity.serviceClasses.use IAM permission for the service class.
601 &quot;serviceClassUri&quot;: &quot;A String&quot;, # Output only. The service class uri this ServiceConnectionMap is for.
602 &quot;token&quot;: &quot;A String&quot;, # The token provided by the consumer. This token authenticates that the consumer can create a connection within the specified project and network.
603 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionMap was updated.
604 }
605
606 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
607 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionMap resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
608 x__xgafv: string, V1 error format.
609 Allowed values
610 1 - v1 error format
611 2 - v2 error format
612
613 Returns:
614 An object of the form:
615
616 { # This resource represents a long-running operation that is the result of a network API call.
617 &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.
618 &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.
619 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
620 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
621 {
622 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
623 },
624 ],
625 &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.
626 },
627 &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.
628 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
629 },
630 &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}`.
631 &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`.
632 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
633 },
634 }</pre>
635 </div>
636
637 </body></html>