asana 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.swagger-codegen-ignore +0 -1
  3. data/.travis.yml +1 -0
  4. data/Gemfile +2 -0
  5. data/VERSION +1 -0
  6. data/asana.gemspec +1 -1
  7. data/examples/Gemfile.lock +10 -10
  8. data/lib/asana/resource_includes/attachment_uploading.rb +14 -7
  9. data/lib/asana/resources/gen/projects_base.rb +1 -1
  10. data/lib/asana/resources/gen/tags_base.rb +14 -0
  11. data/lib/asana/resources/gen/tasks_base.rb +3 -2
  12. data/lib/asana/resources/gen/users_base.rb +1 -1
  13. data/lib/asana/version.rb +1 -1
  14. data/samples/attachments_sample.yaml +41 -0
  15. data/samples/batch_api_sample.yaml +11 -0
  16. data/samples/custom_field_settings_sample.yaml +21 -0
  17. data/samples/custom_fields_sample.yaml +81 -0
  18. data/samples/events_sample.yaml +11 -0
  19. data/samples/jobs_sample.yaml +11 -0
  20. data/samples/organization_exports_sample.yaml +21 -0
  21. data/samples/portfolio_memberships_sample.yaml +31 -0
  22. data/samples/portfolios_sample.yaml +121 -0
  23. data/samples/project_memberships_sample.yaml +21 -0
  24. data/samples/project_statuses_sample.yaml +41 -0
  25. data/samples/projects_sample.yaml +181 -0
  26. data/samples/sections_sample.yaml +71 -0
  27. data/samples/stories_sample.yaml +51 -0
  28. data/samples/tags_sample.yaml +81 -0
  29. data/samples/tasks_sample.yaml +261 -0
  30. data/samples/team_memberships_sample.yaml +41 -0
  31. data/samples/teams_sample.yaml +51 -0
  32. data/samples/typeahead_sample.yaml +11 -0
  33. data/samples/user_task_lists_sample.yaml +21 -0
  34. data/samples/users_sample.yaml +51 -0
  35. data/samples/webhooks_sample.yaml +41 -0
  36. data/samples/workspace_memberships_sample.yaml +31 -0
  37. data/samples/workspaces_sample.yaml +51 -0
  38. data/swagger_templates/api_doc.mustache +12 -0
  39. data/swagger_templates/ruby-config.json +1 -2
  40. metadata +34 -9
