Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1444,11 +1444,11 @@ async def get_custom_constraint(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> constraint.CustomConstraint:
r"""Gets a custom constraint.
r"""Gets a custom or managed constraint.

Returns a ``google.rpc.Status`` with
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
exist.
``google.rpc.Code.NOT_FOUND`` if the custom or managed
constraint does not exist.

.. code-block:: python

Expand Down Expand Up @@ -1483,8 +1483,9 @@ async def sample_get_custom_constraint():
method.
name (:class:`str`):
Required. Resource name of the custom
constraint. See the custom constraint
entry for naming requirements.
or managed constraint. See the custom
constraint entry for naming
requirements.

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -1623,8 +1624,8 @@ async def sample_list_custom_constraints():
google.cloud.orgpolicy_v2.services.org_policy.pagers.ListCustomConstraintsAsyncPager:
The response returned from the [ListCustomConstraints]
[google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints]
method. It will be empty if no custom constraints are
set on the organization resource.
method. It will be empty if no custom or managed
constraints are set on the organization resource.

Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1871,11 +1871,11 @@ def get_custom_constraint(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> constraint.CustomConstraint:
r"""Gets a custom constraint.
r"""Gets a custom or managed constraint.

Returns a ``google.rpc.Status`` with
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
exist.
``google.rpc.Code.NOT_FOUND`` if the custom or managed
constraint does not exist.

.. code-block:: python

Expand Down Expand Up @@ -1910,8 +1910,9 @@ def sample_get_custom_constraint():
method.
name (str):
Required. Resource name of the custom
constraint. See the custom constraint
entry for naming requirements.
or managed constraint. See the custom
constraint entry for naming
requirements.

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down Expand Up @@ -2047,8 +2048,8 @@ def sample_list_custom_constraints():
google.cloud.orgpolicy_v2.services.org_policy.pagers.ListCustomConstraintsPager:
The response returned from the [ListCustomConstraints]
[google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints]
method. It will be empty if no custom constraints are
set on the organization resource.
method. It will be empty if no custom or managed
constraints are set on the organization resource.

Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,11 @@ def get_custom_constraint(
) -> Callable[[orgpolicy.GetCustomConstraintRequest], constraint.CustomConstraint]:
r"""Return a callable for the get custom constraint method over gRPC.

Gets a custom constraint.
Gets a custom or managed constraint.

Returns a ``google.rpc.Status`` with
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
exist.
``google.rpc.Code.NOT_FOUND`` if the custom or managed
constraint does not exist.

Returns:
Callable[[~.GetCustomConstraintRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,11 @@ def get_custom_constraint(
]:
r"""Return a callable for the get custom constraint method over gRPC.

Gets a custom constraint.
Gets a custom or managed constraint.

Returns a ``google.rpc.Status`` with
``google.rpc.Code.NOT_FOUND`` if the custom constraint does not
exist.
``google.rpc.Code.NOT_FOUND`` if the custom or managed
constraint does not exist.

Returns:
Callable[[~.GetCustomConstraintRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1978,8 +1978,8 @@ def __call__(
~.orgpolicy.ListCustomConstraintsResponse:
The response returned from the [ListCustomConstraints]
[google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints]
method. It will be empty if no custom constraints are
set on the organization resource.
method. It will be empty if no custom or managed
constraints are set on the organization resource.

"""

Expand Down
Loading