asana 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.swagger-codegen-ignore +0 -1
- data/.travis.yml +1 -0
- data/Gemfile +2 -0
- data/VERSION +1 -0
- data/asana.gemspec +1 -1
- data/examples/Gemfile.lock +10 -10
- data/lib/asana/resource_includes/attachment_uploading.rb +14 -7
- data/lib/asana/resources/gen/projects_base.rb +1 -1
- data/lib/asana/resources/gen/tags_base.rb +14 -0
- data/lib/asana/resources/gen/tasks_base.rb +3 -2
- data/lib/asana/resources/gen/users_base.rb +1 -1
- data/lib/asana/version.rb +1 -1
- data/samples/attachments_sample.yaml +41 -0
- data/samples/batch_api_sample.yaml +11 -0
- data/samples/custom_field_settings_sample.yaml +21 -0
- data/samples/custom_fields_sample.yaml +81 -0
- data/samples/events_sample.yaml +11 -0
- data/samples/jobs_sample.yaml +11 -0
- data/samples/organization_exports_sample.yaml +21 -0
- data/samples/portfolio_memberships_sample.yaml +31 -0
- data/samples/portfolios_sample.yaml +121 -0
- data/samples/project_memberships_sample.yaml +21 -0
- data/samples/project_statuses_sample.yaml +41 -0
- data/samples/projects_sample.yaml +181 -0
- data/samples/sections_sample.yaml +71 -0
- data/samples/stories_sample.yaml +51 -0
- data/samples/tags_sample.yaml +81 -0
- data/samples/tasks_sample.yaml +261 -0
- data/samples/team_memberships_sample.yaml +41 -0
- data/samples/teams_sample.yaml +51 -0
- data/samples/typeahead_sample.yaml +11 -0
- data/samples/user_task_lists_sample.yaml +21 -0
- data/samples/users_sample.yaml +51 -0
- data/samples/webhooks_sample.yaml +41 -0
- data/samples/workspace_memberships_sample.yaml +31 -0
- data/samples/workspaces_sample.yaml +51 -0
- data/swagger_templates/api_doc.mustache +12 -0
- data/swagger_templates/ruby-config.json +1 -2
- metadata +34 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cbc517a0b8e45655043ff4ac2a419f12be72db5a12cb6efc5e80c29b13ab64e
|
4
|
+
data.tar.gz: ce52a082b48c060ca9f0d82c01534451c8a4f0417c745cfd40a71ae72f157944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b04794c205e810df61ae3e97b66c5b17671f5a0ab0843ba2a53d72aa3ed6904c2cc75a9142a517c86831de681c4f77278b1189cfd3f997c09bbd53802dce7e73
|
7
|
+
data.tar.gz: fabf06e3ccd2ea24f09daf62597db360b56b4d666e89d214f793fcaa9159a29a16f0f68cfdbd67fab587b0e0ecc9a1ef6cec8bc86b37617ac56473f6fa51e4b9
|
data/.swagger-codegen-ignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.10.3
|
data/asana.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.required_ruby_version = '
|
22
|
+
spec.required_ruby_version = '> 2.0'
|
23
23
|
|
24
24
|
spec.add_dependency "oauth2", "~> 1.4"
|
25
25
|
spec.add_dependency "faraday", "~> 1.0"
|
data/examples/Gemfile.lock
CHANGED
@@ -1,33 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
asana (0.
|
5
|
-
faraday (~> 0
|
6
|
-
faraday_middleware (~> 0
|
4
|
+
asana (0.10.3)
|
5
|
+
faraday (~> 1.0)
|
6
|
+
faraday_middleware (~> 1.0)
|
7
7
|
faraday_middleware-multi_json (~> 0.0)
|
8
8
|
oauth2 (~> 1.4)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
faraday (0.
|
13
|
+
faraday (1.0.1)
|
14
14
|
multipart-post (>= 1.2, < 3)
|
15
|
-
faraday_middleware (0.
|
16
|
-
faraday (
|
15
|
+
faraday_middleware (1.0.0)
|
16
|
+
faraday (~> 1.0)
|
17
17
|
faraday_middleware-multi_json (0.0.6)
|
18
18
|
faraday_middleware
|
19
19
|
multi_json
|
20
20
|
jwt (2.2.1)
|
21
|
-
multi_json (1.
|
21
|
+
multi_json (1.15.0)
|
22
22
|
multi_xml (0.6.0)
|
23
23
|
multipart-post (2.1.1)
|
24
|
-
oauth2 (1.4.
|
25
|
-
faraday (>= 0.8, <
|
24
|
+
oauth2 (1.4.4)
|
25
|
+
faraday (>= 0.8, < 2.0)
|
26
26
|
jwt (>= 1.0, < 3.0)
|
27
27
|
multi_json (~> 1.3)
|
28
28
|
multi_xml (~> 0.5)
|
29
29
|
rack (>= 1.2, < 3)
|
30
|
-
rack (2.
|
30
|
+
rack (2.2.3)
|
31
31
|
|
32
32
|
PLATFORMS
|
33
33
|
ruby
|
@@ -5,8 +5,9 @@ module Asana
|
|
5
5
|
module AttachmentUploading
|
6
6
|
# Uploads a new attachment to the resource.
|
7
7
|
#
|
8
|
-
# filename - [String] the absolute path of the file to upload
|
8
|
+
# filename - [String] the absolute path of the file to upload OR the desired filename when using +io+
|
9
9
|
# mime - [String] the MIME type of the file
|
10
|
+
# io - [IO] an object which returns the file's content on +#read+, e.g. a +::StringIO+
|
10
11
|
# options - [Hash] the request I/O options
|
11
12
|
# data - [Hash] extra attributes to post
|
12
13
|
#
|
@@ -14,16 +15,22 @@ module Asana
|
|
14
15
|
# rubocop:disable Metrics/MethodLength
|
15
16
|
def attach(filename: required('filename'),
|
16
17
|
mime: required('mime'),
|
17
|
-
options: {}, **data)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
io: nil, options: {}, **data)
|
19
|
+
|
20
|
+
upload = if io.nil?
|
21
|
+
path = File.expand_path(filename)
|
22
|
+
raise ArgumentError, "file #{filename} doesn't exist" unless File.exist?(path)
|
23
|
+
|
24
|
+
Faraday::FilePart.new(path, mime)
|
25
|
+
else
|
26
|
+
Faraday::FilePart.new(io, mime, filename)
|
27
|
+
end
|
28
|
+
|
23
29
|
response = client.post("/#{self.class.plural_name}/#{gid}/attachments",
|
24
30
|
body: data,
|
25
31
|
upload: upload,
|
26
32
|
options: options)
|
33
|
+
|
27
34
|
Attachment.new(parse(response).first, client: client)
|
28
35
|
end
|
29
36
|
# rubocop:enable Metrics/MethodLength
|
@@ -21,7 +21,7 @@ module Asana
|
|
21
21
|
def add_custom_field_setting_for_project(client, project_gid: required("project_gid"), options: {}, **data)
|
22
22
|
path = "/projects/{project_gid}/addCustomFieldSetting"
|
23
23
|
path["{project_gid}"] = project_gid
|
24
|
-
parse(client.post(path, body: data, options: options)).first
|
24
|
+
CustomFieldSetting.new(parse(client.post(path, body: data, options: options)).first, client: client)
|
25
25
|
end
|
26
26
|
|
27
27
|
# Add followers to a project
|
@@ -37,6 +37,20 @@ module Asana
|
|
37
37
|
Tag.new(parse(client.post(path, body: data, options: options)).first, client: client)
|
38
38
|
end
|
39
39
|
|
40
|
+
# Delete a tag
|
41
|
+
#
|
42
|
+
# tag_gid - [str] (required) Globally unique identifier for the tag.
|
43
|
+
# options - [Hash] the request I/O options
|
44
|
+
# > offset - [str] Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. 'Note: You can only pass in an offset that was returned to you via a previously paginated request.'
|
45
|
+
# > limit - [int] Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
46
|
+
# > opt_fields - [list[str]] Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
|
47
|
+
# > opt_pretty - [bool] Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
|
48
|
+
def delete_tag(client, tag_gid: required("tag_gid"), options: {})
|
49
|
+
path = "/tags/{tag_gid}"
|
50
|
+
path["{tag_gid}"] = tag_gid
|
51
|
+
parse(client.delete(path, options: options)).first
|
52
|
+
end
|
53
|
+
|
40
54
|
# Get a tag
|
41
55
|
#
|
42
56
|
# tag_gid - [str] (required) Globally unique identifier for the tag.
|
@@ -332,6 +332,7 @@ module Asana
|
|
332
332
|
# assignee_any - [str] Comma-separated list of user identifiers
|
333
333
|
# assignee_not - [str] Comma-separated list of user identifiers
|
334
334
|
# assignee_status - [str] One of `inbox`, `today`, `upcoming`, or `later`
|
335
|
+
# portfolios_any - [str] Comma-separated list of portfolio IDs
|
335
336
|
# projects_any - [str] Comma-separated list of project IDs
|
336
337
|
# projects_not - [str] Comma-separated list of project IDs
|
337
338
|
# projects_all - [str] Comma-separated list of project IDs
|
@@ -385,10 +386,10 @@ module Asana
|
|
385
386
|
# options - [Hash] the request I/O options
|
386
387
|
# > opt_fields - [list[str]] Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
|
387
388
|
# > opt_pretty - [bool] Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
|
388
|
-
def search_tasks_for_workspace(client, workspace_gid: required("workspace_gid"), text: nil, resource_subtype: nil, assignee_any: nil, assignee_not: nil, assignee_status: nil, projects_any: nil, projects_not: nil, projects_all: nil, sections_any: nil, sections_not: nil, sections_all: nil, tags_any: nil, tags_not: nil, tags_all: nil, teams_any: nil, followers_any: nil, followers_not: nil, created_by_any: nil, created_by_not: nil, assigned_by_any: nil, assigned_by_not: nil, liked_by_any: nil, liked_by_not: nil, commented_on_by_any: nil, commented_on_by_not: nil, due_on_before: nil, due_on_after: nil, due_on: nil, due_at_before: nil, due_at_after: nil, start_on_before: nil, start_on_after: nil, start_on: nil, created_on_before: nil, created_on_after: nil, created_on: nil, created_at_before: nil, created_at_after: nil, completed_on_before: nil, completed_on_after: nil, completed_on: nil, completed_at_before: nil, completed_at_after: nil, modified_on_before: nil, modified_on_after: nil, modified_on: nil, modified_at_before: nil, modified_at_after: nil, is_blocking: nil, is_blocked: nil, has_attachment: nil, completed: nil, is_subtask: nil, sort_by: nil, sort_ascending: nil, options: {})
|
389
|
+
def search_tasks_for_workspace(client, workspace_gid: required("workspace_gid"), text: nil, resource_subtype: nil, assignee_any: nil, assignee_not: nil, assignee_status: nil, portfolios_any: nil, projects_any: nil, projects_not: nil, projects_all: nil, sections_any: nil, sections_not: nil, sections_all: nil, tags_any: nil, tags_not: nil, tags_all: nil, teams_any: nil, followers_any: nil, followers_not: nil, created_by_any: nil, created_by_not: nil, assigned_by_any: nil, assigned_by_not: nil, liked_by_any: nil, liked_by_not: nil, commented_on_by_any: nil, commented_on_by_not: nil, due_on_before: nil, due_on_after: nil, due_on: nil, due_at_before: nil, due_at_after: nil, start_on_before: nil, start_on_after: nil, start_on: nil, created_on_before: nil, created_on_after: nil, created_on: nil, created_at_before: nil, created_at_after: nil, completed_on_before: nil, completed_on_after: nil, completed_on: nil, completed_at_before: nil, completed_at_after: nil, modified_on_before: nil, modified_on_after: nil, modified_on: nil, modified_at_before: nil, modified_at_after: nil, is_blocking: nil, is_blocked: nil, has_attachment: nil, completed: nil, is_subtask: nil, sort_by: nil, sort_ascending: nil, options: {})
|
389
390
|
path = "/workspaces/{workspace_gid}/tasks/search"
|
390
391
|
path["{workspace_gid}"] = workspace_gid
|
391
|
-
params = { text: text, resource_subtype: resource_subtype, "assignee.any": assignee_any, "assignee.not": assignee_not, assignee_status: assignee_status, "projects.any": projects_any, "projects.not": projects_not, "projects.all": projects_all, "sections.any": sections_any, "sections.not": sections_not, "sections.all": sections_all, "tags.any": tags_any, "tags.not": tags_not, "tags.all": tags_all, "teams.any": teams_any, "followers.any": followers_any, "followers.not": followers_not, "created_by.any": created_by_any, "created_by.not": created_by_not, "assigned_by.any": assigned_by_any, "assigned_by.not": assigned_by_not, "liked_by.any": liked_by_any, "liked_by.not": liked_by_not, "commented_on_by.any": commented_on_by_any, "commented_on_by.not": commented_on_by_not, due_on_before: due_on_before, due_on_after: due_on_after, due_on: due_on, due_at_before: due_at_before, due_at_after: due_at_after, start_on_before: start_on_before, start_on_after: start_on_after, start_on: start_on, created_on_before: created_on_before, created_on_after: created_on_after, created_on: created_on, created_at_before: created_at_before, created_at_after: created_at_after, completed_on_before: completed_on_before, completed_on_after: completed_on_after, completed_on: completed_on, completed_at_before: completed_at_before, completed_at_after: completed_at_after, modified_on_before: modified_on_before, modified_on_after: modified_on_after, modified_on: modified_on, modified_at_before: modified_at_before, modified_at_after: modified_at_after, is_blocking: is_blocking, is_blocked: is_blocked, has_attachment: has_attachment, completed: completed, is_subtask: is_subtask, sort_by: sort_by, sort_ascending: sort_ascending }.reject { |_,v| v.nil? || Array(v).empty? }
|
392
|
+
params = { text: text, resource_subtype: resource_subtype, "assignee.any": assignee_any, "assignee.not": assignee_not, assignee_status: assignee_status, "portfolios.any": portfolios_any, "projects.any": projects_any, "projects.not": projects_not, "projects.all": projects_all, "sections.any": sections_any, "sections.not": sections_not, "sections.all": sections_all, "tags.any": tags_any, "tags.not": tags_not, "tags.all": tags_all, "teams.any": teams_any, "followers.any": followers_any, "followers.not": followers_not, "created_by.any": created_by_any, "created_by.not": created_by_not, "assigned_by.any": assigned_by_any, "assigned_by.not": assigned_by_not, "liked_by.any": liked_by_any, "liked_by.not": liked_by_not, "commented_on_by.any": commented_on_by_any, "commented_on_by.not": commented_on_by_not, due_on_before: due_on_before, due_on_after: due_on_after, due_on: due_on, due_at_before: due_at_before, due_at_after: due_at_after, start_on_before: start_on_before, start_on_after: start_on_after, start_on: start_on, created_on_before: created_on_before, created_on_after: created_on_after, created_on: created_on, created_at_before: created_at_before, created_at_after: created_at_after, completed_on_before: completed_on_before, completed_on_after: completed_on_after, completed_on: completed_on, completed_at_before: completed_at_before, completed_at_after: completed_at_after, modified_on_before: modified_on_before, modified_on_after: modified_on_after, modified_on: modified_on, modified_at_before: modified_at_before, modified_at_after: modified_at_after, is_blocking: is_blocking, is_blocked: is_blocked, has_attachment: has_attachment, completed: completed, is_subtask: is_subtask, sort_by: sort_by, sort_ascending: sort_ascending }.reject { |_,v| v.nil? || Array(v).empty? }
|
392
393
|
Collection.new(parse(client.get(path, params: params, options: options)), type: Task, client: client)
|
393
394
|
end
|
394
395
|
|
@@ -33,7 +33,7 @@ module Asana
|
|
33
33
|
# options - [Hash] the request I/O options
|
34
34
|
# > opt_fields - [list[str]] Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
|
35
35
|
# > opt_pretty - [bool] Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
|
36
|
-
def get_user(client, user_gid: required("user_gid"),
|
36
|
+
def get_user(client, user_gid: required("user_gid"), options: {})
|
37
37
|
path = "/users/{user_gid}"
|
38
38
|
path["{user_gid}"] = user_gid
|
39
39
|
User.new(parse(client.get(path, options: options)).first, client: client)
|
data/lib/asana/version.rb
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
attachments:
|
2
|
+
create_attachment_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.attachments.create_attachment_for_task(task_gid: 'task_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
delete_attachment: >-
|
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.attachments.delete_attachment(attachment_gid: 'attachment_gid', options: {pretty: true})
|
22
|
+
get_attachment: >-
|
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.attachments.get_attachment(attachment_gid: 'attachment_gid', param: "value", param: "value", options: {pretty: true})
|
32
|
+
get_attachments_for_task: >-
|
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.attachments.get_attachments_for_task(task_gid: 'task_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,11 @@
|
|
1
|
+
batchapi:
|
2
|
+
create_batch_request: >-
|
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.batch_api.create_batch_request(field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
customfieldsettings:
|
2
|
+
get_custom_field_settings_for_portfolio: >-
|
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.custom_field_settings.get_custom_field_settings_for_portfolio(portfolio_gid: 'portfolio_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_custom_field_settings_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.custom_field_settings.get_custom_field_settings_for_project(project_gid: 'project_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,81 @@
|
|
1
|
+
customfields:
|
2
|
+
create_custom_field: >-
|
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.custom_fields.create_custom_field(field: "value", field: "value", options: {pretty: true})
|
12
|
+
create_enum_option_for_custom_field: >-
|
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.custom_fields.create_enum_option_for_custom_field(custom_field_gid: 'custom_field_gid', field: "value", field: "value", options: {pretty: true})
|
22
|
+
delete_custom_field: >-
|
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.custom_fields.delete_custom_field(custom_field_gid: 'custom_field_gid', options: {pretty: true})
|
32
|
+
get_custom_field: >-
|
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.custom_fields.get_custom_field(custom_field_gid: 'custom_field_gid', param: "value", param: "value", options: {pretty: true})
|
42
|
+
get_custom_fields_for_workspace: >-
|
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.custom_fields.get_custom_fields_for_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
|
52
|
+
insert_enum_option_for_custom_field: >-
|
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.custom_fields.insert_enum_option_for_custom_field(custom_field_gid: 'custom_field_gid', field: "value", field: "value", options: {pretty: true})
|
62
|
+
update_custom_field: >-
|
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.custom_fields.update_custom_field(custom_field_gid: 'custom_field_gid', field: "value", field: "value", options: {pretty: true})
|
72
|
+
update_enum_option: >-
|
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.custom_fields.update_enum_option(enum_option_gid: 'enum_option_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,11 @@
|
|
1
|
+
events:
|
2
|
+
get_events: >-
|
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.events.get_events(resource: ''resource_example'', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,21 @@
|
|
1
|
+
organizationexports:
|
2
|
+
create_organization_export: >-
|
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.organization_exports.create_organization_export(field: "value", field: "value", options: {pretty: true})
|
12
|
+
get_organization_export: >-
|
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.organization_exports.get_organization_export(organization_export_gid: 'organization_export_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,31 @@
|
|
1
|
+
portfoliomemberships:
|
2
|
+
get_portfolio_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.portfolio_memberships.get_portfolio_membership(portfolio_membership_gid: 'portfolio_membership_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_portfolio_memberships: >-
|
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.portfolio_memberships.get_portfolio_memberships(param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_portfolio_memberships_for_portfolio: >-
|
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.portfolio_memberships.get_portfolio_memberships_for_portfolio(portfolio_gid: 'portfolio_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,121 @@
|
|
1
|
+
portfolios:
|
2
|
+
add_custom_field_setting_for_portfolio: >-
|
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.portfolios.add_custom_field_setting_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
add_item_for_portfolio: >-
|
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.portfolios.add_item_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
22
|
+
add_members_for_portfolio: >-
|
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.portfolios.add_members_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
32
|
+
create_portfolio: >-
|
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.portfolios.create_portfolio(field: "value", field: "value", options: {pretty: true})
|
42
|
+
delete_portfolio: >-
|
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.portfolios.delete_portfolio(portfolio_gid: 'portfolio_gid', options: {pretty: true})
|
52
|
+
get_items_for_portfolio: >-
|
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.portfolios.get_items_for_portfolio(portfolio_gid: 'portfolio_gid', param: "value", param: "value", options: {pretty: true})
|
62
|
+
get_portfolio: >-
|
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.portfolios.get_portfolio(portfolio_gid: 'portfolio_gid', param: "value", param: "value", options: {pretty: true})
|
72
|
+
get_portfolios: >-
|
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.portfolios.get_portfolios(workspace: ''workspace_example'', owner: ''owner_example'', param: "value", param: "value", options: {pretty: true})
|
82
|
+
remove_custom_field_setting_for_portfolio: >-
|
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.portfolios.remove_custom_field_setting_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
92
|
+
remove_item_for_portfolio: >-
|
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.portfolios.remove_item_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
102
|
+
remove_members_for_portfolio: >-
|
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.portfolios.remove_members_for_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|
112
|
+
update_portfolio: >-
|
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.portfolios.update_portfolio(portfolio_gid: 'portfolio_gid', field: "value", field: "value", options: {pretty: true})
|