blob: 29ad9d805e9147e7300a889f6a38b82cff3017fc [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="accesscontextmanager_v1beta.html">Access Context Manager API</a> . <a href="accesscontextmanager_v1beta.accessPolicies.html">accessPolicies</a> . <a href="accesscontextmanager_v1beta.accessPolicies.servicePerimeters.html">servicePerimeters</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Create a Service Perimeter. The</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070082<p class="firstline">Delete a Service Perimeter by resource</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Get a Service Perimeter by resource</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">List all Service Perimeters for an</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Update a Service Perimeter. The</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<h3>Method Details</h3>
96<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070097 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
98 <pre>Create a Service Perimeter. The
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099longrunning operation from this RPC will have a successful status once the
100Service Perimeter has
101propagated to long-lasting storage. Service Perimeters containing
102errors will result in an error response for the first error encountered.
103
104Args:
105 parent: string, Required. Resource name for the access policy which owns this Service
106Perimeter.
107
108Format: `accessPolicies/{policy_id}` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 The object takes the form of:
111
Dan O'Mearadd494642020-05-01 07:42:23 -0700112{ # `ServicePerimeter` describes a set of Google Cloud resources which can freely
Bu Sun Kim65020912020-05-20 12:08:20 -0700113 # import and export data amongst themselves, but not export outside of the
114 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
115 # has a target outside of the `ServicePerimeter`, the request will be blocked.
116 # Otherwise the request is allowed. There are two types of Service Perimeter -
117 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
118 # Google Cloud project can only belong to a single regular Service Perimeter.
119 # Service Perimeter Bridges can contain only Google Cloud projects as members,
120 # a single Google Cloud project may belong to multiple Service Perimeter
121 # Bridges.
122 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
123 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
124 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
125 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
126 # behavior.
127 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
128 # allowed to be a member of single regular perimeter, but multiple service
129 # perimeter bridges. A project cannot be a included in a perimeter bridge
130 # without being included in regular perimeter. For perimeter bridges,
131 # restricted/unrestricted service lists as well as access lists must be
132 # empty.
133 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
134 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
135 # restricted/unrestricted services and access levels that determine perimeter
136 # content and boundaries.
137 # describe specific Service Perimeter configuration.
138 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
139 # Currently only projects are allowed. Format: `projects/{project_number}`
140 &quot;A String&quot;,
141 ],
142 &quot;unrestrictedServices&quot;: [ # Google Cloud services that are not subject to the Service Perimeter
143 # restrictions. Deprecated. Must be set to a single wildcard &quot;*&quot;.
144 #
145 # The wildcard means that unless explicitly specified by
146 # &quot;restricted_services&quot; list, any service is treated as unrestricted.
147 &quot;A String&quot;,
148 ],
149 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
150 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
151 # must be in the same policy as this `ServicePerimeter`. Referencing a
152 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
153 # listed, resources within the perimeter can only be accessed via Google
154 # Cloud calls with request origins within the perimeter. Example:
155 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
156 # For Service Perimeter Bridge, must be empty.
157 &quot;A String&quot;,
158 ],
159 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
160 # restrictions. Must contain a list of services. For example, if
161 # `storage.googleapis.com` is specified, access to the storage buckets
162 # inside the perimeter must meet the perimeter&#x27;s access restrictions.
163 &quot;A String&quot;,
164 ],
165 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Beta. Configuration for APIs allowed within Perimeter.
166 # Perimeter.
167 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
168 # unless &#x27;enable_restriction&#x27; is True.
169 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700170 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
172 # APIs specified in &#x27;allowed_services&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700173 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 },
175}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700176
177 x__xgafv: string, V1 error format.
178 Allowed values
179 1 - v1 error format
180 2 - v2 error format
181
182Returns:
183 An object of the form:
184
185 { # This resource represents a long-running operation that is the result of a
186 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700188 # method returns no data on success, such as `Delete`, the response is
189 # `google.protobuf.Empty`. If the original method is standard
190 # `Get`/`Create`/`Update`, the response should be the resource. For other
191 # methods, the response should have the type `XxxResponse`, where `Xxx`
192 # is the original method name. For example, if the original method name
193 # is `TakeSnapshot()`, the inferred response type is
194 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700196 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700198 # originally returns it. If you use the default HTTP mapping, the
199 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
201 # different programming environments, including REST APIs and RPC APIs. It is
202 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
203 # three pieces of data: error code, error message, and error details.
204 #
205 # You can find out more about this error model and how to work with it in the
206 # [API Design Guide](https://cloud.google.com/apis/design/errors).
207 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
208 # message types for APIs to use.
209 {
210 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
211 },
212 ],
213 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
214 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
215 # user-facing error message should be localized and sent in the
216 # google.rpc.Status.details field, or localized by the client.
217 },
218 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
219 # contains progress information and common metadata such as create time.
220 # Some services might not provide such metadata. Any method that returns a
221 # long-running operation should document the metadata type, if any.
222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
223 },
224 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
225 # If `true`, the operation is completed, and either `error` or `response` is
226 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700227 }</pre>
228</div>
229
230<div class="method">
231 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700232 <pre>Delete a Service Perimeter by resource
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700233name. The longrunning operation from this RPC will have a successful status
234once the Service Perimeter has been
235removed from long-lasting storage.
236
237Args:
238 name: string, Required. Resource name for the Service Perimeter.
239
240Format:
241`accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` (required)
242 x__xgafv: string, V1 error format.
243 Allowed values
244 1 - v1 error format
245 2 - v2 error format
246
247Returns:
248 An object of the form:
249
250 { # This resource represents a long-running operation that is the result of a
251 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700253 # method returns no data on success, such as `Delete`, the response is
254 # `google.protobuf.Empty`. If the original method is standard
255 # `Get`/`Create`/`Update`, the response should be the resource. For other
256 # methods, the response should have the type `XxxResponse`, where `Xxx`
257 # is the original method name. For example, if the original method name
258 # is `TakeSnapshot()`, the inferred response type is
259 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700261 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700263 # originally returns it. If you use the default HTTP mapping, the
264 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
266 # different programming environments, including REST APIs and RPC APIs. It is
267 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
268 # three pieces of data: error code, error message, and error details.
269 #
270 # You can find out more about this error model and how to work with it in the
271 # [API Design Guide](https://cloud.google.com/apis/design/errors).
272 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
273 # message types for APIs to use.
274 {
275 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
276 },
277 ],
278 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
279 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
280 # user-facing error message should be localized and sent in the
281 # google.rpc.Status.details field, or localized by the client.
282 },
283 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
284 # contains progress information and common metadata such as create time.
285 # Some services might not provide such metadata. Any method that returns a
286 # long-running operation should document the metadata type, if any.
287 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
288 },
289 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
290 # If `true`, the operation is completed, and either `error` or `response` is
291 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700292 }</pre>
293</div>
294
295<div class="method">
296 <code class="details" id="get">get(name, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 <pre>Get a Service Perimeter by resource
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700298name.
299
300Args:
301 name: string, Required. Resource name for the Service Perimeter.
302
303Format:
304`accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` (required)
305 x__xgafv: string, V1 error format.
306 Allowed values
307 1 - v1 error format
308 2 - v2 error format
309
310Returns:
311 An object of the form:
312
Dan O'Mearadd494642020-05-01 07:42:23 -0700313 { # `ServicePerimeter` describes a set of Google Cloud resources which can freely
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 # import and export data amongst themselves, but not export outside of the
315 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
316 # has a target outside of the `ServicePerimeter`, the request will be blocked.
317 # Otherwise the request is allowed. There are two types of Service Perimeter -
318 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
319 # Google Cloud project can only belong to a single regular Service Perimeter.
320 # Service Perimeter Bridges can contain only Google Cloud projects as members,
321 # a single Google Cloud project may belong to multiple Service Perimeter
322 # Bridges.
323 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
324 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
325 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
326 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
327 # behavior.
328 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
329 # allowed to be a member of single regular perimeter, but multiple service
330 # perimeter bridges. A project cannot be a included in a perimeter bridge
331 # without being included in regular perimeter. For perimeter bridges,
332 # restricted/unrestricted service lists as well as access lists must be
333 # empty.
334 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
335 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
336 # restricted/unrestricted services and access levels that determine perimeter
337 # content and boundaries.
338 # describe specific Service Perimeter configuration.
339 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
340 # Currently only projects are allowed. Format: `projects/{project_number}`
341 &quot;A String&quot;,
342 ],
343 &quot;unrestrictedServices&quot;: [ # Google Cloud services that are not subject to the Service Perimeter
344 # restrictions. Deprecated. Must be set to a single wildcard &quot;*&quot;.
345 #
346 # The wildcard means that unless explicitly specified by
347 # &quot;restricted_services&quot; list, any service is treated as unrestricted.
348 &quot;A String&quot;,
349 ],
350 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
351 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
352 # must be in the same policy as this `ServicePerimeter`. Referencing a
353 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
354 # listed, resources within the perimeter can only be accessed via Google
355 # Cloud calls with request origins within the perimeter. Example:
356 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
357 # For Service Perimeter Bridge, must be empty.
358 &quot;A String&quot;,
359 ],
360 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
361 # restrictions. Must contain a list of services. For example, if
362 # `storage.googleapis.com` is specified, access to the storage buckets
363 # inside the perimeter must meet the perimeter&#x27;s access restrictions.
364 &quot;A String&quot;,
365 ],
366 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Beta. Configuration for APIs allowed within Perimeter.
367 # Perimeter.
368 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
369 # unless &#x27;enable_restriction&#x27; is True.
370 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
373 # APIs specified in &#x27;allowed_services&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 },
376 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700377</div>
378
379<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700381 <pre>List all Service Perimeters for an
382access policy.
383
384Args:
385 parent: string, Required. Resource name for the access policy to list Service Perimeters from.
386
387Format:
388`accessPolicies/{policy_id}` (required)
389 pageToken: string, Next page token for the next batch of Service Perimeter instances.
390Defaults to the first page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 pageSize: integer, Number of Service Perimeters to include
392in the list. Default 100.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397
398Returns:
399 An object of the form:
400
401 { # A response to `ListServicePerimetersRequest`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700402 &quot;servicePerimeters&quot;: [ # List of the Service Perimeter instances.
Dan O'Mearadd494642020-05-01 07:42:23 -0700403 { # `ServicePerimeter` describes a set of Google Cloud resources which can freely
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 # import and export data amongst themselves, but not export outside of the
405 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
406 # has a target outside of the `ServicePerimeter`, the request will be blocked.
407 # Otherwise the request is allowed. There are two types of Service Perimeter -
408 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
409 # Google Cloud project can only belong to a single regular Service Perimeter.
410 # Service Perimeter Bridges can contain only Google Cloud projects as members,
411 # a single Google Cloud project may belong to multiple Service Perimeter
412 # Bridges.
413 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
414 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
415 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
416 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
417 # behavior.
418 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
419 # allowed to be a member of single regular perimeter, but multiple service
420 # perimeter bridges. A project cannot be a included in a perimeter bridge
421 # without being included in regular perimeter. For perimeter bridges,
422 # restricted/unrestricted service lists as well as access lists must be
423 # empty.
424 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
425 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
426 # restricted/unrestricted services and access levels that determine perimeter
427 # content and boundaries.
428 # describe specific Service Perimeter configuration.
429 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
430 # Currently only projects are allowed. Format: `projects/{project_number}`
431 &quot;A String&quot;,
432 ],
433 &quot;unrestrictedServices&quot;: [ # Google Cloud services that are not subject to the Service Perimeter
434 # restrictions. Deprecated. Must be set to a single wildcard &quot;*&quot;.
435 #
436 # The wildcard means that unless explicitly specified by
437 # &quot;restricted_services&quot; list, any service is treated as unrestricted.
438 &quot;A String&quot;,
439 ],
440 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
441 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
442 # must be in the same policy as this `ServicePerimeter`. Referencing a
443 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
444 # listed, resources within the perimeter can only be accessed via Google
445 # Cloud calls with request origins within the perimeter. Example:
446 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
447 # For Service Perimeter Bridge, must be empty.
448 &quot;A String&quot;,
449 ],
450 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
451 # restrictions. Must contain a list of services. For example, if
452 # `storage.googleapis.com` is specified, access to the storage buckets
453 # inside the perimeter must meet the perimeter&#x27;s access restrictions.
454 &quot;A String&quot;,
455 ],
456 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Beta. Configuration for APIs allowed within Perimeter.
457 # Perimeter.
458 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
459 # unless &#x27;enable_restriction&#x27; is True.
460 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
463 # APIs specified in &#x27;allowed_services&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700464 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700465 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700466 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700467 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700468 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token to retrieve the next page of results. If the value is
469 # empty, no further results remain.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700470 }</pre>
471</div>
472
473<div class="method">
474 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
475 <pre>Retrieves the next page of results.
476
477Args:
478 previous_request: The request for the previous page. (required)
479 previous_response: The response from the request for the previous page. (required)
480
481Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483 page. Returns None if there are no more items in the collection.
484 </pre>
485</div>
486
487<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700488 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
489 <pre>Update a Service Perimeter. The
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490longrunning operation from this RPC will have a successful status once the
491changes to the Service Perimeter have
492propagated to long-lasting storage. Service Perimeter containing
493errors will result in an error response for the first error encountered.
494
495Args:
496 name: string, Required. Resource name for the ServicePerimeter. The `short_name`
Bu Sun Kim65020912020-05-20 12:08:20 -0700497component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700498Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700499 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700500 The object takes the form of:
501
Dan O'Mearadd494642020-05-01 07:42:23 -0700502{ # `ServicePerimeter` describes a set of Google Cloud resources which can freely
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 # import and export data amongst themselves, but not export outside of the
504 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
505 # has a target outside of the `ServicePerimeter`, the request will be blocked.
506 # Otherwise the request is allowed. There are two types of Service Perimeter -
507 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
508 # Google Cloud project can only belong to a single regular Service Perimeter.
509 # Service Perimeter Bridges can contain only Google Cloud projects as members,
510 # a single Google Cloud project may belong to multiple Service Perimeter
511 # Bridges.
512 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
513 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
514 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
515 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
516 # behavior.
517 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
518 # allowed to be a member of single regular perimeter, but multiple service
519 # perimeter bridges. A project cannot be a included in a perimeter bridge
520 # without being included in regular perimeter. For perimeter bridges,
521 # restricted/unrestricted service lists as well as access lists must be
522 # empty.
523 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
524 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
525 # restricted/unrestricted services and access levels that determine perimeter
526 # content and boundaries.
527 # describe specific Service Perimeter configuration.
528 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
529 # Currently only projects are allowed. Format: `projects/{project_number}`
530 &quot;A String&quot;,
531 ],
532 &quot;unrestrictedServices&quot;: [ # Google Cloud services that are not subject to the Service Perimeter
533 # restrictions. Deprecated. Must be set to a single wildcard &quot;*&quot;.
534 #
535 # The wildcard means that unless explicitly specified by
536 # &quot;restricted_services&quot; list, any service is treated as unrestricted.
537 &quot;A String&quot;,
538 ],
539 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
540 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
541 # must be in the same policy as this `ServicePerimeter`. Referencing a
542 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
543 # listed, resources within the perimeter can only be accessed via Google
544 # Cloud calls with request origins within the perimeter. Example:
545 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
546 # For Service Perimeter Bridge, must be empty.
547 &quot;A String&quot;,
548 ],
549 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
550 # restrictions. Must contain a list of services. For example, if
551 # `storage.googleapis.com` is specified, access to the storage buckets
552 # inside the perimeter must meet the perimeter&#x27;s access restrictions.
553 &quot;A String&quot;,
554 ],
555 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Beta. Configuration for APIs allowed within Perimeter.
556 # Perimeter.
557 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
558 # unless &#x27;enable_restriction&#x27; is True.
559 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
562 # APIs specified in &#x27;allowed_services&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700563 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700564 },
565}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566
567 updateMask: string, Required. Mask to control which fields get updated. Must be non-empty.
568 x__xgafv: string, V1 error format.
569 Allowed values
570 1 - v1 error format
571 2 - v2 error format
572
573Returns:
574 An object of the form:
575
576 { # This resource represents a long-running operation that is the result of a
577 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700578 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700579 # method returns no data on success, such as `Delete`, the response is
580 # `google.protobuf.Empty`. If the original method is standard
581 # `Get`/`Create`/`Update`, the response should be the resource. For other
582 # methods, the response should have the type `XxxResponse`, where `Xxx`
583 # is the original method name. For example, if the original method name
584 # is `TakeSnapshot()`, the inferred response type is
585 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700587 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700589 # originally returns it. If you use the default HTTP mapping, the
590 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700591 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
592 # different programming environments, including REST APIs and RPC APIs. It is
593 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
594 # three pieces of data: error code, error message, and error details.
595 #
596 # You can find out more about this error model and how to work with it in the
597 # [API Design Guide](https://cloud.google.com/apis/design/errors).
598 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
599 # message types for APIs to use.
600 {
601 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
602 },
603 ],
604 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
605 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
606 # user-facing error message should be localized and sent in the
607 # google.rpc.Status.details field, or localized by the client.
608 },
609 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
610 # contains progress information and common metadata such as create time.
611 # Some services might not provide such metadata. Any method that returns a
612 # long-running operation should document the metadata type, if any.
613 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
614 },
615 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
616 # If `true`, the operation is completed, and either `error` or `response` is
617 # available.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700618 }</pre>
619</div>
620
621</body></html>