Debian Codegraph @

docs/dyn/networkconnectivity_v1.projects.locations.serviceConnectionPolicies.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.serviceConnectionPolicies.html">serviceConnectionPolicies</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, autoSubnetworkConfig_allocRangeSpace=None, autoSubnetworkConfig_ipStack=None, autoSubnetworkConfig_prefixLength=None, body=None, requestId=None, serviceConnectionPolicyId=None, subnetworkMode=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new ServiceConnectionPolicy 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 ServiceConnectionPolicy.</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 ServiceConnectionPolicy.</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 ServiceConnectionPolicies 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 ServiceConnectionPolicy.</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, autoSubnetworkConfig_allocRangeSpace=None, autoSubnetworkConfig_ipStack=None, autoSubnetworkConfig_prefixLength=None, body=None, requestId=None, serviceConnectionPolicyId=None, subnetworkMode=None, x__xgafv=None)</code>
106 <pre>Creates a new ServiceConnectionPolicy in a given project and location.
107
108 Args:
109 parent: string, Required. The parent resource&#x27;s name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1 (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # The ServiceConnectionPolicy resource.
114 &quot;autoCreatedSubnetInfo&quot;: { # Information for the automatically created subnetwork and its associated IR. # Output only. Information for the automatically created subnetwork and its associated IR.
115 &quot;delinked&quot;: True or False, # Output only. Indicates whether the subnetwork is delinked from the Service Connection Policy. Only set if the subnetwork mode is AUTO_CREATED during creation.
116 &quot;internalRange&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range. Only set if the subnetwork mode is AUTO_CREATED during creation.
117 &quot;internalRangeRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
118 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork. Only set if the subnetwork mode is AUTO_CREATED during creation.
119 &quot;subnetworkRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
120 },
121 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was created.
122 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
123 &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.
124 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The type of underlying resources used to create the connection.
125 &quot;labels&quot;: { # User-defined labels.
126 &quot;a_key&quot;: &quot;A String&quot;,
127 },
128 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
129 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network. Example: - projects/{projectNumOrId}/global/networks/{resourceId}.
130 &quot;pscConfig&quot;: { # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC. # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
131 &quot;allowedGoogleProducersResourceHierarchyLevel&quot;: [ # Optional. List of Projects, Folders, or Organizations from where the Producer instance can be within. For example, a network administrator can provide both &#x27;organizations/foo&#x27; and &#x27;projects/bar&#x27; as allowed_google_producers_resource_hierarchy_levels. This allowlists this network to connect with any Producer instance within the &#x27;foo&#x27; organization or the &#x27;bar&#x27; project. By default, allowed_google_producers_resource_hierarchy_level is empty. The format for each allowed_google_producers_resource_hierarchy_level is / where is one of &#x27;projects&#x27;, &#x27;folders&#x27;, or &#x27;organizations&#x27; and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: &#x27;projects/&#x27; or &#x27;folders/&#x27; or &#x27;organizations/&#x27; Eg. [projects/my-project-id, projects/567, folders/891, organizations/123]
132 &quot;A String&quot;,
133 ],
134 &quot;limit&quot;: &quot;A String&quot;, # Optional. Max number of PSC connections for this policy.
135 &quot;producerInstanceLocation&quot;: &quot;A String&quot;, # Optional. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within.
136 &quot;subnetworks&quot;: [ # The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.
137 &quot;A String&quot;,
138 ],
139 },
140 &quot;pscConnections&quot;: [ # Output only. [Output only] Information about each Private Service Connect connection.
141 { # Information about a specific Private Service Connect connection.
142 &quot;consumerAddress&quot;: &quot;A String&quot;, # The resource reference of the consumer address.
143 &quot;consumerForwardingRule&quot;: &quot;A String&quot;, # The resource reference of the PSC Forwarding Rule within the consumer VPC.
144 &quot;consumerTargetProject&quot;: &quot;A String&quot;, # The project where the PSC connection is created.
145 &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. Deprecated, please use error_info instead.
146 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
147 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
148 {
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 ],
152 &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.
153 },
154 &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.
155 &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;.
156 &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.
157 &quot;a_key&quot;: &quot;A String&quot;,
158 },
159 &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.
160 },
161 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
162 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
163 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
164 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
165 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
166 &quot;a_key&quot;: &quot;A String&quot;,
167 },
168 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule.
169 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the subnetwork selected to allocate IP address for this connection.
170 &quot;serviceClass&quot;: &quot;A String&quot;, # Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
171 &quot;state&quot;: &quot;A String&quot;, # State of the PSC Connection
172 },
173 ],
174 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
175 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was updated.
176 }
177
178 autoSubnetworkConfig_allocRangeSpace: string, Optional. The space where we search for a free range to create a subnetwork. It can be narrow down or pick a different space. This is in standard CIDR format. If not specified, “10.0.0.0/8” is used. Only eligible for IPV4_ONLY and IPV4_IPV6 subnetwork. (repeated)
179 autoSubnetworkConfig_ipStack: string, Optional. The requested IP stack for the subnetwork. If not specified, IPv4 is used.
180 Allowed values
181 SUBNET_IP_STACK_UNSPECIFIED - Default value. Will create an IPV4_ONLY subnetwork by default.
182 IPV4_ONLY - Will create an IPV4_ONLY subnetwork.
183 IPV6_ONLY - Will create an IPV6_ONLY subnetwork.
184 IPV4_IPV6 - Will use IPv4 and IPv6 (dual stack).
185 autoSubnetworkConfig_prefixLength: integer, Optional. The desired prefix length for the subnet&#x27;s IP address range. E.g., 24 for a /24. The actual range is allocated from available space. If not specified, 24 is used. Only eligible for IPV4_ONLY and IPV4_IPV6 subnetwork.
186 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).
187 serviceConnectionPolicyId: string, Optional. Resource ID (i.e. &#x27;foo&#x27; in &#x27;[...]/projects/p/locations/l/serviceConnectionPolicies/foo&#x27;) See https://google.aip.dev/122#resource-id-segments Unique per location.
188 subnetworkMode: string, Optional. If this field is not set, USER_PROVIDED is the inferred value to use.
189 Allowed values
190 SUBNETWORK_MODE_UNSPECIFIED - The default value if the enum is unset. Note user is not allowed to set the subnetwork mode to this value.
191 USER_PROVIDED - Subnetworks are provided from the user input.
192 AUTO_CREATED - Subnetwork list is empty from the user input. A subnetwork will be created automatically.
193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198 Returns:
199 An object of the form:
200
201 { # This resource represents a long-running operation that is the result of a network API call.
202 &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.
203 &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.
204 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
205 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
206 {
207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
208 },
209 ],
210 &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.
211 },
212 &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.
213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
214 },
215 &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}`.
216 &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`.
217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
218 },
219 }</pre>
220 </div>
221
222 <div class="method">
223 <code class="details" id="delete">delete(name, etag=None, requestId=None, x__xgafv=None)</code>
224 <pre>Deletes a single ServiceConnectionPolicy.
225
226 Args:
227 name: string, Required. The name of the ServiceConnectionPolicy to delete. (required)
228 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.
229 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).
230 x__xgafv: string, V1 error format.
231 Allowed values
232 1 - v1 error format
233 2 - v2 error format
234
235 Returns:
236 An object of the form:
237
238 { # This resource represents a long-running operation that is the result of a network API call.
239 &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.
240 &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.
241 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
242 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
243 {
244 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
245 },
246 ],
247 &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.
248 },
249 &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.
250 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
251 },
252 &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}`.
253 &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`.
254 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
255 },
256 }</pre>
257 </div>
258
259 <div class="method">
260 <code class="details" id="get">get(name, x__xgafv=None)</code>
261 <pre>Gets details of a single ServiceConnectionPolicy.
262
263 Args:
264 name: string, Required. Name of the ServiceConnectionPolicy to get. (required)
265 x__xgafv: string, V1 error format.
266 Allowed values
267 1 - v1 error format
268 2 - v2 error format
269
270 Returns:
271 An object of the form:
272
273 { # The ServiceConnectionPolicy resource.
274 &quot;autoCreatedSubnetInfo&quot;: { # Information for the automatically created subnetwork and its associated IR. # Output only. Information for the automatically created subnetwork and its associated IR.
275 &quot;delinked&quot;: True or False, # Output only. Indicates whether the subnetwork is delinked from the Service Connection Policy. Only set if the subnetwork mode is AUTO_CREATED during creation.
276 &quot;internalRange&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range. Only set if the subnetwork mode is AUTO_CREATED during creation.
277 &quot;internalRangeRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
278 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork. Only set if the subnetwork mode is AUTO_CREATED during creation.
279 &quot;subnetworkRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
280 },
281 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was created.
282 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
283 &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.
284 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The type of underlying resources used to create the connection.
285 &quot;labels&quot;: { # User-defined labels.
286 &quot;a_key&quot;: &quot;A String&quot;,
287 },
288 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
289 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network. Example: - projects/{projectNumOrId}/global/networks/{resourceId}.
290 &quot;pscConfig&quot;: { # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC. # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
291 &quot;allowedGoogleProducersResourceHierarchyLevel&quot;: [ # Optional. List of Projects, Folders, or Organizations from where the Producer instance can be within. For example, a network administrator can provide both &#x27;organizations/foo&#x27; and &#x27;projects/bar&#x27; as allowed_google_producers_resource_hierarchy_levels. This allowlists this network to connect with any Producer instance within the &#x27;foo&#x27; organization or the &#x27;bar&#x27; project. By default, allowed_google_producers_resource_hierarchy_level is empty. The format for each allowed_google_producers_resource_hierarchy_level is / where is one of &#x27;projects&#x27;, &#x27;folders&#x27;, or &#x27;organizations&#x27; and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: &#x27;projects/&#x27; or &#x27;folders/&#x27; or &#x27;organizations/&#x27; Eg. [projects/my-project-id, projects/567, folders/891, organizations/123]
292 &quot;A String&quot;,
293 ],
294 &quot;limit&quot;: &quot;A String&quot;, # Optional. Max number of PSC connections for this policy.
295 &quot;producerInstanceLocation&quot;: &quot;A String&quot;, # Optional. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within.
296 &quot;subnetworks&quot;: [ # The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.
297 &quot;A String&quot;,
298 ],
299 },
300 &quot;pscConnections&quot;: [ # Output only. [Output only] Information about each Private Service Connect connection.
301 { # Information about a specific Private Service Connect connection.
302 &quot;consumerAddress&quot;: &quot;A String&quot;, # The resource reference of the consumer address.
303 &quot;consumerForwardingRule&quot;: &quot;A String&quot;, # The resource reference of the PSC Forwarding Rule within the consumer VPC.
304 &quot;consumerTargetProject&quot;: &quot;A String&quot;, # The project where the PSC connection is created.
305 &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. Deprecated, please use error_info instead.
306 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
307 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
308 {
309 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
310 },
311 ],
312 &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.
313 },
314 &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.
315 &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;.
316 &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.
317 &quot;a_key&quot;: &quot;A String&quot;,
318 },
319 &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.
320 },
321 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
322 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
323 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
324 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
325 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
326 &quot;a_key&quot;: &quot;A String&quot;,
327 },
328 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule.
329 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the subnetwork selected to allocate IP address for this connection.
330 &quot;serviceClass&quot;: &quot;A String&quot;, # Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
331 &quot;state&quot;: &quot;A String&quot;, # State of the PSC Connection
332 },
333 ],
334 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
335 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was updated.
336 }</pre>
337 </div>
338
339 <div class="method">
340 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
341 <pre>Lists ServiceConnectionPolicies in a given project and location.
342
343 Args:
344 parent: string, Required. The parent resource&#x27;s name. ex. projects/123/locations/us-east1 (required)
345 filter: string, A filter expression that filters the results listed in the response.
346 orderBy: string, Sort the results by a certain order.
347 pageSize: integer, The maximum number of results per page that should be returned.
348 pageToken: string, The page token.
349 x__xgafv: string, V1 error format.
350 Allowed values
351 1 - v1 error format
352 2 - v2 error format
353
354 Returns:
355 An object of the form:
356
357 { # Response for ListServiceConnectionPolicies.
358 &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.
359 &quot;serviceConnectionPolicies&quot;: [ # ServiceConnectionPolicies to be returned.
360 { # The ServiceConnectionPolicy resource.
361 &quot;autoCreatedSubnetInfo&quot;: { # Information for the automatically created subnetwork and its associated IR. # Output only. Information for the automatically created subnetwork and its associated IR.
362 &quot;delinked&quot;: True or False, # Output only. Indicates whether the subnetwork is delinked from the Service Connection Policy. Only set if the subnetwork mode is AUTO_CREATED during creation.
363 &quot;internalRange&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range. Only set if the subnetwork mode is AUTO_CREATED during creation.
364 &quot;internalRangeRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
365 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork. Only set if the subnetwork mode is AUTO_CREATED during creation.
366 &quot;subnetworkRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
367 },
368 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was created.
369 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
370 &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.
371 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The type of underlying resources used to create the connection.
372 &quot;labels&quot;: { # User-defined labels.
373 &quot;a_key&quot;: &quot;A String&quot;,
374 },
375 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
376 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network. Example: - projects/{projectNumOrId}/global/networks/{resourceId}.
377 &quot;pscConfig&quot;: { # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC. # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
378 &quot;allowedGoogleProducersResourceHierarchyLevel&quot;: [ # Optional. List of Projects, Folders, or Organizations from where the Producer instance can be within. For example, a network administrator can provide both &#x27;organizations/foo&#x27; and &#x27;projects/bar&#x27; as allowed_google_producers_resource_hierarchy_levels. This allowlists this network to connect with any Producer instance within the &#x27;foo&#x27; organization or the &#x27;bar&#x27; project. By default, allowed_google_producers_resource_hierarchy_level is empty. The format for each allowed_google_producers_resource_hierarchy_level is / where is one of &#x27;projects&#x27;, &#x27;folders&#x27;, or &#x27;organizations&#x27; and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: &#x27;projects/&#x27; or &#x27;folders/&#x27; or &#x27;organizations/&#x27; Eg. [projects/my-project-id, projects/567, folders/891, organizations/123]
379 &quot;A String&quot;,
380 ],
381 &quot;limit&quot;: &quot;A String&quot;, # Optional. Max number of PSC connections for this policy.
382 &quot;producerInstanceLocation&quot;: &quot;A String&quot;, # Optional. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within.
383 &quot;subnetworks&quot;: [ # The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.
384 &quot;A String&quot;,
385 ],
386 },
387 &quot;pscConnections&quot;: [ # Output only. [Output only] Information about each Private Service Connect connection.
388 { # Information about a specific Private Service Connect connection.
389 &quot;consumerAddress&quot;: &quot;A String&quot;, # The resource reference of the consumer address.
390 &quot;consumerForwardingRule&quot;: &quot;A String&quot;, # The resource reference of the PSC Forwarding Rule within the consumer VPC.
391 &quot;consumerTargetProject&quot;: &quot;A String&quot;, # The project where the PSC connection is created.
392 &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. Deprecated, please use error_info instead.
393 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
394 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
395 {
396 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
397 },
398 ],
399 &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.
400 },
401 &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.
402 &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;.
403 &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.
404 &quot;a_key&quot;: &quot;A String&quot;,
405 },
406 &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.
407 },
408 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
409 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
410 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
411 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
412 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
413 &quot;a_key&quot;: &quot;A String&quot;,
414 },
415 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule.
416 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the subnetwork selected to allocate IP address for this connection.
417 &quot;serviceClass&quot;: &quot;A String&quot;, # Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
418 &quot;state&quot;: &quot;A String&quot;, # State of the PSC Connection
419 },
420 ],
421 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
422 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was updated.
423 },
424 ],
425 &quot;unreachable&quot;: [ # Locations that could not be reached.
426 &quot;A String&quot;,
427 ],
428 }</pre>
429 </div>
430
431 <div class="method">
432 <code class="details" id="list_next">list_next()</code>
433 <pre>Retrieves the next page of results.
434
435 Args:
436 previous_request: The request for the previous page. (required)
437 previous_response: The response from the request for the previous page. (required)
438
439 Returns:
440 A request object that you can call &#x27;execute()&#x27; on to request the next
441 page. Returns None if there are no more items in the collection.
442 </pre>
443 </div>
444
445 <div class="method">
446 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
447 <pre>Updates the parameters of a single ServiceConnectionPolicy.
448
449 Args:
450 name: string, Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names (required)
451 body: object, The request body.
452 The object takes the form of:
453
454 { # The ServiceConnectionPolicy resource.
455 &quot;autoCreatedSubnetInfo&quot;: { # Information for the automatically created subnetwork and its associated IR. # Output only. Information for the automatically created subnetwork and its associated IR.
456 &quot;delinked&quot;: True or False, # Output only. Indicates whether the subnetwork is delinked from the Service Connection Policy. Only set if the subnetwork mode is AUTO_CREATED during creation.
457 &quot;internalRange&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range. Only set if the subnetwork mode is AUTO_CREATED during creation.
458 &quot;internalRangeRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created Internal Range reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
459 &quot;subnetwork&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork. Only set if the subnetwork mode is AUTO_CREATED during creation.
460 &quot;subnetworkRef&quot;: &quot;A String&quot;, # Output only. URI of the automatically created subnetwork reference. Only set if the subnetwork mode is AUTO_CREATED during creation.
461 },
462 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was created.
463 &quot;description&quot;: &quot;A String&quot;, # A description of this resource.
464 &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.
465 &quot;infrastructure&quot;: &quot;A String&quot;, # Output only. The type of underlying resources used to create the connection.
466 &quot;labels&quot;: { # User-defined labels.
467 &quot;a_key&quot;: &quot;A String&quot;,
468 },
469 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
470 &quot;network&quot;: &quot;A String&quot;, # The resource path of the consumer network. Example: - projects/{projectNumOrId}/global/networks/{resourceId}.
471 &quot;pscConfig&quot;: { # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC. # Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
472 &quot;allowedGoogleProducersResourceHierarchyLevel&quot;: [ # Optional. List of Projects, Folders, or Organizations from where the Producer instance can be within. For example, a network administrator can provide both &#x27;organizations/foo&#x27; and &#x27;projects/bar&#x27; as allowed_google_producers_resource_hierarchy_levels. This allowlists this network to connect with any Producer instance within the &#x27;foo&#x27; organization or the &#x27;bar&#x27; project. By default, allowed_google_producers_resource_hierarchy_level is empty. The format for each allowed_google_producers_resource_hierarchy_level is / where is one of &#x27;projects&#x27;, &#x27;folders&#x27;, or &#x27;organizations&#x27; and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: &#x27;projects/&#x27; or &#x27;folders/&#x27; or &#x27;organizations/&#x27; Eg. [projects/my-project-id, projects/567, folders/891, organizations/123]
473 &quot;A String&quot;,
474 ],
475 &quot;limit&quot;: &quot;A String&quot;, # Optional. Max number of PSC connections for this policy.
476 &quot;producerInstanceLocation&quot;: &quot;A String&quot;, # Optional. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within.
477 &quot;subnetworks&quot;: [ # The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.
478 &quot;A String&quot;,
479 ],
480 },
481 &quot;pscConnections&quot;: [ # Output only. [Output only] Information about each Private Service Connect connection.
482 { # Information about a specific Private Service Connect connection.
483 &quot;consumerAddress&quot;: &quot;A String&quot;, # The resource reference of the consumer address.
484 &quot;consumerForwardingRule&quot;: &quot;A String&quot;, # The resource reference of the PSC Forwarding Rule within the consumer VPC.
485 &quot;consumerTargetProject&quot;: &quot;A String&quot;, # The project where the PSC connection is created.
486 &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. Deprecated, please use error_info instead.
487 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
488 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
489 {
490 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
491 },
492 ],
493 &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.
494 },
495 &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.
496 &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;.
497 &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.
498 &quot;a_key&quot;: &quot;A String&quot;,
499 },
500 &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.
501 },
502 &quot;errorType&quot;: &quot;A String&quot;, # The error type indicates whether the error is consumer facing, producer facing or system internal.
503 &quot;gceOperation&quot;: &quot;A String&quot;, # The last Compute Engine operation to setup PSC connection.
504 &quot;ipVersion&quot;: &quot;A String&quot;, # The requested IP version for the PSC connection.
505 &quot;producerInstanceId&quot;: &quot;A String&quot;, # Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the producer instance.
506 &quot;producerInstanceMetadata&quot;: { # Immutable. An immutable map for the producer instance metadata.
507 &quot;a_key&quot;: &quot;A String&quot;,
508 },
509 &quot;pscConnectionId&quot;: &quot;A String&quot;, # The PSC connection id of the PSC forwarding rule.
510 &quot;selectedSubnetwork&quot;: &quot;A String&quot;, # Output only. The URI of the subnetwork selected to allocate IP address for this connection.
511 &quot;serviceClass&quot;: &quot;A String&quot;, # Output only. [Output only] The service class associated with this PSC Connection. The value is derived from the SCPolicy and matches the service class name provided by the customer.
512 &quot;state&quot;: &quot;A String&quot;, # State of the PSC Connection
513 },
514 ],
515 &quot;serviceClass&quot;: &quot;A String&quot;, # The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
516 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the ServiceConnectionPolicy was updated.
517 }
518
519 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).
520 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the ServiceConnectionPolicy 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.
521 x__xgafv: string, V1 error format.
522 Allowed values
523 1 - v1 error format
524 2 - v2 error format
525
526 Returns:
527 An object of the form:
528
529 { # This resource represents a long-running operation that is the result of a network API call.
530 &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.
531 &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.
532 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
533 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
534 {
535 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
536 },
537 ],
538 &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.
539 },
540 &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.
541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
542 },
543 &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}`.
544 &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`.
545 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
546 },
547 }</pre>
548 </div>
549
550 </body></html>