MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/scion / UpdateMaxUses

Method UpdateMaxUses

pkg/ent/invitecode_create.go:910–914  ·  view source on GitHub ↗

UpdateMaxUses sets the "max_uses" field to the value that was provided on create.

()

Source from the content-addressed store, hash-verified

908
909// UpdateMaxUses sets the "max_uses" field to the value that was provided on create.
910func (u *InviteCodeUpsertBulk) UpdateMaxUses() *InviteCodeUpsertBulk {
911 return u.Update(func(s *InviteCodeUpsert) {
912 s.UpdateMaxUses()
913 })
914}
915
916// SetUseCount sets the "use_count" field.
917func (u *InviteCodeUpsertBulk) SetUseCount(v int) *InviteCodeUpsertBulk {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected