blob: b57b497f89effad1b0be789e81ee0b9ca25c2081 [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_v1.html">Access Context Manager API</a> . <a href="accesscontextmanager_v1.accessPolicies.html">accessPolicies</a> . <a href="accesscontextmanager_v1.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="#commit">commit(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Commit the dry-run spec for all the Service Perimeters in an</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Create a Service Perimeter. The</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Delete a Service Perimeter by resource</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070088<p class="firstline">Get a Service Perimeter by resource</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">List all Service Perimeters for an</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97<p class="firstline">Update a Service Perimeter. The</p>
98<p class="toc_element">
99 <code><a href="#replaceAll">replaceAll(parent, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Replace all existing Service Perimeters in an</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="commit">commit(parent, body=None, x__xgafv=None)</code>
104 <pre>Commit the dry-run spec for all the Service Perimeters in an
105Access Policy.
106A commit operation on a Service Perimeter involves copying its `spec` field
Bu Sun Kim65020912020-05-20 12:08:20 -0700107to that Service Perimeter&#x27;s `status` field. Only Service Perimeters with
Dan O'Mearadd494642020-05-01 07:42:23 -0700108`use_explicit_dry_run_spec` field set to true are affected by a commit
109operation. The longrunning operation from this RPC will have a successful
110status once the dry-run specs for all the Service Perimeters have been
111committed. If a commit fails, it will cause the longrunning operation to
112return an error response and the entire commit operation will be cancelled.
113When successful, Operation.response field will contain
114CommitServicePerimetersResponse. The `dry_run` and the `spec` fields will
115be cleared after a successful commit operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116
117Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 parent: string, Required. Resource name for the parent Access Policy which owns all
119Service Perimeters in scope for
120the commit operation.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121
122Format: `accessPolicies/{policy_id}` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 The object takes the form of:
125
Dan O'Mearadd494642020-05-01 07:42:23 -0700126{ # A request to commit dry-run specs in all Service Perimeters belonging to
127 # an Access Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700128 &quot;etag&quot;: &quot;A String&quot;, # Optional. The etag for the version of the Access Policy that this
Dan O'Mearadd494642020-05-01 07:42:23 -0700129 # commit operation is to be performed on. If, at the time of commit, the
130 # etag for the Access Policy stored in Access Context Manager is different
131 # from the specified etag, then the commit operation will not be performed
132 # and the call will fail. This field is not required. If etag is not
133 # provided, the operation will be performed as if a valid etag is provided.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134 }
135
136 x__xgafv: string, V1 error format.
137 Allowed values
138 1 - v1 error format
139 2 - v2 error format
140
141Returns:
142 An object of the form:
143
144 { # This resource represents a long-running operation that is the result of a
145 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700146 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
147 # originally returns it. If you use the default HTTP mapping, the
148 # `name` should be a resource name ending with `operations/{unique_id}`.
149 &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.
150 # different programming environments, including REST APIs and RPC APIs. It is
151 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
152 # three pieces of data: error code, error message, and error details.
153 #
154 # You can find out more about this error model and how to work with it in the
155 # [API Design Guide](https://cloud.google.com/apis/design/errors).
156 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
157 # user-facing error message should be localized and sent in the
158 # google.rpc.Status.details field, or localized by the client.
159 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
160 # message types for APIs to use.
161 {
162 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
163 },
164 ],
165 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
166 },
167 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
168 # contains progress information and common metadata such as create time.
169 # Some services might not provide such metadata. Any method that returns a
170 # long-running operation should document the metadata type, if any.
171 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
172 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700174 # If `true`, the operation is completed, and either `error` or `response` is
175 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700177 # method returns no data on success, such as `Delete`, the response is
178 # `google.protobuf.Empty`. If the original method is standard
179 # `Get`/`Create`/`Update`, the response should be the resource. For other
180 # methods, the response should have the type `XxxResponse`, where `Xxx`
181 # is the original method name. For example, if the original method name
182 # is `TakeSnapshot()`, the inferred response type is
183 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700185 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 }</pre>
187</div>
188
189<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700190 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
191 <pre>Create a Service Perimeter. The
192longrunning operation from this RPC will have a successful status once the
193Service Perimeter has
194propagated to long-lasting storage. Service Perimeters containing
195errors will result in an error response for the first error encountered.
196
197Args:
198 parent: string, Required. Resource name for the access policy which owns this Service
199Perimeter.
200
201Format: `accessPolicies/{policy_id}` (required)
202 body: object, The request body.
203 The object takes the form of:
204
205{ # `ServicePerimeter` describes a set of Google Cloud resources which can freely
206 # import and export data amongst themselves, but not export outside of the
207 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
208 # has a target outside of the `ServicePerimeter`, the request will be blocked.
209 # Otherwise the request is allowed. There are two types of Service Perimeter -
210 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
211 # Google Cloud project can only belong to a single regular Service Perimeter.
212 # Service Perimeter Bridges can contain only Google Cloud projects as members,
213 # a single Google Cloud project may belong to multiple Service Perimeter
214 # Bridges.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700215 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
216 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
217 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
218 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
219 # allowed to be a member of single regular perimeter, but multiple service
220 # perimeter bridges. A project cannot be a included in a perimeter bridge
221 # without being included in regular perimeter. For perimeter bridges,
222 # the restricted service list as well as access level lists must be
223 # empty.
224 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;useExplicitDryRunSpec&quot;: True or False, # Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly
226 # exists for all Service Perimeters, and that spec is identical to the
227 # status for those Service Perimeters. When this flag is set, it inhibits the
228 # generation of the implicit spec, thereby allowing the user to explicitly
229 # provide a configuration (&quot;spec&quot;) to use in a dry-run version of the Service
230 # Perimeter. This allows the user to test changes to the enforced config
231 # (&quot;status&quot;) without actually enforcing them. This testing is done through
232 # analyzing the differences between currently enforced and suggested
233 # restrictions. use_explicit_dry_run_spec must bet set to True if any of the
234 # fields in the spec are set to non-default values.
235 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
236 # behavior.
237 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
Dan O'Mearadd494642020-05-01 07:42:23 -0700238 # restricted services and access levels that determine perimeter
239 # content and boundaries.
240 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700241 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
242 # Currently only projects are allowed. Format: `projects/{project_number}`
243 &quot;A String&quot;,
244 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
Dan O'Mearadd494642020-05-01 07:42:23 -0700246 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
247 # must be in the same policy as this `ServicePerimeter`. Referencing a
248 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
249 # listed, resources within the perimeter can only be accessed via Google
250 # Cloud calls with request origins within the perimeter. Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700252 # For Service Perimeter Bridge, must be empty.
Bu Sun Kim65020912020-05-20 12:08:20 -0700253 &quot;A String&quot;,
254 ],
255 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
256 # restrictions. For example, if `storage.googleapis.com` is specified, access
257 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
258 # access restrictions.
259 &quot;A String&quot;,
260 ],
261 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
262 # Perimeter.
263 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
264 # APIs specified in &#x27;allowed_services&#x27;.
265 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
266 # unless &#x27;enable_restriction&#x27; is True.
267 &quot;A String&quot;,
268 ],
269 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700270 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &quot;spec&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Proposed (or dry run) ServicePerimeter configuration. This configuration
272 # allows to specify and test ServicePerimeter configuration without enforcing
273 # actual access restrictions. Only allowed to be set when the
274 # &quot;use_explicit_dry_run_spec&quot; flag is set.
275 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700276 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
277 # Currently only projects are allowed. Format: `projects/{project_number}`
278 &quot;A String&quot;,
279 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
281 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
282 # must be in the same policy as this `ServicePerimeter`. Referencing a
283 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
284 # listed, resources within the perimeter can only be accessed via Google
285 # Cloud calls with request origins within the perimeter. Example:
286 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
287 # For Service Perimeter Bridge, must be empty.
288 &quot;A String&quot;,
289 ],
290 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
291 # restrictions. For example, if `storage.googleapis.com` is specified, access
292 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
293 # access restrictions.
294 &quot;A String&quot;,
295 ],
296 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
297 # Perimeter.
298 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
299 # APIs specified in &#x27;allowed_services&#x27;.
300 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
301 # unless &#x27;enable_restriction&#x27; is True.
302 &quot;A String&quot;,
303 ],
304 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700306}
307
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312
313Returns:
314 An object of the form:
315
316 { # This resource represents a long-running operation that is the result of a
317 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700318 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
319 # originally returns it. If you use the default HTTP mapping, the
320 # `name` should be a resource name ending with `operations/{unique_id}`.
321 &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.
322 # different programming environments, including REST APIs and RPC APIs. It is
323 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
324 # three pieces of data: error code, error message, and error details.
325 #
326 # You can find out more about this error model and how to work with it in the
327 # [API Design Guide](https://cloud.google.com/apis/design/errors).
328 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
329 # user-facing error message should be localized and sent in the
330 # google.rpc.Status.details field, or localized by the client.
331 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
332 # message types for APIs to use.
333 {
334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
335 },
336 ],
337 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
338 },
339 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
340 # contains progress information and common metadata such as create time.
341 # Some services might not provide such metadata. Any method that returns a
342 # long-running operation should document the metadata type, if any.
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
344 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700346 # If `true`, the operation is completed, and either `error` or `response` is
347 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700349 # method returns no data on success, such as `Delete`, the response is
350 # `google.protobuf.Empty`. If the original method is standard
351 # `Get`/`Create`/`Update`, the response should be the resource. For other
352 # methods, the response should have the type `XxxResponse`, where `Xxx`
353 # is the original method name. For example, if the original method name
354 # is `TakeSnapshot()`, the inferred response type is
355 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700356 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700357 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 }</pre>
359</div>
360
361<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700362 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700363 <pre>Delete a Service Perimeter by resource
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700364name. The longrunning operation from this RPC will have a successful status
365once the Service Perimeter has been
366removed from long-lasting storage.
367
368Args:
369 name: string, Required. Resource name for the Service Perimeter.
370
371Format:
372`accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` (required)
373 x__xgafv: string, V1 error format.
374 Allowed values
375 1 - v1 error format
376 2 - v2 error format
377
378Returns:
379 An object of the form:
380
381 { # This resource represents a long-running operation that is the result of a
382 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700383 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
384 # originally returns it. If you use the default HTTP mapping, the
385 # `name` should be a resource name ending with `operations/{unique_id}`.
386 &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.
387 # different programming environments, including REST APIs and RPC APIs. It is
388 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
389 # three pieces of data: error code, error message, and error details.
390 #
391 # You can find out more about this error model and how to work with it in the
392 # [API Design Guide](https://cloud.google.com/apis/design/errors).
393 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
394 # user-facing error message should be localized and sent in the
395 # google.rpc.Status.details field, or localized by the client.
396 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
397 # message types for APIs to use.
398 {
399 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
400 },
401 ],
402 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
403 },
404 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
405 # contains progress information and common metadata such as create time.
406 # Some services might not provide such metadata. Any method that returns a
407 # long-running operation should document the metadata type, if any.
408 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
409 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 # If `true`, the operation is completed, and either `error` or `response` is
412 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700414 # method returns no data on success, such as `Delete`, the response is
415 # `google.protobuf.Empty`. If the original method is standard
416 # `Get`/`Create`/`Update`, the response should be the resource. For other
417 # methods, the response should have the type `XxxResponse`, where `Xxx`
418 # is the original method name. For example, if the original method name
419 # is `TakeSnapshot()`, the inferred response type is
420 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700421 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700422 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 }</pre>
424</div>
425
426<div class="method">
427 <code class="details" id="get">get(name, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700428 <pre>Get a Service Perimeter by resource
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429name.
430
431Args:
432 name: string, Required. Resource name for the Service Perimeter.
433
434Format:
435`accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` (required)
436 x__xgafv: string, V1 error format.
437 Allowed values
438 1 - v1 error format
439 2 - v2 error format
440
441Returns:
442 An object of the form:
443
Dan O'Mearadd494642020-05-01 07:42:23 -0700444 { # `ServicePerimeter` describes a set of Google Cloud resources which can freely
445 # import and export data amongst themselves, but not export outside of the
446 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
447 # has a target outside of the `ServicePerimeter`, the request will be blocked.
448 # Otherwise the request is allowed. There are two types of Service Perimeter -
449 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
450 # Google Cloud project can only belong to a single regular Service Perimeter.
451 # Service Perimeter Bridges can contain only Google Cloud projects as members,
452 # a single Google Cloud project may belong to multiple Service Perimeter
453 # Bridges.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700454 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
455 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
456 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
457 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
458 # allowed to be a member of single regular perimeter, but multiple service
459 # perimeter bridges. A project cannot be a included in a perimeter bridge
460 # without being included in regular perimeter. For perimeter bridges,
461 # the restricted service list as well as access level lists must be
462 # empty.
463 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 &quot;useExplicitDryRunSpec&quot;: True or False, # Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly
465 # exists for all Service Perimeters, and that spec is identical to the
466 # status for those Service Perimeters. When this flag is set, it inhibits the
467 # generation of the implicit spec, thereby allowing the user to explicitly
468 # provide a configuration (&quot;spec&quot;) to use in a dry-run version of the Service
469 # Perimeter. This allows the user to test changes to the enforced config
470 # (&quot;status&quot;) without actually enforcing them. This testing is done through
471 # analyzing the differences between currently enforced and suggested
472 # restrictions. use_explicit_dry_run_spec must bet set to True if any of the
473 # fields in the spec are set to non-default values.
474 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
475 # behavior.
476 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
Dan O'Mearadd494642020-05-01 07:42:23 -0700477 # restricted services and access levels that determine perimeter
478 # content and boundaries.
479 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700480 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
481 # Currently only projects are allowed. Format: `projects/{project_number}`
482 &quot;A String&quot;,
483 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
Dan O'Mearadd494642020-05-01 07:42:23 -0700485 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
486 # must be in the same policy as this `ServicePerimeter`. Referencing a
487 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
488 # listed, resources within the perimeter can only be accessed via Google
489 # Cloud calls with request origins within the perimeter. Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700491 # For Service Perimeter Bridge, must be empty.
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;A String&quot;,
493 ],
494 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
495 # restrictions. For example, if `storage.googleapis.com` is specified, access
496 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
497 # access restrictions.
498 &quot;A String&quot;,
499 ],
500 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
501 # Perimeter.
502 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
503 # APIs specified in &#x27;allowed_services&#x27;.
504 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
505 # unless &#x27;enable_restriction&#x27; is True.
506 &quot;A String&quot;,
507 ],
508 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700509 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700510 &quot;spec&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Proposed (or dry run) ServicePerimeter configuration. This configuration
511 # allows to specify and test ServicePerimeter configuration without enforcing
512 # actual access restrictions. Only allowed to be set when the
513 # &quot;use_explicit_dry_run_spec&quot; flag is set.
514 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700515 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
516 # Currently only projects are allowed. Format: `projects/{project_number}`
517 &quot;A String&quot;,
518 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
520 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
521 # must be in the same policy as this `ServicePerimeter`. Referencing a
522 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
523 # listed, resources within the perimeter can only be accessed via Google
524 # Cloud calls with request origins within the perimeter. Example:
525 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
526 # For Service Perimeter Bridge, must be empty.
527 &quot;A String&quot;,
528 ],
529 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
530 # restrictions. For example, if `storage.googleapis.com` is specified, access
531 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
532 # access restrictions.
533 &quot;A String&quot;,
534 ],
535 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
536 # Perimeter.
537 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
538 # APIs specified in &#x27;allowed_services&#x27;.
539 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
540 # unless &#x27;enable_restriction&#x27; is True.
541 &quot;A String&quot;,
542 ],
543 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700545 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700546</div>
547
548<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700550 <pre>List all Service Perimeters for an
551access policy.
552
553Args:
554 parent: string, Required. Resource name for the access policy to list Service Perimeters from.
555
556Format:
557`accessPolicies/{policy_id}` (required)
558 pageToken: string, Next page token for the next batch of Service Perimeter instances.
559Defaults to the first page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 pageSize: integer, Number of Service Perimeters to include
561in the list. Default 100.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700562 x__xgafv: string, V1 error format.
563 Allowed values
564 1 - v1 error format
565 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566
567Returns:
568 An object of the form:
569
570 { # A response to `ListServicePerimetersRequest`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;servicePerimeters&quot;: [ # List of the Service Perimeter instances.
Dan O'Mearadd494642020-05-01 07:42:23 -0700572 { # `ServicePerimeter` describes a set of Google Cloud resources which can freely
573 # import and export data amongst themselves, but not export outside of the
574 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
575 # has a target outside of the `ServicePerimeter`, the request will be blocked.
576 # Otherwise the request is allowed. There are two types of Service Perimeter -
577 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
578 # Google Cloud project can only belong to a single regular Service Perimeter.
579 # Service Perimeter Bridges can contain only Google Cloud projects as members,
580 # a single Google Cloud project may belong to multiple Service Perimeter
581 # Bridges.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700582 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
583 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
584 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
585 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
586 # allowed to be a member of single regular perimeter, but multiple service
587 # perimeter bridges. A project cannot be a included in a perimeter bridge
588 # without being included in regular perimeter. For perimeter bridges,
589 # the restricted service list as well as access level lists must be
590 # empty.
591 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 &quot;useExplicitDryRunSpec&quot;: True or False, # Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly
593 # exists for all Service Perimeters, and that spec is identical to the
594 # status for those Service Perimeters. When this flag is set, it inhibits the
595 # generation of the implicit spec, thereby allowing the user to explicitly
596 # provide a configuration (&quot;spec&quot;) to use in a dry-run version of the Service
597 # Perimeter. This allows the user to test changes to the enforced config
598 # (&quot;status&quot;) without actually enforcing them. This testing is done through
599 # analyzing the differences between currently enforced and suggested
600 # restrictions. use_explicit_dry_run_spec must bet set to True if any of the
601 # fields in the spec are set to non-default values.
602 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
603 # behavior.
604 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
Dan O'Mearadd494642020-05-01 07:42:23 -0700605 # restricted services and access levels that determine perimeter
606 # content and boundaries.
607 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700608 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
609 # Currently only projects are allowed. Format: `projects/{project_number}`
610 &quot;A String&quot;,
611 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
Dan O'Mearadd494642020-05-01 07:42:23 -0700613 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
614 # must be in the same policy as this `ServicePerimeter`. Referencing a
615 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
616 # listed, resources within the perimeter can only be accessed via Google
617 # Cloud calls with request origins within the perimeter. Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700618 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700619 # For Service Perimeter Bridge, must be empty.
Bu Sun Kim65020912020-05-20 12:08:20 -0700620 &quot;A String&quot;,
621 ],
622 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
623 # restrictions. For example, if `storage.googleapis.com` is specified, access
624 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
625 # access restrictions.
626 &quot;A String&quot;,
627 ],
628 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
629 # Perimeter.
630 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
631 # APIs specified in &#x27;allowed_services&#x27;.
632 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
633 # unless &#x27;enable_restriction&#x27; is True.
634 &quot;A String&quot;,
635 ],
636 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700638 &quot;spec&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Proposed (or dry run) ServicePerimeter configuration. This configuration
639 # allows to specify and test ServicePerimeter configuration without enforcing
640 # actual access restrictions. Only allowed to be set when the
641 # &quot;use_explicit_dry_run_spec&quot; flag is set.
642 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700643 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
644 # Currently only projects are allowed. Format: `projects/{project_number}`
645 &quot;A String&quot;,
646 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
648 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
649 # must be in the same policy as this `ServicePerimeter`. Referencing a
650 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
651 # listed, resources within the perimeter can only be accessed via Google
652 # Cloud calls with request origins within the perimeter. Example:
653 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
654 # For Service Perimeter Bridge, must be empty.
655 &quot;A String&quot;,
656 ],
657 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
658 # restrictions. For example, if `storage.googleapis.com` is specified, access
659 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
660 # access restrictions.
661 &quot;A String&quot;,
662 ],
663 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
664 # Perimeter.
665 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
666 # APIs specified in &#x27;allowed_services&#x27;.
667 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
668 # unless &#x27;enable_restriction&#x27; is True.
669 &quot;A String&quot;,
670 ],
671 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700673 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700674 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700675 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token to retrieve the next page of results. If the value is
676 # empty, no further results remain.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700677 }</pre>
678</div>
679
680<div class="method">
681 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
682 <pre>Retrieves the next page of results.
683
684Args:
685 previous_request: The request for the previous page. (required)
686 previous_response: The response from the request for the previous page. (required)
687
688Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700689 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700690 page. Returns None if there are no more items in the collection.
691 </pre>
692</div>
693
694<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700695 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
696 <pre>Update a Service Perimeter. The
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700697longrunning operation from this RPC will have a successful status once the
698changes to the Service Perimeter have
699propagated to long-lasting storage. Service Perimeter containing
700errors will result in an error response for the first error encountered.
701
702Args:
703 name: string, Required. Resource name for the ServicePerimeter. The `short_name`
Bu Sun Kim65020912020-05-20 12:08:20 -0700704component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700705Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700706 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700707 The object takes the form of:
708
Dan O'Mearadd494642020-05-01 07:42:23 -0700709{ # `ServicePerimeter` describes a set of Google Cloud resources which can freely
710 # import and export data amongst themselves, but not export outside of the
711 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
712 # has a target outside of the `ServicePerimeter`, the request will be blocked.
713 # Otherwise the request is allowed. There are two types of Service Perimeter -
714 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
715 # Google Cloud project can only belong to a single regular Service Perimeter.
716 # Service Perimeter Bridges can contain only Google Cloud projects as members,
717 # a single Google Cloud project may belong to multiple Service Perimeter
718 # Bridges.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700719 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
720 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
721 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
722 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
723 # allowed to be a member of single regular perimeter, but multiple service
724 # perimeter bridges. A project cannot be a included in a perimeter bridge
725 # without being included in regular perimeter. For perimeter bridges,
726 # the restricted service list as well as access level lists must be
727 # empty.
728 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 &quot;useExplicitDryRunSpec&quot;: True or False, # Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly
730 # exists for all Service Perimeters, and that spec is identical to the
731 # status for those Service Perimeters. When this flag is set, it inhibits the
732 # generation of the implicit spec, thereby allowing the user to explicitly
733 # provide a configuration (&quot;spec&quot;) to use in a dry-run version of the Service
734 # Perimeter. This allows the user to test changes to the enforced config
735 # (&quot;status&quot;) without actually enforcing them. This testing is done through
736 # analyzing the differences between currently enforced and suggested
737 # restrictions. use_explicit_dry_run_spec must bet set to True if any of the
738 # fields in the spec are set to non-default values.
739 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
740 # behavior.
741 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
Dan O'Mearadd494642020-05-01 07:42:23 -0700742 # restricted services and access levels that determine perimeter
743 # content and boundaries.
744 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700745 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
746 # Currently only projects are allowed. Format: `projects/{project_number}`
747 &quot;A String&quot;,
748 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
Dan O'Mearadd494642020-05-01 07:42:23 -0700750 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
751 # must be in the same policy as this `ServicePerimeter`. Referencing a
752 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
753 # listed, resources within the perimeter can only be accessed via Google
754 # Cloud calls with request origins within the perimeter. Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700755 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700756 # For Service Perimeter Bridge, must be empty.
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;A String&quot;,
758 ],
759 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
760 # restrictions. For example, if `storage.googleapis.com` is specified, access
761 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
762 # access restrictions.
763 &quot;A String&quot;,
764 ],
765 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
766 # Perimeter.
767 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
768 # APIs specified in &#x27;allowed_services&#x27;.
769 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
770 # unless &#x27;enable_restriction&#x27; is True.
771 &quot;A String&quot;,
772 ],
773 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700774 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700775 &quot;spec&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Proposed (or dry run) ServicePerimeter configuration. This configuration
776 # allows to specify and test ServicePerimeter configuration without enforcing
777 # actual access restrictions. Only allowed to be set when the
778 # &quot;use_explicit_dry_run_spec&quot; flag is set.
779 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700780 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
781 # Currently only projects are allowed. Format: `projects/{project_number}`
782 &quot;A String&quot;,
783 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
785 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
786 # must be in the same policy as this `ServicePerimeter`. Referencing a
787 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
788 # listed, resources within the perimeter can only be accessed via Google
789 # Cloud calls with request origins within the perimeter. Example:
790 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
791 # For Service Perimeter Bridge, must be empty.
792 &quot;A String&quot;,
793 ],
794 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
795 # restrictions. For example, if `storage.googleapis.com` is specified, access
796 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
797 # access restrictions.
798 &quot;A String&quot;,
799 ],
800 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
801 # Perimeter.
802 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
803 # APIs specified in &#x27;allowed_services&#x27;.
804 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
805 # unless &#x27;enable_restriction&#x27; is True.
806 &quot;A String&quot;,
807 ],
808 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700809 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700810}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700811
812 updateMask: string, Required. Mask to control which fields get updated. Must be non-empty.
813 x__xgafv: string, V1 error format.
814 Allowed values
815 1 - v1 error format
816 2 - v2 error format
817
818Returns:
819 An object of the form:
820
821 { # This resource represents a long-running operation that is the result of a
822 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700823 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
824 # originally returns it. If you use the default HTTP mapping, the
825 # `name` should be a resource name ending with `operations/{unique_id}`.
826 &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.
827 # different programming environments, including REST APIs and RPC APIs. It is
828 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
829 # three pieces of data: error code, error message, and error details.
830 #
831 # You can find out more about this error model and how to work with it in the
832 # [API Design Guide](https://cloud.google.com/apis/design/errors).
833 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
834 # user-facing error message should be localized and sent in the
835 # google.rpc.Status.details field, or localized by the client.
836 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
837 # message types for APIs to use.
838 {
839 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
840 },
841 ],
842 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
843 },
844 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
845 # contains progress information and common metadata such as create time.
846 # Some services might not provide such metadata. Any method that returns a
847 # long-running operation should document the metadata type, if any.
848 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
849 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700851 # If `true`, the operation is completed, and either `error` or `response` is
852 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700854 # method returns no data on success, such as `Delete`, the response is
855 # `google.protobuf.Empty`. If the original method is standard
856 # `Get`/`Create`/`Update`, the response should be the resource. For other
857 # methods, the response should have the type `XxxResponse`, where `Xxx`
858 # is the original method name. For example, if the original method name
859 # is `TakeSnapshot()`, the inferred response type is
860 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700861 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700862 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700863 }</pre>
864</div>
865
Dan O'Mearadd494642020-05-01 07:42:23 -0700866<div class="method">
867 <code class="details" id="replaceAll">replaceAll(parent, body=None, x__xgafv=None)</code>
868 <pre>Replace all existing Service Perimeters in an
869Access Policy
870with the Service Perimeters provided.
871This is done atomically. The longrunning operation from this
872RPC will have a successful status once all replacements have propagated to
873long-lasting storage. Replacements containing errors will result in an
874error response for the first error encountered. Replacement will be
875cancelled on error, existing Service Perimeters will not be
876affected. Operation.response field will contain
877ReplaceServicePerimetersResponse.
878
879Args:
880 parent: string, Required. Resource name for the access policy which owns these
881Service Perimeters.
882
883Format: `accessPolicies/{policy_id}` (required)
884 body: object, The request body.
885 The object takes the form of:
886
887{ # A request to replace all existing Service Perimeters in an Access Policy
888 # with the Service Perimeters provided. This is done atomically.
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;servicePerimeters&quot;: [ # Required. The desired Service Perimeters that should
Dan O'Mearadd494642020-05-01 07:42:23 -0700890 # replace all existing Service Perimeters in the
891 # Access Policy.
892 { # `ServicePerimeter` describes a set of Google Cloud resources which can freely
893 # import and export data amongst themselves, but not export outside of the
894 # `ServicePerimeter`. If a request with a source within this `ServicePerimeter`
895 # has a target outside of the `ServicePerimeter`, the request will be blocked.
896 # Otherwise the request is allowed. There are two types of Service Perimeter -
897 # Regular and Bridge. Regular Service Perimeters cannot overlap, a single
898 # Google Cloud project can only belong to a single regular Service Perimeter.
899 # Service Perimeter Bridges can contain only Google Cloud projects as members,
900 # a single Google Cloud project may belong to multiple Service Perimeter
901 # Bridges.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700902 &quot;name&quot;: &quot;A String&quot;, # Required. Resource name for the ServicePerimeter. The `short_name`
903 # component must begin with a letter and only include alphanumeric and &#x27;_&#x27;.
904 # Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
905 &quot;perimeterType&quot;: &quot;A String&quot;, # Perimeter type indicator. A single project is
906 # allowed to be a member of single regular perimeter, but multiple service
907 # perimeter bridges. A project cannot be a included in a perimeter bridge
908 # without being included in regular perimeter. For perimeter bridges,
909 # the restricted service list as well as access level lists must be
910 # empty.
911 &quot;title&quot;: &quot;A String&quot;, # Human readable title. Must be unique within the Policy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700912 &quot;useExplicitDryRunSpec&quot;: True or False, # Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly
913 # exists for all Service Perimeters, and that spec is identical to the
914 # status for those Service Perimeters. When this flag is set, it inhibits the
915 # generation of the implicit spec, thereby allowing the user to explicitly
916 # provide a configuration (&quot;spec&quot;) to use in a dry-run version of the Service
917 # Perimeter. This allows the user to test changes to the enforced config
918 # (&quot;status&quot;) without actually enforcing them. This testing is done through
919 # analyzing the differences between currently enforced and suggested
920 # restrictions. use_explicit_dry_run_spec must bet set to True if any of the
921 # fields in the spec are set to non-default values.
922 &quot;description&quot;: &quot;A String&quot;, # Description of the `ServicePerimeter` and its use. Does not affect
923 # behavior.
924 &quot;status&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Current ServicePerimeter configuration. Specifies sets of resources,
Dan O'Mearadd494642020-05-01 07:42:23 -0700925 # restricted services and access levels that determine perimeter
926 # content and boundaries.
927 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700928 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
929 # Currently only projects are allowed. Format: `projects/{project_number}`
930 &quot;A String&quot;,
931 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700932 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
Dan O'Mearadd494642020-05-01 07:42:23 -0700933 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
934 # must be in the same policy as this `ServicePerimeter`. Referencing a
935 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
936 # listed, resources within the perimeter can only be accessed via Google
937 # Cloud calls with request origins within the perimeter. Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700938 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700939 # For Service Perimeter Bridge, must be empty.
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 &quot;A String&quot;,
941 ],
942 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
943 # restrictions. For example, if `storage.googleapis.com` is specified, access
944 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
945 # access restrictions.
946 &quot;A String&quot;,
947 ],
948 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
949 # Perimeter.
950 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
951 # APIs specified in &#x27;allowed_services&#x27;.
952 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
953 # unless &#x27;enable_restriction&#x27; is True.
954 &quot;A String&quot;,
955 ],
956 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700957 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 &quot;spec&quot;: { # `ServicePerimeterConfig` specifies a set of Google Cloud resources that # Proposed (or dry run) ServicePerimeter configuration. This configuration
959 # allows to specify and test ServicePerimeter configuration without enforcing
960 # actual access restrictions. Only allowed to be set when the
961 # &quot;use_explicit_dry_run_spec&quot; flag is set.
962 # describe specific Service Perimeter configuration.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700963 &quot;resources&quot;: [ # A list of Google Cloud resources that are inside of the service perimeter.
964 # Currently only projects are allowed. Format: `projects/{project_number}`
965 &quot;A String&quot;,
966 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 &quot;accessLevels&quot;: [ # A list of `AccessLevel` resource names that allow resources within the
968 # `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed
969 # must be in the same policy as this `ServicePerimeter`. Referencing a
970 # nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are
971 # listed, resources within the perimeter can only be accessed via Google
972 # Cloud calls with request origins within the perimeter. Example:
973 # `&quot;accessPolicies/MY_POLICY/accessLevels/MY_LEVEL&quot;`.
974 # For Service Perimeter Bridge, must be empty.
975 &quot;A String&quot;,
976 ],
977 &quot;restrictedServices&quot;: [ # Google Cloud services that are subject to the Service Perimeter
978 # restrictions. For example, if `storage.googleapis.com` is specified, access
979 # to the storage buckets inside the perimeter must meet the perimeter&#x27;s
980 # access restrictions.
981 &quot;A String&quot;,
982 ],
983 &quot;vpcAccessibleServices&quot;: { # Specifies how APIs are allowed to communicate within the Service # Configuration for APIs allowed within Perimeter.
984 # Perimeter.
985 &quot;enableRestriction&quot;: True or False, # Whether to restrict API calls within the Service Perimeter to the list of
986 # APIs specified in &#x27;allowed_services&#x27;.
987 &quot;allowedServices&quot;: [ # The list of APIs usable within the Service Perimeter. Must be empty
988 # unless &#x27;enable_restriction&#x27; is True.
989 &quot;A String&quot;,
990 ],
991 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700993 },
994 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700995 &quot;etag&quot;: &quot;A String&quot;, # Optional. The etag for the version of the Access Policy that this
996 # replace operation is to be performed on. If, at the time of replace, the
997 # etag for the Access Policy stored in Access Context Manager is different
998 # from the specified etag, then the replace operation will not be performed
999 # and the call will fail. This field is not required. If etag is not
1000 # provided, the operation will be performed as if a valid etag is provided.
Dan O'Mearadd494642020-05-01 07:42:23 -07001001 }
1002
1003 x__xgafv: string, V1 error format.
1004 Allowed values
1005 1 - v1 error format
1006 2 - v2 error format
1007
1008Returns:
1009 An object of the form:
1010
1011 { # This resource represents a long-running operation that is the result of a
1012 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001013 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1014 # originally returns it. If you use the default HTTP mapping, the
1015 # `name` should be a resource name ending with `operations/{unique_id}`.
1016 &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.
1017 # different programming environments, including REST APIs and RPC APIs. It is
1018 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1019 # three pieces of data: error code, error message, and error details.
1020 #
1021 # You can find out more about this error model and how to work with it in the
1022 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1023 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1024 # user-facing error message should be localized and sent in the
1025 # google.rpc.Status.details field, or localized by the client.
1026 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1027 # message types for APIs to use.
1028 {
1029 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1030 },
1031 ],
1032 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1033 },
1034 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1035 # contains progress information and common metadata such as create time.
1036 # Some services might not provide such metadata. Any method that returns a
1037 # long-running operation should document the metadata type, if any.
1038 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1039 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001040 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -07001041 # If `true`, the operation is completed, and either `error` or `response` is
1042 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001043 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07001044 # method returns no data on success, such as `Delete`, the response is
1045 # `google.protobuf.Empty`. If the original method is standard
1046 # `Get`/`Create`/`Update`, the response should be the resource. For other
1047 # methods, the response should have the type `XxxResponse`, where `Xxx`
1048 # is the original method name. For example, if the original method name
1049 # is `TakeSnapshot()`, the inferred response type is
1050 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001051 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07001052 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001053 }</pre>
1054</div>
1055
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001056</body></html>