Interface UpdateRoleMappings.Builder

  • Method Details

    • addOrUpdateRoleMappings

      UpdateRoleMappings.Builder addOrUpdateRoleMappings(Collection<ArgoCdRoleMapping> addOrUpdateRoleMappings)

      A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.

      Parameters:
      addOrUpdateRoleMappings - A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addOrUpdateRoleMappings

      UpdateRoleMappings.Builder addOrUpdateRoleMappings(ArgoCdRoleMapping... addOrUpdateRoleMappings)

      A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.

      Parameters:
      addOrUpdateRoleMappings - A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addOrUpdateRoleMappings

      UpdateRoleMappings.Builder addOrUpdateRoleMappings(Consumer<ArgoCdRoleMapping.Builder>... addOrUpdateRoleMappings)

      A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.

      This is a convenience method that creates an instance of the ArgoCdRoleMapping.Builder avoiding the need to create one manually via ArgoCdRoleMapping.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to addOrUpdateRoleMappings(List<ArgoCdRoleMapping>).

      Parameters:
      addOrUpdateRoleMappings - a consumer that will call methods on ArgoCdRoleMapping.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • removeRoleMappings

      UpdateRoleMappings.Builder removeRoleMappings(Collection<ArgoCdRoleMapping> removeRoleMappings)

      A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role ( ADMIN, EDITOR, or VIEWER) and the identities to remove from that role.

      Parameters:
      removeRoleMappings - A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (ADMIN, EDITOR, or VIEWER) and the identities to remove from that role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removeRoleMappings

      UpdateRoleMappings.Builder removeRoleMappings(ArgoCdRoleMapping... removeRoleMappings)

      A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role ( ADMIN, EDITOR, or VIEWER) and the identities to remove from that role.

      Parameters:
      removeRoleMappings - A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (ADMIN, EDITOR, or VIEWER) and the identities to remove from that role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removeRoleMappings

      UpdateRoleMappings.Builder removeRoleMappings(Consumer<ArgoCdRoleMapping.Builder>... removeRoleMappings)

      A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role ( ADMIN, EDITOR, or VIEWER) and the identities to remove from that role.

      This is a convenience method that creates an instance of the ArgoCdRoleMapping.Builder avoiding the need to create one manually via ArgoCdRoleMapping.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to removeRoleMappings(List<ArgoCdRoleMapping>).

      Parameters:
      removeRoleMappings - a consumer that will call methods on ArgoCdRoleMapping.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: