-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_group.go
46 lines (36 loc) · 1.26 KB
/
model_group.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Apache JAMES Web Admin API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 3.8.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
// checks if the Group type satisfies the MappedNullable interface at compile time
// Group struct for Group
type Group struct {
// The address of the group
GroupAddr string `json:"groupAddr"`
// List of member addresses in the group
MemberAddrs []string `json:"memberAddrs"`
}
type _Group Group
// NewGroup instantiates a new Group object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewGroup(groupAddr string, memberAddrs []string) *Group {
this := Group{}
this.GroupAddr = groupAddr
this.MemberAddrs = memberAddrs
return &this
}
type GroupMemberPair struct {
GroupAddress string `json:"groupAddr"`
MemberAddress string `json:"memberAddr"`
}
func NewGroupMemberPair(groupAddr string, memberAddr string) GroupMemberPair {
this := GroupMemberPair{}
this.GroupAddress = groupAddr
this.MemberAddress = memberAddr
return this
}