codapact-confluence 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codapact_confluence/__init__.py +6 -0
- codapact_confluence/__main__.py +6 -0
- codapact_confluence/_docformat.py +161 -0
- codapact_confluence/_model.json +53465 -0
- codapact_confluence/cli.py +3347 -0
- codapact_confluence/client.py +3544 -0
- codapact_confluence/py.typed +0 -0
- codapact_confluence/skill/SKILL.md +39 -0
- codapact_confluence/types.py +4795 -0
- codapact_confluence-0.1.0.dist-info/METADATA +121 -0
- codapact_confluence-0.1.0.dist-info/RECORD +14 -0
- codapact_confluence-0.1.0.dist-info/WHEEL +4 -0
- codapact_confluence-0.1.0.dist-info/entry_points.txt +3 -0
- codapact_confluence-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,3347 @@
|
|
|
1
|
+
"""Command line interface generated from the command model. Do not edit."""
|
|
2
|
+
|
|
3
|
+
# ruff: noqa: E501
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
from collections.abc import Sequence
|
|
8
|
+
from typing import Any
|
|
9
|
+
|
|
10
|
+
from codapact.runtime.cli import (
|
|
11
|
+
CliRuntime,
|
|
12
|
+
compact,
|
|
13
|
+
integer,
|
|
14
|
+
json_value,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
from .client import Client
|
|
18
|
+
from .client import _model as _api_model
|
|
19
|
+
|
|
20
|
+
RUNTIME = CliRuntime(program='codapact-confluence', env_prefix='CONFLUENCE', version='0.1.0', distribution='codapact-confluence', api_name='The Confluence Cloud REST API v2', api_version='2.0.0', model=_api_model, auth_plugin='', auth_config={'basic': {'check': 'get_spaces', 'labels': {'username': 'Atlassian email', 'secret': 'API token'}, 'docs': 'Use your Atlassian account email as the username and an API token as the password (create one at https://id.atlassian.com/manage-profile/security/api-tokens).'}, 'session': {'check': 'get_spaces', 'docs': 'For sites where API tokens are disabled: signs in through a browser window and sends the session cookies.', 'browser': {'login_url': '{base_url}/wiki', 'cookies': ['tenant.session.token'], 'headers': {'X-Atlassian-Token': 'no-check'}, 'signin_hosts': ['id.atlassian.com', '*.okta.com'], 'password_entry': 'person'}}}, extensions=('codapact_confluence._docformat:extension',), skill='codapact_confluence')
|
|
21
|
+
RAW = argparse.RawDescriptionHelpFormatter
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _run_admin_key_get(client: Client, args: argparse.Namespace) -> Any:
|
|
26
|
+
kwargs = compact({})
|
|
27
|
+
return client.admin_key.get(**kwargs)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _run_admin_key_enable(client: Client, args: argparse.Namespace) -> Any:
|
|
31
|
+
kwargs = compact({'duration_in_minutes': args.p_duration_in_minutes})
|
|
32
|
+
return client.admin_key.enable(**kwargs)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def _run_admin_key_disable(client: Client, args: argparse.Namespace) -> Any:
|
|
36
|
+
kwargs = compact({})
|
|
37
|
+
RUNTIME.confirm(args, 'admin-key disable')
|
|
38
|
+
return client.admin_key.disable(**kwargs)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _run_ancestors_list_whiteboard(client: Client, args: argparse.Namespace) -> Any:
|
|
42
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
43
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit})
|
|
44
|
+
return client.ancestors.list_whiteboard(**kwargs)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def _run_ancestors_list_database(client: Client, args: argparse.Namespace) -> Any:
|
|
48
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
49
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit})
|
|
50
|
+
return client.ancestors.list_database(**kwargs)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def _run_ancestors_list_smart_link(client: Client, args: argparse.Namespace) -> Any:
|
|
54
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
55
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit})
|
|
56
|
+
return client.ancestors.list_smart_link(**kwargs)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _run_ancestors_list_folder(client: Client, args: argparse.Namespace) -> Any:
|
|
60
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
61
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit})
|
|
62
|
+
return client.ancestors.list_folder(**kwargs)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def _run_ancestors_list_page(client: Client, args: argparse.Namespace) -> Any:
|
|
66
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
67
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit})
|
|
68
|
+
return client.ancestors.list_page(**kwargs)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _run_app_properties_list(client: Client, args: argparse.Namespace) -> Any:
|
|
72
|
+
kwargs = compact({'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
73
|
+
return client.app_properties.list(**kwargs)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def _run_app_properties_get(client: Client, args: argparse.Namespace) -> Any:
|
|
77
|
+
RUNTIME.require(args, 'p_property_key', 'PROPERTY_KEY (or --property-key)')
|
|
78
|
+
kwargs = compact({'property_key': getattr(args, 'p_property_key', None)})
|
|
79
|
+
return client.app_properties.get(**kwargs)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def _run_app_properties_put(client: Client, args: argparse.Namespace) -> Any:
|
|
83
|
+
RUNTIME.require(args, 'p_property_key', 'PROPERTY_KEY (or --property-key)')
|
|
84
|
+
kwargs = compact({'property_key': getattr(args, 'p_property_key', None), 'body': args.p_body})
|
|
85
|
+
return client.app_properties.put(**kwargs)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def _run_app_properties_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
89
|
+
RUNTIME.require(args, 'p_property_key', 'PROPERTY_KEY (or --property-key)')
|
|
90
|
+
kwargs = compact({'property_key': getattr(args, 'p_property_key', None)})
|
|
91
|
+
RUNTIME.confirm(args, 'app-properties delete')
|
|
92
|
+
return client.app_properties.delete(**kwargs)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def _run_attachment_list_attachments(client: Client, args: argparse.Namespace) -> Any:
|
|
96
|
+
kwargs = compact({'sort': args.p_sort, 'cursor': args.p_cursor, 'status': args.p_status, 'media_type': args.p_media_type, 'filename': args.p_filename, 'limit': args.p_limit})
|
|
97
|
+
return client.attachment.list_attachments(**kwargs)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def _run_attachment_get(client: Client, args: argparse.Namespace) -> Any:
|
|
101
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
102
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'version': args.p_arg_version, 'include_labels': args.p_include_labels, 'include_properties': args.p_include_properties, 'include_operations': args.p_include_operations, 'include_versions': args.p_include_versions, 'include_version': args.p_include_version, 'include_collaborators': args.p_include_collaborators})
|
|
103
|
+
return client.attachment.get(**kwargs)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def _run_attachment_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
107
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
108
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'purge': args.p_purge})
|
|
109
|
+
RUNTIME.confirm(args, 'attachment delete')
|
|
110
|
+
return client.attachment.delete(**kwargs)
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def _run_attachment_list_blogpost_attachments(client: Client, args: argparse.Namespace) -> Any:
|
|
114
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
115
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'sort': args.p_sort, 'cursor': args.p_cursor, 'status': args.p_status, 'media_type': args.p_media_type, 'filename': args.p_filename, 'limit': args.p_limit})
|
|
116
|
+
return client.attachment.list_blogpost_attachments(**kwargs)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def _run_attachment_list_custom_content_attachments(client: Client, args: argparse.Namespace) -> Any:
|
|
120
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
121
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'sort': args.p_sort, 'cursor': args.p_cursor, 'status': args.p_status, 'media_type': args.p_media_type, 'filename': args.p_filename, 'limit': args.p_limit})
|
|
122
|
+
return client.attachment.list_custom_content_attachments(**kwargs)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def _run_attachment_list_label_attachments(client: Client, args: argparse.Namespace) -> Any:
|
|
126
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
127
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
128
|
+
return client.attachment.list_label_attachments(**kwargs)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def _run_attachment_list_page_attachments(client: Client, args: argparse.Namespace) -> Any:
|
|
132
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
133
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'sort': args.p_sort, 'cursor': args.p_cursor, 'status': args.p_status, 'media_type': args.p_media_type, 'filename': args.p_filename, 'limit': args.p_limit})
|
|
134
|
+
return client.attachment.list_page_attachments(**kwargs)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
def _run_attachment_get_thumbnail(client: Client, args: argparse.Namespace) -> Any:
|
|
138
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
139
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'version': args.p_arg_version, 'height': args.p_height, 'width': args.p_width})
|
|
140
|
+
return client.attachment.get_thumbnail(**kwargs)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
def _run_blog_post_list_blog_posts(client: Client, args: argparse.Namespace) -> Any:
|
|
144
|
+
kwargs = compact({'id': args.p_id, 'space_id': args.p_space_id, 'sort': args.p_sort, 'status': args.p_status, 'title': args.p_title, 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
145
|
+
return client.blog_post.list_blog_posts(**kwargs)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def _run_blog_post_create(client: Client, args: argparse.Namespace) -> Any:
|
|
149
|
+
kwargs = compact({'private': args.p_private, 'space_id': args.p_space_id, 'status': args.p_status, 'title': args.p_title, 'body': args.p_body, 'created_at': args.p_created_at})
|
|
150
|
+
return client.blog_post.create(**kwargs)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def _run_blog_post_get(client: Client, args: argparse.Namespace) -> Any:
|
|
154
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
155
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'get_draft': args.p_get_draft, 'status': args.p_status, 'version': args.p_arg_version, 'include_labels': args.p_include_labels, 'include_properties': args.p_include_properties, 'include_operations': args.p_include_operations, 'include_likes': args.p_include_likes, 'include_versions': args.p_include_versions, 'include_version': args.p_include_version, 'include_favorited_by_current_user_status': args.p_include_favorited_by_current_user_status, 'include_webresources': args.p_include_webresources, 'include_collaborators': args.p_include_collaborators})
|
|
156
|
+
return client.blog_post.get(**kwargs)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
def _run_blog_post_update(client: Client, args: argparse.Namespace) -> Any:
|
|
160
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
161
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
162
|
+
return client.blog_post.update(**kwargs)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def _run_blog_post_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
166
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
167
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'purge': args.p_purge, 'draft': args.p_draft})
|
|
168
|
+
RUNTIME.confirm(args, 'blog-post delete')
|
|
169
|
+
return client.blog_post.delete(**kwargs)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def _run_blog_post_list_label_blog_posts(client: Client, args: argparse.Namespace) -> Any:
|
|
173
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
174
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'space_id': args.p_space_id, 'body_format': args.p_body_format, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
175
|
+
return client.blog_post.list_label_blog_posts(**kwargs)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def _run_blog_post_get_blog_posts_in_space(client: Client, args: argparse.Namespace) -> Any:
|
|
179
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
180
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'sort': args.p_sort, 'status': args.p_status, 'title': args.p_title, 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
181
|
+
return client.blog_post.get_blog_posts_in_space(**kwargs)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def _run_children_get_whiteboard_direct(client: Client, args: argparse.Namespace) -> Any:
|
|
185
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
186
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
187
|
+
return client.children.get_whiteboard_direct(**kwargs)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def _run_children_get_database_direct(client: Client, args: argparse.Namespace) -> Any:
|
|
191
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
192
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
193
|
+
return client.children.get_database_direct(**kwargs)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def _run_children_get_smart_link_direct(client: Client, args: argparse.Namespace) -> Any:
|
|
197
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
198
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
199
|
+
return client.children.get_smart_link_direct(**kwargs)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def _run_children_get_folder_direct(client: Client, args: argparse.Namespace) -> Any:
|
|
203
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
204
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
205
|
+
return client.children.get_folder_direct(**kwargs)
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
def _run_children_list_child_pages(client: Client, args: argparse.Namespace) -> Any:
|
|
209
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
210
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
211
|
+
return client.children.list_child_pages(**kwargs)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
def _run_children_get_child_custom_content(client: Client, args: argparse.Namespace) -> Any:
|
|
215
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
216
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
217
|
+
return client.children.get_child_custom_content(**kwargs)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
def _run_children_get_page_direct(client: Client, args: argparse.Namespace) -> Any:
|
|
221
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
222
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
223
|
+
return client.children.get_page_direct(**kwargs)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def _run_classification_level_list_classification_levels(client: Client, args: argparse.Namespace) -> Any:
|
|
227
|
+
kwargs = compact({})
|
|
228
|
+
return client.classification_level.list_classification_levels(**kwargs)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
def _run_classification_level_get_space_default(client: Client, args: argparse.Namespace) -> Any:
|
|
232
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
233
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
234
|
+
return client.classification_level.get_space_default(**kwargs)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def _run_classification_level_put_space_default(client: Client, args: argparse.Namespace) -> Any:
|
|
238
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
239
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
240
|
+
return client.classification_level.put_space_default(**kwargs)
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def _run_classification_level_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
244
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
245
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
246
|
+
RUNTIME.confirm(args, 'classification-level delete')
|
|
247
|
+
return client.classification_level.delete(**kwargs)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def _run_classification_level_get_page(client: Client, args: argparse.Namespace) -> Any:
|
|
251
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
252
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'status': args.p_status})
|
|
253
|
+
return client.classification_level.get_page(**kwargs)
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
def _run_classification_level_put_page(client: Client, args: argparse.Namespace) -> Any:
|
|
257
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
258
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
259
|
+
return client.classification_level.put_page(**kwargs)
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
def _run_classification_level_post_page(client: Client, args: argparse.Namespace) -> Any:
|
|
263
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
264
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'status': args.p_status})
|
|
265
|
+
return client.classification_level.post_page(**kwargs)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
def _run_classification_level_get_blog_post(client: Client, args: argparse.Namespace) -> Any:
|
|
269
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
270
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'status': args.p_status})
|
|
271
|
+
return client.classification_level.get_blog_post(**kwargs)
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def _run_classification_level_put_blog_post(client: Client, args: argparse.Namespace) -> Any:
|
|
275
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
276
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
277
|
+
return client.classification_level.put_blog_post(**kwargs)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
def _run_classification_level_post_blog_post(client: Client, args: argparse.Namespace) -> Any:
|
|
281
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
282
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'status': args.p_status})
|
|
283
|
+
return client.classification_level.post_blog_post(**kwargs)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
def _run_classification_level_get_whiteboard(client: Client, args: argparse.Namespace) -> Any:
|
|
287
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
288
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
289
|
+
return client.classification_level.get_whiteboard(**kwargs)
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def _run_classification_level_put_whiteboard(client: Client, args: argparse.Namespace) -> Any:
|
|
293
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
294
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
295
|
+
return client.classification_level.put_whiteboard(**kwargs)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def _run_classification_level_post_whiteboard(client: Client, args: argparse.Namespace) -> Any:
|
|
299
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
300
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'status': args.p_status})
|
|
301
|
+
return client.classification_level.post_whiteboard(**kwargs)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
def _run_classification_level_get_database(client: Client, args: argparse.Namespace) -> Any:
|
|
305
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
306
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
307
|
+
return client.classification_level.get_database(**kwargs)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
def _run_classification_level_put_database(client: Client, args: argparse.Namespace) -> Any:
|
|
311
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
312
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
313
|
+
return client.classification_level.put_database(**kwargs)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
def _run_classification_level_post_database(client: Client, args: argparse.Namespace) -> Any:
|
|
317
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
318
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'status': args.p_status})
|
|
319
|
+
return client.classification_level.post_database(**kwargs)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
def _run_comment_list_attachment_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
323
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
324
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort, 'version': args.p_arg_version})
|
|
325
|
+
return client.comment.list_attachment_comments(**kwargs)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def _run_comment_list_custom_content_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
329
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
330
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
331
|
+
return client.comment.list_custom_content_comments(**kwargs)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
def _run_comment_list_page_footer_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
335
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
336
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'status': args.p_status, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
337
|
+
return client.comment.list_page_footer_comments(**kwargs)
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
def _run_comment_list_page_inline_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
341
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
342
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'status': args.p_status, 'resolution_status': args.p_resolution_status, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
343
|
+
return client.comment.list_page_inline_comments(**kwargs)
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
def _run_comment_list_blog_post_footer_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
347
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
348
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'status': args.p_status, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
349
|
+
return client.comment.list_blog_post_footer_comments(**kwargs)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def _run_comment_list_blog_post_inline_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
353
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
354
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'status': args.p_status, 'resolution_status': args.p_resolution_status, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
355
|
+
return client.comment.list_blog_post_inline_comments(**kwargs)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
def _run_comment_list_footer_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
359
|
+
kwargs = compact({'body_format': args.p_body_format, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
360
|
+
return client.comment.list_footer_comments(**kwargs)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def _run_comment_create_footer(client: Client, args: argparse.Namespace) -> Any:
|
|
364
|
+
kwargs = compact({'blog_post_id': args.p_blog_post_id, 'page_id': args.p_page_id, 'parent_comment_id': args.p_parent_comment_id, 'attachment_id': args.p_attachment_id, 'custom_content_id': args.p_custom_content_id, 'body': args.p_body})
|
|
365
|
+
return client.comment.create_footer(**kwargs)
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
def _run_comment_get_footer(client: Client, args: argparse.Namespace) -> Any:
|
|
369
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
370
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'body_format': args.p_body_format, 'version': args.p_arg_version, 'include_properties': args.p_include_properties, 'include_operations': args.p_include_operations, 'include_likes': args.p_include_likes, 'include_versions': args.p_include_versions, 'include_version': args.p_include_version})
|
|
371
|
+
return client.comment.get_footer(**kwargs)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def _run_comment_update_footer(client: Client, args: argparse.Namespace) -> Any:
|
|
375
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
376
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'version': args.p_arg_version, 'body': args.p_body, 'links': args.p_links})
|
|
377
|
+
return client.comment.update_footer(**kwargs)
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
def _run_comment_delete_footer(client: Client, args: argparse.Namespace) -> Any:
|
|
381
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
382
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None)})
|
|
383
|
+
RUNTIME.confirm(args, 'comment delete-footer')
|
|
384
|
+
return client.comment.delete_footer(**kwargs)
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
def _run_comment_get_footer_children(client: Client, args: argparse.Namespace) -> Any:
|
|
388
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
389
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
390
|
+
return client.comment.get_footer_children(**kwargs)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
def _run_comment_list_inline_comments(client: Client, args: argparse.Namespace) -> Any:
|
|
394
|
+
kwargs = compact({'body_format': args.p_body_format, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
395
|
+
return client.comment.list_inline_comments(**kwargs)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
def _run_comment_create_inline(client: Client, args: argparse.Namespace) -> Any:
|
|
399
|
+
kwargs = compact({'blog_post_id': args.p_blog_post_id, 'page_id': args.p_page_id, 'parent_comment_id': args.p_parent_comment_id, 'body': args.p_body, 'inline_comment_properties': args.p_inline_comment_properties})
|
|
400
|
+
return client.comment.create_inline(**kwargs)
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
def _run_comment_get_inline(client: Client, args: argparse.Namespace) -> Any:
|
|
404
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
405
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'body_format': args.p_body_format, 'version': args.p_arg_version, 'include_properties': args.p_include_properties, 'include_operations': args.p_include_operations, 'include_likes': args.p_include_likes, 'include_versions': args.p_include_versions, 'include_version': args.p_include_version})
|
|
406
|
+
return client.comment.get_inline(**kwargs)
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
def _run_comment_update_inline(client: Client, args: argparse.Namespace) -> Any:
|
|
410
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
411
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'version': args.p_arg_version, 'body': args.p_body, 'resolved': args.p_resolved})
|
|
412
|
+
return client.comment.update_inline(**kwargs)
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
def _run_comment_delete_inline(client: Client, args: argparse.Namespace) -> Any:
|
|
416
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
417
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None)})
|
|
418
|
+
RUNTIME.confirm(args, 'comment delete-inline')
|
|
419
|
+
return client.comment.delete_inline(**kwargs)
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
def _run_comment_get_inline_children(client: Client, args: argparse.Namespace) -> Any:
|
|
423
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
424
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
425
|
+
return client.comment.get_inline_children(**kwargs)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
def _run_content_convert_ids_to_content_types(client: Client, args: argparse.Namespace) -> Any:
|
|
429
|
+
kwargs = compact({'content_ids': args.p_content_ids})
|
|
430
|
+
return client.content.convert_ids_to_content_types(**kwargs)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
def _run_content_permissions_get_page_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
434
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
435
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
436
|
+
return client.content_permissions.get_page_restriction_state(**kwargs)
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
def _run_content_permissions_set_page_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
440
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
441
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'state': args.p_state})
|
|
442
|
+
return client.content_permissions.set_page_restriction_state(**kwargs)
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
def _run_content_permissions_get_blog_post_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
446
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
447
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
448
|
+
return client.content_permissions.get_blog_post_restriction_state(**kwargs)
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
def _run_content_permissions_set_blog_post_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
452
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
453
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'state': args.p_state})
|
|
454
|
+
return client.content_permissions.set_blog_post_restriction_state(**kwargs)
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
def _run_content_permissions_get_database_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
458
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
459
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
460
|
+
return client.content_permissions.get_database_restriction_state(**kwargs)
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
def _run_content_permissions_set_database_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
464
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
465
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'state': args.p_state})
|
|
466
|
+
return client.content_permissions.set_database_restriction_state(**kwargs)
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
def _run_content_permissions_get_whiteboard_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
470
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
471
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
472
|
+
return client.content_permissions.get_whiteboard_restriction_state(**kwargs)
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
def _run_content_permissions_set_whiteboard_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
476
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
477
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'state': args.p_state})
|
|
478
|
+
return client.content_permissions.set_whiteboard_restriction_state(**kwargs)
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
def _run_content_permissions_get_folder_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
482
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
483
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
484
|
+
return client.content_permissions.get_folder_restriction_state(**kwargs)
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
def _run_content_permissions_set_folder_restriction_state(client: Client, args: argparse.Namespace) -> Any:
|
|
488
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
489
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'state': args.p_state})
|
|
490
|
+
return client.content_permissions.set_folder_restriction_state(**kwargs)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
def _run_content_permissions_list_page_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
494
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
495
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
496
|
+
return client.content_permissions.list_page_permissions(**kwargs)
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
def _run_content_permissions_set_page_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
500
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
501
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
502
|
+
return client.content_permissions.set_page_permissions(**kwargs)
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
def _run_content_permissions_add_page_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
506
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
507
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
508
|
+
return client.content_permissions.add_page_permissions(**kwargs)
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
def _run_content_permissions_delete_page_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
512
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
513
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'allow_self_lockout': args.p_allow_self_lockout})
|
|
514
|
+
RUNTIME.confirm(args, 'content-permissions delete-page-permissions')
|
|
515
|
+
return client.content_permissions.delete_page_permissions(**kwargs)
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
def _run_content_permissions_list_blog_post_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
519
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
520
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
521
|
+
return client.content_permissions.list_blog_post_permissions(**kwargs)
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
def _run_content_permissions_set_blog_post_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
525
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
526
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
527
|
+
return client.content_permissions.set_blog_post_permissions(**kwargs)
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
def _run_content_permissions_add_blog_post_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
531
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
532
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
533
|
+
return client.content_permissions.add_blog_post_permissions(**kwargs)
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
def _run_content_permissions_delete_blog_post_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
537
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
538
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'allow_self_lockout': args.p_allow_self_lockout})
|
|
539
|
+
RUNTIME.confirm(args, 'content-permissions delete-blog-post-permissions')
|
|
540
|
+
return client.content_permissions.delete_blog_post_permissions(**kwargs)
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
def _run_content_permissions_list_database_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
544
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
545
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
546
|
+
return client.content_permissions.list_database_permissions(**kwargs)
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
def _run_content_permissions_set_database_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
550
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
551
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
552
|
+
return client.content_permissions.set_database_permissions(**kwargs)
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
def _run_content_permissions_add_database_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
556
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
557
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
558
|
+
return client.content_permissions.add_database_permissions(**kwargs)
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
def _run_content_permissions_delete_database_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
562
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
563
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'allow_self_lockout': args.p_allow_self_lockout})
|
|
564
|
+
RUNTIME.confirm(args, 'content-permissions delete-database-permissions')
|
|
565
|
+
return client.content_permissions.delete_database_permissions(**kwargs)
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
def _run_content_permissions_list_whiteboard_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
569
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
570
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
571
|
+
return client.content_permissions.list_whiteboard_permissions(**kwargs)
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
def _run_content_permissions_set_whiteboard_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
575
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
576
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
577
|
+
return client.content_permissions.set_whiteboard_permissions(**kwargs)
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
def _run_content_permissions_add_whiteboard_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
581
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
582
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
583
|
+
return client.content_permissions.add_whiteboard_permissions(**kwargs)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
def _run_content_permissions_delete_whiteboard_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
587
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
588
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'allow_self_lockout': args.p_allow_self_lockout})
|
|
589
|
+
RUNTIME.confirm(args, 'content-permissions delete-whiteboard-permissions')
|
|
590
|
+
return client.content_permissions.delete_whiteboard_permissions(**kwargs)
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
def _run_content_permissions_list_folder_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
594
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
595
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
596
|
+
return client.content_permissions.list_folder_permissions(**kwargs)
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
def _run_content_permissions_set_folder_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
600
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
601
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
602
|
+
return client.content_permissions.set_folder_permissions(**kwargs)
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
def _run_content_permissions_add_folder_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
606
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
607
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'allow_self_lockout': args.p_allow_self_lockout, 'permissions': args.p_permissions})
|
|
608
|
+
return client.content_permissions.add_folder_permissions(**kwargs)
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
def _run_content_permissions_delete_folder_permissions(client: Client, args: argparse.Namespace) -> Any:
|
|
612
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
613
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'operation': args.p_operation, 'principal_type': args.p_principal_type, 'principal_id': args.p_principal_id, 'allow_self_lockout': args.p_allow_self_lockout})
|
|
614
|
+
RUNTIME.confirm(args, 'content-permissions delete-folder-permissions')
|
|
615
|
+
return client.content_permissions.delete_folder_permissions(**kwargs)
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
def _run_content_properties_list_attachment(client: Client, args: argparse.Namespace) -> Any:
|
|
619
|
+
RUNTIME.require(args, 'p_attachment_id', 'ATTACHMENT_ID (or --attachment-id)')
|
|
620
|
+
kwargs = compact({'attachment_id': getattr(args, 'p_attachment_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
621
|
+
return client.content_properties.list_attachment(**kwargs)
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
def _run_content_properties_create_attachment_property(client: Client, args: argparse.Namespace) -> Any:
|
|
625
|
+
RUNTIME.require(args, 'p_attachment_id', 'ATTACHMENT_ID (or --attachment-id)')
|
|
626
|
+
kwargs = compact({'attachment_id': getattr(args, 'p_attachment_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
627
|
+
return client.content_properties.create_attachment_property(**kwargs)
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
def _run_content_properties_get_attachment_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
631
|
+
RUNTIME.require(args, 'p_attachment_id', 'ATTACHMENT_ID (or --attachment-id)')
|
|
632
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
633
|
+
kwargs = compact({'attachment_id': getattr(args, 'p_attachment_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
634
|
+
return client.content_properties.get_attachment_by_id(**kwargs)
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
def _run_content_properties_update_attachment_property(client: Client, args: argparse.Namespace) -> Any:
|
|
638
|
+
RUNTIME.require(args, 'p_attachment_id', 'ATTACHMENT_ID (or --attachment-id)')
|
|
639
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
640
|
+
kwargs = compact({'attachment_id': getattr(args, 'p_attachment_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
641
|
+
return client.content_properties.update_attachment_property(**kwargs)
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
def _run_content_properties_delete_attachment_property(client: Client, args: argparse.Namespace) -> Any:
|
|
645
|
+
RUNTIME.require(args, 'p_attachment_id', 'ATTACHMENT_ID (or --attachment-id)')
|
|
646
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
647
|
+
kwargs = compact({'attachment_id': getattr(args, 'p_attachment_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
648
|
+
RUNTIME.confirm(args, 'content-properties delete-attachment-property')
|
|
649
|
+
return client.content_properties.delete_attachment_property(**kwargs)
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
def _run_content_properties_list_blogpost(client: Client, args: argparse.Namespace) -> Any:
|
|
653
|
+
RUNTIME.require(args, 'p_blogpost_id', 'BLOGPOST_ID (or --blogpost-id)')
|
|
654
|
+
kwargs = compact({'blogpost_id': getattr(args, 'p_blogpost_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
655
|
+
return client.content_properties.list_blogpost(**kwargs)
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
def _run_content_properties_create_blogpost_property(client: Client, args: argparse.Namespace) -> Any:
|
|
659
|
+
RUNTIME.require(args, 'p_blogpost_id', 'BLOGPOST_ID (or --blogpost-id)')
|
|
660
|
+
kwargs = compact({'blogpost_id': getattr(args, 'p_blogpost_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
661
|
+
return client.content_properties.create_blogpost_property(**kwargs)
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
def _run_content_properties_get_blogpost_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
665
|
+
RUNTIME.require(args, 'p_blogpost_id', 'BLOGPOST_ID (or --blogpost-id)')
|
|
666
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
667
|
+
kwargs = compact({'blogpost_id': getattr(args, 'p_blogpost_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
668
|
+
return client.content_properties.get_blogpost_by_id(**kwargs)
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
def _run_content_properties_update_blogpost_property(client: Client, args: argparse.Namespace) -> Any:
|
|
672
|
+
RUNTIME.require(args, 'p_blogpost_id', 'BLOGPOST_ID (or --blogpost-id)')
|
|
673
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
674
|
+
kwargs = compact({'blogpost_id': getattr(args, 'p_blogpost_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
675
|
+
return client.content_properties.update_blogpost_property(**kwargs)
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
def _run_content_properties_delete_blogpost_property(client: Client, args: argparse.Namespace) -> Any:
|
|
679
|
+
RUNTIME.require(args, 'p_blogpost_id', 'BLOGPOST_ID (or --blogpost-id)')
|
|
680
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
681
|
+
kwargs = compact({'blogpost_id': getattr(args, 'p_blogpost_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
682
|
+
RUNTIME.confirm(args, 'content-properties delete-blogpost-property')
|
|
683
|
+
return client.content_properties.delete_blogpost_property(**kwargs)
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
def _run_content_properties_list_custom_content(client: Client, args: argparse.Namespace) -> Any:
|
|
687
|
+
RUNTIME.require(args, 'p_custom_content_id', 'CUSTOM_CONTENT_ID (or --custom-content-id)')
|
|
688
|
+
kwargs = compact({'custom_content_id': getattr(args, 'p_custom_content_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
689
|
+
return client.content_properties.list_custom_content(**kwargs)
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
def _run_content_properties_create(client: Client, args: argparse.Namespace) -> Any:
|
|
693
|
+
RUNTIME.require(args, 'p_custom_content_id', 'CUSTOM_CONTENT_ID (or --custom-content-id)')
|
|
694
|
+
kwargs = compact({'custom_content_id': getattr(args, 'p_custom_content_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
695
|
+
return client.content_properties.create(**kwargs)
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
def _run_content_properties_get_custom_content_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
699
|
+
RUNTIME.require(args, 'p_custom_content_id', 'CUSTOM_CONTENT_ID (or --custom-content-id)')
|
|
700
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
701
|
+
kwargs = compact({'custom_content_id': getattr(args, 'p_custom_content_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
702
|
+
return client.content_properties.get_custom_content_by_id(**kwargs)
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
def _run_content_properties_update(client: Client, args: argparse.Namespace) -> Any:
|
|
706
|
+
RUNTIME.require(args, 'p_custom_content_id', 'CUSTOM_CONTENT_ID (or --custom-content-id)')
|
|
707
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
708
|
+
kwargs = compact({'custom_content_id': getattr(args, 'p_custom_content_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
709
|
+
return client.content_properties.update(**kwargs)
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
def _run_content_properties_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
713
|
+
RUNTIME.require(args, 'p_custom_content_id', 'CUSTOM_CONTENT_ID (or --custom-content-id)')
|
|
714
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
715
|
+
kwargs = compact({'custom_content_id': getattr(args, 'p_custom_content_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
716
|
+
RUNTIME.confirm(args, 'content-properties delete')
|
|
717
|
+
return client.content_properties.delete(**kwargs)
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
def _run_content_properties_list_page(client: Client, args: argparse.Namespace) -> Any:
|
|
721
|
+
RUNTIME.require(args, 'p_page_id', 'PAGE_ID (or --page-id)')
|
|
722
|
+
kwargs = compact({'page_id': getattr(args, 'p_page_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
723
|
+
return client.content_properties.list_page(**kwargs)
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
def _run_content_properties_create_page_property(client: Client, args: argparse.Namespace) -> Any:
|
|
727
|
+
RUNTIME.require(args, 'p_page_id', 'PAGE_ID (or --page-id)')
|
|
728
|
+
kwargs = compact({'page_id': getattr(args, 'p_page_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
729
|
+
return client.content_properties.create_page_property(**kwargs)
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
def _run_content_properties_get_page_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
733
|
+
RUNTIME.require(args, 'p_page_id', 'PAGE_ID (or --page-id)')
|
|
734
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
735
|
+
kwargs = compact({'page_id': getattr(args, 'p_page_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
736
|
+
return client.content_properties.get_page_by_id(**kwargs)
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
def _run_content_properties_update_page_property(client: Client, args: argparse.Namespace) -> Any:
|
|
740
|
+
RUNTIME.require(args, 'p_page_id', 'PAGE_ID (or --page-id)')
|
|
741
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
742
|
+
kwargs = compact({'page_id': getattr(args, 'p_page_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
743
|
+
return client.content_properties.update_page_property(**kwargs)
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
def _run_content_properties_delete_page_property(client: Client, args: argparse.Namespace) -> Any:
|
|
747
|
+
RUNTIME.require(args, 'p_page_id', 'PAGE_ID (or --page-id)')
|
|
748
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
749
|
+
kwargs = compact({'page_id': getattr(args, 'p_page_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
750
|
+
RUNTIME.confirm(args, 'content-properties delete-page-property')
|
|
751
|
+
return client.content_properties.delete_page_property(**kwargs)
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
def _run_content_properties_list_whiteboard(client: Client, args: argparse.Namespace) -> Any:
|
|
755
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
756
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
757
|
+
return client.content_properties.list_whiteboard(**kwargs)
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
def _run_content_properties_create_whiteboard_property(client: Client, args: argparse.Namespace) -> Any:
|
|
761
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
762
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
763
|
+
return client.content_properties.create_whiteboard_property(**kwargs)
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
def _run_content_properties_get_whiteboard_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
767
|
+
RUNTIME.require(args, 'p_whiteboard_id', 'WHITEBOARD_ID (or --whiteboard-id)')
|
|
768
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
769
|
+
kwargs = compact({'whiteboard_id': getattr(args, 'p_whiteboard_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
770
|
+
return client.content_properties.get_whiteboard_by_id(**kwargs)
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
def _run_content_properties_update_whiteboard_property(client: Client, args: argparse.Namespace) -> Any:
|
|
774
|
+
RUNTIME.require(args, 'p_whiteboard_id', 'WHITEBOARD_ID (or --whiteboard-id)')
|
|
775
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
776
|
+
kwargs = compact({'whiteboard_id': getattr(args, 'p_whiteboard_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
777
|
+
return client.content_properties.update_whiteboard_property(**kwargs)
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
def _run_content_properties_delete_whiteboard_property(client: Client, args: argparse.Namespace) -> Any:
|
|
781
|
+
RUNTIME.require(args, 'p_whiteboard_id', 'WHITEBOARD_ID (or --whiteboard-id)')
|
|
782
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
783
|
+
kwargs = compact({'whiteboard_id': getattr(args, 'p_whiteboard_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
784
|
+
RUNTIME.confirm(args, 'content-properties delete-whiteboard-property')
|
|
785
|
+
return client.content_properties.delete_whiteboard_property(**kwargs)
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
def _run_content_properties_list_database(client: Client, args: argparse.Namespace) -> Any:
|
|
789
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
790
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
791
|
+
return client.content_properties.list_database(**kwargs)
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
def _run_content_properties_create_database_property(client: Client, args: argparse.Namespace) -> Any:
|
|
795
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
796
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
797
|
+
return client.content_properties.create_database_property(**kwargs)
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
def _run_content_properties_get_database_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
801
|
+
RUNTIME.require(args, 'p_database_id', 'DATABASE_ID (or --database-id)')
|
|
802
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
803
|
+
kwargs = compact({'database_id': getattr(args, 'p_database_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
804
|
+
return client.content_properties.get_database_by_id(**kwargs)
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
def _run_content_properties_update_database_property(client: Client, args: argparse.Namespace) -> Any:
|
|
808
|
+
RUNTIME.require(args, 'p_database_id', 'DATABASE_ID (or --database-id)')
|
|
809
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
810
|
+
kwargs = compact({'database_id': getattr(args, 'p_database_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
811
|
+
return client.content_properties.update_database_property(**kwargs)
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
def _run_content_properties_delete_database_property(client: Client, args: argparse.Namespace) -> Any:
|
|
815
|
+
RUNTIME.require(args, 'p_database_id', 'DATABASE_ID (or --database-id)')
|
|
816
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
817
|
+
kwargs = compact({'database_id': getattr(args, 'p_database_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
818
|
+
RUNTIME.confirm(args, 'content-properties delete-database-property')
|
|
819
|
+
return client.content_properties.delete_database_property(**kwargs)
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
def _run_content_properties_list_smart_link(client: Client, args: argparse.Namespace) -> Any:
|
|
823
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
824
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
825
|
+
return client.content_properties.list_smart_link(**kwargs)
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
def _run_content_properties_create_smart_link_property(client: Client, args: argparse.Namespace) -> Any:
|
|
829
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
830
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
831
|
+
return client.content_properties.create_smart_link_property(**kwargs)
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
def _run_content_properties_get_smart_link_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
835
|
+
RUNTIME.require(args, 'p_embed_id', 'EMBED_ID (or --embed-id)')
|
|
836
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
837
|
+
kwargs = compact({'embed_id': getattr(args, 'p_embed_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
838
|
+
return client.content_properties.get_smart_link_by_id(**kwargs)
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
def _run_content_properties_update_smart_link_property(client: Client, args: argparse.Namespace) -> Any:
|
|
842
|
+
RUNTIME.require(args, 'p_embed_id', 'EMBED_ID (or --embed-id)')
|
|
843
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
844
|
+
kwargs = compact({'embed_id': getattr(args, 'p_embed_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
845
|
+
return client.content_properties.update_smart_link_property(**kwargs)
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
def _run_content_properties_delete_smart_link_property(client: Client, args: argparse.Namespace) -> Any:
|
|
849
|
+
RUNTIME.require(args, 'p_embed_id', 'EMBED_ID (or --embed-id)')
|
|
850
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
851
|
+
kwargs = compact({'embed_id': getattr(args, 'p_embed_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
852
|
+
RUNTIME.confirm(args, 'content-properties delete-smart-link-property')
|
|
853
|
+
return client.content_properties.delete_smart_link_property(**kwargs)
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
def _run_content_properties_list_folder(client: Client, args: argparse.Namespace) -> Any:
|
|
857
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
858
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
859
|
+
return client.content_properties.list_folder(**kwargs)
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
def _run_content_properties_create_folder_property(client: Client, args: argparse.Namespace) -> Any:
|
|
863
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
864
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
865
|
+
return client.content_properties.create_folder_property(**kwargs)
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
def _run_content_properties_get_folder_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
869
|
+
RUNTIME.require(args, 'p_folder_id', 'FOLDER_ID (or --folder-id)')
|
|
870
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
871
|
+
kwargs = compact({'folder_id': getattr(args, 'p_folder_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
872
|
+
return client.content_properties.get_folder_by_id(**kwargs)
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
def _run_content_properties_update_folder_property(client: Client, args: argparse.Namespace) -> Any:
|
|
876
|
+
RUNTIME.require(args, 'p_folder_id', 'FOLDER_ID (or --folder-id)')
|
|
877
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
878
|
+
kwargs = compact({'folder_id': getattr(args, 'p_folder_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
879
|
+
return client.content_properties.update_folder_property(**kwargs)
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
def _run_content_properties_delete_folder_property(client: Client, args: argparse.Namespace) -> Any:
|
|
883
|
+
RUNTIME.require(args, 'p_folder_id', 'FOLDER_ID (or --folder-id)')
|
|
884
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
885
|
+
kwargs = compact({'folder_id': getattr(args, 'p_folder_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
886
|
+
RUNTIME.confirm(args, 'content-properties delete-folder-property')
|
|
887
|
+
return client.content_properties.delete_folder_property(**kwargs)
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
def _run_content_properties_list_comment(client: Client, args: argparse.Namespace) -> Any:
|
|
891
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
892
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'key': args.p_key, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
893
|
+
return client.content_properties.list_comment(**kwargs)
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
def _run_content_properties_create_comment_property(client: Client, args: argparse.Namespace) -> Any:
|
|
897
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
898
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
899
|
+
return client.content_properties.create_comment_property(**kwargs)
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
def _run_content_properties_get_comment_by_id(client: Client, args: argparse.Namespace) -> Any:
|
|
903
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
904
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
905
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
906
|
+
return client.content_properties.get_comment_by_id(**kwargs)
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
def _run_content_properties_update_comment_property(client: Client, args: argparse.Namespace) -> Any:
|
|
910
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
911
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
912
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
913
|
+
return client.content_properties.update_comment_property(**kwargs)
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
def _run_content_properties_delete_comment_property(client: Client, args: argparse.Namespace) -> Any:
|
|
917
|
+
RUNTIME.require(args, 'p_comment_id', 'COMMENT_ID (or --comment-id)')
|
|
918
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
919
|
+
kwargs = compact({'comment_id': getattr(args, 'p_comment_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
920
|
+
RUNTIME.confirm(args, 'content-properties delete-comment-property')
|
|
921
|
+
return client.content_properties.delete_comment_property(**kwargs)
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
def _run_custom_content_get_by_type_in_blog_post(client: Client, args: argparse.Namespace) -> Any:
|
|
925
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
926
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'type_': args.p_type, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit, 'body_format': args.p_body_format})
|
|
927
|
+
return client.custom_content.get_by_type_in_blog_post(**kwargs)
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
def _run_custom_content_get_by_type(client: Client, args: argparse.Namespace) -> Any:
|
|
931
|
+
kwargs = compact({'type_': args.p_type, 'id': args.p_id, 'space_id': args.p_space_id, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit, 'body_format': args.p_body_format})
|
|
932
|
+
return client.custom_content.get_by_type(**kwargs)
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
def _run_custom_content_create(client: Client, args: argparse.Namespace) -> Any:
|
|
936
|
+
kwargs = compact({'type_': args.p_type, 'status': args.p_status, 'space_id': args.p_space_id, 'page_id': args.p_page_id, 'blog_post_id': args.p_blog_post_id, 'custom_content_id': args.p_custom_content_id, 'title': args.p_title, 'body': args.p_body})
|
|
937
|
+
return client.custom_content.create(**kwargs)
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
def _run_custom_content_get(client: Client, args: argparse.Namespace) -> Any:
|
|
941
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
942
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'version': args.p_arg_version, 'include_labels': args.p_include_labels, 'include_properties': args.p_include_properties, 'include_operations': args.p_include_operations, 'include_versions': args.p_include_versions, 'include_version': args.p_include_version, 'include_collaborators': args.p_include_collaborators})
|
|
943
|
+
return client.custom_content.get(**kwargs)
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
def _run_custom_content_update(client: Client, args: argparse.Namespace) -> Any:
|
|
947
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
948
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
949
|
+
return client.custom_content.update(**kwargs)
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
def _run_custom_content_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
953
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
954
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'purge': args.p_purge})
|
|
955
|
+
RUNTIME.confirm(args, 'custom-content delete')
|
|
956
|
+
return client.custom_content.delete(**kwargs)
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
def _run_custom_content_get_by_type_in_page(client: Client, args: argparse.Namespace) -> Any:
|
|
960
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
961
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'type_': args.p_type, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit, 'body_format': args.p_body_format})
|
|
962
|
+
return client.custom_content.get_by_type_in_page(**kwargs)
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
def _run_custom_content_get_by_type_in_space(client: Client, args: argparse.Namespace) -> Any:
|
|
966
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
967
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'type_': args.p_type, 'cursor': args.p_cursor, 'limit': args.p_limit, 'body_format': args.p_body_format})
|
|
968
|
+
return client.custom_content.get_by_type_in_space(**kwargs)
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
def _run_data_policies_get_metadata(client: Client, args: argparse.Namespace) -> Any:
|
|
972
|
+
kwargs = compact({})
|
|
973
|
+
return client.data_policies.get_metadata(**kwargs)
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
def _run_data_policies_list_spaces(client: Client, args: argparse.Namespace) -> Any:
|
|
977
|
+
kwargs = compact({'ids': args.p_ids, 'keys': args.p_keys, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
978
|
+
return client.data_policies.list_spaces(**kwargs)
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
def _run_database_create(client: Client, args: argparse.Namespace) -> Any:
|
|
982
|
+
kwargs = compact({'private': args.p_private, 'space_id': args.p_space_id, 'title': args.p_title, 'parent_id': args.p_parent_id})
|
|
983
|
+
return client.database.create(**kwargs)
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
def _run_database_get(client: Client, args: argparse.Namespace) -> Any:
|
|
987
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
988
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'include_collaborators': args.p_include_collaborators, 'include_direct_children': args.p_include_direct_children, 'include_operations': args.p_include_operations, 'include_properties': args.p_include_properties})
|
|
989
|
+
return client.database.get(**kwargs)
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
def _run_database_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
993
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
994
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
995
|
+
RUNTIME.confirm(args, 'database delete')
|
|
996
|
+
return client.database.delete(**kwargs)
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
def _run_database_list_fields(client: Client, args: argparse.Namespace) -> Any:
|
|
1000
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1001
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'cursor': args.p_cursor, 'if_none_match': args.p_if_none_match})
|
|
1002
|
+
return client.database.list_fields(**kwargs)
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
def _run_database_list_views(client: Client, args: argparse.Namespace) -> Any:
|
|
1006
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1007
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'cursor': args.p_cursor, 'if_none_match': args.p_if_none_match})
|
|
1008
|
+
return client.database.list_views(**kwargs)
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
def _run_database_list_entries(client: Client, args: argparse.Namespace) -> Any:
|
|
1012
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1013
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'cursor': args.p_cursor, 'if_none_match': args.p_if_none_match, 'sort': args.p_sort, 'filter': args.p_filter})
|
|
1014
|
+
return client.database.list_entries(**kwargs)
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
def _run_database_get_entry(client: Client, args: argparse.Namespace) -> Any:
|
|
1018
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1019
|
+
RUNTIME.require(args, 'p_entry_id', 'ENTRY_ID (or --entry-id)')
|
|
1020
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'entry_id': getattr(args, 'p_entry_id', None), 'if_none_match': args.p_if_none_match})
|
|
1021
|
+
return client.database.get_entry(**kwargs)
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
def _run_descendants_list_whiteboard(client: Client, args: argparse.Namespace) -> Any:
|
|
1025
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1026
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'depth': args.p_depth, 'cursor': args.p_cursor})
|
|
1027
|
+
return client.descendants.list_whiteboard(**kwargs)
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
def _run_descendants_list_database(client: Client, args: argparse.Namespace) -> Any:
|
|
1031
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1032
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'depth': args.p_depth, 'cursor': args.p_cursor})
|
|
1033
|
+
return client.descendants.list_database(**kwargs)
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
def _run_descendants_list_smart_link(client: Client, args: argparse.Namespace) -> Any:
|
|
1037
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1038
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'depth': args.p_depth, 'cursor': args.p_cursor})
|
|
1039
|
+
return client.descendants.list_smart_link(**kwargs)
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
def _run_descendants_list_folder(client: Client, args: argparse.Namespace) -> Any:
|
|
1043
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1044
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'depth': args.p_depth, 'cursor': args.p_cursor})
|
|
1045
|
+
return client.descendants.list_folder(**kwargs)
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
def _run_descendants_list_page(client: Client, args: argparse.Namespace) -> Any:
|
|
1049
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1050
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'limit': args.p_limit, 'depth': args.p_depth, 'cursor': args.p_cursor})
|
|
1051
|
+
return client.descendants.list_page(**kwargs)
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
def _run_folder_create(client: Client, args: argparse.Namespace) -> Any:
|
|
1055
|
+
kwargs = compact({'space_id': args.p_space_id, 'title': args.p_title, 'parent_id': args.p_parent_id})
|
|
1056
|
+
return client.folder.create(**kwargs)
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
def _run_folder_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1060
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1061
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'include_collaborators': args.p_include_collaborators, 'include_direct_children': args.p_include_direct_children, 'include_operations': args.p_include_operations, 'include_properties': args.p_include_properties})
|
|
1062
|
+
return client.folder.get(**kwargs)
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
def _run_folder_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
1066
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1067
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1068
|
+
RUNTIME.confirm(args, 'folder delete')
|
|
1069
|
+
return client.folder.delete(**kwargs)
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
def _run_label_list_attachment_labels(client: Client, args: argparse.Namespace) -> Any:
|
|
1073
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1074
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'prefix': args.p_prefix, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1075
|
+
return client.label.list_attachment_labels(**kwargs)
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
def _run_label_list_blog_post_labels(client: Client, args: argparse.Namespace) -> Any:
|
|
1079
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1080
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'prefix': args.p_prefix, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1081
|
+
return client.label.list_blog_post_labels(**kwargs)
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
def _run_label_list_custom_content_labels(client: Client, args: argparse.Namespace) -> Any:
|
|
1085
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1086
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'prefix': args.p_prefix, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1087
|
+
return client.label.list_custom_content_labels(**kwargs)
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
def _run_label_list_labels(client: Client, args: argparse.Namespace) -> Any:
|
|
1091
|
+
kwargs = compact({'label_id': args.p_label_id, 'prefix': args.p_prefix, 'cursor': args.p_cursor, 'sort': args.p_sort, 'limit': args.p_limit})
|
|
1092
|
+
return client.label.list_labels(**kwargs)
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
def _run_label_list_page_labels(client: Client, args: argparse.Namespace) -> Any:
|
|
1096
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1097
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'prefix': args.p_prefix, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1098
|
+
return client.label.list_page_labels(**kwargs)
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
def _run_label_list_space_labels(client: Client, args: argparse.Namespace) -> Any:
|
|
1102
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1103
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'prefix': args.p_prefix, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1104
|
+
return client.label.list_space_labels(**kwargs)
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
def _run_label_list_space_content_labels(client: Client, args: argparse.Namespace) -> Any:
|
|
1108
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1109
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'prefix': args.p_prefix, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1110
|
+
return client.label.list_space_content_labels(**kwargs)
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
def _run_like_get_blog_post_count(client: Client, args: argparse.Namespace) -> Any:
|
|
1114
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1115
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1116
|
+
return client.like.get_blog_post_count(**kwargs)
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
def _run_like_list_blog_post_users(client: Client, args: argparse.Namespace) -> Any:
|
|
1120
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1121
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1122
|
+
return client.like.list_blog_post_users(**kwargs)
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
def _run_like_get_page_count(client: Client, args: argparse.Namespace) -> Any:
|
|
1126
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1127
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1128
|
+
return client.like.get_page_count(**kwargs)
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
def _run_like_list_page_users(client: Client, args: argparse.Namespace) -> Any:
|
|
1132
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1133
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1134
|
+
return client.like.list_page_users(**kwargs)
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
def _run_like_get_footer_count(client: Client, args: argparse.Namespace) -> Any:
|
|
1138
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1139
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1140
|
+
return client.like.get_footer_count(**kwargs)
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
def _run_like_list_footer_users(client: Client, args: argparse.Namespace) -> Any:
|
|
1144
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1145
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1146
|
+
return client.like.list_footer_users(**kwargs)
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
def _run_like_get_inline_count(client: Client, args: argparse.Namespace) -> Any:
|
|
1150
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1151
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1152
|
+
return client.like.get_inline_count(**kwargs)
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
def _run_like_list_inline_users(client: Client, args: argparse.Namespace) -> Any:
|
|
1156
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1157
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1158
|
+
return client.like.list_inline_users(**kwargs)
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
def _run_operation_list_attachment_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1162
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1163
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1164
|
+
return client.operation.list_attachment_operations(**kwargs)
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
def _run_operation_list_blog_post_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1168
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1169
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1170
|
+
return client.operation.list_blog_post_operations(**kwargs)
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
def _run_operation_list_custom_content_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1174
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1175
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1176
|
+
return client.operation.list_custom_content_operations(**kwargs)
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
def _run_operation_list_page_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1180
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1181
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1182
|
+
return client.operation.list_page_operations(**kwargs)
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
def _run_operation_list_whiteboard_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1186
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1187
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1188
|
+
return client.operation.list_whiteboard_operations(**kwargs)
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
def _run_operation_list_database_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1192
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1193
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1194
|
+
return client.operation.list_database_operations(**kwargs)
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
def _run_operation_list_smart_link_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1198
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1199
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1200
|
+
return client.operation.list_smart_link_operations(**kwargs)
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
def _run_operation_list_folder_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1204
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1205
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1206
|
+
return client.operation.list_folder_operations(**kwargs)
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
def _run_operation_list_space_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1210
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1211
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1212
|
+
return client.operation.list_space_operations(**kwargs)
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
def _run_operation_list_footer_comment_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1216
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1217
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1218
|
+
return client.operation.list_footer_comment_operations(**kwargs)
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
def _run_operation_list_inline_comment_operations(client: Client, args: argparse.Namespace) -> Any:
|
|
1222
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1223
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1224
|
+
return client.operation.list_inline_comment_operations(**kwargs)
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
def _run_page_list_label_pages(client: Client, args: argparse.Namespace) -> Any:
|
|
1228
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1229
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'space_id': args.p_space_id, 'body_format': args.p_body_format, 'sort': args.p_sort, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1230
|
+
return client.page.list_label_pages(**kwargs)
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
def _run_page_list_pages(client: Client, args: argparse.Namespace) -> Any:
|
|
1234
|
+
kwargs = compact({'id': args.p_id, 'space_id': args.p_space_id, 'sort': args.p_sort, 'status': args.p_status, 'title': args.p_title, 'body_format': args.p_body_format, 'subtype': args.p_subtype, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1235
|
+
return client.page.list_pages(**kwargs)
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
def _run_page_create(client: Client, args: argparse.Namespace) -> Any:
|
|
1239
|
+
kwargs = compact({'embedded': args.p_embedded, 'private': args.p_private, 'root_level': args.p_root_level, 'space_id': args.p_space_id, 'status': args.p_status, 'title': args.p_title, 'parent_id': args.p_parent_id, 'body': args.p_body, 'subtype': args.p_subtype})
|
|
1240
|
+
return client.page.create(**kwargs)
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
def _run_page_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1244
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1245
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'get_draft': args.p_get_draft, 'status': args.p_status, 'version': args.p_arg_version, 'include_labels': args.p_include_labels, 'include_properties': args.p_include_properties, 'include_operations': args.p_include_operations, 'include_likes': args.p_include_likes, 'include_versions': args.p_include_versions, 'include_version': args.p_include_version, 'include_favorited_by_current_user_status': args.p_include_favorited_by_current_user_status, 'include_webresources': args.p_include_webresources, 'include_collaborators': args.p_include_collaborators, 'include_direct_children': args.p_include_direct_children})
|
|
1246
|
+
return client.page.get(**kwargs)
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
def _run_page_update(client: Client, args: argparse.Namespace) -> Any:
|
|
1250
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1251
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
1252
|
+
return client.page.update(**kwargs)
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
def _run_page_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
1256
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1257
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'purge': args.p_purge, 'draft': args.p_draft})
|
|
1258
|
+
RUNTIME.confirm(args, 'page delete')
|
|
1259
|
+
return client.page.delete(**kwargs)
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
def _run_page_update_title(client: Client, args: argparse.Namespace) -> Any:
|
|
1263
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1264
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'status': args.p_status, 'title': args.p_title})
|
|
1265
|
+
return client.page.update_title(**kwargs)
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
def _run_page_get_pages_in_space(client: Client, args: argparse.Namespace) -> Any:
|
|
1269
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1270
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'depth': args.p_depth, 'sort': args.p_sort, 'status': args.p_status, 'title': args.p_title, 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1271
|
+
return client.page.get_pages_in_space(**kwargs)
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
def _run_redactions_post_redact_page(client: Client, args: argparse.Namespace) -> Any:
|
|
1275
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1276
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'created_at': args.p_created_at, 'clean_history': args.p_clean_history, 'version_number': args.p_version_number, 'body': args.p_body, 'title': args.p_title})
|
|
1277
|
+
return client.redactions.post_redact_page(**kwargs)
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
def _run_redactions_post_redact_blog(client: Client, args: argparse.Namespace) -> Any:
|
|
1281
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1282
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'created_at': args.p_created_at, 'clean_history': args.p_clean_history, 'version_number': args.p_version_number, 'body': args.p_body, 'title': args.p_title})
|
|
1283
|
+
return client.redactions.post_redact_blog(**kwargs)
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
def _run_smart_link_create(client: Client, args: argparse.Namespace) -> Any:
|
|
1287
|
+
kwargs = compact({'space_id': args.p_space_id, 'title': args.p_title, 'parent_id': args.p_parent_id, 'embed_url': args.p_embed_url})
|
|
1288
|
+
return client.smart_link.create(**kwargs)
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
def _run_smart_link_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1292
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1293
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'include_collaborators': args.p_include_collaborators, 'include_direct_children': args.p_include_direct_children, 'include_operations': args.p_include_operations, 'include_properties': args.p_include_properties})
|
|
1294
|
+
return client.smart_link.get(**kwargs)
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
def _run_smart_link_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
1298
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1299
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1300
|
+
RUNTIME.confirm(args, 'smart-link delete')
|
|
1301
|
+
return client.smart_link.delete(**kwargs)
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
def _run_space_list_spaces(client: Client, args: argparse.Namespace) -> Any:
|
|
1305
|
+
kwargs = compact({'ids': args.p_ids, 'keys': args.p_keys, 'type_': args.p_type, 'status': args.p_status, 'labels': args.p_labels, 'favorited_by': args.p_favorited_by, 'not_favorited_by': args.p_not_favorited_by, 'sort': args.p_sort, 'description_format': args.p_description_format, 'include_icon': args.p_include_icon, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1306
|
+
return client.space.list_spaces(**kwargs)
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
def _run_space_create(client: Client, args: argparse.Namespace) -> Any:
|
|
1310
|
+
kwargs = compact({'name': args.p_name, 'key': args.p_key, 'alias': args.p_alias, 'description': args.p_description, 'role_assignments': args.p_role_assignments, 'copy_space_access_configuration': args.p_copy_space_access_configuration, 'create_private_space': args.p_create_private_space, 'template_key': args.p_template_key})
|
|
1311
|
+
return client.space.create(**kwargs)
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
def _run_space_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1315
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1316
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'description_format': args.p_description_format, 'include_icon': args.p_include_icon, 'include_operations': args.p_include_operations, 'include_properties': args.p_include_properties, 'include_permissions': args.p_include_permissions, 'include_role_assignments': args.p_include_role_assignments, 'include_labels': args.p_include_labels})
|
|
1317
|
+
return client.space.get(**kwargs)
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
def _run_space_permission_transition_list_space_permission_combinations(client: Client, args: argparse.Namespace) -> Any:
|
|
1321
|
+
kwargs = compact({'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1322
|
+
return client.space_permission_transition.list_space_permission_combinations(**kwargs)
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
def _run_space_permission_transition_generate_space_permission_combinations(client: Client, args: argparse.Namespace) -> Any:
|
|
1326
|
+
kwargs = compact({})
|
|
1327
|
+
return client.space_permission_transition.generate_space_permission_combinations(**kwargs)
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
def _run_space_permission_transition_bulk_assign_space_permission_roles(client: Client, args: argparse.Namespace) -> Any:
|
|
1331
|
+
kwargs = compact({'assignments': args.p_assignments, 'space_selection': args.p_space_selection})
|
|
1332
|
+
return client.space_permission_transition.bulk_assign_space_permission_roles(**kwargs)
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
def _run_space_permission_transition_bulk_remove_space_permission_access(client: Client, args: argparse.Namespace) -> Any:
|
|
1336
|
+
kwargs = compact({'permission_combination_ids': args.p_permission_combination_ids, 'space_selection': args.p_space_selection})
|
|
1337
|
+
return client.space_permission_transition.bulk_remove_space_permission_access(**kwargs)
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
def _run_space_permission_transition_get_task_status(client: Client, args: argparse.Namespace) -> Any:
|
|
1341
|
+
RUNTIME.require(args, 'p_task_id', 'TASK_ID (or --task-id)')
|
|
1342
|
+
kwargs = compact({'task_id': getattr(args, 'p_task_id', None)})
|
|
1343
|
+
return client.space_permission_transition.get_task_status(**kwargs)
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
def _run_space_permissions_list_assignments(client: Client, args: argparse.Namespace) -> Any:
|
|
1347
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1348
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1349
|
+
return client.space_permissions.list_assignments(**kwargs)
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
def _run_space_permissions_list(client: Client, args: argparse.Namespace) -> Any:
|
|
1353
|
+
kwargs = compact({'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1354
|
+
return client.space_permissions.list(**kwargs)
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
def _run_space_properties_list(client: Client, args: argparse.Namespace) -> Any:
|
|
1358
|
+
RUNTIME.require(args, 'p_space_id', 'SPACE_ID (or --space-id)')
|
|
1359
|
+
kwargs = compact({'space_id': getattr(args, 'p_space_id', None), 'key': args.p_key, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1360
|
+
return client.space_properties.list(**kwargs)
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
def _run_space_properties_create(client: Client, args: argparse.Namespace) -> Any:
|
|
1364
|
+
RUNTIME.require(args, 'p_space_id', 'SPACE_ID (or --space-id)')
|
|
1365
|
+
kwargs = compact({'space_id': getattr(args, 'p_space_id', None), 'key': args.p_key, 'value': args.p_value})
|
|
1366
|
+
return client.space_properties.create(**kwargs)
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
def _run_space_properties_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1370
|
+
RUNTIME.require(args, 'p_space_id', 'SPACE_ID (or --space-id)')
|
|
1371
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
1372
|
+
kwargs = compact({'space_id': getattr(args, 'p_space_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
1373
|
+
return client.space_properties.get(**kwargs)
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
def _run_space_properties_update(client: Client, args: argparse.Namespace) -> Any:
|
|
1377
|
+
RUNTIME.require(args, 'p_space_id', 'SPACE_ID (or --space-id)')
|
|
1378
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
1379
|
+
kwargs = compact({'space_id': getattr(args, 'p_space_id', None), 'property_id': getattr(args, 'p_property_id', None), 'key': args.p_key, 'value': args.p_value, 'version': args.p_arg_version})
|
|
1380
|
+
return client.space_properties.update(**kwargs)
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
def _run_space_properties_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
1384
|
+
RUNTIME.require(args, 'p_space_id', 'SPACE_ID (or --space-id)')
|
|
1385
|
+
RUNTIME.require(args, 'p_property_id', 'PROPERTY_ID (or --property-id)')
|
|
1386
|
+
kwargs = compact({'space_id': getattr(args, 'p_space_id', None), 'property_id': getattr(args, 'p_property_id', None)})
|
|
1387
|
+
RUNTIME.confirm(args, 'space-properties delete')
|
|
1388
|
+
return client.space_properties.delete(**kwargs)
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
def _run_space_roles_list(client: Client, args: argparse.Namespace) -> Any:
|
|
1392
|
+
kwargs = compact({'space_id': args.p_space_id, 'role_type': args.p_role_type, 'principal_id': args.p_principal_id, 'principal_type': args.p_principal_type, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1393
|
+
return client.space_roles.list(**kwargs)
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
def _run_space_roles_create(client: Client, args: argparse.Namespace) -> Any:
|
|
1397
|
+
kwargs = compact({'name': args.p_name, 'description': args.p_description, 'space_permissions': args.p_space_permissions})
|
|
1398
|
+
return client.space_roles.create(**kwargs)
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
def _run_space_roles_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1402
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1403
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1404
|
+
return client.space_roles.get(**kwargs)
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
def _run_space_roles_update(client: Client, args: argparse.Namespace) -> Any:
|
|
1408
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1409
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'name': args.p_name, 'description': args.p_description, 'space_permissions': args.p_space_permissions, 'anonymous_reassignment_role_id': args.p_anonymous_reassignment_role_id, 'guest_reassignment_role_id': args.p_guest_reassignment_role_id})
|
|
1410
|
+
return client.space_roles.update(**kwargs)
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
def _run_space_roles_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
1414
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1415
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1416
|
+
RUNTIME.confirm(args, 'space-roles delete')
|
|
1417
|
+
return client.space_roles.delete(**kwargs)
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
def _run_space_roles_get_mode(client: Client, args: argparse.Namespace) -> Any:
|
|
1421
|
+
kwargs = compact({})
|
|
1422
|
+
return client.space_roles.get_mode(**kwargs)
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
def _run_space_roles_list_assignments(client: Client, args: argparse.Namespace) -> Any:
|
|
1426
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1427
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'role_id': args.p_role_id, 'role_type': args.p_role_type, 'principal_id': args.p_principal_id, 'principal_type': args.p_principal_type, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1428
|
+
return client.space_roles.list_assignments(**kwargs)
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
def _run_space_roles_set_assignments(client: Client, args: argparse.Namespace) -> Any:
|
|
1432
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1433
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body': args.p_body})
|
|
1434
|
+
return client.space_roles.set_assignments(**kwargs)
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
def _run_task_list_tasks(client: Client, args: argparse.Namespace) -> Any:
|
|
1438
|
+
kwargs = compact({'body_format': args.p_body_format, 'include_blank_tasks': args.p_include_blank_tasks, 'status': args.p_status, 'task_id': args.p_task_id, 'space_id': args.p_space_id, 'page_id': args.p_page_id, 'blogpost_id': args.p_blogpost_id, 'created_by': args.p_created_by, 'assigned_to': args.p_assigned_to, 'completed_by': args.p_completed_by, 'created_at_from': args.p_created_at_from, 'created_at_to': args.p_created_at_to, 'due_at_from': args.p_due_at_from, 'due_at_to': args.p_due_at_to, 'completed_at_from': args.p_completed_at_from, 'completed_at_to': args.p_completed_at_to, 'cursor': args.p_cursor, 'limit': args.p_limit})
|
|
1439
|
+
return client.task.list_tasks(**kwargs)
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
def _run_task_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1443
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1444
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format})
|
|
1445
|
+
return client.task.get(**kwargs)
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
def _run_task_update(client: Client, args: argparse.Namespace) -> Any:
|
|
1449
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1450
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'body': args.p_body})
|
|
1451
|
+
return client.task.update(**kwargs)
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
def _run_user_create_bulk_lookup(client: Client, args: argparse.Namespace) -> Any:
|
|
1455
|
+
kwargs = compact({'account_ids': args.p_account_ids})
|
|
1456
|
+
return client.user.create_bulk_lookup(**kwargs)
|
|
1457
|
+
|
|
1458
|
+
|
|
1459
|
+
def _run_user_check_access_by_email(client: Client, args: argparse.Namespace) -> Any:
|
|
1460
|
+
kwargs = compact({'emails': args.p_emails})
|
|
1461
|
+
return client.user.check_access_by_email(**kwargs)
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
def _run_user_invite_by_email(client: Client, args: argparse.Namespace) -> Any:
|
|
1465
|
+
kwargs = compact({'emails': args.p_emails})
|
|
1466
|
+
return client.user.invite_by_email(**kwargs)
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
def _run_version_list_attachment_versions(client: Client, args: argparse.Namespace) -> Any:
|
|
1470
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1471
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
1472
|
+
return client.version.list_attachment_versions(**kwargs)
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
def _run_version_list_attachment_details(client: Client, args: argparse.Namespace) -> Any:
|
|
1476
|
+
RUNTIME.require(args, 'p_attachment_id', 'ATTACHMENT_ID (or --attachment-id)')
|
|
1477
|
+
RUNTIME.require(args, 'p_version_number', 'VERSION_NUMBER (or --version-number)')
|
|
1478
|
+
kwargs = compact({'attachment_id': getattr(args, 'p_attachment_id', None), 'version_number': getattr(args, 'p_version_number', None)})
|
|
1479
|
+
return client.version.list_attachment_details(**kwargs)
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
def _run_version_list_blog_post_versions(client: Client, args: argparse.Namespace) -> Any:
|
|
1483
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1484
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
1485
|
+
return client.version.list_blog_post_versions(**kwargs)
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
def _run_version_list_blog_post_details(client: Client, args: argparse.Namespace) -> Any:
|
|
1489
|
+
RUNTIME.require(args, 'p_blogpost_id', 'BLOGPOST_ID (or --blogpost-id)')
|
|
1490
|
+
RUNTIME.require(args, 'p_version_number', 'VERSION_NUMBER (or --version-number)')
|
|
1491
|
+
kwargs = compact({'blogpost_id': getattr(args, 'p_blogpost_id', None), 'version_number': getattr(args, 'p_version_number', None)})
|
|
1492
|
+
return client.version.list_blog_post_details(**kwargs)
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
def _run_version_list_page_versions(client: Client, args: argparse.Namespace) -> Any:
|
|
1496
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1497
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
1498
|
+
return client.version.list_page_versions(**kwargs)
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
def _run_version_list_page_details(client: Client, args: argparse.Namespace) -> Any:
|
|
1502
|
+
RUNTIME.require(args, 'p_page_id', 'PAGE_ID (or --page-id)')
|
|
1503
|
+
RUNTIME.require(args, 'p_version_number', 'VERSION_NUMBER (or --version-number)')
|
|
1504
|
+
kwargs = compact({'page_id': getattr(args, 'p_page_id', None), 'version_number': getattr(args, 'p_version_number', None)})
|
|
1505
|
+
return client.version.list_page_details(**kwargs)
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
def _run_version_list_custom_content_versions(client: Client, args: argparse.Namespace) -> Any:
|
|
1509
|
+
RUNTIME.require(args, 'p_custom_content_id', 'CUSTOM_CONTENT_ID (or --custom-content-id)')
|
|
1510
|
+
kwargs = compact({'custom_content_id': getattr(args, 'p_custom_content_id', None), 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
1511
|
+
return client.version.list_custom_content_versions(**kwargs)
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
def _run_version_list_custom_content_details(client: Client, args: argparse.Namespace) -> Any:
|
|
1515
|
+
RUNTIME.require(args, 'p_custom_content_id', 'CUSTOM_CONTENT_ID (or --custom-content-id)')
|
|
1516
|
+
RUNTIME.require(args, 'p_version_number', 'VERSION_NUMBER (or --version-number)')
|
|
1517
|
+
kwargs = compact({'custom_content_id': getattr(args, 'p_custom_content_id', None), 'version_number': getattr(args, 'p_version_number', None)})
|
|
1518
|
+
return client.version.list_custom_content_details(**kwargs)
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
def _run_version_list_footer_comment_versions(client: Client, args: argparse.Namespace) -> Any:
|
|
1522
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1523
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
1524
|
+
return client.version.list_footer_comment_versions(**kwargs)
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
def _run_version_list_footer_comment_details(client: Client, args: argparse.Namespace) -> Any:
|
|
1528
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1529
|
+
RUNTIME.require(args, 'p_version_number', 'VERSION_NUMBER (or --version-number)')
|
|
1530
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'version_number': getattr(args, 'p_version_number', None)})
|
|
1531
|
+
return client.version.list_footer_comment_details(**kwargs)
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
def _run_version_list_inline_comment_versions(client: Client, args: argparse.Namespace) -> Any:
|
|
1535
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1536
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'body_format': args.p_body_format, 'cursor': args.p_cursor, 'limit': args.p_limit, 'sort': args.p_sort})
|
|
1537
|
+
return client.version.list_inline_comment_versions(**kwargs)
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
def _run_version_list_inline_comment_details(client: Client, args: argparse.Namespace) -> Any:
|
|
1541
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1542
|
+
RUNTIME.require(args, 'p_version_number', 'VERSION_NUMBER (or --version-number)')
|
|
1543
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'version_number': getattr(args, 'p_version_number', None)})
|
|
1544
|
+
return client.version.list_inline_comment_details(**kwargs)
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
def _run_whiteboard_create(client: Client, args: argparse.Namespace) -> Any:
|
|
1548
|
+
kwargs = compact({'private': args.p_private, 'space_id': args.p_space_id, 'title': args.p_title, 'parent_id': args.p_parent_id, 'template_key': args.p_template_key, 'locale': args.p_locale})
|
|
1549
|
+
return client.whiteboard.create(**kwargs)
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
def _run_whiteboard_get(client: Client, args: argparse.Namespace) -> Any:
|
|
1553
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1554
|
+
kwargs = compact({'id': getattr(args, 'p_id', None), 'include_collaborators': args.p_include_collaborators, 'include_direct_children': args.p_include_direct_children, 'include_operations': args.p_include_operations, 'include_properties': args.p_include_properties})
|
|
1555
|
+
return client.whiteboard.get(**kwargs)
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
def _run_whiteboard_delete(client: Client, args: argparse.Namespace) -> Any:
|
|
1559
|
+
RUNTIME.require(args, 'p_id', 'ID (or --id)')
|
|
1560
|
+
kwargs = compact({'id': getattr(args, 'p_id', None)})
|
|
1561
|
+
RUNTIME.confirm(args, 'whiteboard delete')
|
|
1562
|
+
return client.whiteboard.delete(**kwargs)
|
|
1563
|
+
|
|
1564
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
1565
|
+
"""Build the argument parser."""
|
|
1566
|
+
common = argparse.ArgumentParser(add_help=False)
|
|
1567
|
+
RUNTIME.add_global_options(common, hidden=True)
|
|
1568
|
+
parser = RUNTIME.parser(
|
|
1569
|
+
description="This document describes Confluence's v2 APIs. This is intended to be an\niteration on the existing Confluence Cloud REST API with improvements in both\nendpoint definitions and performance.",
|
|
1570
|
+
epilog="credentials:\n basic: set CONFLUENCE_BASIC_USERNAME and CONFLUENCE_BASIC_PASSWORD, CONFLUENCE_BASIC_COMMAND, or run 'codapact-confluence auth login'\n session: custom; set CONFLUENCE_AUTH_PLUGIN=package.module:factory",
|
|
1571
|
+
examples=['codapact-confluence ancestors list-whiteboard ID'],
|
|
1572
|
+
)
|
|
1573
|
+
commands = parser.add_subparsers(dest="command", metavar="COMMAND", required=True)
|
|
1574
|
+
g_admin_key = commands.add_parser('admin-key', help='disable, enable, get', description="Run 'codapact-confluence admin-key COMMAND --help' for a command's options and examples.")
|
|
1575
|
+
g_admin_key_commands = g_admin_key.add_subparsers(dest="g_admin_key", metavar="COMMAND", required=True)
|
|
1576
|
+
c = g_admin_key_commands.add_parser('get', parents=[common], help='Get Admin Key', description='Returns information about the admin key if one is currently enabled for the\ncalling user within the site.\n\n**[Permissions](https://support.atlassian.com/user-management/docs/give-users-\nadmin-permissions/#Centralized-user-management-content) required**: User must\nbe an organization or site admin.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence admin-key get']), formatter_class=RAW)
|
|
1577
|
+
c.set_defaults(handler=_run_admin_key_get, flags={}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_admin_key'})
|
|
1578
|
+
c = g_admin_key_commands.add_parser('enable', parents=[common], help='Enable Admin Key', description='Enables admin key access for the calling user within the site. If an admin key\nalready exists for the user, a new one will be issued with an updated\nexpiration time.\n\n**Note:** The `durationInMinutes` field within the request body is optional.\nIf the request body is empty or if the `durationInMinutes` is set to 0\nminutes, a new admin key will be issued to the calling user with a default\nduration of 10 minutes.\n\n**[Permissions](https://support.atlassian.com/user-management/docs/give-users-\nadmin-permissions/#Centralized-user-management-content) required**: User must\nbe an organization or site admin.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence admin-key enable', 'codapact-confluence admin-key enable --dry-run']), formatter_class=RAW)
|
|
1579
|
+
c.add_argument('--duration-in-minutes', dest='p_duration_in_minutes', type=integer, metavar='DURATION_IN_MINUTES', help='The requested duration of admin key access in minutes, up to a maximum of 60 minutes, after which the issued admin key will automatically expire.')
|
|
1580
|
+
c.set_defaults(handler=_run_admin_key_enable, flags={'body.duration_in_minutes': '--duration-in-minutes'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'enable_admin_key'})
|
|
1581
|
+
c = g_admin_key_commands.add_parser('disable', parents=[common], help='Disable Admin Key', description='Disables admin key access for the calling user within the site.\n\n**[Permissions](https://support.atlassian.com/user-management/docs/give-users-\nadmin-permissions/#Centralized-user-management-content) required**: User must\nbe an organization or site admin.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence admin-key disable --dry-run', 'codapact-confluence admin-key disable --yes']), formatter_class=RAW)
|
|
1582
|
+
RUNTIME.add_confirm_option(c)
|
|
1583
|
+
c.set_defaults(handler=_run_admin_key_disable, flags={}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'disable_admin_key'})
|
|
1584
|
+
g_ancestors = commands.add_parser('ancestors', help='list-database, list-folder, list-page, … (5 commands)', description="Run 'codapact-confluence ancestors COMMAND --help' for a command's options and examples.")
|
|
1585
|
+
g_ancestors_commands = g_ancestors.add_subparsers(dest="g_ancestors", metavar="COMMAND", required=True)
|
|
1586
|
+
c = g_ancestors_commands.add_parser('list-whiteboard', parents=[common], help='Get all ancestors of whiteboard', description="Returns all ancestors for a given whiteboard by ID in top-to-bottom order\n(that is, the highest ancestor is the first item in the response payload). The\nnumber of results is limited by the `limit` parameter and additional results\n(if available) will be available by calling this endpoint with the ID of first\nancestor in the response payload.\n\nThis endpoint returns minimal information about each ancestor. To fetch more\ndetails, use a related endpoint, such as [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the whiteboard and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence ancestors list-whiteboard ID']), formatter_class=RAW)
|
|
1587
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
1588
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1589
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help="Maximum number of items per result to return. If more results exist, call the endpoint with the highest ancestor's ID to fetch the next set of results. (default: 25)")
|
|
1590
|
+
c.set_defaults(handler=_run_ancestors_list_whiteboard, flags={'id': '--id', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_ancestors'})
|
|
1591
|
+
c = g_ancestors_commands.add_parser('list-database', parents=[common], help='Get all ancestors of database', description="Returns all ancestors for a given database by ID in top-to-bottom order (that\nis, the highest ancestor is the first item in the response payload). The\nnumber of results is limited by the `limit` parameter and additional results\n(if available) will be available by calling this endpoint with the ID of first\nancestor in the response payload.\n\nThis endpoint returns minimal information about each ancestor. To fetch more\ndetails, use a related endpoint, such as [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the database and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence ancestors list-database ID']), formatter_class=RAW)
|
|
1592
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
1593
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1594
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help="Maximum number of items per result to return. If more results exist, call the endpoint with the highest ancestor's ID to fetch the next set of results. (default: 25)")
|
|
1595
|
+
c.set_defaults(handler=_run_ancestors_list_database, flags={'id': '--id', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_ancestors'})
|
|
1596
|
+
c = g_ancestors_commands.add_parser('list-smart-link', parents=[common], help='Get all ancestors of Smart Link in content tree', description="Returns all ancestors for a given Smart Link in the content tree by ID in top-\nto-bottom order (that is, the highest ancestor is the first item in the\nresponse payload). The number of results is limited by the `limit` parameter\nand additional results (if available) will be available by calling this\nendpoint with the ID of first ancestor in the response payload.\n\nThis endpoint returns minimal information about each ancestor. To fetch more\ndetails, use a related endpoint, such as [Get Smart Link in the content tree\nby id](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nsmart-link/#api-embeds-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the Smart Link in the content tree and its corresponding\nspace", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence ancestors list-smart-link ID']), formatter_class=RAW)
|
|
1597
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree.')
|
|
1598
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1599
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help="Maximum number of items per result to return. If more results exist, call the endpoint with the highest ancestor's ID to fetch the next set of results. (default: 25)")
|
|
1600
|
+
c.set_defaults(handler=_run_ancestors_list_smart_link, flags={'id': '--id', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_smart_link_ancestors'})
|
|
1601
|
+
c = g_ancestors_commands.add_parser('list-folder', parents=[common], help='Get all ancestors of folder', description="Returns all ancestors for a given folder by ID in top-to-bottom order (that\nis, the highest ancestor is the first item in the response payload). The\nnumber of results is limited by the `limit` parameter and additional results\n(if available) will be available by calling this endpoint with the ID of first\nancestor in the response payload.\n\nThis endpoint returns minimal information about each ancestor. To fetch more\ndetails, use a related endpoint, such as [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-folders-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the folder and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence ancestors list-folder ID']), formatter_class=RAW)
|
|
1602
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
1603
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1604
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help="Maximum number of items per result to return. If more results exist, call the endpoint with the highest ancestor's ID to fetch the next set of results. (default: 25)")
|
|
1605
|
+
c.set_defaults(handler=_run_ancestors_list_folder, flags={'id': '--id', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_ancestors'})
|
|
1606
|
+
c = g_ancestors_commands.add_parser('list-page', parents=[common], help='Get all ancestors of page', description="Returns all ancestors for a given page by ID in top-to-bottom order (that is,\nthe highest ancestor is the first item in the response payload). The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available by calling this endpoint with the ID of first\nancestor in the response payload.\n\nThis endpoint returns minimal information about each ancestor. To fetch more\ndetails, use a related endpoint, such as [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence ancestors list-page ID']), formatter_class=RAW)
|
|
1607
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
1608
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1609
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help="Maximum number of pages per result to return. If more results exist, call this endpoint with the highest ancestor's ID to fetch the next set of results. (default: 25)")
|
|
1610
|
+
c.set_defaults(handler=_run_ancestors_list_page, flags={'id': '--id', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_ancestors'})
|
|
1611
|
+
g_app_properties = commands.add_parser('app-properties', help='delete, get, list, put', description="Run 'codapact-confluence app-properties COMMAND --help' for a command's options and examples.")
|
|
1612
|
+
g_app_properties_commands = g_app_properties.add_subparsers(dest="g_app_properties", metavar="COMMAND", required=True)
|
|
1613
|
+
c = g_app_properties_commands.add_parser('list', parents=[common], help='Get Forge app properties.', description='Gets Forge app properties. This API can only be accessed using\n**[asApp()](https://developer.atlassian.com/platform/forge/apis-\nreference/fetch-api-product.requestconfluence/#method-signature)** requests\nfrom Forge.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence app-properties list']), formatter_class=RAW)
|
|
1614
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor represents the last returned property key. It will be included in the response body as the next link. Use this key to request the next set of results.')
|
|
1615
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of app properties per result to return. If more results exist, use the last returned property key from the Link field in the response body as a cursor to retrieve the next set of results. (default: 50)')
|
|
1616
|
+
c.set_defaults(handler=_run_app_properties_list, flags={'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_forge_app_properties'})
|
|
1617
|
+
c = g_app_properties_commands.add_parser('get', parents=[common], help='Get a Forge app property by key.', description='Gets a Forge app property by property key. This API can only be accessed using\n**[asApp()](https://developer.atlassian.com/platform/forge/apis-\nreference/fetch-api-product.requestconfluence/#method-signature)** requests\nfrom Forge.', usage='%(prog)s PROPERTY_KEY [options]', epilog=RUNTIME.command_epilog(['codapact-confluence app-properties get PROPERTY_KEY']), formatter_class=RAW)
|
|
1618
|
+
c.add_argument('p_property_key', metavar='PROPERTY_KEY', nargs='?', default=argparse.SUPPRESS, help='The key of the property')
|
|
1619
|
+
c.add_argument('--property-key', dest='p_property_key', default=argparse.SUPPRESS, metavar='PROPERTY_KEY', help='same as PROPERTY_KEY')
|
|
1620
|
+
c.set_defaults(handler=_run_app_properties_get, flags={'property_key': '--property-key'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_forge_app_property'})
|
|
1621
|
+
c = g_app_properties_commands.add_parser('put', parents=[common], help='Create or update a Forge app property.', description='Creates or updates a Forge app property. This API can only be accessed using\n**[asApp()](https://developer.atlassian.com/platform/forge/apis-\nreference/fetch-api-product.requestconfluence/#method-signature)** requests\nfrom Forge.', usage='%(prog)s PROPERTY_KEY --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence app-properties put PROPERTY_KEY --body @body.json', 'codapact-confluence app-properties put PROPERTY_KEY --body @body.json --dry-run']), formatter_class=RAW)
|
|
1622
|
+
c.add_argument('p_property_key', metavar='PROPERTY_KEY', nargs='?', default=argparse.SUPPRESS, help='The key of the property')
|
|
1623
|
+
c.add_argument('--property-key', dest='p_property_key', default=argparse.SUPPRESS, metavar='PROPERTY_KEY', help='same as PROPERTY_KEY')
|
|
1624
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True)
|
|
1625
|
+
c.set_defaults(handler=_run_app_properties_put, flags={'property_key': '--property-key', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'put_forge_app_property'})
|
|
1626
|
+
c = g_app_properties_commands.add_parser('delete', parents=[common], help='Deletes a Forge app property.', description='Deletes a Forge app property. This API can only be accessed using\n**[asApp()](https://developer.atlassian.com/platform/forge/apis-\nreference/fetch-api-product.requestconfluence/#method-signature)** requests\nfrom Forge.', usage='%(prog)s PROPERTY_KEY [options]', epilog=RUNTIME.command_epilog(['codapact-confluence app-properties delete PROPERTY_KEY --dry-run', 'codapact-confluence app-properties delete PROPERTY_KEY --yes']), formatter_class=RAW)
|
|
1627
|
+
c.add_argument('p_property_key', metavar='PROPERTY_KEY', nargs='?', default=argparse.SUPPRESS, help='The key of the property')
|
|
1628
|
+
c.add_argument('--property-key', dest='p_property_key', default=argparse.SUPPRESS, metavar='PROPERTY_KEY', help='same as PROPERTY_KEY')
|
|
1629
|
+
RUNTIME.add_confirm_option(c)
|
|
1630
|
+
c.set_defaults(handler=_run_app_properties_delete, flags={'property_key': '--property-key'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_forge_app_property'})
|
|
1631
|
+
g_attachment = commands.add_parser('attachment', help='delete, get, get-thumbnail, … (8 commands)', description="Run 'codapact-confluence attachment COMMAND --help' for a command's options and examples.")
|
|
1632
|
+
g_attachment_commands = g_attachment.add_subparsers(dest="g_attachment", metavar="COMMAND", required=True)
|
|
1633
|
+
c = g_attachment_commands.add_parser('list-attachments', parents=[common], help='Get attachments', description='Returns all attachments. The number of results is limited by the `limit`\nparameter and additional results (if available) will be available through the\n`next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the container of the attachment.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment list-attachments']), formatter_class=RAW)
|
|
1634
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1635
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1636
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'trashed'], help='Filter the results to attachments based on their status. By default, `current` and `archived` are used.')
|
|
1637
|
+
c.add_argument('--media-type', dest='p_media_type', metavar='MEDIA_TYPE', help='Filters on the mediaType of attachments. Only one may be specified.')
|
|
1638
|
+
c.add_argument('--filename', dest='p_filename', metavar='FILENAME', help='Filters on the file-name of attachments. Only one may be specified.')
|
|
1639
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 50)')
|
|
1640
|
+
c.set_defaults(handler=_run_attachment_list_attachments, flags={'sort': '--sort', 'cursor': '--cursor', 'status': '--status', 'media_type': '--media-type', 'filename': '--filename', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachments'})
|
|
1641
|
+
c = g_attachment_commands.add_parser('get', parents=[common], help='Get attachment by id', description="Returns a specific attachment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment's container.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment get ID']), formatter_class=RAW)
|
|
1642
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help="The ID of the attachment to be returned. If you don't know the attachment's ID, use Get attachments for page/blogpost/custom content.")
|
|
1643
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
1644
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help="Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.")
|
|
1645
|
+
c.add_argument('--include-labels', dest='p_include_labels', action=argparse.BooleanOptionalAction, help='Includes labels associated with this attachment in the response. (default: False)')
|
|
1646
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this attachment in the response. (default: False)')
|
|
1647
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this attachment in the response, as defined in the `Operation` object. (default: False)')
|
|
1648
|
+
c.add_argument('--include-versions', dest='p_include_versions', action=argparse.BooleanOptionalAction, help='Includes versions associated with this attachment in the response. (default: False)')
|
|
1649
|
+
c.add_argument('--include-version', dest='p_include_version', action=argparse.BooleanOptionalAction, help='Includes the current version associated with this attachment in the response. (default: True)')
|
|
1650
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the attachment. (default: False)')
|
|
1651
|
+
c.set_defaults(handler=_run_attachment_get, flags={'id': '--id', 'version': '--arg-version', 'include_labels': '--include-labels', 'include_properties': '--include-properties', 'include_operations': '--include-operations', 'include_versions': '--include-versions', 'include_version': '--include-version', 'include_collaborators': '--include-collaborators'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_by_id'})
|
|
1652
|
+
c = g_attachment_commands.add_parser('delete', parents=[common], help='Delete attachment', description='Delete an attachment by id.\n\nDeleting an attachment moves the attachment to the trash, where it can be\nrestored later. To permanently delete an attachment (or "purge" it), the\nendpoint must be called on a **trashed** attachment with the following param\n`purge=true`.\n\n**[Permissions](https://support.atlassian.com/confluence-cloud/docs/what-are-\nconfluences-roles/) required**: Permission to view the container of the\nattachment. Permission to delete attachments in the space. [`manage/content`](\nhttps://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-\npermissions/#api-space-permissions-get) permission for the space (if\nattempting to purge).\n\n**Note:** To find the display name for each permission ID, call the [Get\navailable space\npermissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) API.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment delete ID --dry-run', 'codapact-confluence attachment delete ID --yes']), formatter_class=RAW)
|
|
1653
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the attachment to be deleted.')
|
|
1654
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1655
|
+
c.add_argument('--purge', dest='p_purge', action=argparse.BooleanOptionalAction, help='If attempting to purge the attachment. (default: False)')
|
|
1656
|
+
RUNTIME.add_confirm_option(c)
|
|
1657
|
+
c.set_defaults(handler=_run_attachment_delete, flags={'id': '--id', 'purge': '--purge'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_attachment'})
|
|
1658
|
+
c = g_attachment_commands.add_parser('list-blogpost-attachments', parents=[common], help='Get attachments for blog post', description='Returns the attachments of specific blog post. The number of results is\nlimited by the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the blog post and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment list-blogpost-attachments ID']), formatter_class=RAW)
|
|
1659
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which attachments should be returned.')
|
|
1660
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1661
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1662
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1663
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'trashed'], help='Filter the results to attachments based on their status. By default, `current` and `archived` are used.')
|
|
1664
|
+
c.add_argument('--media-type', dest='p_media_type', metavar='MEDIA_TYPE', help='Filters on the mediaType of attachments. Only one may be specified.')
|
|
1665
|
+
c.add_argument('--filename', dest='p_filename', metavar='FILENAME', help='Filters on the file-name of attachments. Only one may be specified.')
|
|
1666
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 50)')
|
|
1667
|
+
c.set_defaults(handler=_run_attachment_list_blogpost_attachments, flags={'id': '--id', 'sort': '--sort', 'cursor': '--cursor', 'status': '--status', 'media_type': '--media-type', 'filename': '--filename', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blogpost_attachments'})
|
|
1668
|
+
c = g_attachment_commands.add_parser('list-custom-content-attachments', parents=[common], help='Get attachments for custom content', description='Returns the attachments of specific custom content. The number of results is\nlimited by the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the custom content and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment list-custom-content-attachments ID']), formatter_class=RAW)
|
|
1669
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content for which attachments should be returned.')
|
|
1670
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1671
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1672
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1673
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'trashed'], help='Filter the results to attachments based on their status. By default, `current` and `archived` are used.')
|
|
1674
|
+
c.add_argument('--media-type', dest='p_media_type', metavar='MEDIA_TYPE', help='Filters on the mediaType of attachments. Only one may be specified.')
|
|
1675
|
+
c.add_argument('--filename', dest='p_filename', metavar='FILENAME', help='Filters on the file-name of attachments. Only one may be specified.')
|
|
1676
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 50)')
|
|
1677
|
+
c.set_defaults(handler=_run_attachment_list_custom_content_attachments, flags={'id': '--id', 'sort': '--sort', 'cursor': '--cursor', 'status': '--status', 'media_type': '--media-type', 'filename': '--filename', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_attachments'})
|
|
1678
|
+
c = g_attachment_commands.add_parser('list-label-attachments', parents=[common], help='Get attachments for label', description='Returns the attachments of specified label. The number of results is limited\nby the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment list-label-attachments ID']), formatter_class=RAW)
|
|
1679
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the label for which attachments should be returned.')
|
|
1680
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1681
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1682
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1683
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1684
|
+
c.set_defaults(handler=_run_attachment_list_label_attachments, flags={'id': '--id', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_label_attachments'})
|
|
1685
|
+
c = g_attachment_commands.add_parser('list-page-attachments', parents=[common], help='Get attachments for page', description='Returns the attachments of specific page. The number of results is limited by\nthe `limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment list-page-attachments ID']), formatter_class=RAW)
|
|
1686
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which attachments should be returned.')
|
|
1687
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1688
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1689
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1690
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'trashed'], help='Filter the results to attachments based on their status. By default, `current` and `archived` are used.')
|
|
1691
|
+
c.add_argument('--media-type', dest='p_media_type', metavar='MEDIA_TYPE', help='Filters on the mediaType of attachments. Only one may be specified.')
|
|
1692
|
+
c.add_argument('--filename', dest='p_filename', metavar='FILENAME', help='Filters on the file-name of attachments. Only one may be specified.')
|
|
1693
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 50)')
|
|
1694
|
+
c.set_defaults(handler=_run_attachment_list_page_attachments, flags={'id': '--id', 'sort': '--sort', 'cursor': '--cursor', 'status': '--status', 'media_type': '--media-type', 'filename': '--filename', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_attachments'})
|
|
1695
|
+
c = g_attachment_commands.add_parser('get-thumbnail', parents=[common], help='Download attachment thumbnail by id', description="Redirects the client to a URL that serves an attachment thumbnail's binary\ndata.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment's container.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence attachment get-thumbnail ID']), formatter_class=RAW)
|
|
1696
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help="The ID of the attachment to be returned. If you don't know the attachment's ID, use Get attachments for page/blogpost/custom content.")
|
|
1697
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
1698
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help="Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.")
|
|
1699
|
+
c.add_argument('--height', dest='p_height', type=integer, metavar='HEIGHT', help='Allows you to define the thumbnail height.')
|
|
1700
|
+
c.add_argument('--width', dest='p_width', type=integer, metavar='WIDTH', help='Allows you to define the thumbnail width.')
|
|
1701
|
+
c.set_defaults(handler=_run_attachment_get_thumbnail, flags={'id': '--id', 'version': '--arg-version', 'height': '--height', 'width': '--width'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_thumbnail_by_id'})
|
|
1702
|
+
g_blog_post = commands.add_parser('blog-post', help='create, delete, get, … (7 commands)', description="Run 'codapact-confluence blog-post COMMAND --help' for a command's options and examples.")
|
|
1703
|
+
g_blog_post_commands = g_blog_post.add_subparsers(dest="g_blog_post", metavar="COMMAND", required=True)
|
|
1704
|
+
c = g_blog_post_commands.add_parser('list-blog-posts', parents=[common], help='Get blog posts', description="Returns all blog posts. The number of results is limited by the `limit`\nparameter and additional results (if available) will be available through the\n`next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\nblog posts that the user has permission to view will be returned.", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence blog-post list-blog-posts']), formatter_class=RAW)
|
|
1705
|
+
c.add_argument('--id', dest='p_id', action="append", type=integer, metavar='ID', help='Filter the results based on blog post ids. Multiple blog post ids can be specified as a comma-separated list.')
|
|
1706
|
+
c.add_argument('--space-id', dest='p_space_id', action="append", type=integer, metavar='SPACE_ID', help='Filter the results based on space ids. Multiple space ids can be specified as a comma-separated list.')
|
|
1707
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1708
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'deleted', 'trashed'], help='Filter the results to blog posts based on their status. By default, `current` is used.')
|
|
1709
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Filter the results to blog posts based on their title.')
|
|
1710
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1711
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1712
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of blog posts per result to return. If more results exist, use the `Link` response header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1713
|
+
c.set_defaults(handler=_run_blog_post_list_blog_posts, flags={'id': '--id', 'space_id': '--space-id', 'sort': '--sort', 'status': '--status', 'title': '--title', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_posts'})
|
|
1714
|
+
c = g_blog_post_commands.add_parser('create', parents=[common], help='Create blog post', description='Creates a new blog post in the space specified by the spaceId.\n\nBy default this will create the blog post as a non-draft, unless the status is\nspecified as draft. If creating a non-draft, the title must not be empty.\n\nCurrently only supports the storage representation specified in the\nbody.representation enums below', usage='%(prog)s --space-id SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence blog-post create --space-id SPACE_ID', 'codapact-confluence blog-post create --space-id SPACE_ID --dry-run']), formatter_class=RAW)
|
|
1715
|
+
c.add_argument('--private', dest='p_private', action=argparse.BooleanOptionalAction, help='The blog post will be private. Only the user who creates this blog post will have permission to view and edit one. (default: False)')
|
|
1716
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', required=True, help='ID of the space')
|
|
1717
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft'], help='The status of the blog post, specifies if the blog post will be created as a new blog post or a draft')
|
|
1718
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Title of the blog post, required if creating non-draft.')
|
|
1719
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON")
|
|
1720
|
+
c.add_argument('--created-at', dest='p_created_at', metavar='CREATED_AT', help='Created date of the blog post in the format of "yyyy-MM-ddTHH:mm:ss.SSSZ".')
|
|
1721
|
+
c.set_defaults(handler=_run_blog_post_create, flags={'private': '--private', 'body.space_id': '--space-id', 'body.status': '--status', 'body.title': '--title', 'body.body': '--body', 'body.created_at': '--created-at'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_blog_post'})
|
|
1722
|
+
c = g_blog_post_commands.add_parser('get', parents=[common], help='Get blog post by id', description='Returns a specific blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence blog-post get ID']), formatter_class=RAW)
|
|
1723
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the blog post to be returned. If you don't know the blog post ID, use Get blog posts and filter the results.")
|
|
1724
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1725
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format', 'view', 'export_view', 'anonymous_export_view', 'styled_view', 'editor'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1726
|
+
c.add_argument('--get-draft', dest='p_get_draft', action=argparse.BooleanOptionalAction, help='Retrieve the draft version of this blog post. (default: False)')
|
|
1727
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'trashed', 'deleted', 'historical', 'draft'], help='Filter the blog post being retrieved by its status.')
|
|
1728
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help="Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.")
|
|
1729
|
+
c.add_argument('--include-labels', dest='p_include_labels', action=argparse.BooleanOptionalAction, help='Includes labels associated with this blog post in the response. (default: False)')
|
|
1730
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this blog post in the response. (default: False)')
|
|
1731
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this blog post in the response, as defined in the `Operation` object. (default: False)')
|
|
1732
|
+
c.add_argument('--include-likes', dest='p_include_likes', action=argparse.BooleanOptionalAction, help='Includes likes associated with this blog post in the response. (default: False)')
|
|
1733
|
+
c.add_argument('--include-versions', dest='p_include_versions', action=argparse.BooleanOptionalAction, help='Includes versions associated with this blog post in the response. (default: False)')
|
|
1734
|
+
c.add_argument('--include-version', dest='p_include_version', action=argparse.BooleanOptionalAction, help='Includes the current version associated with this blog post in the response. (default: True)')
|
|
1735
|
+
c.add_argument('--include-favorited-by-current-user-status', dest='p_include_favorited_by_current_user_status', action=argparse.BooleanOptionalAction, help='Includes whether this blog post has been favorited by the current user. (default: False)')
|
|
1736
|
+
c.add_argument('--include-webresources', dest='p_include_webresources', action=argparse.BooleanOptionalAction, help='Includes web resources that can be used to render blog post content on a client. (default: False)')
|
|
1737
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the blog post. (default: False)')
|
|
1738
|
+
c.set_defaults(handler=_run_blog_post_get, flags={'id': '--id', 'body_format': '--body-format', 'get_draft': '--get-draft', 'status': '--status', 'version': '--arg-version', 'include_labels': '--include-labels', 'include_properties': '--include-properties', 'include_operations': '--include-operations', 'include_likes': '--include-likes', 'include_versions': '--include-versions', 'include_version': '--include-version', 'include_favorited_by_current_user_status': '--include-favorited-by-current-user-status', 'include_webresources': '--include-webresources', 'include_collaborators': '--include-collaborators'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_by_id'})
|
|
1739
|
+
c = g_blog_post_commands.add_parser('update', parents=[common], help='Update blog post', description='Update a blog post by id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post and its corresponding space. Permission to\nupdate blog posts in the space.', usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence blog-post update ID --body @body.json', 'codapact-confluence blog-post update ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
1740
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the blog post to be updated. If you don't know the blog post ID, use Get Blog Posts and filter the results.")
|
|
1741
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1742
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id*, status*, title*, body*, version*, space_id, created_at (* required). Schema: codapact-confluence describe blog-post update')
|
|
1743
|
+
c.set_defaults(handler=_run_blog_post_update, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_blog_post'})
|
|
1744
|
+
c = g_blog_post_commands.add_parser('delete', parents=[common], help='Delete blog post', description='Delete a blog post by id.\n\nBy default this will delete blog posts that are non-drafts. To delete a blog\npost that is a draft, the endpoint must be called on a draft with the\nfollowing param `draft=true`. Discarded drafts are not sent to the trash and\nare permanently deleted.\n\nDeleting a blog post that is not a draft moves the blog post to the trash,\nwhere it can be restored later. To permanently delete a blog post (or "purge"\nit), the endpoint must be called on a **trashed** blog post with the following\nparam `purge=true`.\n\n**[Permissions](https://support.atlassian.com/confluence-cloud/docs/what-are-\nconfluences-roles/) required**: Permission to view the blog post and its\ncorresponding space. Permission to delete blog posts in the space. [`manage/co\nntent`](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nspace-permissions/#api-space-permissions-get) permission for the space (if\nattempting to purge).\n\n**Note:** To find the display name for each permission ID, call the [Get\navailable space\npermissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) API.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence blog-post delete ID --dry-run', 'codapact-confluence blog-post delete ID --yes']), formatter_class=RAW)
|
|
1745
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post to be deleted.')
|
|
1746
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1747
|
+
c.add_argument('--purge', dest='p_purge', action=argparse.BooleanOptionalAction, help='If attempting to purge the blog post. (default: False)')
|
|
1748
|
+
c.add_argument('--draft', dest='p_draft', action=argparse.BooleanOptionalAction, help='If attempting to delete a blog post that is a draft. (default: False)')
|
|
1749
|
+
RUNTIME.add_confirm_option(c)
|
|
1750
|
+
c.set_defaults(handler=_run_blog_post_delete, flags={'id': '--id', 'purge': '--purge', 'draft': '--draft'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_blog_post'})
|
|
1751
|
+
c = g_blog_post_commands.add_parser('list-label-blog-posts', parents=[common], help='Get blog posts for label', description='Returns the blogposts of specified label. The number of results is limited by\nthe `limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence blog-post list-label-blog-posts ID']), formatter_class=RAW)
|
|
1752
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the label for which blog posts should be returned.')
|
|
1753
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1754
|
+
c.add_argument('--space-id', dest='p_space_id', action="append", type=integer, metavar='SPACE_ID', help='Filter the results based on space ids. Multiple space ids can be specified as a comma-separated list.')
|
|
1755
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1756
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1757
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1758
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of blog posts per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1759
|
+
c.set_defaults(handler=_run_blog_post_list_label_blog_posts, flags={'id': '--id', 'space_id': '--space-id', 'body_format': '--body-format', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_label_blog_posts'})
|
|
1760
|
+
c = g_blog_post_commands.add_parser('get-blog-posts-in-space', parents=[common], help='Get blog posts in space', description="Returns all blog posts in a space. The number of results is limited by the\n`limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission) and\nview the space. Only blog posts that the user has permission to view will be\nreturned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence blog-post get-blog-posts-in-space ID']), formatter_class=RAW)
|
|
1761
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which blog posts should be returned.')
|
|
1762
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1763
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1764
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'deleted', 'trashed'], help='Filter the results to blog posts based on their status. By default, `current` is used.')
|
|
1765
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Filter the results to blog posts based on their title.')
|
|
1766
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1767
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1768
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of blog posts per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1769
|
+
c.set_defaults(handler=_run_blog_post_get_blog_posts_in_space, flags={'id': '--id', 'sort': '--sort', 'status': '--status', 'title': '--title', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_posts_in_space'})
|
|
1770
|
+
g_children = commands.add_parser('children', help='get-child-custom-content, get-database-direct, get-folder-direct, … (7 commands)', description="Run 'codapact-confluence children COMMAND --help' for a command's options and examples.")
|
|
1771
|
+
g_children_commands = g_children.add_subparsers(dest="g_children", metavar="COMMAND", required=True)
|
|
1772
|
+
c = g_children_commands.add_parser('get-whiteboard-direct', parents=[common], help='Get direct children of a whiteboard', description="Returns all children for given whiteboard id in the content tree. The number\nof results is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each child. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\ncontent that the user has permission to view will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence children get-whiteboard-direct ID']), formatter_class=RAW)
|
|
1773
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the parent whiteboard.')
|
|
1774
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1775
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1776
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1777
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
1778
|
+
c.set_defaults(handler=_run_children_get_whiteboard_direct, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_direct_children'})
|
|
1779
|
+
c = g_children_commands.add_parser('get-database-direct', parents=[common], help='Get direct children of a database', description="Returns all children for given database id in the content tree. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each child. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\ncontent that the user has permission to view will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence children get-database-direct ID']), formatter_class=RAW)
|
|
1780
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the parent database.')
|
|
1781
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1782
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1783
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1784
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
1785
|
+
c.set_defaults(handler=_run_children_get_database_direct, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_direct_children'})
|
|
1786
|
+
c = g_children_commands.add_parser('get-smart-link-direct', parents=[common], help='Get direct children of a Smart Link', description="Returns all children for given smart link id in the content tree. The number\nof results is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each child. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\ncontent that the user has permission to view will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence children get-smart-link-direct ID']), formatter_class=RAW)
|
|
1787
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the parent smart link.')
|
|
1788
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1789
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1790
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1791
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
1792
|
+
c.set_defaults(handler=_run_children_get_smart_link_direct, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_smart_link_direct_children'})
|
|
1793
|
+
c = g_children_commands.add_parser('get-folder-direct', parents=[common], help='Get direct children of a folder', description="Returns all children for given folder id in the content tree. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each child. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\ncontent that the user has permission to view will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence children get-folder-direct ID']), formatter_class=RAW)
|
|
1794
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the parent folder.')
|
|
1795
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1796
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1797
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1798
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
1799
|
+
c.set_defaults(handler=_run_children_get_folder_direct, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_direct_children'})
|
|
1800
|
+
c = g_children_commands.add_parser('list-child-pages', parents=[common], help='[deprecated] Get child pages', description="Returns all child pages for given page id. The number of results is limited by\nthe `limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\npages that the user has permission to view will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence children list-child-pages ID']), formatter_class=RAW)
|
|
1801
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the parent page. If you don't know the page ID, use Get pages and filter the results.")
|
|
1802
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1803
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1804
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1805
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
1806
|
+
c.set_defaults(handler=_run_children_list_child_pages, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': True, 'operation': 'get_child_pages'})
|
|
1807
|
+
c = g_children_commands.add_parser('get-child-custom-content', parents=[common], help='Get child custom content', description="Returns all child custom content for given custom content id. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\ncustom content that the user has permission to view will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence children get-child-custom-content ID']), formatter_class=RAW)
|
|
1808
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the parent custom content. If you don't know the custom content ID, use Get custom-content and filter the results.")
|
|
1809
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1810
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1811
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1812
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
1813
|
+
c.set_defaults(handler=_run_children_get_child_custom_content, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_child_custom_content'})
|
|
1814
|
+
c = g_children_commands.add_parser('get-page-direct', parents=[common], help='Get direct children of a page', description="Returns all children for given page id in the content tree. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each child. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\ncontent that the user has permission to view will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence children get-page-direct ID']), formatter_class=RAW)
|
|
1815
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the parent page.')
|
|
1816
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1817
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1818
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1819
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
1820
|
+
c.set_defaults(handler=_run_children_get_page_direct, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_direct_children'})
|
|
1821
|
+
g_classification_level = commands.add_parser('classification-level', help='delete, get-blog-post, get-database, … (16 commands)', description="Run 'codapact-confluence classification-level COMMAND --help' for a command's options and examples.")
|
|
1822
|
+
g_classification_level_commands = g_classification_level.add_subparsers(dest="g_classification_level", metavar="COMMAND", required=True)
|
|
1823
|
+
c = g_classification_level_commands.add_parser('list-classification-levels', parents=[common], help='Get list of classification levels', description="Returns a list of [classification levels](https://developer.atlassian.com/clou\nd/admin/dlp/rest/intro/#Classification%20level) available.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission).", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level list-classification-levels']), formatter_class=RAW)
|
|
1824
|
+
c.set_defaults(handler=_run_classification_level_list_classification_levels, flags={}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_classification_levels'})
|
|
1825
|
+
c = g_classification_level_commands.add_parser('get-space-default', parents=[common], help='Get space default classification level', description="Returns the [default classification\nlevel](https://support.atlassian.com/security-and-access-policies/docs/what-\nis-a-default-classification-level/) for a specific space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the space.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level get-space-default ID']), formatter_class=RAW)
|
|
1826
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which default classification level should be returned.')
|
|
1827
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1828
|
+
c.set_defaults(handler=_run_classification_level_get_space_default, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_default_classification_level'})
|
|
1829
|
+
c = g_classification_level_commands.add_parser('put-space-default', parents=[common], help='Update space default classification level', description="Update the [default classification\nlevel](https://support.atlassian.com/security-and-access-policies/docs/what-\nis-a-default-classification-level/) for a specific space.\n\n**[Permissions](https://support.atlassian.com/confluence-cloud/docs/what-are-\nconfluences-roles/) required**: Permission to access the Confluence site ('Can\nuse' global permission) and\n[`manage/space`](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) permission for the space.\n\n**Note:** To find the display name for each permission ID, call the [Get\navailable space\npermissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) API.", usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level put-space-default ID --body @body.json', 'codapact-confluence classification-level put-space-default ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
1830
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which default classification level should be updated.')
|
|
1831
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1832
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id* (* required). Schema: codapact-confluence describe classification-level put-space-default')
|
|
1833
|
+
c.set_defaults(handler=_run_classification_level_put_space_default, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'put_space_default_classification_level'})
|
|
1834
|
+
c = g_classification_level_commands.add_parser('delete', parents=[common], help='Delete space default classification level', description="Returns the [default classification\nlevel](https://support.atlassian.com/security-and-access-policies/docs/what-\nis-a-default-classification-level/) for a specific space.\n\n**[Permissions](https://support.atlassian.com/confluence-cloud/docs/what-are-\nconfluences-roles/) required**: Permission to access the Confluence site ('Can\nuse' global permission) and\n[`manage/space`](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) permission for the space.\n\n**Note:** To find the display name for each permission ID, call the [Get\navailable space\npermissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) API.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level delete ID --dry-run', 'codapact-confluence classification-level delete ID --yes']), formatter_class=RAW)
|
|
1835
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which default classification level should be deleted.')
|
|
1836
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1837
|
+
RUNTIME.add_confirm_option(c)
|
|
1838
|
+
c.set_defaults(handler=_run_classification_level_delete, flags={'id': '--id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_space_default_classification_level'})
|
|
1839
|
+
c = g_classification_level_commands.add_parser('get-page', parents=[common], help='Get page classification level', description="Returns the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the page. 'Permission to edit the page is required if\ntrying to view classification level for a draft.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level get-page ID']), formatter_class=RAW)
|
|
1840
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which classification level should be returned.')
|
|
1841
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1842
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft', 'archived'], help='Status of page from which classification level will fetched. (default: current)')
|
|
1843
|
+
c.set_defaults(handler=_run_classification_level_get_page, flags={'id': '--id', 'status': '--status'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_classification_level'})
|
|
1844
|
+
c = g_classification_level_commands.add_parser('put-page', parents=[common], help='Update page classification level', description="Updates the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to edit the page.", usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level put-page ID --body @body.json', 'codapact-confluence classification-level put-page ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
1845
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which classification level should be updated.')
|
|
1846
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1847
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id*, status* (* required). Schema: codapact-confluence describe classification-level put-page')
|
|
1848
|
+
c.set_defaults(handler=_run_classification_level_put_page, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'put_page_classification_level'})
|
|
1849
|
+
c = g_classification_level_commands.add_parser('post-page', parents=[common], help='Reset page classification level', description="Resets the [classification level](https://developer.atlassian.com/cloud/admin/\ndlp/rest/intro/#Classification%20level) for a specific page for the space\n[default classification level](https://support.atlassian.com/security-and-\naccess-policies/docs/what-is-a-default-classification-level/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the page.", usage='%(prog)s ID --status {current,draft} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level post-page ID --status current', 'codapact-confluence classification-level post-page ID --status current --dry-run']), formatter_class=RAW)
|
|
1850
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which classification level should be updated.')
|
|
1851
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1852
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft'], required=True, help='Status of the content.')
|
|
1853
|
+
c.set_defaults(handler=_run_classification_level_post_page, flags={'id': '--id', 'body.status': '--status'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'post_page_classification_level'})
|
|
1854
|
+
c = g_classification_level_commands.add_parser('get-blog-post', parents=[common], help='Get blog post classification level', description="Returns the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the blog post. 'Permission to edit the blog post is\nrequired if trying to view classification level for a draft.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level get-blog-post ID']), formatter_class=RAW)
|
|
1855
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which classification level should be returned.')
|
|
1856
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1857
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft', 'archived'], help='Status of blog post from which classification level will fetched. (default: current)')
|
|
1858
|
+
c.set_defaults(handler=_run_classification_level_get_blog_post, flags={'id': '--id', 'status': '--status'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_classification_level'})
|
|
1859
|
+
c = g_classification_level_commands.add_parser('put-blog-post', parents=[common], help='Update blog post classification level', description="Updates the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to edit the blog post.", usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level put-blog-post ID --body @body.json', 'codapact-confluence classification-level put-blog-post ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
1860
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which classification level should be updated.')
|
|
1861
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1862
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id*, status* (* required). Schema: codapact-confluence describe classification-level put-blog-post')
|
|
1863
|
+
c.set_defaults(handler=_run_classification_level_put_blog_post, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'put_blog_post_classification_level'})
|
|
1864
|
+
c = g_classification_level_commands.add_parser('post-blog-post', parents=[common], help='Reset blog post classification level', description="Resets the [classification level](https://developer.atlassian.com/cloud/admin/\ndlp/rest/intro/#Classification%20level) for a specific blog post for the space\n[default classification level](https://support.atlassian.com/security-and-\naccess-policies/docs/what-is-a-default-classification-level/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the blog post.", usage='%(prog)s ID --status {current,draft} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level post-blog-post ID --status current', 'codapact-confluence classification-level post-blog-post ID --status current --dry-run']), formatter_class=RAW)
|
|
1865
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which classification level should be updated.')
|
|
1866
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1867
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft'], required=True, help='Status of the content.')
|
|
1868
|
+
c.set_defaults(handler=_run_classification_level_post_blog_post, flags={'id': '--id', 'body.status': '--status'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'post_blog_post_classification_level'})
|
|
1869
|
+
c = g_classification_level_commands.add_parser('get-whiteboard', parents=[common], help='Get whiteboard classification level', description="Returns the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the whiteboard.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level get-whiteboard ID']), formatter_class=RAW)
|
|
1870
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard for which classification level should be returned.')
|
|
1871
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1872
|
+
c.set_defaults(handler=_run_classification_level_get_whiteboard, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_classification_level'})
|
|
1873
|
+
c = g_classification_level_commands.add_parser('put-whiteboard', parents=[common], help='Update whiteboard classification level', description="Updates the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to edit the whiteboard.", usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level put-whiteboard ID --body @body.json', 'codapact-confluence classification-level put-whiteboard ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
1874
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard for which classification level should be updated.')
|
|
1875
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1876
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id*, status* (* required). Schema: codapact-confluence describe classification-level put-whiteboard')
|
|
1877
|
+
c.set_defaults(handler=_run_classification_level_put_whiteboard, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'put_whiteboard_classification_level'})
|
|
1878
|
+
c = g_classification_level_commands.add_parser('post-whiteboard', parents=[common], help='Reset whiteboard classification level', description="Resets the [classification level](https://developer.atlassian.com/cloud/admin/\ndlp/rest/intro/#Classification%20level) for a specific whiteboard for the\nspace [default classification level](https://support.atlassian.com/security-\nand-access-policies/docs/what-is-a-default-classification-level/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the whiteboard.", usage='%(prog)s ID --status {current} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level post-whiteboard ID --status current', 'codapact-confluence classification-level post-whiteboard ID --status current --dry-run']), formatter_class=RAW)
|
|
1879
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard for which classification level should be updated.')
|
|
1880
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1881
|
+
c.add_argument('--status', dest='p_status', choices=['current'], required=True, help='Status of the content.')
|
|
1882
|
+
c.set_defaults(handler=_run_classification_level_post_whiteboard, flags={'id': '--id', 'body.status': '--status'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'post_whiteboard_classification_level'})
|
|
1883
|
+
c = g_classification_level_commands.add_parser('get-database', parents=[common], help='Get database classification level', description="Returns the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the database.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level get-database ID']), formatter_class=RAW)
|
|
1884
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database for which classification level should be returned.')
|
|
1885
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1886
|
+
c.set_defaults(handler=_run_classification_level_get_database, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_classification_level'})
|
|
1887
|
+
c = g_classification_level_commands.add_parser('put-database', parents=[common], help='Update database classification level', description="Updates the [classification level](https://developer.atlassian.com/cloud/admin\n/dlp/rest/intro/#Classification%20level) for a specific database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to edit the database.", usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level put-database ID --body @body.json', 'codapact-confluence classification-level put-database ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
1888
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database for which classification level should be updated.')
|
|
1889
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1890
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id*, status* (* required). Schema: codapact-confluence describe classification-level put-database')
|
|
1891
|
+
c.set_defaults(handler=_run_classification_level_put_database, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'put_database_classification_level'})
|
|
1892
|
+
c = g_classification_level_commands.add_parser('post-database', parents=[common], help='Reset database classification level', description="Resets the [classification level](https://developer.atlassian.com/cloud/admin/\ndlp/rest/intro/#Classification%20level) for a specific database for the space\n[default classification level](https://support.atlassian.com/security-and-\naccess-policies/docs/what-is-a-default-classification-level/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Permission to access the Confluence site ('Can use' global permission) and\npermission to view the database.", usage='%(prog)s ID --status {current} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence classification-level post-database ID --status current', 'codapact-confluence classification-level post-database ID --status current --dry-run']), formatter_class=RAW)
|
|
1893
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database for which classification level should be updated.')
|
|
1894
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1895
|
+
c.add_argument('--status', dest='p_status', choices=['current'], required=True, help='Status of the content.')
|
|
1896
|
+
c.set_defaults(handler=_run_classification_level_post_database, flags={'id': '--id', 'body.status': '--status'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'post_database_classification_level'})
|
|
1897
|
+
g_comment = commands.add_parser('comment', help='create-footer, create-inline, delete-footer, … (18 commands)', description="Run 'codapact-confluence comment COMMAND --help' for a command's options and examples.")
|
|
1898
|
+
g_comment_commands = g_comment.add_subparsers(dest="g_comment", metavar="COMMAND", required=True)
|
|
1899
|
+
c = g_comment_commands.add_parser('list-attachment-comments', parents=[common], help='Get attachment comments', description='Returns the comments of the specific attachment. The number of results is\nlimited by the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment and its corresponding containers.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-attachment-comments ID']), formatter_class=RAW)
|
|
1900
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment for which comments should be returned.')
|
|
1901
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
1902
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1903
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1904
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1905
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1906
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help='Version number of the attachment to retrieve comments for. If no version provided, retrieves comments for the latest version.')
|
|
1907
|
+
c.set_defaults(handler=_run_comment_list_attachment_comments, flags={'id': '--id', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort', 'version': '--arg-version'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_comments'})
|
|
1908
|
+
c = g_comment_commands.add_parser('list-custom-content-comments', parents=[common], help='Get custom content comments', description='Returns the comments of the specific custom content. The number of results is\nlimited by the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content and its corresponding containers.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-custom-content-comments ID']), formatter_class=RAW)
|
|
1909
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content for which comments should be returned.')
|
|
1910
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1911
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1912
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1913
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1914
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1915
|
+
c.set_defaults(handler=_run_comment_list_custom_content_comments, flags={'id': '--id', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_comments'})
|
|
1916
|
+
c = g_comment_commands.add_parser('list-page-footer-comments', parents=[common], help='Get footer comments for page', description='Returns the root footer comments of specific page. The number of results is\nlimited by the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-page-footer-comments ID']), formatter_class=RAW)
|
|
1917
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which footer comments should be returned.')
|
|
1918
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1919
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1920
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'trashed', 'deleted', 'historical', 'draft'], help='Filter the footer comment being retrieved by its status.')
|
|
1921
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1922
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1923
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1924
|
+
c.set_defaults(handler=_run_comment_list_page_footer_comments, flags={'id': '--id', 'body_format': '--body-format', 'status': '--status', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_footer_comments'})
|
|
1925
|
+
c = g_comment_commands.add_parser('list-page-inline-comments', parents=[common], help='Get inline comments for page', description='Returns the root inline comments of specific page. The number of results is\nlimited by the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-page-inline-comments ID']), formatter_class=RAW)
|
|
1926
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which inline comments should be returned.')
|
|
1927
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1928
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1929
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'trashed', 'deleted', 'historical', 'draft'], help='Filter the inline comment being retrieved by its status.')
|
|
1930
|
+
c.add_argument('--resolution-status', dest='p_resolution_status', action="append", choices=['resolved', 'open', 'dangling', 'reopened'], help='Filter the inline comment being retrieved by its resolution status.')
|
|
1931
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1932
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1933
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of inline comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1934
|
+
c.set_defaults(handler=_run_comment_list_page_inline_comments, flags={'id': '--id', 'body_format': '--body-format', 'status': '--status', 'resolution_status': '--resolution-status', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_inline_comments'})
|
|
1935
|
+
c = g_comment_commands.add_parser('list-blog-post-footer-comments', parents=[common], help='Get footer comments for blog post', description='Returns the root footer comments of specific blog post. The number of results\nis limited by the `limit` parameter and additional results (if available) will\nbe available through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the blog post and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-blog-post-footer-comments ID']), formatter_class=RAW)
|
|
1936
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which footer comments should be returned.')
|
|
1937
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1938
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1939
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'deleted', 'trashed', 'historical', 'draft'], help='Filter the footer comment being retrieved by its status.')
|
|
1940
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1941
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1942
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1943
|
+
c.set_defaults(handler=_run_comment_list_blog_post_footer_comments, flags={'id': '--id', 'body_format': '--body-format', 'status': '--status', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_footer_comments'})
|
|
1944
|
+
c = g_comment_commands.add_parser('list-blog-post-inline-comments', parents=[common], help='Get inline comments for blog post', description='Returns the root inline comments of specific blog post. The number of results\nis limited by the `limit` parameter and additional results (if available) will\nbe available through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the blog post and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-blog-post-inline-comments ID']), formatter_class=RAW)
|
|
1945
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which inline comments should be returned.')
|
|
1946
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1947
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1948
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'deleted', 'trashed', 'historical', 'draft'], help='Filter the inline comment being retrieved by its status.')
|
|
1949
|
+
c.add_argument('--resolution-status', dest='p_resolution_status', action="append", choices=['resolved', 'open', 'dangling', 'reopened'], help='Filter the inline comment being retrieved by its resolution status.')
|
|
1950
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1951
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1952
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of inline comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1953
|
+
c.set_defaults(handler=_run_comment_list_blog_post_inline_comments, flags={'id': '--id', 'body_format': '--body-format', 'status': '--status', 'resolution_status': '--resolution-status', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_inline_comments'})
|
|
1954
|
+
c = g_comment_commands.add_parser('list-footer-comments', parents=[common], help='Get footer comments', description='Returns all footer comments. The number of results is limited by the `limit`\nparameter and additional results (if available) will be available through the\n`next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the container and its corresponding space.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-footer-comments']), formatter_class=RAW)
|
|
1955
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1956
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1957
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1958
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1959
|
+
c.set_defaults(handler=_run_comment_list_footer_comments, flags={'body_format': '--body-format', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_comments'})
|
|
1960
|
+
c = g_comment_commands.add_parser('create-footer', parents=[common], help='Create footer comment', description='Create a footer comment.\n\nThe footer comment can be made against several locations: - at the top level\n(specifying pageId or blogPostId in the request body) - as a reply (specifying\nparentCommentId in the request body) - against an attachment (note: this is\ndifferent than the comments added via the attachment properties page on the\nUI, which are referred to as version comments) - against a custom content\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to create comments in the space.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment create-footer --blog-post-id BLOG_POST_ID', 'codapact-confluence comment create-footer --blog-post-id BLOG_POST_ID --dry-run']), formatter_class=RAW)
|
|
1961
|
+
c.add_argument('--blog-post-id', dest='p_blog_post_id', metavar='BLOG_POST_ID', help='ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a reply.')
|
|
1962
|
+
c.add_argument('--page-id', dest='p_page_id', metavar='PAGE_ID', help='ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply.')
|
|
1963
|
+
c.add_argument('--parent-comment-id', dest='p_parent_comment_id', metavar='PARENT_COMMENT_ID', help='ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment.')
|
|
1964
|
+
c.add_argument('--attachment-id', dest='p_attachment_id', metavar='ATTACHMENT_ID', help='ID of the attachment, if intending to create a comment against an attachment.')
|
|
1965
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', metavar='CUSTOM_CONTENT_ID', help='ID of the custom content, if intending to create a comment against a custom content.')
|
|
1966
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON")
|
|
1967
|
+
c.set_defaults(handler=_run_comment_create_footer, flags={'body.blog_post_id': '--blog-post-id', 'body.page_id': '--page-id', 'body.parent_comment_id': '--parent-comment-id', 'body.attachment_id': '--attachment-id', 'body.custom_content_id': '--custom-content-id', 'body.body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_footer_comment', 'requires_one_of': [['--blog-post-id', '--page-id', '--parent-comment-id', '--attachment-id', '--custom-content-id', '--body']]})
|
|
1968
|
+
c = g_comment_commands.add_parser('get-footer', parents=[common], help='Get footer comment by id', description='Retrieves a footer comment by id\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the container and its corresponding space.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment get-footer COMMENT_ID']), formatter_class=RAW)
|
|
1969
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment to be retrieved.')
|
|
1970
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
1971
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format', 'view', 'export_view', 'anonymous_export_view', 'styled_view', 'editor'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1972
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help="Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.")
|
|
1973
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this footer comment in the response. (default: False)')
|
|
1974
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this footer comment in the response, as defined in the `Operation` object. (default: False)')
|
|
1975
|
+
c.add_argument('--include-likes', dest='p_include_likes', action=argparse.BooleanOptionalAction, help='Includes likes associated with this footer comment in the response. (default: False)')
|
|
1976
|
+
c.add_argument('--include-versions', dest='p_include_versions', action=argparse.BooleanOptionalAction, help='Includes versions associated with this footer comment in the response. (default: False)')
|
|
1977
|
+
c.add_argument('--include-version', dest='p_include_version', action=argparse.BooleanOptionalAction, help='Includes the current version associated with this footer comment in the response. (default: True)')
|
|
1978
|
+
c.set_defaults(handler=_run_comment_get_footer, flags={'comment_id': '--comment-id', 'body_format': '--body-format', 'version': '--arg-version', 'include_properties': '--include-properties', 'include_operations': '--include-operations', 'include_likes': '--include-likes', 'include_versions': '--include-versions', 'include_version': '--include-version'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_comment_by_id'})
|
|
1979
|
+
c = g_comment_commands.add_parser('update-footer', parents=[common], help='Update footer comment', description='Update a footer comment. This can be used to update the body text of a\ncomment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to create comments in the space.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment update-footer COMMENT_ID --arg-version @arg-version.json', 'codapact-confluence comment update-footer COMMENT_ID --arg-version @arg-version.json --dry-run']), formatter_class=RAW)
|
|
1980
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment to be retrieved.')
|
|
1981
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
1982
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='JSON object with number, message. Schema: codapact-confluence describe comment update-footer')
|
|
1983
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON")
|
|
1984
|
+
c.add_argument('--links', dest='p_links', type=json_value, metavar="JSON", help='JSON object with base. Schema: codapact-confluence describe comment update-footer')
|
|
1985
|
+
c.set_defaults(handler=_run_comment_update_footer, flags={'comment_id': '--comment-id', 'body.version': '--arg-version', 'body.body': '--body', 'body.links': '--links'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_footer_comment', 'requires_one_of': [['--arg-version', '--body', '--links']]})
|
|
1986
|
+
c = g_comment_commands.add_parser('delete-footer', parents=[common], help='Delete footer comment', description='Deletes a footer comment. This is a permanent deletion and cannot be reverted.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to delete comments in the space.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment delete-footer COMMENT_ID --dry-run', 'codapact-confluence comment delete-footer COMMENT_ID --yes']), formatter_class=RAW)
|
|
1987
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment to be retrieved.')
|
|
1988
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
1989
|
+
RUNTIME.add_confirm_option(c)
|
|
1990
|
+
c.set_defaults(handler=_run_comment_delete_footer, flags={'comment_id': '--comment-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_footer_comment'})
|
|
1991
|
+
c = g_comment_commands.add_parser('get-footer-children', parents=[common], help='Get children footer comments', description='Returns the children footer comments of specific comment. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment get-footer-children ID']), formatter_class=RAW)
|
|
1992
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the parent comment for which footer comment children should be returned.')
|
|
1993
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
1994
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
1995
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
1996
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
1997
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
1998
|
+
c.set_defaults(handler=_run_comment_get_footer_children, flags={'id': '--id', 'body_format': '--body-format', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_comment_children'})
|
|
1999
|
+
c = g_comment_commands.add_parser('list-inline-comments', parents=[common], help='Get inline comments', description='Returns all inline comments. The number of results is limited by the `limit`\nparameter and additional results (if available) will be available through the\n`next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment list-inline-comments']), formatter_class=RAW)
|
|
2000
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2001
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
2002
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2003
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2004
|
+
c.set_defaults(handler=_run_comment_list_inline_comments, flags={'body_format': '--body-format', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_comments'})
|
|
2005
|
+
c = g_comment_commands.add_parser('create-inline', parents=[common], help='Create inline comment', description='Create an inline comment. This can be at the top level (specifying pageId or\nblogPostId in the request body) or as a reply (specifying parentCommentId in\nthe request body). Note the inlineCommentProperties object in the request body\nis used to select the text the inline comment should be tied to. This is what\ndetermines the text highlighting when viewing a page in Confluence.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to create comments in the space.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment create-inline --blog-post-id BLOG_POST_ID', 'codapact-confluence comment create-inline --blog-post-id BLOG_POST_ID --dry-run']), formatter_class=RAW)
|
|
2006
|
+
c.add_argument('--blog-post-id', dest='p_blog_post_id', metavar='BLOG_POST_ID', help='ID of the containing blog post, if intending to create a top level footer comment. Do not provide if creating a reply.')
|
|
2007
|
+
c.add_argument('--page-id', dest='p_page_id', metavar='PAGE_ID', help='ID of the containing page, if intending to create a top level footer comment. Do not provide if creating a reply.')
|
|
2008
|
+
c.add_argument('--parent-comment-id', dest='p_parent_comment_id', metavar='PARENT_COMMENT_ID', help='ID of the parent comment, if intending to create a reply. Do not provide if creating a top level comment.')
|
|
2009
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON")
|
|
2010
|
+
c.add_argument('--inline-comment-properties', dest='p_inline_comment_properties', type=json_value, metavar="JSON", help='Object describing the text to highlight on the page/blog post. Only applicable for top level inline comments (not replies) and required in that case. JSON object with text_selection, text_selection_match_count, text_selection_match_index. Schema: codapact-confluence describe comment create-inline')
|
|
2011
|
+
c.set_defaults(handler=_run_comment_create_inline, flags={'body.blog_post_id': '--blog-post-id', 'body.page_id': '--page-id', 'body.parent_comment_id': '--parent-comment-id', 'body.body': '--body', 'body.inline_comment_properties': '--inline-comment-properties'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_inline_comment', 'requires_one_of': [['--blog-post-id', '--page-id', '--parent-comment-id', '--body', '--inline-comment-properties']]})
|
|
2012
|
+
c = g_comment_commands.add_parser('get-inline', parents=[common], help='Get inline comment by id', description='Retrieves an inline comment by id\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment get-inline COMMENT_ID']), formatter_class=RAW)
|
|
2013
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment to be retrieved.')
|
|
2014
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2015
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format', 'view', 'export_view', 'anonymous_export_view', 'styled_view', 'editor'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2016
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help="Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.")
|
|
2017
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this inline comment in the response. (default: False)')
|
|
2018
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this inline comment in the response, as defined in the `Operation` object. (default: False)')
|
|
2019
|
+
c.add_argument('--include-likes', dest='p_include_likes', action=argparse.BooleanOptionalAction, help='Includes likes associated with this inline comment in the response. (default: False)')
|
|
2020
|
+
c.add_argument('--include-versions', dest='p_include_versions', action=argparse.BooleanOptionalAction, help='Includes versions associated with this inline comment in the response. (default: False)')
|
|
2021
|
+
c.add_argument('--include-version', dest='p_include_version', action=argparse.BooleanOptionalAction, help='Includes the current version associated with this inline comment in the response. (default: True)')
|
|
2022
|
+
c.set_defaults(handler=_run_comment_get_inline, flags={'comment_id': '--comment-id', 'body_format': '--body-format', 'version': '--arg-version', 'include_properties': '--include-properties', 'include_operations': '--include-operations', 'include_likes': '--include-likes', 'include_versions': '--include-versions', 'include_version': '--include-version'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_comment_by_id'})
|
|
2023
|
+
c = g_comment_commands.add_parser('update-inline', parents=[common], help='Update inline comment', description='Update an inline comment. This can be used to update the body text of a\ncomment and/or to resolve the comment\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to create comments in the space.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment update-inline COMMENT_ID --arg-version @arg-version.json', 'codapact-confluence comment update-inline COMMENT_ID --arg-version @arg-version.json --dry-run']), formatter_class=RAW)
|
|
2024
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment to be retrieved.')
|
|
2025
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2026
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='JSON object with number, message. Schema: codapact-confluence describe comment update-inline')
|
|
2027
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON")
|
|
2028
|
+
c.add_argument('--resolved', dest='p_resolved', action=argparse.BooleanOptionalAction, help='Resolved state of the comment. Set to true to resolve the comment, set to false to reopen it. If')
|
|
2029
|
+
c.set_defaults(handler=_run_comment_update_inline, flags={'comment_id': '--comment-id', 'body.version': '--arg-version', 'body.body': '--body', 'body.resolved': '--resolved'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_inline_comment', 'requires_one_of': [['--arg-version', '--body', '--resolved']]})
|
|
2030
|
+
c = g_comment_commands.add_parser('delete-inline', parents=[common], help='Delete inline comment', description='Deletes an inline comment. This is a permanent deletion and cannot be\nreverted.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to delete comments in the space.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment delete-inline COMMENT_ID --dry-run', 'codapact-confluence comment delete-inline COMMENT_ID --yes']), formatter_class=RAW)
|
|
2031
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment to be deleted.')
|
|
2032
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2033
|
+
RUNTIME.add_confirm_option(c)
|
|
2034
|
+
c.set_defaults(handler=_run_comment_delete_inline, flags={'comment_id': '--comment-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_inline_comment'})
|
|
2035
|
+
c = g_comment_commands.add_parser('get-inline-children', parents=[common], help='Get children inline comments', description='Returns the children inline comments of specific comment. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence comment get-inline-children ID']), formatter_class=RAW)
|
|
2036
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the parent comment for which inline comment children should be returned.')
|
|
2037
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2038
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format type to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2039
|
+
c.add_argument('--sort', dest='p_sort', choices=['created-date', '-created-date', 'modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
2040
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2041
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of footer comments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2042
|
+
c.set_defaults(handler=_run_comment_get_inline_children, flags={'id': '--id', 'body_format': '--body-format', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_comment_children'})
|
|
2043
|
+
g_content = commands.add_parser('content', help='convert-ids-to-content-types', description="Run 'codapact-confluence content COMMAND --help' for a command's options and examples.")
|
|
2044
|
+
g_content_commands = g_content.add_subparsers(dest="g_content", metavar="COMMAND", required=True)
|
|
2045
|
+
c = g_content_commands.add_parser('convert-ids-to-content-types', parents=[common], help='Convert content ids to content types', description='Converts a list of content ids into their associated content types. This is\nuseful for users migrating from v1 to v2 who may have stored just content ids\nwithout their associated type. This will return types as they should be used\nin v2. Notably, this will return `inline-comment` for inline comments and\n`footer-comment` for footer comments, which is distinct from them both being\nrepresented by `comment` in v1.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the requested content. Any content that the user does not\nhave permission to view or does not exist will map to `null` in the response.', usage='%(prog)s --content-ids @content-ids.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content convert-ids-to-content-types --content-ids @content-ids.json', 'codapact-confluence content convert-ids-to-content-types --content-ids @content-ids.json --dry-run']), formatter_class=RAW)
|
|
2046
|
+
c.add_argument('--content-ids', dest='p_content_ids', type=json_value, metavar="JSON", required=True, help='The content ids to convert. They may be provided as strings or numbers.')
|
|
2047
|
+
c.set_defaults(handler=_run_content_convert_ids_to_content_types, flags={'body.content_ids': '--content-ids'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'convert_content_ids_to_content_types'})
|
|
2048
|
+
g_content_permissions = commands.add_parser('content-permissions', help='add-blog-post-permissions, add-database-permissions, add-folder-permissions, … (30 commands)', description="Run 'codapact-confluence content-permissions COMMAND --help' for a command's options and examples.")
|
|
2049
|
+
g_content_permissions_commands = g_content_permissions.add_subparsers(dest="g_content_permissions", metavar="COMMAND", required=True)
|
|
2050
|
+
c = g_content_permissions_commands.add_parser('get-page-restriction-state', parents=[common], help='Get page restriction state', description='Returns the restriction state of a page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions get-page-restriction-state ID']), formatter_class=RAW)
|
|
2051
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
2052
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2053
|
+
c.set_defaults(handler=_run_content_permissions_get_page_restriction_state, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_restriction_state'})
|
|
2054
|
+
c = g_content_permissions_commands.add_parser('set-page-restriction-state', parents=[common], help='Set page restriction state', description='Sets the restriction state of a page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the page or administer the space.', usage='%(prog)s ID --state {OPEN,EDIT_RESTRICTED,VIEW_RESTRICTED} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-page-restriction-state ID --state OPEN', 'codapact-confluence content-permissions set-page-restriction-state ID --state OPEN --dry-run']), formatter_class=RAW)
|
|
2055
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
2056
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2057
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2058
|
+
c.add_argument('--state', dest='p_state', choices=['OPEN', 'EDIT_RESTRICTED', 'VIEW_RESTRICTED'], required=True)
|
|
2059
|
+
c.set_defaults(handler=_run_content_permissions_set_page_restriction_state, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.state': '--state'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_page_restriction_state'})
|
|
2060
|
+
c = g_content_permissions_commands.add_parser('get-blog-post-restriction-state', parents=[common], help='Get blog post restriction state', description='Returns the restriction state of a blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions get-blog-post-restriction-state ID']), formatter_class=RAW)
|
|
2061
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post.')
|
|
2062
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2063
|
+
c.set_defaults(handler=_run_content_permissions_get_blog_post_restriction_state, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_restriction_state'})
|
|
2064
|
+
c = g_content_permissions_commands.add_parser('set-blog-post-restriction-state', parents=[common], help='Set blog post restriction state', description='Sets the restriction state of a blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the blog post or administer the space.', usage='%(prog)s ID --state {OPEN,EDIT_RESTRICTED,VIEW_RESTRICTED} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-blog-post-restriction-state ID --state OPEN', 'codapact-confluence content-permissions set-blog-post-restriction-state ID --state OPEN --dry-run']), formatter_class=RAW)
|
|
2065
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post.')
|
|
2066
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2067
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2068
|
+
c.add_argument('--state', dest='p_state', choices=['OPEN', 'EDIT_RESTRICTED', 'VIEW_RESTRICTED'], required=True)
|
|
2069
|
+
c.set_defaults(handler=_run_content_permissions_set_blog_post_restriction_state, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.state': '--state'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_blog_post_restriction_state'})
|
|
2070
|
+
c = g_content_permissions_commands.add_parser('get-database-restriction-state', parents=[common], help='Get database restriction state', description='Returns the restriction state of a database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions get-database-restriction-state ID']), formatter_class=RAW)
|
|
2071
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
2072
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2073
|
+
c.set_defaults(handler=_run_content_permissions_get_database_restriction_state, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_restriction_state'})
|
|
2074
|
+
c = g_content_permissions_commands.add_parser('set-database-restriction-state', parents=[common], help='Set database restriction state', description='Sets the restriction state of a database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the database or administer the space.', usage='%(prog)s ID --state {OPEN,EDIT_RESTRICTED,VIEW_RESTRICTED} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-database-restriction-state ID --state OPEN', 'codapact-confluence content-permissions set-database-restriction-state ID --state OPEN --dry-run']), formatter_class=RAW)
|
|
2075
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
2076
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2077
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2078
|
+
c.add_argument('--state', dest='p_state', choices=['OPEN', 'EDIT_RESTRICTED', 'VIEW_RESTRICTED'], required=True)
|
|
2079
|
+
c.set_defaults(handler=_run_content_permissions_set_database_restriction_state, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.state': '--state'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_database_restriction_state'})
|
|
2080
|
+
c = g_content_permissions_commands.add_parser('get-whiteboard-restriction-state', parents=[common], help='Get whiteboard restriction state', description='Returns the restriction state of a whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the whiteboard.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions get-whiteboard-restriction-state ID']), formatter_class=RAW)
|
|
2081
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
2082
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2083
|
+
c.set_defaults(handler=_run_content_permissions_get_whiteboard_restriction_state, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_restriction_state'})
|
|
2084
|
+
c = g_content_permissions_commands.add_parser('set-whiteboard-restriction-state', parents=[common], help='Set whiteboard restriction state', description='Sets the restriction state of a whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the whiteboard or administer the space.', usage='%(prog)s ID --state {OPEN,EDIT_RESTRICTED,VIEW_RESTRICTED} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-whiteboard-restriction-state ID --state OPEN', 'codapact-confluence content-permissions set-whiteboard-restriction-state ID --state OPEN --dry-run']), formatter_class=RAW)
|
|
2085
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
2086
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2087
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2088
|
+
c.add_argument('--state', dest='p_state', choices=['OPEN', 'EDIT_RESTRICTED', 'VIEW_RESTRICTED'], required=True)
|
|
2089
|
+
c.set_defaults(handler=_run_content_permissions_set_whiteboard_restriction_state, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.state': '--state'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_whiteboard_restriction_state'})
|
|
2090
|
+
c = g_content_permissions_commands.add_parser('get-folder-restriction-state', parents=[common], help='Get folder restriction state', description='Returns the restriction state of a folder.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the folder.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions get-folder-restriction-state ID']), formatter_class=RAW)
|
|
2091
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
2092
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2093
|
+
c.set_defaults(handler=_run_content_permissions_get_folder_restriction_state, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_restriction_state'})
|
|
2094
|
+
c = g_content_permissions_commands.add_parser('set-folder-restriction-state', parents=[common], help='Set folder restriction state', description='Sets the restriction state of a folder.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the folder or administer the space.', usage='%(prog)s ID --state {OPEN,EDIT_RESTRICTED,VIEW_RESTRICTED} [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-folder-restriction-state ID --state OPEN', 'codapact-confluence content-permissions set-folder-restriction-state ID --state OPEN --dry-run']), formatter_class=RAW)
|
|
2095
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
2096
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2097
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2098
|
+
c.add_argument('--state', dest='p_state', choices=['OPEN', 'EDIT_RESTRICTED', 'VIEW_RESTRICTED'], required=True)
|
|
2099
|
+
c.set_defaults(handler=_run_content_permissions_set_folder_restriction_state, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.state': '--state'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_folder_restriction_state'})
|
|
2100
|
+
c = g_content_permissions_commands.add_parser('list-page-permissions', parents=[common], help='Get page permissions', description='Returns the direct content permissions on a page with optional filtering by\noperation, principal-type, and principal-id. Results are cursor-paginated (max\n250 per page).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions list-page-permissions ID']), formatter_class=RAW)
|
|
2101
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
2102
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2103
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation (`read` or `update`).')
|
|
2104
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type (`user` or `group`). May be used without `principal-id` to return all permissions for that type.')
|
|
2105
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2106
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help="Opaque cursor for pagination. Use the value from the previous response's `_links.next`.")
|
|
2107
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of permission entries to return. Must be between 1 and 250. (default: 100)')
|
|
2108
|
+
c.set_defaults(handler=_run_content_permissions_list_page_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_permissions'})
|
|
2109
|
+
c = g_content_permissions_commands.add_parser('set-page-permissions', parents=[common], help='Set page permissions', description='Replaces all direct content permissions on a page with the provided set. Any\npermissions not included in the request body are removed.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the page or administer the space.', usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-page-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions set-page-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2110
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
2111
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2112
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2113
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions set-page-permissions')
|
|
2114
|
+
c.set_defaults(handler=_run_content_permissions_set_page_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_page_permissions'})
|
|
2115
|
+
c = g_content_permissions_commands.add_parser('add-page-permissions', parents=[common], help='Add page permissions', description="Adds or replaces direct content permissions for the specified principals on a\npage. Permissions for other principals are preserved; use `PUT` to replace all\npermissions at once.\n\nA principal can hold only one `read` or `update` permission. Adding `read` for\na principal that currently has `update` downgrades that principal to `read`;\nadding `update` upgrades them. If the same request contains both operations\nfor a principal, `update` takes precedence.\n\nReasserting a principal's existing permission is idempotent and returns a\nsuccessful response without creating a duplicate entry.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the page or administer the space.", usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions add-page-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions add-page-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2116
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
2117
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2118
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2119
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions add-page-permissions')
|
|
2120
|
+
c.set_defaults(handler=_run_content_permissions_add_page_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'add_page_permissions'})
|
|
2121
|
+
c = g_content_permissions_commands.add_parser('delete-page-permissions', parents=[common], help='Delete page permissions', description="Deletes direct content permissions from a page. Filters narrow the deletion\nscope; omitting all filters deletes all direct permissions.\n\nThe following filter combinations are supported: - No filters: deletes all\ndirect permissions. - `principal-type` + `principal-id`: deletes the\nprincipal's direct `read` or `update` permission. - `operation` + `principal-\ntype` + `principal-id`: deletes the permission only when its operation\nmatches.\n\nProviding `operation` without `principal-type`/`principal-id`, or providing\nonly one of `principal-type`/`principal-id`, returns a 400 error.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the page or administer the space.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions delete-page-permissions ID --dry-run', 'codapact-confluence content-permissions delete-page-permissions ID --yes']), formatter_class=RAW)
|
|
2122
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
2123
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2124
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation. Must be provided together with `principal-type` and `principal-id`.')
|
|
2125
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type. Must be provided together with `principal-id`.')
|
|
2126
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2127
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2128
|
+
RUNTIME.add_confirm_option(c)
|
|
2129
|
+
c.set_defaults(handler=_run_content_permissions_delete_page_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'allow_self_lockout': '--allow-self-lockout'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_page_permissions'})
|
|
2130
|
+
c = g_content_permissions_commands.add_parser('list-blog-post-permissions', parents=[common], help='Get blog post permissions', description='Returns the direct content permissions on a blog post with optional filtering\nby operation, principal-type, and principal-id. Results are cursor-paginated\n(max 250 per page).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions list-blog-post-permissions ID']), formatter_class=RAW)
|
|
2131
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post.')
|
|
2132
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2133
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation (`read` or `update`).')
|
|
2134
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type (`user` or `group`). May be used without `principal-id` to return all permissions for that type.')
|
|
2135
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2136
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help="Opaque cursor for pagination. Use the value from the previous response's `_links.next`.")
|
|
2137
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of permission entries to return. Must be between 1 and 250. (default: 100)')
|
|
2138
|
+
c.set_defaults(handler=_run_content_permissions_list_blog_post_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_permissions'})
|
|
2139
|
+
c = g_content_permissions_commands.add_parser('set-blog-post-permissions', parents=[common], help='Set blog post permissions', description='Replaces all direct content permissions on a blog post with the provided set.\nAny permissions not included in the request body are removed.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the blog post or administer the space.', usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-blog-post-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions set-blog-post-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2140
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post.')
|
|
2141
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2142
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2143
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions set-blog-post-permissions')
|
|
2144
|
+
c.set_defaults(handler=_run_content_permissions_set_blog_post_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_blog_post_permissions'})
|
|
2145
|
+
c = g_content_permissions_commands.add_parser('add-blog-post-permissions', parents=[common], help='Add blog post permissions', description="Adds or replaces direct content permissions for the specified principals on a\nblog post. Permissions for other principals are preserved; use `PUT` to\nreplace all permissions at once.\n\nA principal can hold only one `read` or `update` permission. Adding `read` for\na principal that currently has `update` downgrades that principal to `read`;\nadding `update` upgrades them. If the same request contains both operations\nfor a principal, `update` takes precedence.\n\nReasserting a principal's existing permission is idempotent and returns a\nsuccessful response without creating a duplicate entry.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the blog post or administer the space.", usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions add-blog-post-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions add-blog-post-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2146
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post.')
|
|
2147
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2148
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2149
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions add-blog-post-permissions')
|
|
2150
|
+
c.set_defaults(handler=_run_content_permissions_add_blog_post_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'add_blog_post_permissions'})
|
|
2151
|
+
c = g_content_permissions_commands.add_parser('delete-blog-post-permissions', parents=[common], help='Delete blog post permissions', description='Deletes direct content permissions from a blog post. See `DELETE\n/pages/{id}/permissions` for filter semantics.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the blog post or administer the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions delete-blog-post-permissions ID --dry-run', 'codapact-confluence content-permissions delete-blog-post-permissions ID --yes']), formatter_class=RAW)
|
|
2152
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post.')
|
|
2153
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2154
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation. Must be provided together with `principal-type` and `principal-id`.')
|
|
2155
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type. Must be provided together with `principal-id`.')
|
|
2156
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2157
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2158
|
+
RUNTIME.add_confirm_option(c)
|
|
2159
|
+
c.set_defaults(handler=_run_content_permissions_delete_blog_post_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'allow_self_lockout': '--allow-self-lockout'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_blog_post_permissions'})
|
|
2160
|
+
c = g_content_permissions_commands.add_parser('list-database-permissions', parents=[common], help='Get database permissions', description='Returns the direct content permissions on a database with optional filtering.\nResults are cursor-paginated (max 250 per page).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions list-database-permissions ID']), formatter_class=RAW)
|
|
2161
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
2162
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2163
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation (`read` or `update`).')
|
|
2164
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type (`user` or `group`). May be used without `principal-id` to return all permissions for that type.')
|
|
2165
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2166
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help="Opaque cursor for pagination. Use the value from the previous response's `_links.next`.")
|
|
2167
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of permission entries to return. Must be between 1 and 250. (default: 100)')
|
|
2168
|
+
c.set_defaults(handler=_run_content_permissions_list_database_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_permissions'})
|
|
2169
|
+
c = g_content_permissions_commands.add_parser('set-database-permissions', parents=[common], help='Set database permissions', description='Replaces all direct content permissions on a database with the provided set.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the database or administer the space.', usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-database-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions set-database-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2170
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
2171
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2172
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2173
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions set-database-permissions')
|
|
2174
|
+
c.set_defaults(handler=_run_content_permissions_set_database_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_database_permissions'})
|
|
2175
|
+
c = g_content_permissions_commands.add_parser('add-database-permissions', parents=[common], help='Add database permissions', description="Adds or replaces direct content permissions for the specified principals on a\ndatabase. Permissions for other principals are preserved; use `PUT` to replace\nall permissions at once.\n\nA principal can hold only one `read` or `update` permission. Adding `read` for\na principal that currently has `update` downgrades that principal to `read`;\nadding `update` upgrades them. If the same request contains both operations\nfor a principal, `update` takes precedence.\n\nReasserting a principal's existing permission is idempotent and returns a\nsuccessful response without creating a duplicate entry.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the database or administer the space.", usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions add-database-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions add-database-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2176
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
2177
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2178
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2179
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions add-database-permissions')
|
|
2180
|
+
c.set_defaults(handler=_run_content_permissions_add_database_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'add_database_permissions'})
|
|
2181
|
+
c = g_content_permissions_commands.add_parser('delete-database-permissions', parents=[common], help='Delete database permissions', description='Deletes direct content permissions from a database. See `DELETE\n/pages/{id}/permissions` for filter semantics.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the database or administer the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions delete-database-permissions ID --dry-run', 'codapact-confluence content-permissions delete-database-permissions ID --yes']), formatter_class=RAW)
|
|
2182
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
2183
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2184
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation. Must be provided together with `principal-type` and `principal-id`.')
|
|
2185
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type. Must be provided together with `principal-id`.')
|
|
2186
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2187
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2188
|
+
RUNTIME.add_confirm_option(c)
|
|
2189
|
+
c.set_defaults(handler=_run_content_permissions_delete_database_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'allow_self_lockout': '--allow-self-lockout'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_database_permissions'})
|
|
2190
|
+
c = g_content_permissions_commands.add_parser('list-whiteboard-permissions', parents=[common], help='Get whiteboard permissions', description='Returns the direct content permissions on a whiteboard with optional\nfiltering. Results are cursor-paginated (max 250 per page).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the whiteboard.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions list-whiteboard-permissions ID']), formatter_class=RAW)
|
|
2191
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
2192
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2193
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation (`read` or `update`).')
|
|
2194
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type (`user` or `group`). May be used without `principal-id` to return all permissions for that type.')
|
|
2195
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2196
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help="Opaque cursor for pagination. Use the value from the previous response's `_links.next`.")
|
|
2197
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of permission entries to return. Must be between 1 and 250. (default: 100)')
|
|
2198
|
+
c.set_defaults(handler=_run_content_permissions_list_whiteboard_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_permissions'})
|
|
2199
|
+
c = g_content_permissions_commands.add_parser('set-whiteboard-permissions', parents=[common], help='Set whiteboard permissions', description='Replaces all direct content permissions on a whiteboard with the provided set.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the whiteboard or administer the space.', usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-whiteboard-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions set-whiteboard-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2200
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
2201
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2202
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2203
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions set-whiteboard-permissions')
|
|
2204
|
+
c.set_defaults(handler=_run_content_permissions_set_whiteboard_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_whiteboard_permissions'})
|
|
2205
|
+
c = g_content_permissions_commands.add_parser('add-whiteboard-permissions', parents=[common], help='Add whiteboard permissions', description="Adds or replaces direct content permissions for the specified principals on a\nwhiteboard. Permissions for other principals are preserved; use `PUT` to\nreplace all permissions at once.\n\nA principal can hold only one `read` or `update` permission. Adding `read` for\na principal that currently has `update` downgrades that principal to `read`;\nadding `update` upgrades them. If the same request contains both operations\nfor a principal, `update` takes precedence.\n\nReasserting a principal's existing permission is idempotent and returns a\nsuccessful response without creating a duplicate entry.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the whiteboard or administer the space.", usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions add-whiteboard-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions add-whiteboard-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2206
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
2207
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2208
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2209
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions add-whiteboard-permissions')
|
|
2210
|
+
c.set_defaults(handler=_run_content_permissions_add_whiteboard_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'add_whiteboard_permissions'})
|
|
2211
|
+
c = g_content_permissions_commands.add_parser('delete-whiteboard-permissions', parents=[common], help='Delete whiteboard permissions', description='Deletes direct content permissions from a whiteboard. See `DELETE\n/pages/{id}/permissions` for filter semantics.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the whiteboard or administer the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions delete-whiteboard-permissions ID --dry-run', 'codapact-confluence content-permissions delete-whiteboard-permissions ID --yes']), formatter_class=RAW)
|
|
2212
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
2213
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2214
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation. Must be provided together with `principal-type` and `principal-id`.')
|
|
2215
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type. Must be provided together with `principal-id`.')
|
|
2216
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2217
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2218
|
+
RUNTIME.add_confirm_option(c)
|
|
2219
|
+
c.set_defaults(handler=_run_content_permissions_delete_whiteboard_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'allow_self_lockout': '--allow-self-lockout'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_whiteboard_permissions'})
|
|
2220
|
+
c = g_content_permissions_commands.add_parser('list-folder-permissions', parents=[common], help='Get folder permissions', description='Returns the direct content permissions on a folder with optional filtering.\nResults are cursor-paginated (max 250 per page).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the folder.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions list-folder-permissions ID']), formatter_class=RAW)
|
|
2221
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
2222
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2223
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation (`read` or `update`).')
|
|
2224
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type (`user` or `group`). May be used without `principal-id` to return all permissions for that type.')
|
|
2225
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2226
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help="Opaque cursor for pagination. Use the value from the previous response's `_links.next`.")
|
|
2227
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of permission entries to return. Must be between 1 and 250. (default: 100)')
|
|
2228
|
+
c.set_defaults(handler=_run_content_permissions_list_folder_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_permissions'})
|
|
2229
|
+
c = g_content_permissions_commands.add_parser('set-folder-permissions', parents=[common], help='Set folder permissions', description='Replaces all direct content permissions on a folder with the provided set.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the folder or administer the space.', usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions set-folder-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions set-folder-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2230
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
2231
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2232
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2233
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions set-folder-permissions')
|
|
2234
|
+
c.set_defaults(handler=_run_content_permissions_set_folder_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_folder_permissions'})
|
|
2235
|
+
c = g_content_permissions_commands.add_parser('add-folder-permissions', parents=[common], help='Add folder permissions', description="Adds or replaces direct content permissions for the specified principals on a\nfolder. Permissions for other principals are preserved; use `PUT` to replace\nall permissions at once.\n\nA principal can hold only one `read` or `update` permission. Adding `read` for\na principal that currently has `update` downgrades that principal to `read`;\nadding `update` upgrades them. If the same request contains both operations\nfor a principal, `update` takes precedence.\n\nReasserting a principal's existing permission is idempotent and returns a\nsuccessful response without creating a duplicate entry.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the folder or administer the space.", usage='%(prog)s ID --permissions @permissions.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions add-folder-permissions ID --permissions @permissions.json', 'codapact-confluence content-permissions add-folder-permissions ID --permissions @permissions.json --dry-run']), formatter_class=RAW)
|
|
2236
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
2237
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2238
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2239
|
+
c.add_argument('--permissions', dest='p_permissions', type=json_value, metavar="JSON", required=True, help='JSON array of objects with operation*, principals* (* required). Schema: codapact-confluence describe content-permissions add-folder-permissions')
|
|
2240
|
+
c.set_defaults(handler=_run_content_permissions_add_folder_permissions, flags={'id': '--id', 'allow_self_lockout': '--allow-self-lockout', 'body.permissions': '--permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'add_folder_permissions'})
|
|
2241
|
+
c = g_content_permissions_commands.add_parser('delete-folder-permissions', parents=[common], help='Delete folder permissions', description='Deletes direct content permissions from a folder. See `DELETE\n/pages/{id}/permissions` for filter semantics.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the folder or administer the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-permissions delete-folder-permissions ID --dry-run', 'codapact-confluence content-permissions delete-folder-permissions ID --yes']), formatter_class=RAW)
|
|
2242
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
2243
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2244
|
+
c.add_argument('--operation', dest='p_operation', choices=['read', 'update'], help='Filter by operation. Must be provided together with `principal-type` and `principal-id`.')
|
|
2245
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['user', 'group'], help='Filter by principal type. Must be provided together with `principal-id`.')
|
|
2246
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filter by principal ID. Must be provided together with `principal-type`.')
|
|
2247
|
+
c.add_argument('--allow-self-lockout', dest='p_allow_self_lockout', action=argparse.BooleanOptionalAction, help="If `false` (default), the request is rejected when it would remove the calling user's own edit access. (default: False)")
|
|
2248
|
+
RUNTIME.add_confirm_option(c)
|
|
2249
|
+
c.set_defaults(handler=_run_content_permissions_delete_folder_permissions, flags={'id': '--id', 'operation': '--operation', 'principal_type': '--principal-type', 'principal_id': '--principal-id', 'allow_self_lockout': '--allow-self-lockout'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_folder_permissions'})
|
|
2250
|
+
g_content_properties = commands.add_parser('content-properties', help='create, create-attachment-property, create-blogpost-property, … (45 commands)', description="Run 'codapact-confluence content-properties COMMAND --help' for a command's options and examples.")
|
|
2251
|
+
g_content_properties_commands = g_content_properties.add_subparsers(dest="g_content_properties", metavar="COMMAND", required=True)
|
|
2252
|
+
c = g_content_properties_commands.add_parser('list-attachment', parents=[common], help='Get content properties for attachment', description='Retrieves all Content Properties tied to a specified attachment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment.', usage='%(prog)s ATTACHMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-attachment ATTACHMENT_ID']), formatter_class=RAW)
|
|
2253
|
+
c.add_argument('p_attachment_id', metavar='ATTACHMENT_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment for which content properties should be returned.')
|
|
2254
|
+
c.add_argument('--attachment-id', dest='p_attachment_id', default=argparse.SUPPRESS, metavar='ATTACHMENT_ID', help='same as ATTACHMENT_ID')
|
|
2255
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2256
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2257
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2258
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2259
|
+
c.set_defaults(handler=_run_content_properties_list_attachment, flags={'attachment_id': '--attachment-id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_content_properties'})
|
|
2260
|
+
c = g_content_properties_commands.add_parser('create-attachment-property', parents=[common], help='Create content property for attachment', description='Creates a new content property for an attachment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the attachment.', usage='%(prog)s ATTACHMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-attachment-property ATTACHMENT_ID --key KEY', 'codapact-confluence content-properties create-attachment-property ATTACHMENT_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2261
|
+
c.add_argument('p_attachment_id', metavar='ATTACHMENT_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment to create a property for.')
|
|
2262
|
+
c.add_argument('--attachment-id', dest='p_attachment_id', default=argparse.SUPPRESS, metavar='ATTACHMENT_ID', help='same as ATTACHMENT_ID')
|
|
2263
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2264
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2265
|
+
c.set_defaults(handler=_run_content_properties_create_attachment_property, flags={'attachment_id': '--attachment-id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_attachment_property', 'requires_one_of': [['--key', '--value']]})
|
|
2266
|
+
c = g_content_properties_commands.add_parser('get-attachment-by-id', parents=[common], help='Get content property for attachment by id', description='Retrieves a specific Content Property by ID that is attached to a specified\nattachment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment.', usage='%(prog)s ATTACHMENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-attachment-by-id ATTACHMENT_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2267
|
+
c.add_argument('p_attachment_id', metavar='ATTACHMENT_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment for which content properties should be returned.')
|
|
2268
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property to be returned')
|
|
2269
|
+
c.add_argument('--attachment-id', dest='p_attachment_id', default=argparse.SUPPRESS, metavar='ATTACHMENT_ID', help='same as ATTACHMENT_ID')
|
|
2270
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2271
|
+
c.set_defaults(handler=_run_content_properties_get_attachment_by_id, flags={'attachment_id': '--attachment-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_content_properties_by_id'})
|
|
2272
|
+
c = g_content_properties_commands.add_parser('update-attachment-property', parents=[common], help='Update content property for attachment by id', description='Update a content property for attachment by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the attachment.', usage='%(prog)s ATTACHMENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-attachment-property ATTACHMENT_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-attachment-property ATTACHMENT_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2273
|
+
c.add_argument('p_attachment_id', metavar='ATTACHMENT_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment the property belongs to.')
|
|
2274
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2275
|
+
c.add_argument('--attachment-id', dest='p_attachment_id', default=argparse.SUPPRESS, metavar='ATTACHMENT_ID', help='same as ATTACHMENT_ID')
|
|
2276
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2277
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2278
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2279
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-attachment-property')
|
|
2280
|
+
c.set_defaults(handler=_run_content_properties_update_attachment_property, flags={'attachment_id': '--attachment-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_attachment_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2281
|
+
c = g_content_properties_commands.add_parser('delete-attachment-property', parents=[common], help='Delete content property for attachment by id', description='Deletes a content property for an attachment by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to attachment the page.', usage='%(prog)s ATTACHMENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-attachment-property ATTACHMENT_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-attachment-property ATTACHMENT_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2282
|
+
c.add_argument('p_attachment_id', metavar='ATTACHMENT_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment the property belongs to.')
|
|
2283
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2284
|
+
c.add_argument('--attachment-id', dest='p_attachment_id', default=argparse.SUPPRESS, metavar='ATTACHMENT_ID', help='same as ATTACHMENT_ID')
|
|
2285
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2286
|
+
RUNTIME.add_confirm_option(c)
|
|
2287
|
+
c.set_defaults(handler=_run_content_properties_delete_attachment_property, flags={'attachment_id': '--attachment-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_attachment_property_by_id'})
|
|
2288
|
+
c = g_content_properties_commands.add_parser('list-blogpost', parents=[common], help='Get content properties for blog post', description='Retrieves all Content Properties tied to a specified blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post.', usage='%(prog)s BLOGPOST_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-blogpost BLOGPOST_ID']), formatter_class=RAW)
|
|
2289
|
+
c.add_argument('p_blogpost_id', metavar='BLOGPOST_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which content properties should be returned.')
|
|
2290
|
+
c.add_argument('--blogpost-id', dest='p_blogpost_id', default=argparse.SUPPRESS, type=integer, metavar='BLOGPOST_ID', help='same as BLOGPOST_ID')
|
|
2291
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2292
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2293
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2294
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2295
|
+
c.set_defaults(handler=_run_content_properties_list_blogpost, flags={'blogpost_id': '--blogpost-id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blogpost_content_properties'})
|
|
2296
|
+
c = g_content_properties_commands.add_parser('create-blogpost-property', parents=[common], help='Create content property for blog post', description='Creates a new property for a blogpost.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the blog post.', usage='%(prog)s BLOGPOST_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-blogpost-property BLOGPOST_ID --key KEY', 'codapact-confluence content-properties create-blogpost-property BLOGPOST_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2297
|
+
c.add_argument('p_blogpost_id', metavar='BLOGPOST_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post to create a property for.')
|
|
2298
|
+
c.add_argument('--blogpost-id', dest='p_blogpost_id', default=argparse.SUPPRESS, type=integer, metavar='BLOGPOST_ID', help='same as BLOGPOST_ID')
|
|
2299
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2300
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2301
|
+
c.set_defaults(handler=_run_content_properties_create_blogpost_property, flags={'blogpost_id': '--blogpost-id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_blogpost_property', 'requires_one_of': [['--key', '--value']]})
|
|
2302
|
+
c = g_content_properties_commands.add_parser('get-blogpost-by-id', parents=[common], help='Get content property for blog post by id', description='Retrieves a specific Content Property by ID that is attached to a specified\nblog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post.', usage='%(prog)s BLOGPOST_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-blogpost-by-id BLOGPOST_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2303
|
+
c.add_argument('p_blogpost_id', metavar='BLOGPOST_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which content properties should be returned.')
|
|
2304
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property being requested')
|
|
2305
|
+
c.add_argument('--blogpost-id', dest='p_blogpost_id', default=argparse.SUPPRESS, type=integer, metavar='BLOGPOST_ID', help='same as BLOGPOST_ID')
|
|
2306
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2307
|
+
c.set_defaults(handler=_run_content_properties_get_blogpost_by_id, flags={'blogpost_id': '--blogpost-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blogpost_content_properties_by_id'})
|
|
2308
|
+
c = g_content_properties_commands.add_parser('update-blogpost-property', parents=[common], help='Update content property for blog post by id', description='Update a content property for blog post by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the blog post.', usage='%(prog)s BLOGPOST_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-blogpost-property BLOGPOST_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-blogpost-property BLOGPOST_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2309
|
+
c.add_argument('p_blogpost_id', metavar='BLOGPOST_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post the property belongs to.')
|
|
2310
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2311
|
+
c.add_argument('--blogpost-id', dest='p_blogpost_id', default=argparse.SUPPRESS, type=integer, metavar='BLOGPOST_ID', help='same as BLOGPOST_ID')
|
|
2312
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2313
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2314
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2315
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-blogpost-property')
|
|
2316
|
+
c.set_defaults(handler=_run_content_properties_update_blogpost_property, flags={'blogpost_id': '--blogpost-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_blogpost_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2317
|
+
c = g_content_properties_commands.add_parser('delete-blogpost-property', parents=[common], help='Delete content property for blogpost by id', description='Deletes a content property for a blogpost by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the blog post.', usage='%(prog)s BLOGPOST_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-blogpost-property BLOGPOST_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-blogpost-property BLOGPOST_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2318
|
+
c.add_argument('p_blogpost_id', metavar='BLOGPOST_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post the property belongs to.')
|
|
2319
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2320
|
+
c.add_argument('--blogpost-id', dest='p_blogpost_id', default=argparse.SUPPRESS, type=integer, metavar='BLOGPOST_ID', help='same as BLOGPOST_ID')
|
|
2321
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2322
|
+
RUNTIME.add_confirm_option(c)
|
|
2323
|
+
c.set_defaults(handler=_run_content_properties_delete_blogpost_property, flags={'blogpost_id': '--blogpost-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_blogpost_property_by_id'})
|
|
2324
|
+
c = g_content_properties_commands.add_parser('list-custom-content', parents=[common], help='Get content properties for custom content', description='Retrieves Content Properties tied to a specified custom content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content.', usage='%(prog)s CUSTOM_CONTENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-custom-content CUSTOM_CONTENT_ID']), formatter_class=RAW)
|
|
2325
|
+
c.add_argument('p_custom_content_id', metavar='CUSTOM_CONTENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content for which content properties should be returned.')
|
|
2326
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', default=argparse.SUPPRESS, type=integer, metavar='CUSTOM_CONTENT_ID', help='same as CUSTOM_CONTENT_ID')
|
|
2327
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2328
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2329
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2330
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2331
|
+
c.set_defaults(handler=_run_content_properties_list_custom_content, flags={'custom_content_id': '--custom-content-id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_content_properties'})
|
|
2332
|
+
c = g_content_properties_commands.add_parser('create', parents=[common], help='Create content property for custom content', description='Creates a new content property for a piece of custom content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the custom content.', usage='%(prog)s CUSTOM_CONTENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create CUSTOM_CONTENT_ID --key KEY', 'codapact-confluence content-properties create CUSTOM_CONTENT_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2333
|
+
c.add_argument('p_custom_content_id', metavar='CUSTOM_CONTENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content to create a property for.')
|
|
2334
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', default=argparse.SUPPRESS, type=integer, metavar='CUSTOM_CONTENT_ID', help='same as CUSTOM_CONTENT_ID')
|
|
2335
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2336
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2337
|
+
c.set_defaults(handler=_run_content_properties_create, flags={'custom_content_id': '--custom-content-id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_custom_content_property', 'requires_one_of': [['--key', '--value']]})
|
|
2338
|
+
c = g_content_properties_commands.add_parser('get-custom-content-by-id', parents=[common], help='Get content property for custom content by id', description='Retrieves a specific Content Property by ID that is attached to a specified\ncustom content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page.', usage='%(prog)s CUSTOM_CONTENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-custom-content-by-id CUSTOM_CONTENT_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2339
|
+
c.add_argument('p_custom_content_id', metavar='CUSTOM_CONTENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content for which content properties should be returned.')
|
|
2340
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property being requested.')
|
|
2341
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', default=argparse.SUPPRESS, type=integer, metavar='CUSTOM_CONTENT_ID', help='same as CUSTOM_CONTENT_ID')
|
|
2342
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2343
|
+
c.set_defaults(handler=_run_content_properties_get_custom_content_by_id, flags={'custom_content_id': '--custom-content-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_content_properties_by_id'})
|
|
2344
|
+
c = g_content_properties_commands.add_parser('update', parents=[common], help='Update content property for custom content by id', description='Update a content property for a piece of custom content by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the custom content.', usage='%(prog)s CUSTOM_CONTENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update CUSTOM_CONTENT_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update CUSTOM_CONTENT_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2345
|
+
c.add_argument('p_custom_content_id', metavar='CUSTOM_CONTENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content the property belongs to.')
|
|
2346
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2347
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', default=argparse.SUPPRESS, type=integer, metavar='CUSTOM_CONTENT_ID', help='same as CUSTOM_CONTENT_ID')
|
|
2348
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2349
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2350
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2351
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update')
|
|
2352
|
+
c.set_defaults(handler=_run_content_properties_update, flags={'custom_content_id': '--custom-content-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_custom_content_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2353
|
+
c = g_content_properties_commands.add_parser('delete', parents=[common], help='Delete content property for custom content by id', description='Deletes a content property for a piece of custom content by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the custom content.', usage='%(prog)s CUSTOM_CONTENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete CUSTOM_CONTENT_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete CUSTOM_CONTENT_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2354
|
+
c.add_argument('p_custom_content_id', metavar='CUSTOM_CONTENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content the property belongs to.')
|
|
2355
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2356
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', default=argparse.SUPPRESS, type=integer, metavar='CUSTOM_CONTENT_ID', help='same as CUSTOM_CONTENT_ID')
|
|
2357
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2358
|
+
RUNTIME.add_confirm_option(c)
|
|
2359
|
+
c.set_defaults(handler=_run_content_properties_delete, flags={'custom_content_id': '--custom-content-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_custom_content_property_by_id'})
|
|
2360
|
+
c = g_content_properties_commands.add_parser('list-page', parents=[common], help='Get content properties for page', description='Retrieves Content Properties tied to a specified page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page.', usage='%(prog)s PAGE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-page PAGE_ID']), formatter_class=RAW)
|
|
2361
|
+
c.add_argument('p_page_id', metavar='PAGE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which content properties should be returned.')
|
|
2362
|
+
c.add_argument('--page-id', dest='p_page_id', default=argparse.SUPPRESS, type=integer, metavar='PAGE_ID', help='same as PAGE_ID')
|
|
2363
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2364
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2365
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2366
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2367
|
+
c.set_defaults(handler=_run_content_properties_list_page, flags={'page_id': '--page-id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_content_properties'})
|
|
2368
|
+
c = g_content_properties_commands.add_parser('create-page-property', parents=[common], help='Create content property for page', description='Creates a new content property for a page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the page.', usage='%(prog)s PAGE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-page-property PAGE_ID --key KEY', 'codapact-confluence content-properties create-page-property PAGE_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2369
|
+
c.add_argument('p_page_id', metavar='PAGE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page to create a property for.')
|
|
2370
|
+
c.add_argument('--page-id', dest='p_page_id', default=argparse.SUPPRESS, type=integer, metavar='PAGE_ID', help='same as PAGE_ID')
|
|
2371
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2372
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2373
|
+
c.set_defaults(handler=_run_content_properties_create_page_property, flags={'page_id': '--page-id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_page_property', 'requires_one_of': [['--key', '--value']]})
|
|
2374
|
+
c = g_content_properties_commands.add_parser('get-page-by-id', parents=[common], help='Get content property for page by id', description='Retrieves a specific Content Property by ID that is attached to a specified\npage.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page.', usage='%(prog)s PAGE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-page-by-id PAGE_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2375
|
+
c.add_argument('p_page_id', metavar='PAGE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which content properties should be returned.')
|
|
2376
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property being requested.')
|
|
2377
|
+
c.add_argument('--page-id', dest='p_page_id', default=argparse.SUPPRESS, type=integer, metavar='PAGE_ID', help='same as PAGE_ID')
|
|
2378
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2379
|
+
c.set_defaults(handler=_run_content_properties_get_page_by_id, flags={'page_id': '--page-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_content_properties_by_id'})
|
|
2380
|
+
c = g_content_properties_commands.add_parser('update-page-property', parents=[common], help='Update content property for page by id', description='Update a content property for a page by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the page.', usage='%(prog)s PAGE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-page-property PAGE_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-page-property PAGE_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2381
|
+
c.add_argument('p_page_id', metavar='PAGE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page the property belongs to.')
|
|
2382
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2383
|
+
c.add_argument('--page-id', dest='p_page_id', default=argparse.SUPPRESS, type=integer, metavar='PAGE_ID', help='same as PAGE_ID')
|
|
2384
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2385
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2386
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2387
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-page-property')
|
|
2388
|
+
c.set_defaults(handler=_run_content_properties_update_page_property, flags={'page_id': '--page-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_page_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2389
|
+
c = g_content_properties_commands.add_parser('delete-page-property', parents=[common], help='Delete content property for page by id', description='Deletes a content property for a page by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the page.', usage='%(prog)s PAGE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-page-property PAGE_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-page-property PAGE_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2390
|
+
c.add_argument('p_page_id', metavar='PAGE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page the property belongs to.')
|
|
2391
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2392
|
+
c.add_argument('--page-id', dest='p_page_id', default=argparse.SUPPRESS, type=integer, metavar='PAGE_ID', help='same as PAGE_ID')
|
|
2393
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2394
|
+
RUNTIME.add_confirm_option(c)
|
|
2395
|
+
c.set_defaults(handler=_run_content_properties_delete_page_property, flags={'page_id': '--page-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_page_property_by_id'})
|
|
2396
|
+
c = g_content_properties_commands.add_parser('list-whiteboard', parents=[common], help='Get content properties for whiteboard', description='Retrieves Content Properties tied to a specified whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the whiteboard.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-whiteboard ID']), formatter_class=RAW)
|
|
2397
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard for which content properties should be returned.')
|
|
2398
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2399
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2400
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2401
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2402
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2403
|
+
c.set_defaults(handler=_run_content_properties_list_whiteboard, flags={'id': '--id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_content_properties'})
|
|
2404
|
+
c = g_content_properties_commands.add_parser('create-whiteboard-property', parents=[common], help='Create content property for whiteboard', description='Creates a new content property for a whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the whiteboard.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-whiteboard-property ID --key KEY', 'codapact-confluence content-properties create-whiteboard-property ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2405
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard to create a property for.')
|
|
2406
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2407
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2408
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2409
|
+
c.set_defaults(handler=_run_content_properties_create_whiteboard_property, flags={'id': '--id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_whiteboard_property', 'requires_one_of': [['--key', '--value']]})
|
|
2410
|
+
c = g_content_properties_commands.add_parser('get-whiteboard-by-id', parents=[common], help='Get content property for whiteboard by id', description='Retrieves a specific Content Property by ID that is attached to a specified\nwhiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the whiteboard.', usage='%(prog)s WHITEBOARD_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-whiteboard-by-id WHITEBOARD_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2411
|
+
c.add_argument('p_whiteboard_id', metavar='WHITEBOARD_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard for which content properties should be returned.')
|
|
2412
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property being requested.')
|
|
2413
|
+
c.add_argument('--whiteboard-id', dest='p_whiteboard_id', default=argparse.SUPPRESS, type=integer, metavar='WHITEBOARD_ID', help='same as WHITEBOARD_ID')
|
|
2414
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2415
|
+
c.set_defaults(handler=_run_content_properties_get_whiteboard_by_id, flags={'whiteboard_id': '--whiteboard-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_content_properties_by_id'})
|
|
2416
|
+
c = g_content_properties_commands.add_parser('update-whiteboard-property', parents=[common], help='Update content property for whiteboard by id', description='Update a content property for a whiteboard by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the whiteboard.', usage='%(prog)s WHITEBOARD_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-whiteboard-property WHITEBOARD_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-whiteboard-property WHITEBOARD_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2417
|
+
c.add_argument('p_whiteboard_id', metavar='WHITEBOARD_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard the property belongs to.')
|
|
2418
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2419
|
+
c.add_argument('--whiteboard-id', dest='p_whiteboard_id', default=argparse.SUPPRESS, type=integer, metavar='WHITEBOARD_ID', help='same as WHITEBOARD_ID')
|
|
2420
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2421
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2422
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2423
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-whiteboard-property')
|
|
2424
|
+
c.set_defaults(handler=_run_content_properties_update_whiteboard_property, flags={'whiteboard_id': '--whiteboard-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_whiteboard_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2425
|
+
c = g_content_properties_commands.add_parser('delete-whiteboard-property', parents=[common], help='Delete content property for whiteboard by id', description='Deletes a content property for a whiteboard by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the whiteboard.', usage='%(prog)s WHITEBOARD_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-whiteboard-property WHITEBOARD_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-whiteboard-property WHITEBOARD_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2426
|
+
c.add_argument('p_whiteboard_id', metavar='WHITEBOARD_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard the property belongs to.')
|
|
2427
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2428
|
+
c.add_argument('--whiteboard-id', dest='p_whiteboard_id', default=argparse.SUPPRESS, type=integer, metavar='WHITEBOARD_ID', help='same as WHITEBOARD_ID')
|
|
2429
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2430
|
+
RUNTIME.add_confirm_option(c)
|
|
2431
|
+
c.set_defaults(handler=_run_content_properties_delete_whiteboard_property, flags={'whiteboard_id': '--whiteboard-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_whiteboard_property_by_id'})
|
|
2432
|
+
c = g_content_properties_commands.add_parser('list-database', parents=[common], help='Get content properties for database', description='Retrieves Content Properties tied to a specified database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-database ID']), formatter_class=RAW)
|
|
2433
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database for which content properties should be returned.')
|
|
2434
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2435
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2436
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2437
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2438
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2439
|
+
c.set_defaults(handler=_run_content_properties_list_database, flags={'id': '--id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_content_properties'})
|
|
2440
|
+
c = g_content_properties_commands.add_parser('create-database-property', parents=[common], help='Create content property for database', description='Creates a new content property for a database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the database.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-database-property ID --key KEY', 'codapact-confluence content-properties create-database-property ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2441
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database to create a property for.')
|
|
2442
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2443
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2444
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2445
|
+
c.set_defaults(handler=_run_content_properties_create_database_property, flags={'id': '--id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_database_property', 'requires_one_of': [['--key', '--value']]})
|
|
2446
|
+
c = g_content_properties_commands.add_parser('get-database-by-id', parents=[common], help='Get content property for database by id', description='Retrieves a specific Content Property by ID that is attached to a specified\ndatabase.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database.', usage='%(prog)s DATABASE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-database-by-id DATABASE_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2447
|
+
c.add_argument('p_database_id', metavar='DATABASE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database for which content properties should be returned.')
|
|
2448
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property being requested.')
|
|
2449
|
+
c.add_argument('--database-id', dest='p_database_id', default=argparse.SUPPRESS, type=integer, metavar='DATABASE_ID', help='same as DATABASE_ID')
|
|
2450
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2451
|
+
c.set_defaults(handler=_run_content_properties_get_database_by_id, flags={'database_id': '--database-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_content_properties_by_id'})
|
|
2452
|
+
c = g_content_properties_commands.add_parser('update-database-property', parents=[common], help='Update content property for database by id', description='Update a content property for a database by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the database.', usage='%(prog)s DATABASE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-database-property DATABASE_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-database-property DATABASE_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2453
|
+
c.add_argument('p_database_id', metavar='DATABASE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database the property belongs to.')
|
|
2454
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2455
|
+
c.add_argument('--database-id', dest='p_database_id', default=argparse.SUPPRESS, type=integer, metavar='DATABASE_ID', help='same as DATABASE_ID')
|
|
2456
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2457
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2458
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2459
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-database-property')
|
|
2460
|
+
c.set_defaults(handler=_run_content_properties_update_database_property, flags={'database_id': '--database-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_database_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2461
|
+
c = g_content_properties_commands.add_parser('delete-database-property', parents=[common], help='Delete content property for database by id', description='Deletes a content property for a database by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the database.', usage='%(prog)s DATABASE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-database-property DATABASE_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-database-property DATABASE_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2462
|
+
c.add_argument('p_database_id', metavar='DATABASE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database the property belongs to.')
|
|
2463
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2464
|
+
c.add_argument('--database-id', dest='p_database_id', default=argparse.SUPPRESS, type=integer, metavar='DATABASE_ID', help='same as DATABASE_ID')
|
|
2465
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2466
|
+
RUNTIME.add_confirm_option(c)
|
|
2467
|
+
c.set_defaults(handler=_run_content_properties_delete_database_property, flags={'database_id': '--database-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_database_property_by_id'})
|
|
2468
|
+
c = g_content_properties_commands.add_parser('list-smart-link', parents=[common], help='Get content properties for Smart Link in the content tree', description='Retrieves Content Properties tied to a specified Smart Link in the content\ntree.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the Smart Link in the content tree.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-smart-link ID']), formatter_class=RAW)
|
|
2469
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree for which content properties should be returned.')
|
|
2470
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2471
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2472
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2473
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2474
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of Smart Links per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2475
|
+
c.set_defaults(handler=_run_content_properties_list_smart_link, flags={'id': '--id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_smart_link_content_properties'})
|
|
2476
|
+
c = g_content_properties_commands.add_parser('create-smart-link-property', parents=[common], help='Create content property for Smart Link in the content tree', description='Creates a new content property for a Smart Link in the content tree.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the Smart Link in the content tree.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-smart-link-property ID --key KEY', 'codapact-confluence content-properties create-smart-link-property ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2477
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree to create a property for.')
|
|
2478
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2479
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2480
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2481
|
+
c.set_defaults(handler=_run_content_properties_create_smart_link_property, flags={'id': '--id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_smart_link_property', 'requires_one_of': [['--key', '--value']]})
|
|
2482
|
+
c = g_content_properties_commands.add_parser('get-smart-link-by-id', parents=[common], help='Get content property for Smart Link in the content tree by id', description='Retrieves a specific Content Property by ID that is attached to a specified\nSmart Link in the content tree.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the Smart Link in the content tree.', usage='%(prog)s EMBED_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-smart-link-by-id EMBED_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2483
|
+
c.add_argument('p_embed_id', metavar='EMBED_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree for which content properties should be returned.')
|
|
2484
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property being requested.')
|
|
2485
|
+
c.add_argument('--embed-id', dest='p_embed_id', default=argparse.SUPPRESS, type=integer, metavar='EMBED_ID', help='same as EMBED_ID')
|
|
2486
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2487
|
+
c.set_defaults(handler=_run_content_properties_get_smart_link_by_id, flags={'embed_id': '--embed-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_smart_link_content_properties_by_id'})
|
|
2488
|
+
c = g_content_properties_commands.add_parser('update-smart-link-property', parents=[common], help='Update content property for Smart Link in the content tree by id', description='Update a content property for a Smart Link in the content tree by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the Smart Link in the content tree.', usage='%(prog)s EMBED_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-smart-link-property EMBED_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-smart-link-property EMBED_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2489
|
+
c.add_argument('p_embed_id', metavar='EMBED_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree the property belongs to.')
|
|
2490
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2491
|
+
c.add_argument('--embed-id', dest='p_embed_id', default=argparse.SUPPRESS, type=integer, metavar='EMBED_ID', help='same as EMBED_ID')
|
|
2492
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2493
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2494
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2495
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-smart-link-property')
|
|
2496
|
+
c.set_defaults(handler=_run_content_properties_update_smart_link_property, flags={'embed_id': '--embed-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_smart_link_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2497
|
+
c = g_content_properties_commands.add_parser('delete-smart-link-property', parents=[common], help='Delete content property for Smart Link in the content tree by id', description='Deletes a content property for a Smart Link in the content tree by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the Smart Link in the content tree.', usage='%(prog)s EMBED_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-smart-link-property EMBED_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-smart-link-property EMBED_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2498
|
+
c.add_argument('p_embed_id', metavar='EMBED_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree the property belongs to.')
|
|
2499
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2500
|
+
c.add_argument('--embed-id', dest='p_embed_id', default=argparse.SUPPRESS, type=integer, metavar='EMBED_ID', help='same as EMBED_ID')
|
|
2501
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2502
|
+
RUNTIME.add_confirm_option(c)
|
|
2503
|
+
c.set_defaults(handler=_run_content_properties_delete_smart_link_property, flags={'embed_id': '--embed-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_smart_link_property_by_id'})
|
|
2504
|
+
c = g_content_properties_commands.add_parser('list-folder', parents=[common], help='Get content properties for folder', description='Retrieves Content Properties tied to a specified folder.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the folder.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-folder ID']), formatter_class=RAW)
|
|
2505
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder for which content properties should be returned.')
|
|
2506
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2507
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2508
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2509
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2510
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2511
|
+
c.set_defaults(handler=_run_content_properties_list_folder, flags={'id': '--id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_content_properties'})
|
|
2512
|
+
c = g_content_properties_commands.add_parser('create-folder-property', parents=[common], help='Create content property for folder', description='Creates a new content property for a folder.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the folder.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-folder-property ID --key KEY', 'codapact-confluence content-properties create-folder-property ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2513
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder to create a property for.')
|
|
2514
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2515
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2516
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2517
|
+
c.set_defaults(handler=_run_content_properties_create_folder_property, flags={'id': '--id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_folder_property', 'requires_one_of': [['--key', '--value']]})
|
|
2518
|
+
c = g_content_properties_commands.add_parser('get-folder-by-id', parents=[common], help='Get content property for folder by id', description='Retrieves a specific Content Property by ID that is attached to a specified\nfolder.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the folder.', usage='%(prog)s FOLDER_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-folder-by-id FOLDER_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2519
|
+
c.add_argument('p_folder_id', metavar='FOLDER_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder for which content properties should be returned.')
|
|
2520
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property being requested.')
|
|
2521
|
+
c.add_argument('--folder-id', dest='p_folder_id', default=argparse.SUPPRESS, type=integer, metavar='FOLDER_ID', help='same as FOLDER_ID')
|
|
2522
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2523
|
+
c.set_defaults(handler=_run_content_properties_get_folder_by_id, flags={'folder_id': '--folder-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_content_properties_by_id'})
|
|
2524
|
+
c = g_content_properties_commands.add_parser('update-folder-property', parents=[common], help='Update content property for folder by id', description='Update a content property for a folder by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the folder.', usage='%(prog)s FOLDER_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-folder-property FOLDER_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-folder-property FOLDER_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2525
|
+
c.add_argument('p_folder_id', metavar='FOLDER_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder the property belongs to.')
|
|
2526
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2527
|
+
c.add_argument('--folder-id', dest='p_folder_id', default=argparse.SUPPRESS, type=integer, metavar='FOLDER_ID', help='same as FOLDER_ID')
|
|
2528
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2529
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2530
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2531
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-folder-property')
|
|
2532
|
+
c.set_defaults(handler=_run_content_properties_update_folder_property, flags={'folder_id': '--folder-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_folder_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2533
|
+
c = g_content_properties_commands.add_parser('delete-folder-property', parents=[common], help='Delete content property for folder by id', description='Deletes a content property for a folder by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the folder.', usage='%(prog)s FOLDER_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-folder-property FOLDER_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-folder-property FOLDER_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2534
|
+
c.add_argument('p_folder_id', metavar='FOLDER_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder the property belongs to.')
|
|
2535
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2536
|
+
c.add_argument('--folder-id', dest='p_folder_id', default=argparse.SUPPRESS, type=integer, metavar='FOLDER_ID', help='same as FOLDER_ID')
|
|
2537
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2538
|
+
RUNTIME.add_confirm_option(c)
|
|
2539
|
+
c.set_defaults(handler=_run_content_properties_delete_folder_property, flags={'folder_id': '--folder-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_folder_property_by_id'})
|
|
2540
|
+
c = g_content_properties_commands.add_parser('list-comment', parents=[common], help='Get content properties for comment', description='Retrieves Content Properties attached to a specified comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the comment.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties list-comment COMMENT_ID']), formatter_class=RAW)
|
|
2541
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment for which content properties should be returned.')
|
|
2542
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2543
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Filters the response to return a specific content property with matching key (case sensitive).')
|
|
2544
|
+
c.add_argument('--sort', dest='p_sort', choices=['key', '-key'], help='Used to sort the result by a particular field.')
|
|
2545
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2546
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of attachments per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2547
|
+
c.set_defaults(handler=_run_content_properties_list_comment, flags={'comment_id': '--comment-id', 'key': '--key', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_comment_content_properties'})
|
|
2548
|
+
c = g_content_properties_commands.add_parser('create-comment-property', parents=[common], help='Create content property for comment', description='Creates a new content property for a comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the comment.', usage='%(prog)s COMMENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties create-comment-property COMMENT_ID --key KEY', 'codapact-confluence content-properties create-comment-property COMMENT_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2549
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment to create a property for.')
|
|
2550
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2551
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2552
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2553
|
+
c.set_defaults(handler=_run_content_properties_create_comment_property, flags={'comment_id': '--comment-id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_comment_property', 'requires_one_of': [['--key', '--value']]})
|
|
2554
|
+
c = g_content_properties_commands.add_parser('get-comment-by-id', parents=[common], help='Get content property for comment by id', description='Retrieves a specific Content Property by ID that is attached to a specified\ncomment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the comment.', usage='%(prog)s COMMENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties get-comment-by-id COMMENT_ID PROPERTY_ID']), formatter_class=RAW)
|
|
2555
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment for which content properties should be returned.')
|
|
2556
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the content property being requested.')
|
|
2557
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2558
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2559
|
+
c.set_defaults(handler=_run_content_properties_get_comment_by_id, flags={'comment_id': '--comment-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_comment_content_properties_by_id'})
|
|
2560
|
+
c = g_content_properties_commands.add_parser('update-comment-property', parents=[common], help='Update content property for comment by id', description='Update a content property for a comment by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the comment.', usage='%(prog)s COMMENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties update-comment-property COMMENT_ID PROPERTY_ID --key KEY', 'codapact-confluence content-properties update-comment-property COMMENT_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
2561
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment the property belongs to.')
|
|
2562
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
2563
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2564
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2565
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the content property')
|
|
2566
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the content property.')
|
|
2567
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe content-properties update-comment-property')
|
|
2568
|
+
c.set_defaults(handler=_run_content_properties_update_comment_property, flags={'comment_id': '--comment-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_comment_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
2569
|
+
c = g_content_properties_commands.add_parser('delete-comment-property', parents=[common], help='Delete content property for comment by id', description='Deletes a content property for a comment by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the comment.', usage='%(prog)s COMMENT_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence content-properties delete-comment-property COMMENT_ID PROPERTY_ID --dry-run', 'codapact-confluence content-properties delete-comment-property COMMENT_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
2570
|
+
c.add_argument('p_comment_id', metavar='COMMENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the comment the property belongs to.')
|
|
2571
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
2572
|
+
c.add_argument('--comment-id', dest='p_comment_id', default=argparse.SUPPRESS, type=integer, metavar='COMMENT_ID', help='same as COMMENT_ID')
|
|
2573
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
2574
|
+
RUNTIME.add_confirm_option(c)
|
|
2575
|
+
c.set_defaults(handler=_run_content_properties_delete_comment_property, flags={'comment_id': '--comment-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_comment_property_by_id'})
|
|
2576
|
+
g_custom_content = commands.add_parser('custom-content', help='create, delete, get, … (8 commands)', description="Run 'codapact-confluence custom-content COMMAND --help' for a command's options and examples.")
|
|
2577
|
+
g_custom_content_commands = g_custom_content.add_subparsers(dest="g_custom_content", metavar="COMMAND", required=True)
|
|
2578
|
+
c = g_custom_content_commands.add_parser('get-by-type-in-blog-post', parents=[common], help='Get custom content by type in blog post', description='Returns all custom content for a given type within a given blogpost. The\nnumber of results is limited by the `limit` parameter and additional results\n(if available) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content, the container of the custom content\n(blog post), and the corresponding space.', usage='%(prog)s ID --type TYPE [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content get-by-type-in-blog-post ID --type TYPE']), formatter_class=RAW)
|
|
2579
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which custom content should be returned.')
|
|
2580
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2581
|
+
c.add_argument('--type', dest='p_type', metavar='TYPE', required=True, help='The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.')
|
|
2582
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date', 'title', '-title'], help='Used to sort the result by a particular field.')
|
|
2583
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2584
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2585
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['raw', 'storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2586
|
+
c.set_defaults(handler=_run_custom_content_get_by_type_in_blog_post, flags={'id': '--id', 'type': '--type', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit', 'body_format': '--body-format'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_by_type_in_blog_post'})
|
|
2587
|
+
c = g_custom_content_commands.add_parser('get-by-type', parents=[common], help='Get custom content by type', description='Returns all custom content for a given type. The number of results is limited\nby the `limit` parameter and additional results (if available) will be\navailable through the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content, the container of the custom content,\nand the corresponding space (if different from the container).', usage='%(prog)s --type TYPE [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content get-by-type --type TYPE']), formatter_class=RAW)
|
|
2588
|
+
c.add_argument('--type', dest='p_type', metavar='TYPE', required=True, help='The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.')
|
|
2589
|
+
c.add_argument('--id', dest='p_id', action="append", type=integer, metavar='ID', help='Filter the results based on custom content ids. Multiple custom content ids can be specified as a comma-separated list.')
|
|
2590
|
+
c.add_argument('--space-id', dest='p_space_id', action="append", type=integer, metavar='SPACE_ID', help='Filter the results based on space ids. Multiple space ids can be specified as a comma-separated list.')
|
|
2591
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date', 'title', '-title'], help='Used to sort the result by a particular field.')
|
|
2592
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2593
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2594
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['raw', 'storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2595
|
+
c.set_defaults(handler=_run_custom_content_get_by_type, flags={'type': '--type', 'id': '--id', 'space_id': '--space-id', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit', 'body_format': '--body-format'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_by_type'})
|
|
2596
|
+
c = g_custom_content_commands.add_parser('create', parents=[common], help='Create custom content', description='Creates a new custom content in the given space, page, blogpost or other\ncustom content.\n\nOnly one of `spaceId`, `pageId`, `blogPostId`, or `customContentId` is\nrequired in the request body.\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to create custom content in the space.', usage='%(prog)s --type TYPE --title TITLE --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content create --type TYPE --title TITLE --body @body.json', 'codapact-confluence custom-content create --type TYPE --title TITLE --body @body.json --dry-run']), formatter_class=RAW)
|
|
2597
|
+
c.add_argument('--type', dest='p_type', metavar='TYPE', required=True, help='Type of custom content.')
|
|
2598
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft'], help='The status of the custom content. Defaults to `current` when status not provided.')
|
|
2599
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', help='ID of the containing space.')
|
|
2600
|
+
c.add_argument('--page-id', dest='p_page_id', metavar='PAGE_ID', help='ID of the containing page.')
|
|
2601
|
+
c.add_argument('--blog-post-id', dest='p_blog_post_id', metavar='BLOG_POST_ID', help='ID of the containing Blog Post.')
|
|
2602
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', metavar='CUSTOM_CONTENT_ID', help='ID of the containing custom content.')
|
|
2603
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', required=True, help='Title of the custom content.')
|
|
2604
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True)
|
|
2605
|
+
c.set_defaults(handler=_run_custom_content_create, flags={'body.type': '--type', 'body.status': '--status', 'body.space_id': '--space-id', 'body.page_id': '--page-id', 'body.blog_post_id': '--blog-post-id', 'body.custom_content_id': '--custom-content-id', 'body.title': '--title', 'body.body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_custom_content'})
|
|
2606
|
+
c = g_custom_content_commands.add_parser('get', parents=[common], help='Get custom content by id', description='Returns a specific piece of custom content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content, the container of the custom content,\nand the corresponding space (if different from the container).', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content get ID']), formatter_class=RAW)
|
|
2607
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the custom content to be returned. If you don't know the custom content ID, use Get Custom Content by Type and filter the results.")
|
|
2608
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2609
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['raw', 'storage', 'atlas_doc_format', 'view', 'export_view', 'anonymous_export_view'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2610
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help="Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.")
|
|
2611
|
+
c.add_argument('--include-labels', dest='p_include_labels', action=argparse.BooleanOptionalAction, help='Includes labels associated with this custom content in the response. (default: False)')
|
|
2612
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this custom content in the response. (default: False)')
|
|
2613
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this custom content in the response, as defined in the `Operation` object. (default: False)')
|
|
2614
|
+
c.add_argument('--include-versions', dest='p_include_versions', action=argparse.BooleanOptionalAction, help='Includes versions associated with this custom content in the response. (default: False)')
|
|
2615
|
+
c.add_argument('--include-version', dest='p_include_version', action=argparse.BooleanOptionalAction, help='Includes the current version associated with this custom content in the response. (default: True)')
|
|
2616
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the custom content. (default: False)')
|
|
2617
|
+
c.set_defaults(handler=_run_custom_content_get, flags={'id': '--id', 'body_format': '--body-format', 'version': '--arg-version', 'include_labels': '--include-labels', 'include_properties': '--include-properties', 'include_operations': '--include-operations', 'include_versions': '--include-versions', 'include_version': '--include-version', 'include_collaborators': '--include-collaborators'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_by_id'})
|
|
2618
|
+
c = g_custom_content_commands.add_parser('update', parents=[common], help='Update custom content', description='Update a custom content by id. At most one of `spaceId`, `pageId`,\n`blogPostId`, or `customContentId` is allowed in the request body. Note that\nif `spaceId` is specified, it must be the same as the `spaceId` used for\ncreating the custom content as moving custom content to a different space is\nnot supported.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blogpost and its corresponding\nspace. Permission to update custom content in the space.', usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content update ID --body @body.json', 'codapact-confluence custom-content update ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
2619
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the custom content to be updated. If you don't know the custom content ID, use Get Custom Content by Type and filter the results.")
|
|
2620
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2621
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id*, type*, status*, title*, body*, version*, space_id, page_id, blog_post_id, custom_content_id (* required). Schema: codapact-confluence describe custom-content update')
|
|
2622
|
+
c.set_defaults(handler=_run_custom_content_update, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_custom_content'})
|
|
2623
|
+
c = g_custom_content_commands.add_parser('delete', parents=[common], help='Delete custom content', description='Delete a custom content by id.\n\nDeleting a custom content will either move it to the trash or permanently\ndelete it (purge it), depending on the apiSupport. To permanently delete a\n**trashed** custom content, the endpoint must be called with the following\nparam `purge=true`.\n\n**[Permissions](https://support.atlassian.com/confluence-cloud/docs/what-are-\nconfluences-roles/) required**: Permission to view the content of the page or\nblogpost and its corresponding space. Permission to delete custom content in\nthe space. [`manage/content`](https://developer.atlassian.com/cloud/confluence\n/rest/v2/api-group-space-permissions/#api-space-permissions-get) permission\nfor the space (if attempting to purge).\n\n**Note:** To find the display name for each permission ID, call the [Get\navailable space\npermissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) API.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content delete ID --dry-run', 'codapact-confluence custom-content delete ID --yes']), formatter_class=RAW)
|
|
2624
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content to be deleted.')
|
|
2625
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2626
|
+
c.add_argument('--purge', dest='p_purge', action=argparse.BooleanOptionalAction, help='If attempting to purge the custom content. (default: False)')
|
|
2627
|
+
RUNTIME.add_confirm_option(c)
|
|
2628
|
+
c.set_defaults(handler=_run_custom_content_delete, flags={'id': '--id', 'purge': '--purge'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_custom_content'})
|
|
2629
|
+
c = g_custom_content_commands.add_parser('get-by-type-in-page', parents=[common], help='Get custom content by type in page', description='Returns all custom content for a given type within a given page. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content, the container of the custom content\n(page), and the corresponding space.', usage='%(prog)s ID --type TYPE [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content get-by-type-in-page ID --type TYPE']), formatter_class=RAW)
|
|
2630
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which custom content should be returned.')
|
|
2631
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2632
|
+
c.add_argument('--type', dest='p_type', metavar='TYPE', required=True, help='The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.')
|
|
2633
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date', 'title', '-title'], help='Used to sort the result by a particular field.')
|
|
2634
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2635
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2636
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['raw', 'storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2637
|
+
c.set_defaults(handler=_run_custom_content_get_by_type_in_page, flags={'id': '--id', 'type': '--type', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit', 'body_format': '--body-format'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_by_type_in_page'})
|
|
2638
|
+
c = g_custom_content_commands.add_parser('get-by-type-in-space', parents=[common], help='Get custom content by type in space', description='Returns all custom content for a given type within a given space. The number\nof results is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content and the corresponding space.', usage='%(prog)s ID --type TYPE [options]', epilog=RUNTIME.command_epilog(['codapact-confluence custom-content get-by-type-in-space ID --type TYPE']), formatter_class=RAW)
|
|
2639
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which custom content should be returned.')
|
|
2640
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2641
|
+
c.add_argument('--type', dest='p_type', metavar='TYPE', required=True, help='The type of custom content being requested. See: https://developer.atlassian.com/cloud/confluence/custom-content/ for additional details on custom content.')
|
|
2642
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2643
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2644
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['raw', 'storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2645
|
+
c.set_defaults(handler=_run_custom_content_get_by_type_in_space, flags={'id': '--id', 'type': '--type', 'cursor': '--cursor', 'limit': '--limit', 'body_format': '--body-format'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_by_type_in_space'})
|
|
2646
|
+
g_data_policies = commands.add_parser('data-policies', help='get-metadata, list-spaces', description="Run 'codapact-confluence data-policies COMMAND --help' for a command's options and examples.")
|
|
2647
|
+
g_data_policies_commands = g_data_policies.add_subparsers(dest="g_data_policies", metavar="COMMAND", required=True)
|
|
2648
|
+
c = g_data_policies_commands.add_parser('get-metadata', parents=[common], help='Get data policy metadata for the workspace', description="Returns data policy metadata for the workspace.\n\n**[Permissions](#permissions) required:** Only apps can make this request.\nPermission to access the Confluence site ('Can use' global permission).", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence data-policies get-metadata']), formatter_class=RAW)
|
|
2649
|
+
c.set_defaults(handler=_run_data_policies_get_metadata, flags={}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_data_policy_metadata'})
|
|
2650
|
+
c = g_data_policies_commands.add_parser('list-spaces', parents=[common], help='Get spaces with data policies', description="Returns all spaces. The results will be sorted by id ascending. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Only\napps can make this request. Permission to access the Confluence site ('Can\nuse' global permission). Only spaces that the app has permission to view will\nbe returned.", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence data-policies list-spaces']), formatter_class=RAW)
|
|
2651
|
+
c.add_argument('--ids', dest='p_ids', action="append", type=integer, metavar='IDS', help='Filter the results to spaces based on their IDs. Multiple IDs can be specified as a comma-separated list.')
|
|
2652
|
+
c.add_argument('--keys', dest='p_keys', action="append", metavar='KEYS', help='Filter the results to spaces based on their keys. Multiple keys can be specified as a comma-separated list.')
|
|
2653
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'key', '-key', 'name', '-name'], help='Used to sort the result by a particular field.')
|
|
2654
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2655
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of spaces per result to return. If more results exist, use the `Link` response header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2656
|
+
c.set_defaults(handler=_run_data_policies_list_spaces, flags={'ids': '--ids', 'keys': '--keys', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_data_policy_spaces'})
|
|
2657
|
+
g_database = commands.add_parser('database', help='create, delete, get, … (7 commands)', description="Run 'codapact-confluence database COMMAND --help' for a command's options and examples.")
|
|
2658
|
+
g_database_commands = g_database.add_subparsers(dest="g_database", metavar="COMMAND", required=True)
|
|
2659
|
+
c = g_database_commands.add_parser('create', parents=[common], help='Create database', description='Creates a database in the space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the corresponding space. Permission to create a database in\nthe space.', usage='%(prog)s --space-id SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence database create --space-id SPACE_ID', 'codapact-confluence database create --space-id SPACE_ID --dry-run']), formatter_class=RAW)
|
|
2660
|
+
c.add_argument('--private', dest='p_private', action=argparse.BooleanOptionalAction, help='The database will be private. Only the user who creates this database will have permission to view and edit one. (default: False)')
|
|
2661
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', required=True, help='ID of the space.')
|
|
2662
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Title of the database.')
|
|
2663
|
+
c.add_argument('--parent-id', dest='p_parent_id', metavar='PARENT_ID', help='The parent content ID of the database.')
|
|
2664
|
+
c.set_defaults(handler=_run_database_create, flags={'private': '--private', 'body.space_id': '--space-id', 'body.title': '--title', 'body.parent_id': '--parent-id'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_database'})
|
|
2665
|
+
c = g_database_commands.add_parser('get', parents=[common], help='Get database by id', description='Returns a specific database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence database get ID']), formatter_class=RAW)
|
|
2666
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database to be returned')
|
|
2667
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2668
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the database. (default: False)')
|
|
2669
|
+
c.add_argument('--include-direct-children', dest='p_include_direct_children', action=argparse.BooleanOptionalAction, help='Includes direct children of the database, as defined in the `ChildrenResponse` object. (default: False)')
|
|
2670
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this database in the response, as defined in the `Operation` object. (default: False)')
|
|
2671
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this database in the response. (default: False)')
|
|
2672
|
+
c.set_defaults(handler=_run_database_get, flags={'id': '--id', 'include_collaborators': '--include-collaborators', 'include_direct_children': '--include-direct-children', 'include_operations': '--include-operations', 'include_properties': '--include-properties'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_by_id'})
|
|
2673
|
+
c = g_database_commands.add_parser('delete', parents=[common], help='Delete database', description='Delete a database by id.\n\nDeleting a database moves the database to the trash, where it can be restored\nlater\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database and its corresponding space. Permission to\ndelete databases in the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence database delete ID --dry-run', 'codapact-confluence database delete ID --yes']), formatter_class=RAW)
|
|
2674
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database to be deleted.')
|
|
2675
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2676
|
+
RUNTIME.add_confirm_option(c)
|
|
2677
|
+
c.set_defaults(handler=_run_database_delete, flags={'id': '--id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_database'})
|
|
2678
|
+
c = g_database_commands.add_parser('list-fields', parents=[common], help='Get fields for database', description='Returns the field definitions (schema) for a database, ordered by the user-\ndefined column order, using cursor-based pagination.\n\n> **Consistency:** Responses may not immediately reflect recent changes.\nClients requiring read-after-write confirmation should poll with bounded\nbackoff.\n\n> **Experimental:** This operation is experimental and may change in\nbackwards-incompatible ways without notice.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence database list-fields ID']), formatter_class=RAW)
|
|
2679
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='The Confluence content ID of the database, represented as an ASCII decimal-digit string.')
|
|
2680
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
2681
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of results to return. The value must be a positive integer (default: 50)')
|
|
2682
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Opaque, offset-based continuation token obtained from `_links.next` or the')
|
|
2683
|
+
c.add_argument('--if-none-match', dest='p_if_none_match', metavar='IF_NONE_MATCH', help='One or more entity tags previously returned for this exact request URL.')
|
|
2684
|
+
c.set_defaults(handler=_run_database_list_fields, flags={'id': '--id', 'limit': '--limit', 'cursor': '--cursor', 'if_none_match': '--if-none-match'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_fields'})
|
|
2685
|
+
c = g_database_commands.add_parser('list-views', parents=[common], help='Get views for database', description='Returns the views defined on a database using cursor-based pagination. Only\nview IDs, names, and types are returned; view configuration is not exposed.\n\n> **Consistency:** Responses may not immediately reflect recent changes.\nClients requiring read-after-write confirmation should poll with bounded\nbackoff.\n\n> **Experimental:** This operation is experimental and may change in\nbackwards-incompatible ways without notice.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence database list-views ID']), formatter_class=RAW)
|
|
2686
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='The Confluence content ID of the database, represented as an ASCII decimal-digit string.')
|
|
2687
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
2688
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of results to return. The value must be a positive integer (default: 50)')
|
|
2689
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Opaque, offset-based continuation token obtained from `_links.next` or the')
|
|
2690
|
+
c.add_argument('--if-none-match', dest='p_if_none_match', metavar='IF_NONE_MATCH', help='One or more entity tags previously returned for this exact request URL.')
|
|
2691
|
+
c.set_defaults(handler=_run_database_list_views, flags={'id': '--id', 'limit': '--limit', 'cursor': '--cursor', 'if_none_match': '--if-none-match'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_views'})
|
|
2692
|
+
c = g_database_commands.add_parser('list-entries', parents=[common], help='Get entries for database', description="Returns the entries (rows) of a database, with optional filtering, sorting,\nand cursor-based pagination. Entry values are keyed by field ID; use Get\nfields for database (`GET /databases/{id}/fields`) to map field IDs to names.\n\nFiltering is expressed with bracket-scoped query parameters keyed on field ID.\nThe exact operators vary by field type and are documented on the `filter`\nparameter. Multiple filters are combined with AND. Unsupported operators and\nnon-filterable fields return distinct structured `400` responses.\n\nPagination uses opaque, offset-based continuation tokens and is best effort\nwhile a database is changing. Concurrent inserts, deletes, or changes to a\nsort value can cause duplicate or omitted rows across pages. Restart from the\nfirst page when a consistent export is required.\n\nResults are based on the database, not a particular view. A view's filters,\nsorting, grouping, and field visibility do not affect the response.\n\n> **Consistency:** Responses may not immediately reflect recent changes.\nClients requiring read-after-write confirmation should poll with bounded\nbackoff.\n\n> **Experimental:** This operation is experimental and may change in\nbackwards-incompatible ways without notice.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database and its corresponding space.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence database list-entries ID']), formatter_class=RAW)
|
|
2693
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='The Confluence content ID of the database, represented as an ASCII decimal-digit string.')
|
|
2694
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
2695
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of results to return. The value must be a positive integer (default: 50)')
|
|
2696
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Opaque, offset-based continuation token obtained from `_links.next` or the')
|
|
2697
|
+
c.add_argument('--if-none-match', dest='p_if_none_match', metavar='IF_NONE_MATCH', help='One or more entity tags previously returned for this exact request URL.')
|
|
2698
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a single field ID. Prefix the field ID with')
|
|
2699
|
+
c.add_argument('--filter', dest='p_filter', type=json_value, metavar="JSON", help='Filters entries by field value. Bracket-scoped on field ID, for example')
|
|
2700
|
+
c.set_defaults(handler=_run_database_list_entries, flags={'id': '--id', 'limit': '--limit', 'cursor': '--cursor', 'if_none_match': '--if-none-match', 'sort': '--sort', 'filter': '--filter'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_entries'})
|
|
2701
|
+
c = g_database_commands.add_parser('get-entry', parents=[common], help='Get entry by id', description='Returns a single entry (row) from a database by ID.\n\n> **Consistency:** Responses may not immediately reflect recent changes.\nClients requiring read-after-write confirmation should poll with bounded\nbackoff.\n\n> **Experimental:** This operation is experimental and may change in\nbackwards-incompatible ways without notice.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database and its corresponding space.', usage='%(prog)s ID ENTRY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence database get-entry ID ENTRY_ID']), formatter_class=RAW)
|
|
2702
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='The Confluence content ID of the database, represented as an ASCII decimal-digit string.')
|
|
2703
|
+
c.add_argument('p_entry_id', metavar='ENTRY_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the entry to be returned.')
|
|
2704
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
2705
|
+
c.add_argument('--entry-id', dest='p_entry_id', default=argparse.SUPPRESS, metavar='ENTRY_ID', help='same as ENTRY_ID')
|
|
2706
|
+
c.add_argument('--if-none-match', dest='p_if_none_match', metavar='IF_NONE_MATCH', help='One or more entity tags previously returned for this exact request URL.')
|
|
2707
|
+
c.set_defaults(handler=_run_database_get_entry, flags={'id': '--id', 'entry_id': '--entry-id', 'if_none_match': '--if-none-match'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_entry_by_id'})
|
|
2708
|
+
g_descendants = commands.add_parser('descendants', help='list-database, list-folder, list-page, … (5 commands)', description="Run 'codapact-confluence descendants COMMAND --help' for a command's options and examples.")
|
|
2709
|
+
g_descendants_commands = g_descendants.add_subparsers(dest="g_descendants", metavar="COMMAND", required=True)
|
|
2710
|
+
c = g_descendants_commands.add_parser('list-whiteboard', parents=[common], help='Get descendants of a whiteboard', description="Returns descendants in the content tree for a given whiteboard by ID in top-\nto-bottom order (that is, the highest descendant is the first item in the\nresponse payload). The number of results is limited by the `limit` parameter\nand additional results (if available) will be available by calling this\nendpoint with the cursor in the response payload. There is also a `depth`\nparameter specifying depth of descendants to be fetched.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each descendant. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the whiteboard and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence descendants list-whiteboard ID']), formatter_class=RAW)
|
|
2711
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard.')
|
|
2712
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2713
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, call the endpoint with the cursor to fetch the next set of results. (default: 25)')
|
|
2714
|
+
c.add_argument('--depth', dest='p_depth', type=integer, metavar='DEPTH', help='Maximum depth of descendants to return. If more results are required, use the endpoint corresponding to the content type of the deepest descendant to fetch more descendants. (default: 2)')
|
|
2715
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2716
|
+
c.set_defaults(handler=_run_descendants_list_whiteboard, flags={'id': '--id', 'limit': '--limit', 'depth': '--depth', 'cursor': '--cursor'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_descendants'})
|
|
2717
|
+
c = g_descendants_commands.add_parser('list-database', parents=[common], help='Get descendants of a database', description="Returns descendants in the content tree for a given database by ID in top-to-\nbottom order (that is, the highest descendant is the first item in the\nresponse payload). The number of results is limited by the `limit` parameter\nand additional results (if available) will be available by calling this\nendpoint with the cursor in the response payload. There is also a `depth`\nparameter specifying depth of descendants to be fetched.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each descendant. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the database and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence descendants list-database ID']), formatter_class=RAW)
|
|
2718
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database.')
|
|
2719
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2720
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, call the endpoint with the cursor to fetch the next set of results. (default: 25)')
|
|
2721
|
+
c.add_argument('--depth', dest='p_depth', type=integer, metavar='DEPTH', help='Maximum depth of descendants to return. If more results are required, use the endpoint corresponding to the content type of the deepest descendant to fetch more descendants. (default: 2)')
|
|
2722
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2723
|
+
c.set_defaults(handler=_run_descendants_list_database, flags={'id': '--id', 'limit': '--limit', 'depth': '--depth', 'cursor': '--cursor'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_descendants'})
|
|
2724
|
+
c = g_descendants_commands.add_parser('list-smart-link', parents=[common], help='Get descendants of a smart link', description="Returns descendants in the content tree for a given smart link by ID in top-\nto-bottom order (that is, the highest descendant is the first item in the\nresponse payload). The number of results is limited by the `limit` parameter\nand additional results (if available) will be available by calling this\nendpoint with the cursor in the response payload. There is also a `depth`\nparameter specifying depth of descendants to be fetched.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each descendant. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the smart link and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence descendants list-smart-link ID']), formatter_class=RAW)
|
|
2725
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the smart link.')
|
|
2726
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2727
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, call the endpoint with the cursor to fetch the next set of results. (default: 25)')
|
|
2728
|
+
c.add_argument('--depth', dest='p_depth', type=integer, metavar='DEPTH', help='Maximum depth of descendants to return. If more results are required, use the endpoint corresponding to the content type of the deepest descendant to fetch more descendants. (default: 2)')
|
|
2729
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2730
|
+
c.set_defaults(handler=_run_descendants_list_smart_link, flags={'id': '--id', 'limit': '--limit', 'depth': '--depth', 'cursor': '--cursor'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_smart_link_descendants'})
|
|
2731
|
+
c = g_descendants_commands.add_parser('list-folder', parents=[common], help='Get descendants of folder', description="Returns descendants in the content tree for a given folder by ID in top-to-\nbottom order (that is, the highest descendant is the first item in the\nresponse payload). The number of results is limited by the `limit` parameter\nand additional results (if available) will be available by calling this\nendpoint with the cursor in the response payload. There is also a `depth`\nparameter specifying depth of descendants to be fetched.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each descendant. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence descendants list-folder ID']), formatter_class=RAW)
|
|
2732
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder.')
|
|
2733
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2734
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, call the endpoint with the cursor to fetch the next set of results. (default: 25)')
|
|
2735
|
+
c.add_argument('--depth', dest='p_depth', type=integer, metavar='DEPTH', help='Maximum depth of descendants to return. If more results are required, use the endpoint corresponding to the content type of the deepest descendant to fetch more descendants. (default: 2)')
|
|
2736
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2737
|
+
c.set_defaults(handler=_run_descendants_list_folder, flags={'id': '--id', 'limit': '--limit', 'depth': '--depth', 'cursor': '--cursor'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_descendants'})
|
|
2738
|
+
c = g_descendants_commands.add_parser('list-page', parents=[common], help='Get descendants of page', description="Returns descendants in the content tree for a given page by ID in top-to-\nbottom order (that is, the highest descendant is the first item in the\nresponse payload). The number of results is limited by the `limit` parameter\nand additional results (if available) will be available by calling this\nendpoint with the cursor in the response payload. There is also a `depth`\nparameter specifying depth of descendants to be fetched.\n\nThe following types of content will be returned: - Database - Embed - Folder -\nPage - Whiteboard\n\nThis endpoint returns minimal information about each descendant. To fetch more\ndetails, use a related endpoint based on the content type, such as:\n\n- [Get database by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\ndatabase/#api-databases-id-get) - [Get embed by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-smart-\nlink/#api-embeds-id-get) - [Get folder by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nfolder/#api-folders-id-get) - [Get page by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\npage/#api-pages-id-get) - [Get whiteboard by\nid](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-\nwhiteboard/#api-whiteboards-id-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nPermission to view the page and its corresponding space", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence descendants list-page ID']), formatter_class=RAW)
|
|
2739
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page.')
|
|
2740
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2741
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of items per result to return. If more results exist, call the endpoint with the cursor to fetch the next set of results. (default: 25)')
|
|
2742
|
+
c.add_argument('--depth', dest='p_depth', type=integer, metavar='DEPTH', help='Maximum depth of descendants to return. If more results are required, use the endpoint corresponding to the content type of the deepest descendant to fetch more descendants. (default: 2)')
|
|
2743
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2744
|
+
c.set_defaults(handler=_run_descendants_list_page, flags={'id': '--id', 'limit': '--limit', 'depth': '--depth', 'cursor': '--cursor'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_descendants'})
|
|
2745
|
+
g_folder = commands.add_parser('folder', help='create, delete, get', description="Run 'codapact-confluence folder COMMAND --help' for a command's options and examples.")
|
|
2746
|
+
g_folder_commands = g_folder.add_subparsers(dest="g_folder", metavar="COMMAND", required=True)
|
|
2747
|
+
c = g_folder_commands.add_parser('create', parents=[common], help='Create folder', description='Creates a folder in the space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the corresponding space. Permission to create a folder in\nthe space.', usage='%(prog)s --space-id SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence folder create --space-id SPACE_ID', 'codapact-confluence folder create --space-id SPACE_ID --dry-run']), formatter_class=RAW)
|
|
2748
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', required=True, help='ID of the space.')
|
|
2749
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Title of the folder.')
|
|
2750
|
+
c.add_argument('--parent-id', dest='p_parent_id', metavar='PARENT_ID', help='The parent content ID of the folder.')
|
|
2751
|
+
c.set_defaults(handler=_run_folder_create, flags={'body.space_id': '--space-id', 'body.title': '--title', 'body.parent_id': '--parent-id'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_folder'})
|
|
2752
|
+
c = g_folder_commands.add_parser('get', parents=[common], help='Get folder by id', description='Returns a specific folder.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the folder and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence folder get ID']), formatter_class=RAW)
|
|
2753
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder to be returned.')
|
|
2754
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2755
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the folder. (default: False)')
|
|
2756
|
+
c.add_argument('--include-direct-children', dest='p_include_direct_children', action=argparse.BooleanOptionalAction, help='Includes direct children of the folder, as defined in the `ChildrenResponse` object. (default: False)')
|
|
2757
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this folder in the response, as defined in the `Operation` object. (default: False)')
|
|
2758
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this folder in the response. (default: False)')
|
|
2759
|
+
c.set_defaults(handler=_run_folder_get, flags={'id': '--id', 'include_collaborators': '--include-collaborators', 'include_direct_children': '--include-direct-children', 'include_operations': '--include-operations', 'include_properties': '--include-properties'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_by_id'})
|
|
2760
|
+
c = g_folder_commands.add_parser('delete', parents=[common], help='Delete folder', description='Delete a folder by id.\n\nDeleting a folder moves the folder to the trash, where it can be restored\nlater\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the folder and its corresponding space. Permission to\ndelete folders in the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence folder delete ID --dry-run', 'codapact-confluence folder delete ID --yes']), formatter_class=RAW)
|
|
2761
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder to be deleted.')
|
|
2762
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2763
|
+
RUNTIME.add_confirm_option(c)
|
|
2764
|
+
c.set_defaults(handler=_run_folder_delete, flags={'id': '--id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_folder'})
|
|
2765
|
+
g_label = commands.add_parser('label', help='list-attachment-labels, list-blog-post-labels, list-custom-content-labels, … (7 commands)', description="Run 'codapact-confluence label COMMAND --help' for a command's options and examples.")
|
|
2766
|
+
g_label_commands = g_label.add_subparsers(dest="g_label", metavar="COMMAND", required=True)
|
|
2767
|
+
c = g_label_commands.add_parser('list-attachment-labels', parents=[common], help='Get labels for attachment', description='Returns the labels of specific attachment. The number of results is limited by\nthe `limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the parent content of the attachment and its corresponding\nspace. Only labels that the user has permission to view will be returned.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence label list-attachment-labels ID']), formatter_class=RAW)
|
|
2768
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the attachment for which labels should be returned.')
|
|
2769
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2770
|
+
c.add_argument('--prefix', dest='p_prefix', choices=['my', 'team', 'global', 'system'], help='Filter the results to labels based on their prefix.')
|
|
2771
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
2772
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2773
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2774
|
+
c.set_defaults(handler=_run_label_list_attachment_labels, flags={'id': '--id', 'prefix': '--prefix', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_labels'})
|
|
2775
|
+
c = g_label_commands.add_parser('list-blog-post-labels', parents=[common], help='Get labels for blog post', description='Returns the labels of specific blog post. The number of results is limited by\nthe `limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the blog post and its corresponding space.\nOnly labels that the user has permission to view will be returned.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence label list-blog-post-labels ID']), formatter_class=RAW)
|
|
2776
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which labels should be returned.')
|
|
2777
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2778
|
+
c.add_argument('--prefix', dest='p_prefix', choices=['my', 'team', 'global', 'system'], help='Filter the results to labels based on their prefix.')
|
|
2779
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
2780
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2781
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2782
|
+
c.set_defaults(handler=_run_label_list_blog_post_labels, flags={'id': '--id', 'prefix': '--prefix', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_labels'})
|
|
2783
|
+
c = g_label_commands.add_parser('list-custom-content-labels', parents=[common], help='Get labels for custom content', description='Returns the labels for a specific piece of custom content. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content and its corresponding space. Only labels\nthat the user has permission to view will be returned.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence label list-custom-content-labels ID']), formatter_class=RAW)
|
|
2784
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content for which labels should be returned.')
|
|
2785
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2786
|
+
c.add_argument('--prefix', dest='p_prefix', choices=['my', 'team', 'global', 'system'], help='Filter the results to labels based on their prefix.')
|
|
2787
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
2788
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2789
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2790
|
+
c.set_defaults(handler=_run_label_list_custom_content_labels, flags={'id': '--id', 'prefix': '--prefix', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_labels'})
|
|
2791
|
+
c = g_label_commands.add_parser('list-labels', parents=[common], help='Get labels', description="Returns all labels. The number of results is limited by the `limit` parameter\nand additional results (if available) will be available through the `next` URL\npresent in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\nlabels that the user has permission to view will be returned.", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence label list-labels']), formatter_class=RAW)
|
|
2792
|
+
c.add_argument('--label-id', dest='p_label_id', action="append", type=integer, metavar='LABEL_ID', help='Filters on label ID. Multiple IDs can be specified as a comma-separated list.')
|
|
2793
|
+
c.add_argument('--prefix', dest='p_prefix', action="append", metavar='PREFIX', help='Filters on label prefix. Multiple IDs can be specified as a comma-separated list.')
|
|
2794
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2795
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
2796
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2797
|
+
c.set_defaults(handler=_run_label_list_labels, flags={'label_id': '--label-id', 'prefix': '--prefix', 'cursor': '--cursor', 'sort': '--sort', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_labels'})
|
|
2798
|
+
c = g_label_commands.add_parser('list-page-labels', parents=[common], help='Get labels for page', description='Returns the labels of specific page. The number of results is limited by the\n`limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space. Only\nlabels that the user has permission to view will be returned.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence label list-page-labels ID']), formatter_class=RAW)
|
|
2799
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which labels should be returned.')
|
|
2800
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2801
|
+
c.add_argument('--prefix', dest='p_prefix', choices=['my', 'team', 'global', 'system'], help='Filter the results to labels based on their prefix.')
|
|
2802
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
2803
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2804
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2805
|
+
c.set_defaults(handler=_run_label_list_page_labels, flags={'id': '--id', 'prefix': '--prefix', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_labels'})
|
|
2806
|
+
c = g_label_commands.add_parser('list-space-labels', parents=[common], help='Get labels for space', description='Returns the labels of specific space. The number of results is limited by the\n`limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the space. Only labels that the user has permission to view\nwill be returned.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence label list-space-labels ID']), formatter_class=RAW)
|
|
2807
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which labels should be returned.')
|
|
2808
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2809
|
+
c.add_argument('--prefix', dest='p_prefix', choices=['my', 'team'], help='Filter the results to labels based on their prefix.')
|
|
2810
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
2811
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2812
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2813
|
+
c.set_defaults(handler=_run_label_list_space_labels, flags={'id': '--id', 'prefix': '--prefix', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_labels'})
|
|
2814
|
+
c = g_label_commands.add_parser('list-space-content-labels', parents=[common], help='Get labels for space content', description='Returns the labels of space content (pages, blogposts etc). The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the space. Only labels that the user has permission to view\nwill be returned.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence label list-space-content-labels ID']), formatter_class=RAW)
|
|
2815
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which labels should be returned.')
|
|
2816
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2817
|
+
c.add_argument('--prefix', dest='p_prefix', choices=['my', 'team'], help='Filter the results to labels based on their prefix.')
|
|
2818
|
+
c.add_argument('--sort', dest='p_sort', metavar='SORT', help='Used to sort the result by a particular field.')
|
|
2819
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2820
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of labels per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2821
|
+
c.set_defaults(handler=_run_label_list_space_content_labels, flags={'id': '--id', 'prefix': '--prefix', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_content_labels'})
|
|
2822
|
+
g_like = commands.add_parser('like', help='get-blog-post-count, get-footer-count, get-inline-count, … (8 commands)', description="Run 'codapact-confluence like COMMAND --help' for a command's options and examples.")
|
|
2823
|
+
g_like_commands = g_like.add_subparsers(dest="g_like", metavar="COMMAND", required=True)
|
|
2824
|
+
c = g_like_commands.add_parser('get-blog-post-count', parents=[common], help='Get like count for blog post', description='Returns the count of likes of specific blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the blog post and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like get-blog-post-count ID']), formatter_class=RAW)
|
|
2825
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which like count should be returned.')
|
|
2826
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2827
|
+
c.set_defaults(handler=_run_like_get_blog_post_count, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_like_count'})
|
|
2828
|
+
c = g_like_commands.add_parser('list-blog-post-users', parents=[common], help='Get account IDs of likes for blog post', description='Returns the account IDs of likes of specific blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the blog post and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like list-blog-post-users ID']), formatter_class=RAW)
|
|
2829
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which account IDs should be returned.')
|
|
2830
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2831
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2832
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of account IDs per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2833
|
+
c.set_defaults(handler=_run_like_list_blog_post_users, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_like_users'})
|
|
2834
|
+
c = g_like_commands.add_parser('get-page-count', parents=[common], help='Get like count for page', description='Returns the count of likes of specific page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like get-page-count ID']), formatter_class=RAW)
|
|
2835
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which like count should be returned.')
|
|
2836
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2837
|
+
c.set_defaults(handler=_run_like_get_page_count, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_like_count'})
|
|
2838
|
+
c = g_like_commands.add_parser('list-page-users', parents=[common], help='Get account IDs of likes for page', description='Returns the account IDs of likes of specific page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like list-page-users ID']), formatter_class=RAW)
|
|
2839
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which like count should be returned.')
|
|
2840
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2841
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2842
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of account IDs per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2843
|
+
c.set_defaults(handler=_run_like_list_page_users, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_like_users'})
|
|
2844
|
+
c = g_like_commands.add_parser('get-footer-count', parents=[common], help='Get like count for footer comment', description='Returns the count of likes of specific footer comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page/blogpost and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like get-footer-count ID']), formatter_class=RAW)
|
|
2845
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the footer comment for which like count should be returned.')
|
|
2846
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2847
|
+
c.set_defaults(handler=_run_like_get_footer_count, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_like_count'})
|
|
2848
|
+
c = g_like_commands.add_parser('list-footer-users', parents=[common], help='Get account IDs of likes for footer comment', description='Returns the account IDs of likes of specific footer comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page/blogpost and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like list-footer-users ID']), formatter_class=RAW)
|
|
2849
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the footer comment for which like count should be returned.')
|
|
2850
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2851
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2852
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of account IDs per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2853
|
+
c.set_defaults(handler=_run_like_list_footer_users, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_like_users'})
|
|
2854
|
+
c = g_like_commands.add_parser('get-inline-count', parents=[common], help='Get like count for inline comment', description='Returns the count of likes of specific inline comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page/blogpost and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like get-inline-count ID']), formatter_class=RAW)
|
|
2855
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the inline comment for which like count should be returned.')
|
|
2856
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2857
|
+
c.set_defaults(handler=_run_like_get_inline_count, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_like_count'})
|
|
2858
|
+
c = g_like_commands.add_parser('list-inline-users', parents=[common], help='Get account IDs of likes for inline comment', description='Returns the account IDs of likes of specific inline comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page/blogpost and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence like list-inline-users ID']), formatter_class=RAW)
|
|
2859
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the inline comment for which like count should be returned.')
|
|
2860
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2861
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2862
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of account IDs per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2863
|
+
c.set_defaults(handler=_run_like_list_inline_users, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_like_users'})
|
|
2864
|
+
g_operation = commands.add_parser('operation', help='list-attachment-operations, list-blog-post-operations, list-custom-content-operations, … (11 commands)', description="Run 'codapact-confluence operation COMMAND --help' for a command's options and examples.")
|
|
2865
|
+
g_operation_commands = g_operation.add_subparsers(dest="g_operation", metavar="COMMAND", required=True)
|
|
2866
|
+
c = g_operation_commands.add_parser('list-attachment-operations', parents=[common], help='Get permitted operations for attachment', description='Returns the permitted operations on specific attachment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the parent content of the attachment and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-attachment-operations ID']), formatter_class=RAW)
|
|
2867
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment for which operations should be returned.')
|
|
2868
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
2869
|
+
c.set_defaults(handler=_run_operation_list_attachment_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_operations'})
|
|
2870
|
+
c = g_operation_commands.add_parser('list-blog-post-operations', parents=[common], help='Get permitted operations for blog post', description='Returns the permitted operations on specific blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the parent content of the blog post and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-blog-post-operations ID']), formatter_class=RAW)
|
|
2871
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which operations should be returned.')
|
|
2872
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2873
|
+
c.set_defaults(handler=_run_operation_list_blog_post_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_operations'})
|
|
2874
|
+
c = g_operation_commands.add_parser('list-custom-content-operations', parents=[common], help='Get permitted operations for custom content', description='Returns the permitted operations on specific custom content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the parent content of the custom content and its\ncorresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-custom-content-operations ID']), formatter_class=RAW)
|
|
2875
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content for which operations should be returned.')
|
|
2876
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2877
|
+
c.set_defaults(handler=_run_operation_list_custom_content_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_operations'})
|
|
2878
|
+
c = g_operation_commands.add_parser('list-page-operations', parents=[common], help='Get permitted operations for page', description='Returns the permitted operations on specific page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the parent content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-page-operations ID']), formatter_class=RAW)
|
|
2879
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which operations should be returned.')
|
|
2880
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2881
|
+
c.set_defaults(handler=_run_operation_list_page_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_operations'})
|
|
2882
|
+
c = g_operation_commands.add_parser('list-whiteboard-operations', parents=[common], help='Get permitted operations for a whiteboard', description='Returns the permitted operations on specific whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the whiteboard and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-whiteboard-operations ID']), formatter_class=RAW)
|
|
2883
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard for which operations should be returned.')
|
|
2884
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2885
|
+
c.set_defaults(handler=_run_operation_list_whiteboard_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_operations'})
|
|
2886
|
+
c = g_operation_commands.add_parser('list-database-operations', parents=[common], help='Get permitted operations for a database', description='Returns the permitted operations on specific database.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the database and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-database-operations ID']), formatter_class=RAW)
|
|
2887
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the database for which operations should be returned.')
|
|
2888
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2889
|
+
c.set_defaults(handler=_run_operation_list_database_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_database_operations'})
|
|
2890
|
+
c = g_operation_commands.add_parser('list-smart-link-operations', parents=[common], help='Get permitted operations for a Smart Link in the content tree', description='Returns the permitted operations on specific Smart Link in the content tree.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the Smart Link in the content tree and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-smart-link-operations ID']), formatter_class=RAW)
|
|
2891
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree for which operations should be returned.')
|
|
2892
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2893
|
+
c.set_defaults(handler=_run_operation_list_smart_link_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_smart_link_operations'})
|
|
2894
|
+
c = g_operation_commands.add_parser('list-folder-operations', parents=[common], help='Get permitted operations for a folder', description='Returns the permitted operations on specific folder.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the folder and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-folder-operations ID']), formatter_class=RAW)
|
|
2895
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the folder for which operations should be returned.')
|
|
2896
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2897
|
+
c.set_defaults(handler=_run_operation_list_folder_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_folder_operations'})
|
|
2898
|
+
c = g_operation_commands.add_parser('list-space-operations', parents=[common], help='Get permitted operations for space', description='Returns the permitted operations on specific space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-space-operations ID']), formatter_class=RAW)
|
|
2899
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which operations should be returned.')
|
|
2900
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2901
|
+
c.set_defaults(handler=_run_operation_list_space_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_operations'})
|
|
2902
|
+
c = g_operation_commands.add_parser('list-footer-comment-operations', parents=[common], help='Get permitted operations for footer comment', description='Returns the permitted operations on specific footer comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the parent content of the footer comment and its\ncorresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-footer-comment-operations ID']), formatter_class=RAW)
|
|
2903
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the footer comment for which operations should be returned.')
|
|
2904
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2905
|
+
c.set_defaults(handler=_run_operation_list_footer_comment_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_comment_operations'})
|
|
2906
|
+
c = g_operation_commands.add_parser('list-inline-comment-operations', parents=[common], help='Get permitted operations for inline comment', description='Returns the permitted operations on specific inline comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the parent content of the inline comment and its\ncorresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence operation list-inline-comment-operations ID']), formatter_class=RAW)
|
|
2907
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the inline comment for which operations should be returned.')
|
|
2908
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2909
|
+
c.set_defaults(handler=_run_operation_list_inline_comment_operations, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_comment_operations'})
|
|
2910
|
+
g_page = commands.add_parser('page', help='create, delete, get, … (8 commands)', description="Run 'codapact-confluence page COMMAND --help' for a command's options and examples.")
|
|
2911
|
+
g_page_commands = g_page.add_subparsers(dest="g_page", metavar="COMMAND", required=True)
|
|
2912
|
+
c = g_page_commands.add_parser('list-label-pages', parents=[common], help='Get pages for label', description='Returns the pages of specified label. The number of results is limited by the\n`limit` parameter and additional results (if available) will be available\nthrough the `next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page list-label-pages ID']), formatter_class=RAW)
|
|
2913
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the label for which pages should be returned.')
|
|
2914
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2915
|
+
c.add_argument('--space-id', dest='p_space_id', action="append", type=integer, metavar='SPACE_ID', help='Filter the results based on space ids. Multiple space ids can be specified as a comma-separated list.')
|
|
2916
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2917
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date', 'title', '-title'], help='Used to sort the result by a particular field.')
|
|
2918
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2919
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2920
|
+
c.set_defaults(handler=_run_page_list_label_pages, flags={'id': '--id', 'space_id': '--space-id', 'body_format': '--body-format', 'sort': '--sort', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_label_pages'})
|
|
2921
|
+
c = g_page_commands.add_parser('list-pages', parents=[common], help='Get pages', description="Returns all pages. The number of results is limited by the `limit` parameter\nand additional results (if available) will be available through the `next` URL\npresent in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\npages that the user has permission to view will be returned.", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page list-pages']), formatter_class=RAW)
|
|
2922
|
+
c.add_argument('--id', dest='p_id', action="append", type=integer, metavar='ID', help='Filter the results based on page ids. Multiple page ids can be specified as a comma-separated list.')
|
|
2923
|
+
c.add_argument('--space-id', dest='p_space_id', action="append", type=integer, metavar='SPACE_ID', help='Filter the results based on space ids. Multiple space ids can be specified as a comma-separated list.')
|
|
2924
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date', 'title', '-title'], help='Used to sort the result by a particular field.')
|
|
2925
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'deleted', 'trashed'], help='Filter the results to pages based on their status. By default, `current` and `archived` are used.')
|
|
2926
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Filter the results to pages based on their title.')
|
|
2927
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2928
|
+
c.add_argument('--subtype', dest='p_subtype', choices=['live', 'page'], help='Filter the results to pages based on their subtype.')
|
|
2929
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2930
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2931
|
+
c.set_defaults(handler=_run_page_list_pages, flags={'id': '--id', 'space_id': '--space-id', 'sort': '--sort', 'status': '--status', 'title': '--title', 'body_format': '--body-format', 'subtype': '--subtype', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_pages'})
|
|
2932
|
+
c = g_page_commands.add_parser('create', parents=[common], help='Create page', description='Creates a page in the space.\n\nPages are created as published by default unless specified as a draft in the\nstatus field. If creating a published page, the title must be specified.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the corresponding space. Permission to create a page in the\nspace.', usage='%(prog)s --space-id SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page create --space-id SPACE_ID', 'codapact-confluence page create --space-id SPACE_ID --dry-run']), formatter_class=RAW)
|
|
2933
|
+
c.add_argument('--embedded', dest='p_embedded', action=argparse.BooleanOptionalAction, help='Tag the content as embedded and content will be created in NCS. (default: False)')
|
|
2934
|
+
c.add_argument('--private', dest='p_private', action=argparse.BooleanOptionalAction, help='The page will be private. Only the user who creates this page will have permission to view and edit one. (default: False)')
|
|
2935
|
+
c.add_argument('--root-level', dest='p_root_level', action=argparse.BooleanOptionalAction, help='The page will be created at the root level of the space (outside the space homepage tree). If true, then a (default: False)')
|
|
2936
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', required=True, help='ID of the space.')
|
|
2937
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft'], help='The status of the page, published or draft.')
|
|
2938
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Title of the page, required if page status is not draft.')
|
|
2939
|
+
c.add_argument('--parent-id', dest='p_parent_id', metavar='PARENT_ID', help='The parent content ID of the page. If the `root-level` query parameter is set to false and a value is ')
|
|
2940
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON")
|
|
2941
|
+
c.add_argument('--subtype', dest='p_subtype', choices=['live'], help='The subtype of the page. Provide the subtype live to create a live doc or no subtype to create a page.')
|
|
2942
|
+
c.set_defaults(handler=_run_page_create, flags={'embedded': '--embedded', 'private': '--private', 'root_level': '--root-level', 'body.space_id': '--space-id', 'body.status': '--status', 'body.title': '--title', 'body.parent_id': '--parent-id', 'body.body': '--body', 'body.subtype': '--subtype'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_page'})
|
|
2943
|
+
c = g_page_commands.add_parser('get', parents=[common], help='Get page by id', description='Returns a specific page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page get ID']), formatter_class=RAW)
|
|
2944
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the page to be returned. If you don't know the page ID, use Get pages and filter the results.")
|
|
2945
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2946
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format', 'view', 'export_view', 'anonymous_export_view', 'styled_view', 'editor'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2947
|
+
c.add_argument('--get-draft', dest='p_get_draft', action=argparse.BooleanOptionalAction, help='Retrieve the draft version of this page. (default: False)')
|
|
2948
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'trashed', 'deleted', 'historical', 'draft'], help='Filter the page being retrieved by its status.')
|
|
2949
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=integer, metavar='ARG_VERSION', help="Allows you to retrieve a previously published version. Specify the previous version's number to retrieve its details.")
|
|
2950
|
+
c.add_argument('--include-labels', dest='p_include_labels', action=argparse.BooleanOptionalAction, help='Includes labels associated with this page in the response. (default: False)')
|
|
2951
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this page in the response. (default: False)')
|
|
2952
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this page in the response, as defined in the `Operation` object. (default: False)')
|
|
2953
|
+
c.add_argument('--include-likes', dest='p_include_likes', action=argparse.BooleanOptionalAction, help='Includes likes associated with this page in the response. (default: False)')
|
|
2954
|
+
c.add_argument('--include-versions', dest='p_include_versions', action=argparse.BooleanOptionalAction, help='Includes versions associated with this page in the response. (default: False)')
|
|
2955
|
+
c.add_argument('--include-version', dest='p_include_version', action=argparse.BooleanOptionalAction, help='Includes the current version associated with this page in the response. (default: True)')
|
|
2956
|
+
c.add_argument('--include-favorited-by-current-user-status', dest='p_include_favorited_by_current_user_status', action=argparse.BooleanOptionalAction, help='Includes whether this page has been favorited by the current user. (default: False)')
|
|
2957
|
+
c.add_argument('--include-webresources', dest='p_include_webresources', action=argparse.BooleanOptionalAction, help='Includes web resources that can be used to render page content on a client. (default: False)')
|
|
2958
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the page. (default: False)')
|
|
2959
|
+
c.add_argument('--include-direct-children', dest='p_include_direct_children', action=argparse.BooleanOptionalAction, help='Includes direct children of the page, as defined in the `ChildrenResponse` object. (default: False)')
|
|
2960
|
+
c.set_defaults(handler=_run_page_get, flags={'id': '--id', 'body_format': '--body-format', 'get_draft': '--get-draft', 'status': '--status', 'version': '--arg-version', 'include_labels': '--include-labels', 'include_properties': '--include-properties', 'include_operations': '--include-operations', 'include_likes': '--include-likes', 'include_versions': '--include-versions', 'include_version': '--include-version', 'include_favorited_by_current_user_status': '--include-favorited-by-current-user-status', 'include_webresources': '--include-webresources', 'include_collaborators': '--include-collaborators', 'include_direct_children': '--include-direct-children'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_by_id'})
|
|
2961
|
+
c = g_page_commands.add_parser('update', parents=[common], help='Update page', description='Update a page by id.\n\nWhen the "current" version is updated, the provided body content is considered\nas the latest version. This latest body content will be attempted to be merged\ninto the draft version through a content reconciliation algorithm. If two\nversions are significantly diverged, the latest provided content may entirely\noverride what was previously in the draft.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page and its corresponding space. Permission to update\npages in the space.', usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page update ID --body @body.json', 'codapact-confluence page update ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
2962
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the page to be updated. If you don't know the page ID, use Get Pages and filter the results.")
|
|
2963
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2964
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with id*, status*, title*, body*, version*, space_id, parent_id, owner_id (* required). Schema: codapact-confluence describe page update')
|
|
2965
|
+
c.set_defaults(handler=_run_page_update, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_page'})
|
|
2966
|
+
c = g_page_commands.add_parser('delete', parents=[common], help='Delete page', description='Delete a page by id.\n\nBy default this will delete pages that are non-drafts. To delete a page that\nis a draft, the endpoint must be called on a draft with the following param\n`draft=true`. Discarded drafts are not sent to the trash and are permanently\ndeleted.\n\nDeleting a page moves the page to the trash, where it can be restored later.\nTo permanently delete a page (or "purge" it), the endpoint must be called on a\n**trashed** page with the following param `purge=true`.\n\n**[Permissions](https://support.atlassian.com/confluence-cloud/docs/what-are-\nconfluences-roles/) required**: Permission to view the page and its\ncorresponding space. Permission to delete pages in the space. [`manage/content\n`](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-\npermissions/#api-space-permissions-get) permission for the space (if\nattempting to purge).\n\n**Note:** To find the display name for each permission ID, call the [Get\navailable space\npermissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-\ngroup-space-permissions/#api-space-permissions-get) API.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page delete ID --dry-run', 'codapact-confluence page delete ID --yes']), formatter_class=RAW)
|
|
2967
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page to be deleted.')
|
|
2968
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2969
|
+
c.add_argument('--purge', dest='p_purge', action=argparse.BooleanOptionalAction, help='If attempting to purge the page. (default: False)')
|
|
2970
|
+
c.add_argument('--draft', dest='p_draft', action=argparse.BooleanOptionalAction, help='If attempting to delete a page that is a draft. (default: False)')
|
|
2971
|
+
RUNTIME.add_confirm_option(c)
|
|
2972
|
+
c.set_defaults(handler=_run_page_delete, flags={'id': '--id', 'purge': '--purge', 'draft': '--draft'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_page'})
|
|
2973
|
+
c = g_page_commands.add_parser('update-title', parents=[common], help='Update page title', description='Updates the title of a specified page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page and its corresponding space. Permission to update\npages in the space.', usage='%(prog)s ID --status {current,draft} --title TITLE [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page update-title ID --status current --title TITLE', 'codapact-confluence page update-title ID --status current --title TITLE --dry-run']), formatter_class=RAW)
|
|
2974
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the page to be updated. If you don't know the page ID, use Get Pages and filter the results")
|
|
2975
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2976
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'draft'], required=True, help='The status of the page, current or draft.')
|
|
2977
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', required=True, help='The updated title for the page')
|
|
2978
|
+
c.set_defaults(handler=_run_page_update_title, flags={'id': '--id', 'body.status': '--status', 'body.title': '--title'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_page_title'})
|
|
2979
|
+
c = g_page_commands.add_parser('get-pages-in-space', parents=[common], help='Get pages in space', description="Returns all pages in a space. The number of results is limited by the `limit`\nparameter and additional results (if available) will be available through the\n`next` URL present in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission) and\n'View' permission for the space. Only pages that the user has permission to\nview will be returned.", usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence page get-pages-in-space ID']), formatter_class=RAW)
|
|
2980
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which pages should be returned.')
|
|
2981
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2982
|
+
c.add_argument('--depth', dest='p_depth', choices=['all', 'root'], help='Filter the results to pages at the root level of the space or to all pages in the space. (default: all)')
|
|
2983
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'created-date', '-created-date', 'modified-date', '-modified-date', 'title', '-title'], help='Used to sort the result by a particular field.')
|
|
2984
|
+
c.add_argument('--status', dest='p_status', action="append", choices=['current', 'archived', 'deleted', 'trashed'], help='Filter the results to pages based on their status. By default, `current` and `archived` are used.')
|
|
2985
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Filter the results to pages based on their title.')
|
|
2986
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
2987
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
2988
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
2989
|
+
c.set_defaults(handler=_run_page_get_pages_in_space, flags={'id': '--id', 'depth': '--depth', 'sort': '--sort', 'status': '--status', 'title': '--title', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_pages_in_space'})
|
|
2990
|
+
g_redactions = commands.add_parser('redactions', help='post-redact-blog, post-redact-page', description="Run 'codapact-confluence redactions COMMAND --help' for a command's options and examples.")
|
|
2991
|
+
g_redactions_commands = g_redactions.add_subparsers(dest="g_redactions", metavar="COMMAND", required=True)
|
|
2992
|
+
c = g_redactions_commands.add_parser('post-redact-page', parents=[common], help='Redact Content in a Confluence Page', description='Redacts sensitive content in a Confluence page by replacing specified text\nranges with redaction markers. Each redaction in the response includes a\nunique UUID for restoration (except code block redactions). The response\nmetadata items maintain the same order as the input redaction pointers, and\ncompletely overlapping redactions are merged into a single redaction with one\nUUID.\n\n**Note**: This endpoint requires **Atlassian Guard Premium**.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence redactions post-redact-page ID', 'codapact-confluence redactions post-redact-page ID --dry-run']), formatter_class=RAW)
|
|
2993
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page to redact content from.')
|
|
2994
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
2995
|
+
c.add_argument('--created-at', dest='p_created_at', metavar='DATETIME', help='Timestamp when the content was last updated.')
|
|
2996
|
+
c.add_argument('--clean-history', dest='p_clean_history', action=argparse.BooleanOptionalAction, help='Whether to clean up previous versions containing the redaction. When true, historical versions of the content that contain the redacted text will be squashed.')
|
|
2997
|
+
c.add_argument('--version-number', dest='p_version_number', type=integer, metavar='VERSION_NUMBER', help='Optional version number of the content to redact. When specified, the redaction will target ')
|
|
2998
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", help='JSON object with redactions. Schema: codapact-confluence describe redactions post-redact-page')
|
|
2999
|
+
c.add_argument('--title', dest='p_title', type=json_value, metavar="JSON", help='JSON object with redactions. Schema: codapact-confluence describe redactions post-redact-page')
|
|
3000
|
+
c.set_defaults(handler=_run_redactions_post_redact_page, flags={'id': '--id', 'body.created_at': '--created-at', 'body.clean_history': '--clean-history', 'body.version_number': '--version-number', 'body.body': '--body', 'body.title': '--title'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'post_redact_page'})
|
|
3001
|
+
c = g_redactions_commands.add_parser('post-redact-blog', parents=[common], help='Redact Content in a Confluence Blog Post', description='Redacts sensitive content in a Confluence blog post by replacing specified\ntext ranges with redaction markers. Each redaction in the response includes a\nunique UUID for restoration (except code block redactions). The response\nmetadata items maintain the same order as the input redaction pointers, and\ncompletely overlapping redactions are merged into a single redaction with one\nUUID.\n\n**Note**: This endpoint requires **Atlassian Guard Premium**.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence redactions post-redact-blog ID', 'codapact-confluence redactions post-redact-blog ID --dry-run']), formatter_class=RAW)
|
|
3002
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post to redact content from.')
|
|
3003
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3004
|
+
c.add_argument('--created-at', dest='p_created_at', metavar='DATETIME', help='Timestamp when the content was last updated.')
|
|
3005
|
+
c.add_argument('--clean-history', dest='p_clean_history', action=argparse.BooleanOptionalAction, help='Whether to clean up previous versions containing the redaction. When true, historical versions of the content that contain the redacted text will be squashed.')
|
|
3006
|
+
c.add_argument('--version-number', dest='p_version_number', type=integer, metavar='VERSION_NUMBER', help='Optional version number of the content to redact. When specified, the redaction will target ')
|
|
3007
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", help='JSON object with redactions. Schema: codapact-confluence describe redactions post-redact-blog')
|
|
3008
|
+
c.add_argument('--title', dest='p_title', type=json_value, metavar="JSON", help='JSON object with redactions. Schema: codapact-confluence describe redactions post-redact-blog')
|
|
3009
|
+
c.set_defaults(handler=_run_redactions_post_redact_blog, flags={'id': '--id', 'body.created_at': '--created-at', 'body.clean_history': '--clean-history', 'body.version_number': '--version-number', 'body.body': '--body', 'body.title': '--title'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'post_redact_blog'})
|
|
3010
|
+
g_smart_link = commands.add_parser('smart-link', help='create, delete, get', description="Run 'codapact-confluence smart-link COMMAND --help' for a command's options and examples.")
|
|
3011
|
+
g_smart_link_commands = g_smart_link.add_subparsers(dest="g_smart_link", metavar="COMMAND", required=True)
|
|
3012
|
+
c = g_smart_link_commands.add_parser('create', parents=[common], help='Create Smart Link in the content tree', description='Creates a Smart Link in the content tree in the space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the corresponding space. Permission to create a Smart Link\nin the content tree in the space.', usage='%(prog)s --space-id SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence smart-link create --space-id SPACE_ID', 'codapact-confluence smart-link create --space-id SPACE_ID --dry-run']), formatter_class=RAW)
|
|
3013
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', required=True, help='ID of the space.')
|
|
3014
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Title of the Smart Link in the content tree.')
|
|
3015
|
+
c.add_argument('--parent-id', dest='p_parent_id', metavar='PARENT_ID', help='The parent content ID of the Smart Link in the content tree.')
|
|
3016
|
+
c.add_argument('--embed-url', dest='p_embed_url', metavar='EMBED_URL', help='The URL that the Smart Link in the content tree should be populated with.')
|
|
3017
|
+
c.set_defaults(handler=_run_smart_link_create, flags={'body.space_id': '--space-id', 'body.title': '--title', 'body.parent_id': '--parent-id', 'body.embed_url': '--embed-url'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_smart_link'})
|
|
3018
|
+
c = g_smart_link_commands.add_parser('get', parents=[common], help='Get Smart Link in the content tree by id', description='Returns a specific Smart Link in the content tree.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the Smart Link in the content tree and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence smart-link get ID']), formatter_class=RAW)
|
|
3019
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree to be returned.')
|
|
3020
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3021
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the Smart Link. (default: False)')
|
|
3022
|
+
c.add_argument('--include-direct-children', dest='p_include_direct_children', action=argparse.BooleanOptionalAction, help='Includes direct children of the Smart Link, as defined in the `ChildrenResponse` object. (default: False)')
|
|
3023
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this Smart Link in the response, as defined in the `Operation` object. (default: False)')
|
|
3024
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this Smart Link in the response. (default: False)')
|
|
3025
|
+
c.set_defaults(handler=_run_smart_link_get, flags={'id': '--id', 'include_collaborators': '--include-collaborators', 'include_direct_children': '--include-direct-children', 'include_operations': '--include-operations', 'include_properties': '--include-properties'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_smart_link_by_id'})
|
|
3026
|
+
c = g_smart_link_commands.add_parser('delete', parents=[common], help='Delete Smart Link in the content tree', description='Delete a Smart Link in the content tree by id.\n\nDeleting a Smart Link in the content tree moves the Smart Link to the trash,\nwhere it can be restored later\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the Smart Link in the content tree and its corresponding\nspace. Permission to delete Smart Links in the content tree in the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence smart-link delete ID --dry-run', 'codapact-confluence smart-link delete ID --yes']), formatter_class=RAW)
|
|
3027
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the Smart Link in the content tree to be deleted.')
|
|
3028
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3029
|
+
RUNTIME.add_confirm_option(c)
|
|
3030
|
+
c.set_defaults(handler=_run_smart_link_delete, flags={'id': '--id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_smart_link'})
|
|
3031
|
+
g_space = commands.add_parser('space', help='create, get, list-spaces', description="Run 'codapact-confluence space COMMAND --help' for a command's options and examples.")
|
|
3032
|
+
g_space_commands = g_space.add_subparsers(dest="g_space", metavar="COMMAND", required=True)
|
|
3033
|
+
c = g_space_commands.add_parser('list-spaces', parents=[common], help='Get spaces', description="Returns all spaces. The results will be sorted by id ascending. The number of\nresults is limited by the `limit` parameter and additional results (if\navailable) will be available through the `next` URL present in the `Link`\nresponse header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\nspaces that the user has permission to view will be returned.", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space list-spaces']), formatter_class=RAW)
|
|
3034
|
+
c.add_argument('--ids', dest='p_ids', action="append", type=integer, metavar='IDS', help='Filter the results to spaces based on their IDs. Multiple IDs can be specified as a comma-separated list.')
|
|
3035
|
+
c.add_argument('--keys', dest='p_keys', action="append", metavar='KEYS', help='Filter the results to spaces based on their keys. Multiple keys can be specified as a comma-separated list.')
|
|
3036
|
+
c.add_argument('--type', dest='p_type', choices=['global', 'collaboration', 'knowledge_base', 'personal', 'system', 'onboarding', 'xflow_sample_space'], help='Filter the results to spaces based on their type.')
|
|
3037
|
+
c.add_argument('--status', dest='p_status', choices=['current', 'archived', 'trashed'], help='Filter the results to spaces based on their status.')
|
|
3038
|
+
c.add_argument('--labels', dest='p_labels', action="append", metavar='LABELS', help='Filter the results to spaces based on their labels. Multiple labels can be specified as a comma-separated list.')
|
|
3039
|
+
c.add_argument('--favorited-by', dest='p_favorited_by', metavar='FAVORITED_BY', help='Filter the results to spaces favorited by the user with the specified account ID.')
|
|
3040
|
+
c.add_argument('--not-favorited-by', dest='p_not_favorited_by', metavar='NOT_FAVORITED_BY', help='Filter the results to spaces NOT favorited by the user with the specified account ID.')
|
|
3041
|
+
c.add_argument('--sort', dest='p_sort', choices=['id', '-id', 'key', '-key', 'name', '-name'], help='Used to sort the result by a particular field.')
|
|
3042
|
+
c.add_argument('--description-format', dest='p_description_format', choices=['plain', 'view'], help='The content format type to be returned in the `description` field of the response. If available, the representation will be available under a response field of the same name under the `description` field.')
|
|
3043
|
+
c.add_argument('--include-icon', dest='p_include_icon', action=argparse.BooleanOptionalAction, help='If the icon for the space should be fetched or not. (default: False)')
|
|
3044
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3045
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of spaces per result to return. If more results exist, use the `Link` response header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3046
|
+
c.set_defaults(handler=_run_space_list_spaces, flags={'ids': '--ids', 'keys': '--keys', 'type': '--type', 'status': '--status', 'labels': '--labels', 'favorited_by': '--favorited-by', 'not_favorited_by': '--not-favorited-by', 'sort': '--sort', 'description_format': '--description-format', 'include_icon': '--include-icon', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_spaces'})
|
|
3047
|
+
c = g_space_commands.add_parser('create', parents=[common], help='Create space', description='Creates a Space as specified in the payload.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to create spaces.', usage='%(prog)s --name NAME [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space create --name NAME', 'codapact-confluence space create --name NAME --dry-run']), formatter_class=RAW)
|
|
3048
|
+
c.add_argument('--name', dest='p_name', metavar='NAME', required=True, help='The name of the space to be created.')
|
|
3049
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='The key for the new space. See [Space Keys](https://support.atlassian.com/confluence-cloud/docs/create-a-space/). If the key property is not provided, the alias property is required to be used instead.')
|
|
3050
|
+
c.add_argument('--alias', dest='p_alias', metavar='ALIAS', help='This field will be used as the new identifier for the space in confluence page URLs. If the alias property is not provided, the key property is required to be used instead. Maximum 255 alphanumeric characters in length.')
|
|
3051
|
+
c.add_argument('--description', dest='p_description', type=json_value, metavar="JSON", help="The description of the new/updated space. Note, only the 'plain' representation is currently supported. JSON object with value, representation. Schema: codapact-confluence describe space create")
|
|
3052
|
+
c.add_argument('--role-assignments', dest='p_role_assignments', type=json_value, metavar="JSON", help='JSON array of objects with principal, role_id. Schema: codapact-confluence describe space create')
|
|
3053
|
+
c.add_argument('--copy-space-access-configuration', dest='p_copy_space_access_configuration', type=integer, metavar='COPY_SPACE_ACCESS_CONFIGURATION', help='The id of the space to copy the space access configuration from.')
|
|
3054
|
+
c.add_argument('--create-private-space', dest='p_create_private_space', action=argparse.BooleanOptionalAction, help='Whether to create the space as private.')
|
|
3055
|
+
c.add_argument('--template-key', dest='p_template_key', metavar='TEMPLATE_KEY', help='The key of the template to use.')
|
|
3056
|
+
c.set_defaults(handler=_run_space_create, flags={'body.name': '--name', 'body.key': '--key', 'body.alias': '--alias', 'body.description': '--description', 'body.role_assignments': '--role-assignments', 'body.copy_space_access_configuration': '--copy-space-access-configuration', 'body.create_private_space': '--create-private-space', 'body.template_key': '--template-key'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_space'})
|
|
3057
|
+
c = g_space_commands.add_parser('get', parents=[common], help='Get space by id', description='Returns a specific space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space get ID']), formatter_class=RAW)
|
|
3058
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space to be returned.')
|
|
3059
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3060
|
+
c.add_argument('--description-format', dest='p_description_format', choices=['plain', 'view'], help='The content format type to be returned in the `description` field of the response. If available, the representation will be available under a response field of the same name under the `description` field.')
|
|
3061
|
+
c.add_argument('--include-icon', dest='p_include_icon', action=argparse.BooleanOptionalAction, help='If the icon for the space should be fetched or not. (default: False)')
|
|
3062
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this space in the response, as defined in the `Operation` object. (default: False)')
|
|
3063
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes space properties associated with this space in the response. (default: False)')
|
|
3064
|
+
c.add_argument('--include-permissions', dest='p_include_permissions', action=argparse.BooleanOptionalAction, help='Includes space permissions associated with this space in the response. (default: False)')
|
|
3065
|
+
c.add_argument('--include-role-assignments', dest='p_include_role_assignments', action=argparse.BooleanOptionalAction, help='Includes role assignments associated with this space in the response. This parameter is only accepted for EAP sites. (default: False)')
|
|
3066
|
+
c.add_argument('--include-labels', dest='p_include_labels', action=argparse.BooleanOptionalAction, help='Includes labels associated with this space in the response. (default: False)')
|
|
3067
|
+
c.set_defaults(handler=_run_space_get, flags={'id': '--id', 'description_format': '--description-format', 'include_icon': '--include-icon', 'include_operations': '--include-operations', 'include_properties': '--include-properties', 'include_permissions': '--include-permissions', 'include_role_assignments': '--include-role-assignments', 'include_labels': '--include-labels'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_by_id'})
|
|
3068
|
+
g_space_permission_transition = commands.add_parser('space-permission-transition', help='bulk-assign-space-permission-roles, bulk-remove-space-permission-access, generate-space-permission-combinations, … (5 commands)', description="Run 'codapact-confluence space-permission-transition COMMAND --help' for a command's options and examples.")
|
|
3069
|
+
g_space_permission_transition_commands = g_space_permission_transition.add_subparsers(dest="g_space_permission_transition", metavar="COMMAND", required=True)
|
|
3070
|
+
c = g_space_permission_transition_commands.add_parser('list-space-permission-combinations', parents=[common], help='List unassigned space permission combinations', description='Lists the unique unassigned space permission combinations currently present on\nthe tenant. Combinations that already map to a space role are filtered out\nserver-side. Each row carries the decoded set of space permissions and the\nprincipal types that currently hold the combination — these inform which\n`principalType` values are valid to include in the matching bulk role-\nassignments request.\n\nResults are always sorted by `principalCount` descending. Sort field and sort\norder are not configurable; page size is controlled by the `limit` query\nparameter (default 25, min 1, max 250). Use the `cursor` field to page through\nadditional results. The `generatedAt` field reflects the last audit run that\npopulated the combinations table — call the generate-combinations endpoint to\nrefresh stale data.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be a Confluence administrator.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-permission-transition list-space-permission-combinations']), formatter_class=RAW)
|
|
3071
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Opaque cursor returned from a previous page in the `cursor` field of the response. Omit for the first page.')
|
|
3072
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='The maximum number of combinations to return per page. Requests outside the supported range return `400`. (default: 25)')
|
|
3073
|
+
c.set_defaults(handler=_run_space_permission_transition_list_space_permission_combinations, flags={'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'list_space_permission_combinations'})
|
|
3074
|
+
c = g_space_permission_transition_commands.add_parser('generate-space-permission-combinations', parents=[common], help='Generate space permission combinations', description='Submits a task to refresh the space permission combinations in the database,\nwhich identifies all unique permission combinations across the site. This\nprovides permission combination IDs that can be used with the assign-roles and\nremove-access endpoints.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be a Confluence administrator.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-permission-transition generate-space-permission-combinations', 'codapact-confluence space-permission-transition generate-space-permission-combinations --dry-run']), formatter_class=RAW)
|
|
3075
|
+
c.set_defaults(handler=_run_space_permission_transition_generate_space_permission_combinations, flags={}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'generate_space_permission_combinations'})
|
|
3076
|
+
c = g_space_permission_transition_commands.add_parser('bulk-assign-space-permission-roles', parents=[common], help='Bulk assign space permission roles', description='Bulk assigns roles for one or more permission combination IDs obtained from\nthe space permission combinations. Supports targeting all spaces, specific\nspaces, or excluding specific spaces.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be a Confluence administrator.', usage='%(prog)s --assignments @assignments.json --space-selection @space-selection.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-permission-transition bulk-assign-space-permission-roles --assignments @assignments.json --space-selection @space-selection.json', 'codapact-confluence space-permission-transition bulk-assign-space-permission-roles --assignments @assignments.json --space-selection @space-selection.json --dry-run']), formatter_class=RAW)
|
|
3077
|
+
c.add_argument('--assignments', dest='p_assignments', type=json_value, metavar="JSON", required=True, help='List of role assignments to apply. JSON array of objects with permission_combination_id*, principal_type_assignments* (* required). Schema: codapact-confluence describe space-permission-transition bulk-assign-space-permission-roles')
|
|
3078
|
+
c.add_argument('--space-selection', dest='p_space_selection', type=json_value, metavar="JSON", required=True, help='JSON object with space_type*, selected_spaces (* required). Schema: codapact-confluence describe space-permission-transition bulk-assign-space-permission-roles')
|
|
3079
|
+
c.set_defaults(handler=_run_space_permission_transition_bulk_assign_space_permission_roles, flags={'body.assignments': '--assignments', 'body.space_selection': '--space-selection'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'bulk_assign_space_permission_roles'})
|
|
3080
|
+
c = g_space_permission_transition_commands.add_parser('bulk-remove-space-permission-access', parents=[common], help='Bulk remove space permission access', description='Bulk removes access for one or more permission combination IDs obtained from\nthe space permission combinations. This removes all space permissions for the\nspecified combinations across the targeted spaces.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be a Confluence administrator.', usage='%(prog)s --permission-combination-ids PERMISSION_COMBINATION_IDS --space-selection @space-selection.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-permission-transition bulk-remove-space-permission-access --permission-combination-ids PERMISSION_COMBINATION_IDS --space-selection @space-selection.json', 'codapact-confluence space-permission-transition bulk-remove-space-permission-access --permission-combination-ids PERMISSION_COMBINATION_IDS --space-selection @space-selection.json --dry-run']), formatter_class=RAW)
|
|
3081
|
+
c.add_argument('--permission-combination-ids', dest='p_permission_combination_ids', action="append", metavar='PERMISSION_COMBINATION_IDS', required=True, help='List of permission combination IDs to remove access for.')
|
|
3082
|
+
c.add_argument('--space-selection', dest='p_space_selection', type=json_value, metavar="JSON", required=True, help='JSON object with space_type*, selected_spaces (* required). Schema: codapact-confluence describe space-permission-transition bulk-remove-space-permission-access')
|
|
3083
|
+
c.set_defaults(handler=_run_space_permission_transition_bulk_remove_space_permission_access, flags={'body.permission_combination_ids': '--permission-combination-ids', 'body.space_selection': '--space-selection'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'bulk_remove_space_permission_access'})
|
|
3084
|
+
c = g_space_permission_transition_commands.add_parser('get-task-status', parents=[common], help='Get space permission transition task status', description='Retrieves the status of an async space permission transition task. Use the\ntaskId returned from the generate-combinations, assign-roles, or remove-access\nendpoints to poll for progress and completion.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be a Confluence administrator.', usage='%(prog)s TASK_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-permission-transition get-task-status TASK_ID']), formatter_class=RAW)
|
|
3085
|
+
c.add_argument('p_task_id', metavar='TASK_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the async task, as returned by the generate-combinations, assign-roles, or remove-access endpoints.')
|
|
3086
|
+
c.add_argument('--task-id', dest='p_task_id', default=argparse.SUPPRESS, metavar='TASK_ID', help='same as TASK_ID')
|
|
3087
|
+
c.set_defaults(handler=_run_space_permission_transition_get_task_status, flags={'task_id': '--task-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_permission_transition_task_status'})
|
|
3088
|
+
g_space_permissions = commands.add_parser('space-permissions', help='list, list-assignments', description="Run 'codapact-confluence space-permissions COMMAND --help' for a command's options and examples.")
|
|
3089
|
+
g_space_permissions_commands = g_space_permissions.add_subparsers(dest="g_space_permissions", metavar="COMMAND", required=True)
|
|
3090
|
+
c = g_space_permissions_commands.add_parser('list-assignments', parents=[common], help='Get space permissions assignments', description='Returns space permission assignments for a specific space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-permissions list-assignments ID']), formatter_class=RAW)
|
|
3091
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space to be returned.')
|
|
3092
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3093
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3094
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of assignments to return. If more results exist, use the `Link` response header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3095
|
+
c.set_defaults(handler=_run_space_permissions_list_assignments, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_permissions_assignments'})
|
|
3096
|
+
c = g_space_permissions_commands.add_parser('list', parents=[common], help='Get available space permissions', description='Retrieves the available space permissions.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site.', usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-permissions list']), formatter_class=RAW)
|
|
3097
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3098
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of space permissions to return. If more results exist, use the `Link` response header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3099
|
+
c.set_defaults(handler=_run_space_permissions_list, flags={'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_available_space_permissions'})
|
|
3100
|
+
g_space_properties = commands.add_parser('space-properties', help='create, delete, get, … (5 commands)', description="Run 'codapact-confluence space-properties COMMAND --help' for a command's options and examples.")
|
|
3101
|
+
g_space_properties_commands = g_space_properties.add_subparsers(dest="g_space_properties", metavar="COMMAND", required=True)
|
|
3102
|
+
c = g_space_properties_commands.add_parser('list', parents=[common], help='Get space properties in space', description="Returns all properties for the given space. Space properties are a key-value\nstorage associated with a space. The limit parameter specifies the maximum\nnumber of results returned in a single response. Use the `link` response\nheader to paginate through additional results.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission) and\n'View' permission for the space.", usage='%(prog)s SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-properties list SPACE_ID']), formatter_class=RAW)
|
|
3103
|
+
c.add_argument('p_space_id', metavar='SPACE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which space properties should be returned.')
|
|
3104
|
+
c.add_argument('--space-id', dest='p_space_id', default=argparse.SUPPRESS, type=integer, metavar='SPACE_ID', help='same as SPACE_ID')
|
|
3105
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='The key of the space property to retrieve. This should be used when a user knows the key of their property, but needs to retrieve the id for use in other methods.')
|
|
3106
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3107
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of pages per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3108
|
+
c.set_defaults(handler=_run_space_properties_list, flags={'space_id': '--space-id', 'key': '--key', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_properties'})
|
|
3109
|
+
c = g_space_properties_commands.add_parser('create', parents=[common], help='Create space property in space', description="Creates a new space property.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission) and\n'Admin' permission for the space.", usage='%(prog)s SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-properties create SPACE_ID --key KEY', 'codapact-confluence space-properties create SPACE_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
3110
|
+
c.add_argument('p_space_id', metavar='SPACE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which space properties should be returned.')
|
|
3111
|
+
c.add_argument('--space-id', dest='p_space_id', default=argparse.SUPPRESS, type=integer, metavar='SPACE_ID', help='same as SPACE_ID')
|
|
3112
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the space property')
|
|
3113
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the space property.')
|
|
3114
|
+
c.set_defaults(handler=_run_space_properties_create, flags={'space_id': '--space-id', 'body.key': '--key', 'body.value': '--value'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_space_property', 'requires_one_of': [['--key', '--value']]})
|
|
3115
|
+
c = g_space_properties_commands.add_parser('get', parents=[common], help='Get space property by id', description="Retrieve a space property by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission) and\n'View' permission for the space.", usage='%(prog)s SPACE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-properties get SPACE_ID PROPERTY_ID']), formatter_class=RAW)
|
|
3116
|
+
c.add_argument('p_space_id', metavar='SPACE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space the property belongs to.')
|
|
3117
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be retrieved.')
|
|
3118
|
+
c.add_argument('--space-id', dest='p_space_id', default=argparse.SUPPRESS, type=integer, metavar='SPACE_ID', help='same as SPACE_ID')
|
|
3119
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
3120
|
+
c.set_defaults(handler=_run_space_properties_get, flags={'space_id': '--space-id', 'property_id': '--property-id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_property_by_id'})
|
|
3121
|
+
c = g_space_properties_commands.add_parser('update', parents=[common], help='Update space property by id', description="Update a space property by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission) and\n'Admin' permission for the space.", usage='%(prog)s SPACE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-properties update SPACE_ID PROPERTY_ID --key KEY', 'codapact-confluence space-properties update SPACE_ID PROPERTY_ID --key KEY --dry-run']), formatter_class=RAW)
|
|
3122
|
+
c.add_argument('p_space_id', metavar='SPACE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space the property belongs to.')
|
|
3123
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be updated.')
|
|
3124
|
+
c.add_argument('--space-id', dest='p_space_id', default=argparse.SUPPRESS, type=integer, metavar='SPACE_ID', help='same as SPACE_ID')
|
|
3125
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
3126
|
+
c.add_argument('--key', dest='p_key', metavar='KEY', help='Key of the space property')
|
|
3127
|
+
c.add_argument('--value', dest='p_value', type=json_value, metavar="JSON", help='Value of the space property.')
|
|
3128
|
+
c.add_argument('--arg-version', dest='p_arg_version', type=json_value, metavar="JSON", help='New version number and associated message JSON object with number, message. Schema: codapact-confluence describe space-properties update')
|
|
3129
|
+
c.set_defaults(handler=_run_space_properties_update, flags={'space_id': '--space-id', 'property_id': '--property-id', 'body.key': '--key', 'body.value': '--value', 'body.version': '--arg-version'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_space_property_by_id', 'requires_one_of': [['--key', '--value', '--arg-version']]})
|
|
3130
|
+
c = g_space_properties_commands.add_parser('delete', parents=[common], help='Delete space property by id', description="Deletes a space property by its id.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission) and\n'Admin' permission for the space.", usage='%(prog)s SPACE_ID PROPERTY_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-properties delete SPACE_ID PROPERTY_ID --dry-run', 'codapact-confluence space-properties delete SPACE_ID PROPERTY_ID --yes']), formatter_class=RAW)
|
|
3131
|
+
c.add_argument('p_space_id', metavar='SPACE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space the property belongs to.')
|
|
3132
|
+
c.add_argument('p_property_id', metavar='PROPERTY_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the property to be deleted.')
|
|
3133
|
+
c.add_argument('--space-id', dest='p_space_id', default=argparse.SUPPRESS, type=integer, metavar='SPACE_ID', help='same as SPACE_ID')
|
|
3134
|
+
c.add_argument('--property-id', dest='p_property_id', default=argparse.SUPPRESS, type=integer, metavar='PROPERTY_ID', help='same as PROPERTY_ID')
|
|
3135
|
+
RUNTIME.add_confirm_option(c)
|
|
3136
|
+
c.set_defaults(handler=_run_space_properties_delete, flags={'space_id': '--space-id', 'property_id': '--property-id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_space_property_by_id'})
|
|
3137
|
+
g_space_roles = commands.add_parser('space-roles', help='create, delete, get, … (8 commands)', description="Run 'codapact-confluence space-roles COMMAND --help' for a command's options and examples.")
|
|
3138
|
+
g_space_roles_commands = g_space_roles.add_subparsers(dest="g_space_roles", metavar="COMMAND", required=True)
|
|
3139
|
+
c = g_space_roles_commands.add_parser('list', parents=[common], help='Get available space roles', description="Retrieves the available space roles.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site; if requesting a certain space's\nroles, permission to view the space.", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles list']), formatter_class=RAW)
|
|
3140
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', help='The space ID for which to filter available space roles; if empty, return all available space roles for the tenant.')
|
|
3141
|
+
c.add_argument('--role-type', dest='p_role_type', metavar='ROLE_TYPE', help='The space role type to filter results by.')
|
|
3142
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='The principal ID to filter results by. If specified, a principal-type must also be specified. Paired with a `principal-type` of `ACCESS_CLASS`, valid values include [`anonymous-users`, `jsm-project-admins`, `authenticated-users`, `all-licensed-users`, `all-product-admins`]')
|
|
3143
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['USER', 'GROUP', 'ACCESS_CLASS'], help='The principal type to filter results by. If specified, a principal-id must also be specified.')
|
|
3144
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3145
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of space roles to return. If more results exist, use the `Link` response header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3146
|
+
c.set_defaults(handler=_run_space_roles_list, flags={'space_id': '--space-id', 'role_type': '--role-type', 'principal_id': '--principal-id', 'principal_type': '--principal-type', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_available_space_roles'})
|
|
3147
|
+
c = g_space_roles_commands.add_parser('create', parents=[common], help='Create a space role', description='Create a space role.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be an organization or site admin. Connect and Forge app users are not\nauthorized to access this resource.', usage='%(prog)s --name NAME --description DESCRIPTION --space-permissions SPACE_PERMISSIONS [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles create --name NAME --description DESCRIPTION --space-permissions SPACE_PERMISSIONS', 'codapact-confluence space-roles create --name NAME --description DESCRIPTION --space-permissions SPACE_PERMISSIONS --dry-run']), formatter_class=RAW)
|
|
3148
|
+
c.add_argument('--name', dest='p_name', metavar='NAME', required=True, help='Name of the space role')
|
|
3149
|
+
c.add_argument('--description', dest='p_description', metavar='DESCRIPTION', required=True, help='Description for the space role')
|
|
3150
|
+
c.add_argument('--space-permissions', dest='p_space_permissions', action="append", metavar='SPACE_PERMISSIONS', required=True, help='The ids of the space permissions associated with the space role. Sample value "read/space"; retrieve ids from responses returned by [GET /space-permissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions/#api-space-permissions-get) endpoint')
|
|
3151
|
+
c.set_defaults(handler=_run_space_roles_create, flags={'body.name': '--name', 'body.description': '--description', 'body.space_permissions': '--space-permissions'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_space_role'})
|
|
3152
|
+
c = g_space_roles_commands.add_parser('get', parents=[common], help='Get space role by ID', description='Retrieves the space role by ID.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles get ID']), formatter_class=RAW)
|
|
3153
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space role to retrieve.')
|
|
3154
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3155
|
+
c.set_defaults(handler=_run_space_roles_get, flags={'id': '--id'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_roles_by_id'})
|
|
3156
|
+
c = g_space_roles_commands.add_parser('update', parents=[common], help='Update a space role', description='Update a space role.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be an organization or site admin. Connect and Forge app users are not\nauthorized to access this resource.', usage='%(prog)s ID --name NAME --description DESCRIPTION --space-permissions SPACE_PERMISSIONS [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles update ID --name NAME --description DESCRIPTION --space-permissions SPACE_PERMISSIONS', 'codapact-confluence space-roles update ID --name NAME --description DESCRIPTION --space-permissions SPACE_PERMISSIONS --dry-run']), formatter_class=RAW)
|
|
3157
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='Id of the space role')
|
|
3158
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
3159
|
+
c.add_argument('--name', dest='p_name', metavar='NAME', required=True, help='Name of the space role')
|
|
3160
|
+
c.add_argument('--description', dest='p_description', metavar='DESCRIPTION', required=True, help='Description for the space role')
|
|
3161
|
+
c.add_argument('--space-permissions', dest='p_space_permissions', action="append", metavar='SPACE_PERMISSIONS', required=True, help='The ids of the space permissions associated with the space role. Sample value "read/space"; retrieve ids from responses returned by [GET /space-permissions](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions/#api-space-permissions-get) endpoint')
|
|
3162
|
+
c.add_argument('--anonymous-reassignment-role-id', dest='p_anonymous_reassignment_role_id', metavar='ANONYMOUS_REASSIGNMENT_ROLE_ID', help='If space anonymous access is assigned to the role being modified, the Id of a role to migrate those assignments to can be specified. Anonymous access role assignments left unchanged if unspecified.')
|
|
3163
|
+
c.add_argument('--guest-reassignment-role-id', dest='p_guest_reassignment_role_id', metavar='GUEST_REASSIGNMENT_ROLE_ID', help='If guests are assigned to the role being modified, the Id of a role to migrate those assignments to can be specified. Guest role assignments left unchanged if unspecified.')
|
|
3164
|
+
c.set_defaults(handler=_run_space_roles_update, flags={'id': '--id', 'body.name': '--name', 'body.description': '--description', 'body.space_permissions': '--space-permissions', 'body.anonymous_reassignment_role_id': '--anonymous-reassignment-role-id', 'body.guest_reassignment_role_id': '--guest-reassignment-role-id'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_space_role'})
|
|
3165
|
+
c = g_space_roles_commands.add_parser('delete', parents=[common], help='Delete a space role', description='Delete a space role\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: User\nmust be an organization or site admin. Connect and Forge app users are not\nauthorized to access this resource.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles delete ID --dry-run', 'codapact-confluence space-roles delete ID --yes']), formatter_class=RAW)
|
|
3166
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help='Id of the space role')
|
|
3167
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
3168
|
+
RUNTIME.add_confirm_option(c)
|
|
3169
|
+
c.set_defaults(handler=_run_space_roles_delete, flags={'id': '--id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_space_role'})
|
|
3170
|
+
c = g_space_roles_commands.add_parser('get-mode', parents=[common], help='Get space role mode', description="Retrieves the space role mode.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles get-mode']), formatter_class=RAW)
|
|
3171
|
+
c.set_defaults(handler=_run_space_roles_get_mode, flags={}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_role_mode'})
|
|
3172
|
+
c = g_space_roles_commands.add_parser('list-assignments', parents=[common], help='Get space role assignments', description='Retrieves the space role assignments.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles list-assignments ID']), formatter_class=RAW)
|
|
3173
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which to retrieve assignments.')
|
|
3174
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3175
|
+
c.add_argument('--role-id', dest='p_role_id', metavar='ROLE_ID', help='Filters the returned role assignments to the provided role ID.')
|
|
3176
|
+
c.add_argument('--role-type', dest='p_role_type', metavar='ROLE_TYPE', help='Filters the returned role assignments to the provided role type.')
|
|
3177
|
+
c.add_argument('--principal-id', dest='p_principal_id', metavar='PRINCIPAL_ID', help='Filters the returned role assignments to the provided principal id. If specified, a principal-type must also be specified. Paired with a `principal-type` of `ACCESS_CLASS`, valid values include [`anonymous-users`, `jsm-project-admins`, `authenticated-users`, `all-licensed-users`, `all-product-admins`]')
|
|
3178
|
+
c.add_argument('--principal-type', dest='p_principal_type', choices=['USER', 'GROUP', 'ACCESS_CLASS'], help='Filters the returned role assignments to the provided principal type. If specified, a principal-id must also be specified.')
|
|
3179
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3180
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of space roles to return. If more results exist, use the `Link` response header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3181
|
+
c.set_defaults(handler=_run_space_roles_list_assignments, flags={'id': '--id', 'role_id': '--role-id', 'role_type': '--role-type', 'principal_id': '--principal-id', 'principal_type': '--principal-type', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_space_role_assignments'})
|
|
3182
|
+
c = g_space_roles_commands.add_parser('set-assignments', parents=[common], help='Set space role assignments', description='Sets space role assignments as specified in the payload. For each entry, if\n`roleId` is provided the principal is assigned to that role. If `roleId` is\nomitted, the role assignment for that principal is removed, if it exists.\n\nAvailable on tenants with [Role-Based Access\nControl](https://support.atlassian.com/confluence-cloud/docs/manage-user-\nroles/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to manage roles in the space.', usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence space-roles set-assignments ID --body @body.json', 'codapact-confluence space-roles set-assignments ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
3183
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the space for which to retrieve assignments.')
|
|
3184
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3185
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON array of objects with principal*, role_id (* required). Schema: codapact-confluence describe space-roles set-assignments')
|
|
3186
|
+
c.set_defaults(handler=_run_space_roles_set_assignments, flags={'id': '--id', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'set_space_role_assignments'})
|
|
3187
|
+
g_task = commands.add_parser('task', help='get, list-tasks, update', description="Run 'codapact-confluence task COMMAND --help' for a command's options and examples.")
|
|
3188
|
+
g_task_commands = g_task.add_subparsers(dest="g_task", metavar="COMMAND", required=True)
|
|
3189
|
+
c = g_task_commands.add_parser('list-tasks', parents=[common], help='Get tasks', description="Returns all tasks. The number of results is limited by the `limit` parameter\nand additional results (if available) will be available through the `next` URL\npresent in the `Link` response header.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). Only\ntasks that the user has permission to view will be returned.", usage='%(prog)s [options]', epilog=RUNTIME.command_epilog(['codapact-confluence task list-tasks']), formatter_class=RAW)
|
|
3190
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3191
|
+
c.add_argument('--include-blank-tasks', dest='p_include_blank_tasks', action=argparse.BooleanOptionalAction, help='Specifies whether to include blank tasks in the response. Defaults to `true`.')
|
|
3192
|
+
c.add_argument('--status', dest='p_status', choices=['complete', 'incomplete'], help='Filters on the status of the task.')
|
|
3193
|
+
c.add_argument('--task-id', dest='p_task_id', action="append", type=integer, metavar='TASK_ID', help='Filters on task ID. Multiple IDs can be specified.')
|
|
3194
|
+
c.add_argument('--space-id', dest='p_space_id', action="append", type=integer, metavar='SPACE_ID', help='Filters on the space ID of the task. Multiple IDs can be specified.')
|
|
3195
|
+
c.add_argument('--page-id', dest='p_page_id', action="append", type=integer, metavar='PAGE_ID', help='Filters on the page ID of the task. Multiple IDs can be specified. Note - page and blog post filters can be used in conjunction.')
|
|
3196
|
+
c.add_argument('--blogpost-id', dest='p_blogpost_id', action="append", type=integer, metavar='BLOGPOST_ID', help='Filters on the blog post ID of the task. Multiple IDs can be specified. Note - page and blog post filters can be used in conjunction.')
|
|
3197
|
+
c.add_argument('--created-by', dest='p_created_by', action="append", metavar='CREATED_BY', help='Filters on the Account ID of the user who created this task. Multiple IDs can be specified.')
|
|
3198
|
+
c.add_argument('--assigned-to', dest='p_assigned_to', action="append", metavar='ASSIGNED_TO', help='Filters on the Account ID of the user to whom this task is assigned. Multiple IDs can be specified.')
|
|
3199
|
+
c.add_argument('--completed-by', dest='p_completed_by', action="append", metavar='COMPLETED_BY', help='Filters on the Account ID of the user who completed this task. Multiple IDs can be specified.')
|
|
3200
|
+
c.add_argument('--created-at-from', dest='p_created_at_from', type=integer, metavar='CREATED_AT_FROM', help='Filters on start of date-time range of task based on creation date (inclusive). Input is epoch time in milliseconds.')
|
|
3201
|
+
c.add_argument('--created-at-to', dest='p_created_at_to', type=integer, metavar='CREATED_AT_TO', help='Filters on end of date-time range of task based on creation date (inclusive). Input is epoch time in milliseconds.')
|
|
3202
|
+
c.add_argument('--due-at-from', dest='p_due_at_from', type=integer, metavar='DUE_AT_FROM', help='Filters on start of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds.')
|
|
3203
|
+
c.add_argument('--due-at-to', dest='p_due_at_to', type=integer, metavar='DUE_AT_TO', help='Filters on end of date-time range of task based on due date (inclusive). Input is epoch time in milliseconds.')
|
|
3204
|
+
c.add_argument('--completed-at-from', dest='p_completed_at_from', type=integer, metavar='COMPLETED_AT_FROM', help='Filters on start of date-time range of task based on completion date (inclusive). Input is epoch time in milliseconds.')
|
|
3205
|
+
c.add_argument('--completed-at-to', dest='p_completed_at_to', type=integer, metavar='COMPLETED_AT_TO', help='Filters on end of date-time range of task based on completion date (inclusive). Input is epoch time in milliseconds.')
|
|
3206
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3207
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of tasks per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3208
|
+
c.set_defaults(handler=_run_task_list_tasks, flags={'body_format': '--body-format', 'include_blank_tasks': '--include-blank-tasks', 'status': '--status', 'task_id': '--task-id', 'space_id': '--space-id', 'page_id': '--page-id', 'blogpost_id': '--blogpost-id', 'created_by': '--created-by', 'assigned_to': '--assigned-to', 'completed_by': '--completed-by', 'created_at_from': '--created-at-from', 'created_at_to': '--created-at-to', 'due_at_from': '--due-at-from', 'due_at_to': '--due-at-to', 'completed_at_from': '--completed-at-from', 'completed_at_to': '--completed-at-to', 'cursor': '--cursor', 'limit': '--limit'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_tasks'})
|
|
3209
|
+
c = g_task_commands.add_parser('get', parents=[common], help='Get task by id', description='Returns a specific task.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the containing page or blog post and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence task get ID']), formatter_class=RAW)
|
|
3210
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the task to be returned. If you don't know the task ID, use Get tasks and filter the results.")
|
|
3211
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3212
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3213
|
+
c.set_defaults(handler=_run_task_get, flags={'id': '--id', 'body_format': '--body-format'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_task_by_id'})
|
|
3214
|
+
c = g_task_commands.add_parser('update', parents=[common], help='Update task', description='Update a task by id. This endpoint currently only supports updating task\nstatus.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the containing page or blog post and view its corresponding\nspace.', usage='%(prog)s ID --body @body.json [options]', epilog=RUNTIME.command_epilog(['codapact-confluence task update ID --body @body.json', 'codapact-confluence task update ID --body @body.json --dry-run']), formatter_class=RAW)
|
|
3215
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the task to be updated. If you don't know the task ID, use Get tasks and filter the results.")
|
|
3216
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3217
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3218
|
+
c.add_argument('--body', dest='p_body', type=json_value, metavar="JSON", required=True, help='JSON object with status*, id, local_id, space_id, page_id, blog_post_id, created_by, assigned_to, completed_by, created_at, updated_at, due_at, ... (* required). Schema: codapact-confluence describe task update')
|
|
3219
|
+
c.set_defaults(handler=_run_task_update, flags={'id': '--id', 'body_format': '--body-format', 'body': '--body'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'update_task'})
|
|
3220
|
+
g_user = commands.add_parser('user', help='check-access-by-email, create-bulk-lookup, invite-by-email', description="Run 'codapact-confluence user COMMAND --help' for a command's options and examples.")
|
|
3221
|
+
g_user_commands = g_user.add_subparsers(dest="g_user", metavar="COMMAND", required=True)
|
|
3222
|
+
c = g_user_commands.add_parser('create-bulk-lookup', parents=[common], help='Create bulk user lookup using ids', description="Returns user details for the ids provided in the request body.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission). The\nuser must be able to view user profiles in the Confluence site.", usage='%(prog)s --account-ids ACCOUNT_IDS [options]', epilog=RUNTIME.command_epilog(['codapact-confluence user create-bulk-lookup --account-ids ACCOUNT_IDS', 'codapact-confluence user create-bulk-lookup --account-ids ACCOUNT_IDS --dry-run']), formatter_class=RAW)
|
|
3223
|
+
c.add_argument('--account-ids', dest='p_account_ids', action="append", metavar='ACCOUNT_IDS', required=True, help='List of accountIds to retrieve user info for.')
|
|
3224
|
+
c.set_defaults(handler=_run_user_create_bulk_lookup, flags={'body.account_ids': '--account-ids'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_bulk_user_lookup'})
|
|
3225
|
+
c = g_user_commands.add_parser('check-access-by-email', parents=[common], help='Check site access for a list of emails', description="Returns the list of emails from the input list that do not have access to\nsite.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).", usage='%(prog)s --emails EMAILS [options]', epilog=RUNTIME.command_epilog(['codapact-confluence user check-access-by-email --emails EMAILS', 'codapact-confluence user check-access-by-email --emails EMAILS --dry-run']), formatter_class=RAW)
|
|
3226
|
+
c.add_argument('--emails', dest='p_emails', action="append", metavar='EMAILS', required=True, help='List of emails to check access to site.')
|
|
3227
|
+
c.set_defaults(handler=_run_user_check_access_by_email, flags={'body.emails': '--emails'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'check_access_by_email'})
|
|
3228
|
+
c = g_user_commands.add_parser('invite-by-email', parents=[common], help='Invite a list of emails to the site', description="Invite a list of emails to the site.\n\nIgnores all invalid emails and no action is taken for the emails that already\nhave access to the site.\n\n<b>NOTE:</b> This API is asynchronous and may take some time to complete.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).", usage='%(prog)s --emails EMAILS [options]', epilog=RUNTIME.command_epilog(['codapact-confluence user invite-by-email --emails EMAILS', 'codapact-confluence user invite-by-email --emails EMAILS --dry-run']), formatter_class=RAW)
|
|
3229
|
+
c.add_argument('--emails', dest='p_emails', action="append", metavar='EMAILS', required=True, help='List of emails to check access to site.')
|
|
3230
|
+
c.set_defaults(handler=_run_user_invite_by_email, flags={'body.emails': '--emails'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'invite_by_email'})
|
|
3231
|
+
g_version = commands.add_parser('version', help='list-attachment-details, list-attachment-versions, list-blog-post-details, … (12 commands)', description="Run 'codapact-confluence version COMMAND --help' for a command's options and examples.")
|
|
3232
|
+
g_version_commands = g_version.add_subparsers(dest="g_version", metavar="COMMAND", required=True)
|
|
3233
|
+
c = g_version_commands.add_parser('list-attachment-versions', parents=[common], help='Get attachment versions', description='Returns the versions of specific attachment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-attachment-versions ID']), formatter_class=RAW)
|
|
3234
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, help="The ID of the attachment to be queried for its versions. If you don't know the attachment ID, use Get attachments and filter the results.")
|
|
3235
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, metavar='ID', help='same as ID')
|
|
3236
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3237
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3238
|
+
c.add_argument('--sort', dest='p_sort', choices=['modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
3239
|
+
c.set_defaults(handler=_run_version_list_attachment_versions, flags={'id': '--id', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_versions'})
|
|
3240
|
+
c = g_version_commands.add_parser('list-attachment-details', parents=[common], help='Get version details for attachment version', description='Retrieves version details for the specified attachment and version number.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the attachment.', usage='%(prog)s ATTACHMENT_ID VERSION_NUMBER [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-attachment-details ATTACHMENT_ID VERSION_NUMBER']), formatter_class=RAW)
|
|
3241
|
+
c.add_argument('p_attachment_id', metavar='ATTACHMENT_ID', nargs='?', default=argparse.SUPPRESS, help='The ID of the attachment for which version details should be returned.')
|
|
3242
|
+
c.add_argument('p_version_number', metavar='VERSION_NUMBER', nargs='?', default=argparse.SUPPRESS, type=integer, help='The version number of the attachment to be returned.')
|
|
3243
|
+
c.add_argument('--attachment-id', dest='p_attachment_id', default=argparse.SUPPRESS, metavar='ATTACHMENT_ID', help='same as ATTACHMENT_ID')
|
|
3244
|
+
c.add_argument('--version-number', dest='p_version_number', default=argparse.SUPPRESS, type=integer, metavar='VERSION_NUMBER', help='same as VERSION_NUMBER')
|
|
3245
|
+
c.set_defaults(handler=_run_version_list_attachment_details, flags={'attachment_id': '--attachment-id', 'version_number': '--version-number'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_attachment_version_details'})
|
|
3246
|
+
c = g_version_commands.add_parser('list-blog-post-versions', parents=[common], help='Get blog post versions', description='Returns the versions of specific blog post.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-blog-post-versions ID']), formatter_class=RAW)
|
|
3247
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the blog post to be queried for its versions. If you don't know the blog post ID, use Get blog posts and filter the results.")
|
|
3248
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3249
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3250
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3251
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3252
|
+
c.add_argument('--sort', dest='p_sort', choices=['modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
3253
|
+
c.set_defaults(handler=_run_version_list_blog_post_versions, flags={'id': '--id', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_versions'})
|
|
3254
|
+
c = g_version_commands.add_parser('list-blog-post-details', parents=[common], help='Get version details for blog post version', description='Retrieves version details for the specified blog post and version number.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the blog post.', usage='%(prog)s BLOGPOST_ID VERSION_NUMBER [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-blog-post-details BLOGPOST_ID VERSION_NUMBER']), formatter_class=RAW)
|
|
3255
|
+
c.add_argument('p_blogpost_id', metavar='BLOGPOST_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the blog post for which version details should be returned.')
|
|
3256
|
+
c.add_argument('p_version_number', metavar='VERSION_NUMBER', nargs='?', default=argparse.SUPPRESS, type=integer, help='The version number of the blog post to be returned.')
|
|
3257
|
+
c.add_argument('--blogpost-id', dest='p_blogpost_id', default=argparse.SUPPRESS, type=integer, metavar='BLOGPOST_ID', help='same as BLOGPOST_ID')
|
|
3258
|
+
c.add_argument('--version-number', dest='p_version_number', default=argparse.SUPPRESS, type=integer, metavar='VERSION_NUMBER', help='same as VERSION_NUMBER')
|
|
3259
|
+
c.set_defaults(handler=_run_version_list_blog_post_details, flags={'blogpost_id': '--blogpost-id', 'version_number': '--version-number'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_blog_post_version_details'})
|
|
3260
|
+
c = g_version_commands.add_parser('list-page-versions', parents=[common], help='Get page versions', description='Returns the versions of specific page.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-page-versions ID']), formatter_class=RAW)
|
|
3261
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the page to be queried for its versions. If you don't know the page ID, use Get pages and filter the results.")
|
|
3262
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3263
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3264
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3265
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3266
|
+
c.add_argument('--sort', dest='p_sort', choices=['modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
3267
|
+
c.set_defaults(handler=_run_version_list_page_versions, flags={'id': '--id', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_versions'})
|
|
3268
|
+
c = g_version_commands.add_parser('list-page-details', parents=[common], help='Get version details for page version', description='Retrieves version details for the specified page and version number.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page.', usage='%(prog)s PAGE_ID VERSION_NUMBER [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-page-details PAGE_ID VERSION_NUMBER']), formatter_class=RAW)
|
|
3269
|
+
c.add_argument('p_page_id', metavar='PAGE_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the page for which version details should be returned.')
|
|
3270
|
+
c.add_argument('p_version_number', metavar='VERSION_NUMBER', nargs='?', default=argparse.SUPPRESS, type=integer, help='The version number of the page to be returned.')
|
|
3271
|
+
c.add_argument('--page-id', dest='p_page_id', default=argparse.SUPPRESS, type=integer, metavar='PAGE_ID', help='same as PAGE_ID')
|
|
3272
|
+
c.add_argument('--version-number', dest='p_version_number', default=argparse.SUPPRESS, type=integer, metavar='VERSION_NUMBER', help='same as VERSION_NUMBER')
|
|
3273
|
+
c.set_defaults(handler=_run_version_list_page_details, flags={'page_id': '--page-id', 'version_number': '--version-number'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_page_version_details'})
|
|
3274
|
+
c = g_version_commands.add_parser('list-custom-content-versions', parents=[common], help='Get custom content versions', description='Returns the versions of specific custom content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the custom content and its corresponding page and space.', usage='%(prog)s CUSTOM_CONTENT_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-custom-content-versions CUSTOM_CONTENT_ID']), formatter_class=RAW)
|
|
3275
|
+
c.add_argument('p_custom_content_id', metavar='CUSTOM_CONTENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help="The ID of the custom content to be queried for its versions. If you don't know the custom content ID, use Get custom-content by type and filter the results.")
|
|
3276
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', default=argparse.SUPPRESS, type=integer, metavar='CUSTOM_CONTENT_ID', help='same as CUSTOM_CONTENT_ID')
|
|
3277
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['raw', 'storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3278
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3279
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3280
|
+
c.add_argument('--sort', dest='p_sort', choices=['modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
3281
|
+
c.set_defaults(handler=_run_version_list_custom_content_versions, flags={'custom_content_id': '--custom-content-id', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_versions'})
|
|
3282
|
+
c = g_version_commands.add_parser('list-custom-content-details', parents=[common], help='Get version details for custom content version', description='Retrieves version details for the specified custom content and version number.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the page.', usage='%(prog)s CUSTOM_CONTENT_ID VERSION_NUMBER [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-custom-content-details CUSTOM_CONTENT_ID VERSION_NUMBER']), formatter_class=RAW)
|
|
3283
|
+
c.add_argument('p_custom_content_id', metavar='CUSTOM_CONTENT_ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the custom content for which version details should be returned.')
|
|
3284
|
+
c.add_argument('p_version_number', metavar='VERSION_NUMBER', nargs='?', default=argparse.SUPPRESS, type=integer, help='The version number of the custom content to be returned.')
|
|
3285
|
+
c.add_argument('--custom-content-id', dest='p_custom_content_id', default=argparse.SUPPRESS, type=integer, metavar='CUSTOM_CONTENT_ID', help='same as CUSTOM_CONTENT_ID')
|
|
3286
|
+
c.add_argument('--version-number', dest='p_version_number', default=argparse.SUPPRESS, type=integer, metavar='VERSION_NUMBER', help='same as VERSION_NUMBER')
|
|
3287
|
+
c.set_defaults(handler=_run_version_list_custom_content_details, flags={'custom_content_id': '--custom-content-id', 'version_number': '--version-number'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_custom_content_version_details'})
|
|
3288
|
+
c = g_version_commands.add_parser('list-footer-comment-versions', parents=[common], help='Get footer comment versions', description='Retrieves the versions of the specified footer comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blog post and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-footer-comment-versions ID']), formatter_class=RAW)
|
|
3289
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the footer comment for which versions should be returned')
|
|
3290
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3291
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3292
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3293
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3294
|
+
c.add_argument('--sort', dest='p_sort', choices=['modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
3295
|
+
c.set_defaults(handler=_run_version_list_footer_comment_versions, flags={'id': '--id', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_comment_versions'})
|
|
3296
|
+
c = g_version_commands.add_parser('list-footer-comment-details', parents=[common], help='Get version details for footer comment version', description='Retrieves version details for the specified footer comment version.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blog post and its corresponding\nspace.', usage='%(prog)s ID VERSION_NUMBER [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-footer-comment-details ID VERSION_NUMBER']), formatter_class=RAW)
|
|
3297
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the footer comment for which version details should be returned.')
|
|
3298
|
+
c.add_argument('p_version_number', metavar='VERSION_NUMBER', nargs='?', default=argparse.SUPPRESS, type=integer, help='The version number of the footer comment to be returned.')
|
|
3299
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3300
|
+
c.add_argument('--version-number', dest='p_version_number', default=argparse.SUPPRESS, type=integer, metavar='VERSION_NUMBER', help='same as VERSION_NUMBER')
|
|
3301
|
+
c.set_defaults(handler=_run_version_list_footer_comment_details, flags={'id': '--id', 'version_number': '--version-number'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_footer_comment_version_details'})
|
|
3302
|
+
c = g_version_commands.add_parser('list-inline-comment-versions', parents=[common], help='Get inline comment versions', description='Retrieves the versions of the specified inline comment.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blog post and its corresponding\nspace.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-inline-comment-versions ID']), formatter_class=RAW)
|
|
3303
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the inline comment for which versions should be returned')
|
|
3304
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3305
|
+
c.add_argument('--body-format', dest='p_body_format', choices=['storage', 'atlas_doc_format'], help='The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.')
|
|
3306
|
+
c.add_argument('--cursor', dest='p_cursor', metavar='CURSOR', help='Used for pagination, this opaque cursor will be returned in the `next` URL in the `Link` response header. Use the relative URL in the `Link` header to retrieve the `next` set of results.')
|
|
3307
|
+
c.add_argument('--limit', dest='p_limit', type=integer, metavar='LIMIT', help='Maximum number of versions per result to return. If more results exist, use the `Link` header to retrieve a relative URL that will return the next set of results. (default: 25)')
|
|
3308
|
+
c.add_argument('--sort', dest='p_sort', choices=['modified-date', '-modified-date'], help='Used to sort the result by a particular field.')
|
|
3309
|
+
c.set_defaults(handler=_run_version_list_inline_comment_versions, flags={'id': '--id', 'body_format': '--body-format', 'cursor': '--cursor', 'limit': '--limit', 'sort': '--sort'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_comment_versions'})
|
|
3310
|
+
c = g_version_commands.add_parser('list-inline-comment-details', parents=[common], help='Get version details for inline comment version', description='Retrieves version details for the specified inline comment version.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content of the page or blog post and its corresponding\nspace.', usage='%(prog)s ID VERSION_NUMBER [options]', epilog=RUNTIME.command_epilog(['codapact-confluence version list-inline-comment-details ID VERSION_NUMBER']), formatter_class=RAW)
|
|
3311
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the inline comment for which version details should be returned.')
|
|
3312
|
+
c.add_argument('p_version_number', metavar='VERSION_NUMBER', nargs='?', default=argparse.SUPPRESS, type=integer, help='The version number of the inline comment to be returned.')
|
|
3313
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3314
|
+
c.add_argument('--version-number', dest='p_version_number', default=argparse.SUPPRESS, type=integer, metavar='VERSION_NUMBER', help='same as VERSION_NUMBER')
|
|
3315
|
+
c.set_defaults(handler=_run_version_list_inline_comment_details, flags={'id': '--id', 'version_number': '--version-number'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_inline_comment_version_details'})
|
|
3316
|
+
g_whiteboard = commands.add_parser('whiteboard', help='create, delete, get', description="Run 'codapact-confluence whiteboard COMMAND --help' for a command's options and examples.")
|
|
3317
|
+
g_whiteboard_commands = g_whiteboard.add_subparsers(dest="g_whiteboard", metavar="COMMAND", required=True)
|
|
3318
|
+
c = g_whiteboard_commands.add_parser('create', parents=[common], help='Create whiteboard', description='Creates a whiteboard in the space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the corresponding space. Permission to create a whiteboard\nin the space.', usage='%(prog)s --space-id SPACE_ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence whiteboard create --space-id SPACE_ID', 'codapact-confluence whiteboard create --space-id SPACE_ID --dry-run']), formatter_class=RAW)
|
|
3319
|
+
c.add_argument('--private', dest='p_private', action=argparse.BooleanOptionalAction, help='The whiteboard will be private. Only the user who creates this whiteboard will have permission to view and edit one. (default: False)')
|
|
3320
|
+
c.add_argument('--space-id', dest='p_space_id', metavar='SPACE_ID', required=True, help='ID of the space.')
|
|
3321
|
+
c.add_argument('--title', dest='p_title', metavar='TITLE', help='Title of the whiteboard.')
|
|
3322
|
+
c.add_argument('--parent-id', dest='p_parent_id', metavar='PARENT_ID', help='The parent content ID of the whiteboard.')
|
|
3323
|
+
c.add_argument('--template-key', dest='p_template_key', choices=['2x2-prioritization', '4ls-retro', 'annual-calendar', 'brainwriting', 'concept-map', 'crazy-8s', 'daily-sync', 'disruptive-brainstorm', 'dot-voting', 'elevator-pitch', 'flow-chart', 'gap-analysis', 'ice-breakers', 'incident-postmortem', 'journey-mapping-kit', 'kanban-board', 'lean-coffee', 'network-of-teams', 'org-chart', 'pi-planning', 'prioritization', 'prioritization-experiment', 'product-roadmap', 'product-vision-board', 'rice', 'sailboat-retro', 'service-blueprint', 'simple-retrospective', 'sprint-planning', 'sticky-note-pack', 'swimlanes', 'team-formation-guide', 'timeline', 'timeline-workflow', 'user-story-map', 'workflow', 'vision-board', 'venn-diagram', 'storyboard', 'action-plan', 'root-cause-analysis', 'executive-summary', 'stakeholder-mapping', 'annual-calendar-2025-2026', 'health-monitor', 'okr-planning', 'swot-analysis', 'poker-planning', 'fishbone-diagram', 'risk-assessment', 'bounded-context', 'hopes-and-fears', 'swimlane-vertical'], help='Providing a template key will add that template to the new whiteboard.')
|
|
3324
|
+
c.add_argument('--locale', dest='p_locale', choices=['de-DE', 'cs-CZ', 'ko-KR', 'fr-FR', 'it-IT', 'ja-JP', 'nl-NL', 'nb-NO', 'da-DK', 'sv-SE', 'fi-FI', 'ru-RU', 'pl-PL', 'tr-TR', 'hu-HU', 'en-GB', 'en-US', 'pt-BR', 'zh-CN', 'zh-TW', 'es-ES'], help="If templateKey is provided, locale will decide which language the template will be created with. If locale is omitted, the user's locale will be used.")
|
|
3325
|
+
c.set_defaults(handler=_run_whiteboard_create, flags={'private': '--private', 'body.space_id': '--space-id', 'body.title': '--title', 'body.parent_id': '--parent-id', 'body.template_key': '--template-key', 'body.locale': '--locale'}, meta={'read_only': False, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'create_whiteboard'})
|
|
3326
|
+
c = g_whiteboard_commands.add_parser('get', parents=[common], help='Get whiteboard by id', description='Returns a specific whiteboard.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the whiteboard and its corresponding space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence whiteboard get ID']), formatter_class=RAW)
|
|
3327
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard to be returned')
|
|
3328
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3329
|
+
c.add_argument('--include-collaborators', dest='p_include_collaborators', action=argparse.BooleanOptionalAction, help='Includes collaborators on the whiteboard. (default: False)')
|
|
3330
|
+
c.add_argument('--include-direct-children', dest='p_include_direct_children', action=argparse.BooleanOptionalAction, help='Includes direct children of the whiteboard, as defined in the `ChildrenResponse` object. (default: False)')
|
|
3331
|
+
c.add_argument('--include-operations', dest='p_include_operations', action=argparse.BooleanOptionalAction, help='Includes operations associated with this whiteboard in the response, as defined in the `Operation` object. (default: False)')
|
|
3332
|
+
c.add_argument('--include-properties', dest='p_include_properties', action=argparse.BooleanOptionalAction, help='Includes content properties associated with this whiteboard in the response. (default: False)')
|
|
3333
|
+
c.set_defaults(handler=_run_whiteboard_get, flags={'id': '--id', 'include_collaborators': '--include-collaborators', 'include_direct_children': '--include-direct-children', 'include_operations': '--include-operations', 'include_properties': '--include-properties'}, meta={'read_only': True, 'destructive': False, 'paginated': False, 'deprecated': False, 'operation': 'get_whiteboard_by_id'})
|
|
3334
|
+
c = g_whiteboard_commands.add_parser('delete', parents=[common], help='Delete whiteboard', description='Delete a whiteboard by id.\n\nDeleting a whiteboard moves the whiteboard to the trash, where it can be\nrestored later\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the whiteboard and its corresponding space. Permission to\ndelete whiteboards in the space.', usage='%(prog)s ID [options]', epilog=RUNTIME.command_epilog(['codapact-confluence whiteboard delete ID --dry-run', 'codapact-confluence whiteboard delete ID --yes']), formatter_class=RAW)
|
|
3335
|
+
c.add_argument('p_id', metavar='ID', nargs='?', default=argparse.SUPPRESS, type=integer, help='The ID of the whiteboard to be deleted.')
|
|
3336
|
+
c.add_argument('--id', dest='p_id', default=argparse.SUPPRESS, type=integer, metavar='ID', help='same as ID')
|
|
3337
|
+
RUNTIME.add_confirm_option(c)
|
|
3338
|
+
c.set_defaults(handler=_run_whiteboard_delete, flags={'id': '--id'}, meta={'read_only': False, 'destructive': True, 'paginated': False, 'deprecated': False, 'operation': 'delete_whiteboard'})
|
|
3339
|
+
RUNTIME.add_builtins(commands)
|
|
3340
|
+
return parser
|
|
3341
|
+
|
|
3342
|
+
|
|
3343
|
+
def main(argv: Sequence[str] | None = None) -> int:
|
|
3344
|
+
"""Parse arguments, run one command, and return the exit code."""
|
|
3345
|
+
return RUNTIME.main(
|
|
3346
|
+
build_parser, lambda options: Client(**options), _api_model, argv
|
|
3347
|
+
)
|