@@ -0,0 +1,21 @@
1
+ projectmemberships:
2
+ get_project_membership: >-
3
+ require 'asana'
4
+
5
+
6
+ client = Asana::Client.new do |c|
7
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
8
+ end
9
+
10
+
11
+ result = client.project_memberships.get_project_membership(project_membership_gid: 'project_membership_gid', param: "value", param: "value", options: {pretty: true})
12
+ get_project_memberships_for_project: >-
13
+ require 'asana'
14
+
15
+
16
+ client = Asana::Client.new do |c|
17
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
18
+ end
19
+
20
+
21
+ result = client.project_memberships.get_project_memberships_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
@@ -0,0 +1,41 @@
1
+ projectstatuses:
2
+ create_project_status_for_project: >-
3
+ require 'asana'
4
+
5
+
6
+ client = Asana::Client.new do |c|
7
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
8
+ end
9
+
10
+
11
+ result = client.project_statuses.create_project_status_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
12
+ delete_project_status: >-
13
+ require 'asana'
14
+
15
+
16
+ client = Asana::Client.new do |c|
17
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
18
+ end
19
+
20
+
21
+ result = client.project_statuses.delete_project_status(project_status_gid: 'project_status_gid', options: {pretty: true})
22
+ get_project_status: >-
23
+ require 'asana'
24
+
25
+
26
+ client = Asana::Client.new do |c|
27
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
28
+ end
29
+
30
+
31
+ result = client.project_statuses.get_project_status(project_status_gid: 'project_status_gid', param: "value", param: "value", options: {pretty: true})
32
+ get_project_statuses_for_project: >-
33
+ require 'asana'
34
+
35
+
36
+ client = Asana::Client.new do |c|
37
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
38
+ end
39
+
40
+
41
+ result = client.project_statuses.get_project_statuses_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
@@ -0,0 +1,181 @@
1
+ projects:
2
+ add_custom_field_setting_for_project: >-
3
+ require 'asana'
4
+
5
+
6
+ client = Asana::Client.new do |c|
7
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
8
+ end
9
+
10
+
11
+ result = client.projects.add_custom_field_setting_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
12
+ add_followers_for_project: >-
13
+ require 'asana'
14
+
15
+
16
+ client = Asana::Client.new do |c|
17
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
18
+ end
19
+
20
+
21
+ result = client.projects.add_followers_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
22
+ add_members_for_project: >-
23
+ require 'asana'
24
+
25
+
26
+ client = Asana::Client.new do |c|
27
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
28
+ end
29
+
30
+
31
+ result = client.projects.add_members_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
32
+ create_project: >-
33
+ require 'asana'
34
+
35
+
36
+ client = Asana::Client.new do |c|
37
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
38
+ end
39
+
40
+
41
+ result = client.projects.create_project(field: "value", field: "value", options: {pretty: true})
42
+ create_project_for_team: >-
43
+ require 'asana'
44
+
45
+
46
+ client = Asana::Client.new do |c|
47
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
48
+ end
49
+
50
+
51
+ result = client.projects.create_project_for_team(team_gid: 'team_gid', field: "value", field: "value", options: {pretty: true})
52
+ create_project_for_workspace: >-
53
+ require 'asana'
54
+
55
+
56
+ client = Asana::Client.new do |c|
57
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
58
+ end
59
+
60
+
61
+ result = client.projects.create_project_for_workspace(workspace_gid: 'workspace_gid', field: "value", field: "value", options: {pretty: true})
62
+ delete_project: >-
63
+ require 'asana'
64
+
65
+
66
+ client = Asana::Client.new do |c|
67
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
68
+ end
69
+
70
+
71
+ result = client.projects.delete_project(project_gid: 'project_gid', options: {pretty: true})
72
+ duplicate_project: >-
73
+ require 'asana'
74
+
75
+
76
+ client = Asana::Client.new do |c|
77
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
78
+ end
79
+
80
+
81
+ result = client.projects.duplicate_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
82
+ get_project: >-
83
+ require 'asana'
84
+
85
+
86
+ client = Asana::Client.new do |c|
87
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
88
+ end
89
+
90
+
91
+ result = client.projects.get_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
92
+ get_projects: >-
93
+ require 'asana'
94
+
95
+
96
+ client = Asana::Client.new do |c|
97
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
98
+ end
99
+
100
+
101
+ result = client.projects.get_projects(param: "value", param: "value", options: {pretty: true})
102
+ get_projects_for_task: >-
103
+ require 'asana'
104
+
105
+
106
+ client = Asana::Client.new do |c|
107
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
108
+ end
109
+
110
+
111
+ result = client.projects.get_projects_for_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
112
+ get_projects_for_team: >-
113
+ require 'asana'
114
+
115
+
116
+ client = Asana::Client.new do |c|
117
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
118
+ end
119
+
120
+
121
+ result = client.projects.get_projects_for_team(team_gid: 'team_gid', param: "value", param: "value", options: {pretty: true})
122
+ get_projects_for_workspace: >-
123
+ require 'asana'
124
+
125
+
126
+ client = Asana::Client.new do |c|
127
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
128
+ end
129
+
130
+
131
+ result = client.projects.get_projects_for_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
132
+ get_task_counts_for_project: >-
133
+ require 'asana'
134
+
135
+
136
+ client = Asana::Client.new do |c|
137
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
138
+ end
139
+
140
+
141
+ result = client.projects.get_task_counts_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
142
+ remove_custom_field_setting_for_project: >-
143
+ require 'asana'
144
+
145
+
146
+ client = Asana::Client.new do |c|
147
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
148
+ end
149
+
150
+
151
+ result = client.projects.remove_custom_field_setting_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
152
+ remove_followers_for_project: >-
153
+ require 'asana'
154
+
155
+
156
+ client = Asana::Client.new do |c|
157
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
158
+ end
159
+
160
+
161
+ result = client.projects.remove_followers_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
162
+ remove_members_for_project: >-
163
+ require 'asana'
164
+
165
+
166
+ client = Asana::Client.new do |c|
167
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
168
+ end
169
+
170
+
171
+ result = client.projects.remove_members_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
172
+ update_project: >-
173
+ require 'asana'
174
+
175
+
176
+ client = Asana::Client.new do |c|
177
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
178
+ end
179
+
180
+
181
+ result = client.projects.update_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
@@ -0,0 +1,71 @@
1
+ sections:
2
+ add_task_for_section: >-
3
+ require 'asana'
4
+
5
+
6
+ client = Asana::Client.new do |c|
7
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
8
+ end
9
+
10
+
11
+ result = client.sections.add_task_for_section(section_gid: 'section_gid', field: "value", field: "value", options: {pretty: true})
12
+ create_section_for_project: >-
13
+ require 'asana'
14
+
15
+
16
+ client = Asana::Client.new do |c|
17
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
18
+ end
19
+
20
+
21
+ result = client.sections.create_section_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
22
+ delete_section: >-
23
+ require 'asana'
24
+
25
+
26
+ client = Asana::Client.new do |c|
27
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
28
+ end
29
+
30
+
31
+ result = client.sections.delete_section(section_gid: 'section_gid', options: {pretty: true})
32
+ get_section: >-
33
+ require 'asana'
34
+
35
+
36
+ client = Asana::Client.new do |c|
37
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
38
+ end
39
+
40
+
41
+ result = client.sections.get_section(section_gid: 'section_gid', param: "value", param: "value", options: {pretty: true})
42
+ get_sections_for_project: >-
43
+ require 'asana'
44
+
45
+
46
+ client = Asana::Client.new do |c|
47
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
48
+ end
49
+
50
+
51
+ result = client.sections.get_sections_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
52
+ insert_section_for_project: >-
53
+ require 'asana'
54
+
55
+
56
+ client = Asana::Client.new do |c|
57
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
58
+ end
59
+
60
+
61
+ result = client.sections.insert_section_for_project(project_gid: 'project_gid', field: "value", field: "value", options: {pretty: true})
62
+ update_section: >-
63
+ require 'asana'
64
+
65
+
66
+ client = Asana::Client.new do |c|
67
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
68
+ end
69
+
70
+
71
+ result = client.sections.update_section(section_gid: 'section_gid', field: "value", field: "value", options: {pretty: true})
@@ -0,0 +1,51 @@
1
+ stories:
2
+ create_story_for_task: >-
3
+ require 'asana'
4
+
5
+
6
+ client = Asana::Client.new do |c|
7
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
8
+ end
9
+
10
+
11
+ result = client.stories.create_story_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
12
+ delete_story: >-
13
+ require 'asana'
14
+
15
+
16
+ client = Asana::Client.new do |c|
17
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
18
+ end
19
+
20
+
21
+ result = client.stories.delete_story(story_gid: 'story_gid', options: {pretty: true})
22
+ get_stories_for_task: >-
23
+ require 'asana'
24
+
25
+
26
+ client = Asana::Client.new do |c|
27
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
28
+ end
29
+
30
+
31
+ result = client.stories.get_stories_for_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
32
+ get_story: >-
33
+ require 'asana'
34
+
35
+
36
+ client = Asana::Client.new do |c|
37
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
38
+ end
39
+
40
+
41
+ result = client.stories.get_story(story_gid: 'story_gid', param: "value", param: "value", options: {pretty: true})
42
+ update_story: >-
43
+ require 'asana'
44
+
45
+
46
+ client = Asana::Client.new do |c|
47
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
48
+ end
49
+
50
+
51
+ result = client.stories.update_story(story_gid: 'story_gid', field: "value", field: "value", options: {pretty: true})
@@ -0,0 +1,81 @@
1
+ tags:
2
+ create_tag: >-
3
+ require 'asana'
4
+
5
+
6
+ client = Asana::Client.new do |c|
7
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
8
+ end
9
+
10
+
11
+ result = client.tags.create_tag(field: "value", field: "value", options: {pretty: true})
12
+ create_tag_for_workspace: >-
13
+ require 'asana'
14
+
15
+
16
+ client = Asana::Client.new do |c|
17
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
18
+ end
19
+
20
+
21
+ result = client.tags.create_tag_for_workspace(workspace_gid: 'workspace_gid', field: "value", field: "value", options: {pretty: true})
22
+ delete_tag: >-
23
+ require 'asana'
24
+
25
+
26
+ client = Asana::Client.new do |c|
27
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
28
+ end
29
+
30
+
31
+ result = client.tags.delete_tag(tag_gid: 'tag_gid', options: {pretty: true})
32
+ get_tag: >-
33
+ require 'asana'
34
+
35
+
36
+ client = Asana::Client.new do |c|
37
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
38
+ end
39
+
40
+
41
+ result = client.tags.get_tag(tag_gid: 'tag_gid', param: "value", param: "value", options: {pretty: true})
42
+ get_tags: >-
43
+ require 'asana'
44
+
45
+
46
+ client = Asana::Client.new do |c|
47
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
48
+ end
49
+
50
+
51
+ result = client.tags.get_tags(param: "value", param: "value", options: {pretty: true})
52
+ get_tags_for_task: >-
53
+ require 'asana'
54
+
55
+
56
+ client = Asana::Client.new do |c|
57
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
58
+ end
59
+
60
+
61
+ result = client.tags.get_tags_for_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
62
+ get_tags_for_workspace: >-
63
+ require 'asana'
64
+
65
+
66
+ client = Asana::Client.new do |c|
67
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
68
+ end
69
+
70
+
71
+ result = client.tags.get_tags_for_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
72
+ update_tag: >-
73
+ require 'asana'
74
+
75
+
76
+ client = Asana::Client.new do |c|
77
+ c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
78
+ end
79
+
80
+
81
+ result = client.tags.update_tag(tag_gid: 'tag_gid', field: "value", field: "value", options: {pretty: true})