Skip to content

Commit 4bdcf07

Browse files
authored
Merge pull request #128 from Asana/openapi-sync
Generated from OpenAPI
2 parents f192e65 + d86c9e1 commit 4bdcf07

4 files changed

Lines changed: 524 additions & 2 deletions

File tree

samples/AttachmentsBaseSample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ attachmentsbase:
66
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
77
88
9-
Attachment result = client.attachments.createAttachmentForTask(taskGid)
9+
Attachment result = client.attachments.createAttachmentForTask(taskGid, file, url, name)
1010
.data("field", "value")
1111
.data("field", "value")
1212
.option("pretty", true)

samples/GoalsBaseSample.yaml

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
goalsbase:
2+
addFollowers: >-
3+
import com.asana.Client;
4+
5+
6+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
7+
8+
9+
JsonElement result = client.goals.addFollowers()
10+
.data("field", "value")
11+
.data("field", "value")
12+
.option("pretty", true)
13+
.execute();
14+
addSubgoal: >-
15+
import com.asana.Client;
16+
17+
18+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
19+
20+
21+
JsonElement result = client.goals.addSubgoal()
22+
.data("field", "value")
23+
.data("field", "value")
24+
.option("pretty", true)
25+
.execute();
26+
addSupportingWorkForGoal: >-
27+
import com.asana.Client;
28+
29+
30+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
31+
32+
33+
JsonElement result = client.goals.addSupportingWorkForGoal()
34+
.data("field", "value")
35+
.data("field", "value")
36+
.option("pretty", true)
37+
.execute();
38+
createGoalMetric: >-
39+
import com.asana.Client;
40+
41+
42+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
43+
44+
45+
JsonElement result = client.goals.createGoalMetric()
46+
.data("field", "value")
47+
.data("field", "value")
48+
.option("pretty", true)
49+
.execute();
50+
deleteGoal: >-
51+
import com.asana.Client;
52+
53+
54+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
55+
56+
57+
JsonElement result = client.goals.deleteGoal(goalGid)
58+
.option("pretty", true)
59+
.execute();
60+
getGoal: >-
61+
import com.asana.Client;
62+
63+
64+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
65+
66+
67+
JsonElement result = client.goals.getGoal(goalGid)
68+
.option("pretty", true)
69+
.execute();
70+
getGoals: >-
71+
import com.asana.Client;
72+
73+
74+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
75+
76+
77+
List<JsonElement> result = client.goals.getGoals(workspace, team, isWorkspaceLevel, project, portfolio)
78+
.option("pretty", true)
79+
.execute();
80+
getParentGoalsForGoal: >-
81+
import com.asana.Client;
82+
83+
84+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
85+
86+
87+
List<JsonElement> result = client.goals.getParentGoalsForGoal()
88+
.option("pretty", true)
89+
.execute();
90+
getSubgoalsForGoal: >-
91+
import com.asana.Client;
92+
93+
94+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
95+
96+
97+
List<JsonElement> result = client.goals.getSubgoalsForGoal()
98+
.option("pretty", true)
99+
.execute();
100+
removeFollowers: >-
101+
import com.asana.Client;
102+
103+
104+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
105+
106+
107+
JsonElement result = client.goals.removeFollowers()
108+
.data("field", "value")
109+
.data("field", "value")
110+
.option("pretty", true)
111+
.execute();
112+
removeSubgoal: >-
113+
import com.asana.Client;
114+
115+
116+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
117+
118+
119+
JsonElement result = client.goals.removeSubgoal()
120+
.data("field", "value")
121+
.data("field", "value")
122+
.option("pretty", true)
123+
.execute();
124+
removeSupportingWorkForGoal: >-
125+
import com.asana.Client;
126+
127+
128+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
129+
130+
131+
JsonElement result = client.goals.removeSupportingWorkForGoal()
132+
.data("field", "value")
133+
.data("field", "value")
134+
.option("pretty", true)
135+
.execute();
136+
supportingWork: >-
137+
import com.asana.Client;
138+
139+
140+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
141+
142+
143+
List<Project> result = client.goals.supportingWork()
144+
.option("pretty", true)
145+
.execute();
146+
updateGoal: >-
147+
import com.asana.Client;
148+
149+
150+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
151+
152+
153+
JsonElement result = client.goals.updateGoal(goalGid)
154+
.data("field", "value")
155+
.data("field", "value")
156+
.option("pretty", true)
157+
.execute();
158+
updateGoalMetric: >-
159+
import com.asana.Client;
160+
161+
162+
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");
163+
164+
165+
JsonElement result = client.goals.updateGoalMetric()
166+
.data("field", "value")
167+
.data("field", "value")
168+
.option("pretty", true)
169+
.execute();

0 commit comments

Comments
 (0)