Struct ListPolicyBindingsRequest (0.5.0)

ListPolicyBindings 方法的请求消息。

字段

父级

必需。拥有政策绑定集合的父级资源。

格式:

  • projects/{project_id}/locations/{location}
  • projects/{project_number}/locations/{location}
  • folders/{folder_id}/locations/{location}
  • organizations/{organization_id}/locations/{location}

page_size

可选。要返回的政策绑定数量上限。服务返回的数量可能小于此值。

如果未指定,则最多返回 50 个政策绑定。 最大值为 1,000;大于 1,000 的值将被强制转换为 1,000。

page_token

可选。从之前的 ListPolicyBindings 调用中收到的页面令牌。 利用其进行后续页面检索。

进行分页时,提供给 ListPolicyBindings 的所有其他参数必须与提供页面令牌的调用相一致。

过滤条件

可选。用于过滤请求结果的表达式。过滤规则不区分大小写。一些适合过滤的字段包括:

  • target
  • policy

下面列举了一些过滤查询示例:

  • target:ex*:绑定目标的名称以“ex”开头。
  • target:example:绑定目标的名称为 example。
  • policy:example:绑定政策的名称为 example。

实现

新

 fn new() -> Self

set_parent

 fn set_parent<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

设置 [parent][crate::model::ListPolicyBindingsRequest::parent] 的值。

set_page_size

 fn set_page_size<T: std::convert::Into<i32>>(self, v: T) -> Self

设置 [page_size][crate::model::ListPolicyBindingsRequest::page_size] 的值。

set_page_token

 fn set_page_token<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

设置 [page_token][crate::model::ListPolicyBindingsRequest::page_token] 的值。

set_filter

 fn set_filter<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

设置 [filter][crate::model::ListPolicyBindingsRequest::filter] 的值。