Skip to content

Commit ba8fd2e

Browse files
feat: Add managed constraints new fields (e.g. parameter) (#13801)
- [ ] Regenerate this pull request now. docs: updated comments PiperOrigin-RevId: 748671918 Source-Link: googleapis/googleapis@c759e92 Source-Link: googleapis/googleapis-gen@801eb04 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9yZy1wb2xpY3kvLk93bEJvdC55YW1sIiwiaCI6IjgwMWViMDRkYjI1NzgyMDNiYWZmMzAzYTFmZjlhODQ5OWJlZjA2NWIifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ae6a7c9 commit ba8fd2e

8 files changed

Lines changed: 307 additions & 59 deletions

File tree

packages/google-cloud-org-policy/google/cloud/orgpolicy_v2/services/org_policy/async_client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,11 +1444,11 @@ async def get_custom_constraint(
14441444
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
14451445
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
14461446
) -> constraint.CustomConstraint:
1447-
r"""Gets a custom constraint.
1447+
r"""Gets a custom or managed constraint.
14481448
14491449
Returns a ``google.rpc.Status`` with
1450-
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
1451-
exist.
1450+
``google.rpc.Code.NOT_FOUND`` if the custom or managed
1451+
constraint does not exist.
14521452
14531453
.. code-block:: python
14541454
@@ -1483,8 +1483,9 @@ async def sample_get_custom_constraint():
14831483
method.
14841484
name (:class:`str`):
14851485
Required. Resource name of the custom
1486-
constraint. See the custom constraint
1487-
entry for naming requirements.
1486+
or managed constraint. See the custom
1487+
constraint entry for naming
1488+
requirements.
14881489
14891490
This corresponds to the ``name`` field
14901491
on the ``request`` instance; if ``request`` is provided, this
@@ -1623,8 +1624,8 @@ async def sample_list_custom_constraints():
16231624
google.cloud.orgpolicy_v2.services.org_policy.pagers.ListCustomConstraintsAsyncPager:
16241625
The response returned from the [ListCustomConstraints]
16251626
[google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints]
1626-
method. It will be empty if no custom constraints are
1627-
set on the organization resource.
1627+
method. It will be empty if no custom or managed
1628+
constraints are set on the organization resource.
16281629
16291630
Iterating over this object will yield results and
16301631
resolve additional pages automatically.

packages/google-cloud-org-policy/google/cloud/orgpolicy_v2/services/org_policy/client.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,11 +1871,11 @@ def get_custom_constraint(
18711871
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
18721872
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
18731873
) -> constraint.CustomConstraint:
1874-
r"""Gets a custom constraint.
1874+
r"""Gets a custom or managed constraint.
18751875
18761876
Returns a ``google.rpc.Status`` with
1877-
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
1878-
exist.
1877+
``google.rpc.Code.NOT_FOUND`` if the custom or managed
1878+
constraint does not exist.
18791879
18801880
.. code-block:: python
18811881
@@ -1910,8 +1910,9 @@ def sample_get_custom_constraint():
19101910
method.
19111911
name (str):
19121912
Required. Resource name of the custom
1913-
constraint. See the custom constraint
1914-
entry for naming requirements.
1913+
or managed constraint. See the custom
1914+
constraint entry for naming
1915+
requirements.
19151916
19161917
This corresponds to the ``name`` field
19171918
on the ``request`` instance; if ``request`` is provided, this
@@ -2047,8 +2048,8 @@ def sample_list_custom_constraints():
20472048
google.cloud.orgpolicy_v2.services.org_policy.pagers.ListCustomConstraintsPager:
20482049
The response returned from the [ListCustomConstraints]
20492050
[google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints]
2050-
method. It will be empty if no custom constraints are
2051-
set on the organization resource.
2051+
method. It will be empty if no custom or managed
2052+
constraints are set on the organization resource.
20522053
20532054
Iterating over this object will yield results and
20542055
resolve additional pages automatically.

packages/google-cloud-org-policy/google/cloud/orgpolicy_v2/services/org_policy/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,11 @@ def get_custom_constraint(
627627
) -> Callable[[orgpolicy.GetCustomConstraintRequest], constraint.CustomConstraint]:
628628
r"""Return a callable for the get custom constraint method over gRPC.
629629
630-
Gets a custom constraint.
630+
Gets a custom or managed constraint.
631631
632632
Returns a ``google.rpc.Status`` with
633-
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
634-
exist.
633+
``google.rpc.Code.NOT_FOUND`` if the custom or managed
634+
constraint does not exist.
635635
636636
Returns:
637637
Callable[[~.GetCustomConstraintRequest],

packages/google-cloud-org-policy/google/cloud/orgpolicy_v2/services/org_policy/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,11 @@ def get_custom_constraint(
643643
]:
644644
r"""Return a callable for the get custom constraint method over gRPC.
645645
646-
Gets a custom constraint.
646+
Gets a custom or managed constraint.
647647
648648
Returns a ``google.rpc.Status`` with
649-
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
650-
exist.
649+
``google.rpc.Code.NOT_FOUND`` if the custom or managed
650+
constraint does not exist.
651651
652652
Returns:
653653
Callable[[~.GetCustomConstraintRequest],

packages/google-cloud-org-policy/google/cloud/orgpolicy_v2/services/org_policy/transports/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,8 +1978,8 @@ def __call__(
19781978
~.orgpolicy.ListCustomConstraintsResponse:
19791979
The response returned from the [ListCustomConstraints]
19801980
[google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints]
1981-
method. It will be empty if no custom constraints are
1982-
set on the organization resource.
1981+
method. It will be empty if no custom or managed
1982+
constraints are set on the organization resource.
19831983
19841984
"""
19851985

0 commit comments

Comments
 (0)