Class: Latitude::API::Resources::Team

Inherits:
APIResource show all
Extended by:
Operations::Create, Operations::Update
Defined in:
lib/latitude/api/resources/team.rb

Defined Under Namespace

Classes: Member, User

Constant Summary

Constants inherited from APIResource

APIResource::READ_ONLY_ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#id, #meta, #path_params, #raw_data, #type

Class Method Summary collapse

Methods included from Operations::Create

create

Methods included from Operations::Update

update

Methods inherited from APIResource

#==, #[], #[]=, #as_json, #attributes, #changed?, class_url, config_source, construct_from, #delete, execute_request, extract_path_params, #hash, id_prefix, #initialize, #inspect, instance_url, #method_missing, path_param_keys, #refresh, resource_path, resource_type, #resource_url, #respond_to_missing?, #save, #to_h, #unsaved_attributes, with_config, #write_attribute

Methods included from Attributes::ClassMethods

#attribute, #attribute_specs

Methods included from Attributes::InstanceMethods

#attribute_spec, #read_attribute, #wrap_attribute

Constructor Details

This class inherits a constructor from Latitude::API::APIResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Latitude::API::APIResource

Instance Attribute Details

#addressString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#billingLatitude::API::Objects::Billing



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#created_atObject (readonly)



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#currencyString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#customer_billing_idString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#emailObject



# File 'lib/latitude/api/resources/team.rb', line 109


#enforce_mfaBoolean



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#feature_flagsArray



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#first_nameObject



# File 'lib/latitude/api/resources/team.rb', line 101


#last_login_atObject



# File 'lib/latitude/api/resources/team.rb', line 125


#last_nameObject



# File 'lib/latitude/api/resources/team.rb', line 105


#limitsLatitude::API::Objects::Limits



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#mfa_enabledObject



# File 'lib/latitude/api/resources/team.rb', line 113


#nameString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#ownerLatitude::API::Objects::User



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#projectsArray



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#referred_codeString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#roleObject



# File 'lib/latitude/api/resources/team.rb', line 129


#slugString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#statusString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#tokenString



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#updated_atObject (readonly)



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

#usersArray<User>



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/latitude/api/resources/team.rb', line 40

class Team < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] first_name
    #   @return [String]
    # @!attribute [r] last_name
    #   @return [String]
    # @!attribute [r] email
    #   @return [String]
    # @!attribute [r] created_at
    #   @return [Time]
    # @!attribute [r] updated_at
    #   @return [Time]
    # @!attribute [r] role
    #   @return [Latitude::API::Objects::Role]
  class User < APIObject
    attribute :id, :string, read_only: true
    attribute :first_name, :string, read_only: true
    attribute :last_name, :string, read_only: true
    attribute :email, :string, read_only: true
    attribute :created_at, :time, read_only: true
    attribute :updated_at, :time, read_only: true
    attribute :role, Objects::Role, read_only: true
  end

  attribute :name, :string
  attribute :slug, :string
  attribute :address, :string
  attribute :currency, :string
  attribute :enforce_mfa, :boolean
  attribute :referred_code, :string
  attribute :created_at, :time, read_only: true
  attribute :updated_at, :time, read_only: true
  attribute :status, :string
  attribute :users, [User]
  attribute :projects, :array
  attribute :owner, Objects::User
  attribute :billing, Objects::Billing
  attribute :feature_flags, :array
  attribute :limits, Objects::Limits
  attribute :token, :string
  attribute :customer_billing_id, :string

  resource_type "teams"
  resource_path "/team"
  id_prefix     "team_"

  extend Operations::Create
  extend Operations::Update

  class << self
    def retrieve(opts = {})
      parsed = execute_request(method: :get, path: resource_path, opts: opts)
      construct_from(parsed, opts: opts)
    end

    def members
      Member
    end
  end

  # @!attribute [rw] first_name

  #   @return [String]

  # @!attribute [rw] last_name

  #   @return [String]

  # @!attribute [rw] email

  #   @return [String]

  # @!attribute [rw] mfa_enabled

  #   @return [Boolean]

  # @!attribute [r] created_at

  #   @return [Time]

  # @!attribute [r] updated_at

  #   @return [Time]

  # @!attribute [rw] last_login_at

  #   @return [Time]

  # @!attribute [rw] role

  #   @return [Latitude::API::Objects::Role]

  class Member < APIResource

    attribute :first_name, :string

    attribute :last_name, :string

    attribute :email, :string

    attribute :mfa_enabled, :boolean

    attribute :created_at, :time, read_only: true

    attribute :updated_at, :time, read_only: true

    attribute :last_login_at, :time

    attribute :role, Objects::Role

    resource_type "memberships"
    resource_path "/team/members"
    id_prefix     "user_"

    extend Operations::List
    extend Operations::Delete

    class << self
      def create(params = {}, opts = {})
        body = JSONAPI.encode(type: "teams", attributes: params)
        parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
        construct_from(parsed, opts: opts)
      end
    end
  end
end

Class Method Details

.membersObject



96
97
98
# File 'lib/latitude/api/resources/team.rb', line 96

def members
  Member
end

.retrieve(opts = {}) ⇒ Object



91
92
93
94
# File 'lib/latitude/api/resources/team.rb', line 91

def retrieve(opts = {})
  parsed = execute_request(method: :get, path: resource_path, opts: opts)
  construct_from(parsed, opts: opts)
end