clear-skies-gitlab 2.0.1__py3-none-any.whl → 2.0.2__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.
- {clear_skies_gitlab-2.0.1.dist-info → clear_skies_gitlab-2.0.2.dist-info}/METADATA +2 -2
- clear_skies_gitlab-2.0.2.dist-info/RECORD +65 -0
- {clear_skies_gitlab-2.0.1.dist-info → clear_skies_gitlab-2.0.2.dist-info}/WHEEL +1 -1
- clearskies_gitlab/__init__.py +2 -2
- clearskies_gitlab/defaults/__init__.py +4 -2
- clearskies_gitlab/defaults/gitlab_default_auth.py +3 -0
- clearskies_gitlab/defaults/gitlab_default_host.py +10 -0
- clearskies_gitlab/defaults/gitlab_graphql_client.py +18 -0
- clearskies_gitlab/exceptions/gitlab_error.py +1 -0
- clearskies_gitlab/graphql/__init__.py +3 -0
- clearskies_gitlab/graphql/backends/__init__.py +7 -0
- clearskies_gitlab/graphql/backends/gitlab_graphql_backend.py +38 -0
- clearskies_gitlab/graphql/models/__init__.py +13 -0
- clearskies_gitlab/graphql/models/gitlab_container_repository.py +34 -0
- clearskies_gitlab/graphql/models/gitlab_container_repository_reference.py +8 -0
- clearskies_gitlab/graphql/models/gitlab_container_repository_tag.py +32 -0
- clearskies_gitlab/graphql/models/gitlab_container_repository_tag_reference.py +8 -0
- clearskies_gitlab/graphql/models/gitlab_group.py +24 -0
- clearskies_gitlab/graphql/models/gitlab_group_reference.py +8 -0
- clearskies_gitlab/graphql/models/gitlab_project.py +25 -0
- clearskies_gitlab/graphql/models/gitlab_project_reference.py +8 -0
- clearskies_gitlab/rest/__init__.py +12 -0
- clearskies_gitlab/rest/backends/__init__.py +3 -0
- clearskies_gitlab/{backends → rest/backends}/gitlab_rest_backend.py +17 -12
- clearskies_gitlab/rest/gitlab_branch_rule.py +21 -0
- clearskies_gitlab/{models → rest}/gitlab_cicd_variable.py +0 -3
- clearskies_gitlab/{models → rest}/gitlab_member.py +0 -3
- clearskies_gitlab/rest/models/__init__.py +49 -0
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_advanced_search.py +7 -7
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_advanced_search_blob.py +1 -4
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_current_user.py +7 -4
- clearskies_gitlab/{models/gitlab_group.py → rest/models/gitlab_rest_group.py} +68 -5
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_group_access_token.py +8 -6
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_group_member.py +7 -6
- clearskies_gitlab/rest/models/gitlab_rest_group_member_reference.py +8 -0
- clearskies_gitlab/rest/models/gitlab_rest_group_project.py +16 -0
- clearskies_gitlab/rest/models/gitlab_rest_group_project_reference.py +8 -0
- clearskies_gitlab/rest/models/gitlab_rest_group_reference.py +9 -0
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_group_search.py +2 -3
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_group_search_blob.py +1 -1
- clearskies_gitlab/rest/models/gitlab_rest_group_subgroup.py +52 -0
- clearskies_gitlab/rest/models/gitlab_rest_group_subgroup_reference.py +8 -0
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_group_variable.py +7 -5
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_namespace.py +28 -9
- clearskies_gitlab/{models/gitlab_project.py → rest/models/gitlab_rest_project.py} +129 -36
- clearskies_gitlab/rest/models/gitlab_rest_project_approval_config.py +34 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_approval_config_reference.py +8 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_approval_rule.py +42 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_approval_rule_reference.py +8 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_member.py +29 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_member_reference.py +8 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_protected_branch.py +35 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_protected_branch_reference.py +8 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_reference.py +9 -0
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_project_repository_commit.py +15 -5
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_project_repository_commit_diff.py +6 -4
- clearskies_gitlab/rest/models/gitlab_rest_project_repository_contributor.py +34 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_repository_contributor_reference.py +8 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_repository_file.py +39 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_repository_file_raw.py +31 -0
- clearskies_gitlab/rest/models/gitlab_rest_project_repository_file_reference.py +8 -0
- clearskies_gitlab/{models/rest → rest/models}/gitlab_rest_project_variable.py +7 -5
- clearskies_gitlab/rest/models/gitlab_rest_project_variable_reference.py +8 -0
- clear_skies_gitlab-2.0.1.dist-info/RECORD +0 -42
- clearskies_gitlab/backends/__init__.py +0 -9
- clearskies_gitlab/defaults/gitlab_default_url.py +0 -7
- clearskies_gitlab/models/__init__.py +0 -19
- clearskies_gitlab/models/gitlab_gql_model.py +0 -9
- clearskies_gitlab/models/gitlab_namespace.py +0 -32
- clearskies_gitlab/models/gitlab_rest_model.py +0 -11
- clearskies_gitlab/models/rest/__init__.py +0 -35
- clearskies_gitlab/models/rest/gitlab_rest_group.py +0 -75
- clearskies_gitlab/models/rest/gitlab_rest_group_member_reference.py +0 -6
- clearskies_gitlab/models/rest/gitlab_rest_group_project.py +0 -37
- clearskies_gitlab/models/rest/gitlab_rest_group_reference.py +0 -6
- clearskies_gitlab/models/rest/gitlab_rest_group_subgroup.py +0 -65
- clearskies_gitlab/models/rest/gitlab_rest_group_subgroup_reference.py +0 -6
- clearskies_gitlab/models/rest/gitlab_rest_project.py +0 -81
- clearskies_gitlab/models/rest/gitlab_rest_project_reference.py +0 -6
- clearskies_gitlab/models/rest/gitlab_rest_project_variable_refence.py +0 -6
- {clear_skies_gitlab-2.0.1.dist-info → clear_skies_gitlab-2.0.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections import OrderedDict
|
|
4
|
-
from typing import Any, Self
|
|
5
|
-
|
|
6
|
-
from clearskies.columns import (
|
|
7
|
-
BelongsToId,
|
|
8
|
-
BelongsToModel,
|
|
9
|
-
BelongsToSelf,
|
|
10
|
-
Boolean,
|
|
11
|
-
Datetime,
|
|
12
|
-
HasMany,
|
|
13
|
-
Integer,
|
|
14
|
-
Json,
|
|
15
|
-
Select,
|
|
16
|
-
String,
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
from clearskies_gitlab.models import gitlab_project, gitlab_rest_model
|
|
20
|
-
from clearskies_gitlab.models.rest import (
|
|
21
|
-
gitlab_rest_group_access_token,
|
|
22
|
-
gitlab_rest_group_subgroup_reference,
|
|
23
|
-
gitlab_rest_group_variable,
|
|
24
|
-
gitlab_rest_project_reference,
|
|
25
|
-
)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class GitlabRestGroupProject(
|
|
29
|
-
gitlab_rest_model.GitlabRestModel,
|
|
30
|
-
gitlab_project.GitlabProject,
|
|
31
|
-
):
|
|
32
|
-
"""Model for groups projects."""
|
|
33
|
-
|
|
34
|
-
@classmethod
|
|
35
|
-
def destination_name(cls: type[Self]) -> str:
|
|
36
|
-
"""Return the slug of the api endpoint for this model."""
|
|
37
|
-
return "groups/:group_id/projects"
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections import OrderedDict
|
|
4
|
-
from typing import Any, Self
|
|
5
|
-
|
|
6
|
-
from clearskies.columns import (
|
|
7
|
-
BelongsToId,
|
|
8
|
-
BelongsToModel,
|
|
9
|
-
BelongsToSelf,
|
|
10
|
-
Boolean,
|
|
11
|
-
Datetime,
|
|
12
|
-
HasMany,
|
|
13
|
-
Integer,
|
|
14
|
-
Json,
|
|
15
|
-
Select,
|
|
16
|
-
String,
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
from clearskies_gitlab.models import gitlab_group, gitlab_rest_model
|
|
20
|
-
from clearskies_gitlab.models.rest import (
|
|
21
|
-
gitlab_rest_group_access_token,
|
|
22
|
-
gitlab_rest_group_variable,
|
|
23
|
-
gitlab_rest_project_reference,
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class GitlabRestGroupSubgroup(gitlab_rest_model.GitlabRestModel, gitlab_group.GitlabGroup):
|
|
28
|
-
"""Model for Subgroups."""
|
|
29
|
-
|
|
30
|
-
id_column_name = "group_id"
|
|
31
|
-
|
|
32
|
-
@classmethod
|
|
33
|
-
def destination_name(cls: type[Self]) -> str:
|
|
34
|
-
"""Return the slug of the api endpoint for this model."""
|
|
35
|
-
return "groups/:group_id/subgroups"
|
|
36
|
-
|
|
37
|
-
group_id = String()
|
|
38
|
-
|
|
39
|
-
projects = HasMany(
|
|
40
|
-
gitlab_rest_project_reference.GitlabRestProjectReference,
|
|
41
|
-
foreign_column_name="group_id",
|
|
42
|
-
)
|
|
43
|
-
access_tokens = HasMany(
|
|
44
|
-
gitlab_rest_group_access_token.GitlabRestGroupAccessToken,
|
|
45
|
-
foreign_column_name="group_id",
|
|
46
|
-
)
|
|
47
|
-
variables = HasMany(
|
|
48
|
-
gitlab_rest_group_variable.GitlabRestGroupVariable,
|
|
49
|
-
foreign_column_name="group_id",
|
|
50
|
-
)
|
|
51
|
-
parent_id = BelongsToSelf()
|
|
52
|
-
parent = BelongsToModel("parent_id")
|
|
53
|
-
### Search params
|
|
54
|
-
skip_groups = Json()
|
|
55
|
-
all_available = Boolean()
|
|
56
|
-
search = String()
|
|
57
|
-
order_by = String()
|
|
58
|
-
sort = String()
|
|
59
|
-
visibility = Select(allowed_values=["public", "internal", "private"])
|
|
60
|
-
with_custom_attributes = Boolean()
|
|
61
|
-
owned = Boolean()
|
|
62
|
-
min_access_level = Integer()
|
|
63
|
-
top_level_only = Boolean()
|
|
64
|
-
repository_storage = String()
|
|
65
|
-
marked_for_deletion_on = Datetime(date_format="%Y-%m-%d")
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections import OrderedDict
|
|
4
|
-
from typing import Any, Self
|
|
5
|
-
|
|
6
|
-
from clearskies.columns import BelongsToId, BelongsToModel, Boolean, Datetime, HasMany, Integer, Json, Select, String
|
|
7
|
-
|
|
8
|
-
from clearskies_gitlab.backends.gitlab_rest_backend import GitlabRestBackend
|
|
9
|
-
from clearskies_gitlab.models import gitlab_project, gitlab_rest_model
|
|
10
|
-
from clearskies_gitlab.models.rest import (
|
|
11
|
-
gitlab_rest_group_reference,
|
|
12
|
-
gitlab_rest_namespace,
|
|
13
|
-
gitlab_rest_project_variable_refence,
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class GitlabRestProject(
|
|
18
|
-
gitlab_rest_model.GitlabRestModel,
|
|
19
|
-
gitlab_project.GitlabProject,
|
|
20
|
-
):
|
|
21
|
-
"""Model for projects."""
|
|
22
|
-
|
|
23
|
-
backend = GitlabRestBackend(
|
|
24
|
-
api_to_model_map={
|
|
25
|
-
"namespace.id": ["namespace_id", "group_id"],
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
@classmethod
|
|
30
|
-
def destination_name(cls: type[Self]) -> str:
|
|
31
|
-
"""Return the slug of the api endpoint for this model."""
|
|
32
|
-
return "projects"
|
|
33
|
-
|
|
34
|
-
group_id = BelongsToId(gitlab_rest_group_reference.GitlabRestGroupReference)
|
|
35
|
-
group = BelongsToModel("group_id")
|
|
36
|
-
|
|
37
|
-
namespace_id = BelongsToId(gitlab_rest_namespace.GitlabRestNamespace)
|
|
38
|
-
namespace = BelongsToModel("namespace_id")
|
|
39
|
-
|
|
40
|
-
variables = HasMany(
|
|
41
|
-
gitlab_rest_project_variable_refence.GitlabRestProjectVariableReference,
|
|
42
|
-
foreign_column_name="project_id",
|
|
43
|
-
)
|
|
44
|
-
### Search params
|
|
45
|
-
include_hidden = Boolean()
|
|
46
|
-
include_pending_delete = Boolean()
|
|
47
|
-
last_activity_after = Datetime()
|
|
48
|
-
last_activity_before = Datetime()
|
|
49
|
-
membership = Boolean()
|
|
50
|
-
min_access_level = Integer()
|
|
51
|
-
order_by = Select(
|
|
52
|
-
allowed_values=[
|
|
53
|
-
"id",
|
|
54
|
-
"name",
|
|
55
|
-
"path",
|
|
56
|
-
"created_at",
|
|
57
|
-
"updated_at",
|
|
58
|
-
"star_count",
|
|
59
|
-
"last_activity_at",
|
|
60
|
-
"similarity",
|
|
61
|
-
]
|
|
62
|
-
)
|
|
63
|
-
owned = Boolean()
|
|
64
|
-
repository_checksum_failed = Boolean()
|
|
65
|
-
repository_storage = String()
|
|
66
|
-
search_namespaces = Boolean()
|
|
67
|
-
search = String()
|
|
68
|
-
simple = Boolean()
|
|
69
|
-
sort = String()
|
|
70
|
-
starred = Boolean()
|
|
71
|
-
topic_id = Integer()
|
|
72
|
-
topic = String()
|
|
73
|
-
updated_after = Datetime()
|
|
74
|
-
updated_before = Datetime()
|
|
75
|
-
visibility = Select(allowed_values=["public", "internal", "private"])
|
|
76
|
-
wiki_checksum_failed = Boolean()
|
|
77
|
-
with_custom_attributes = Boolean()
|
|
78
|
-
with_issues_enabled = Boolean()
|
|
79
|
-
with_merge_requests_enabled = Boolean()
|
|
80
|
-
with_programming_language = String()
|
|
81
|
-
marked_for_deletion_on = Datetime(date_format="%Y-%m-%d")
|
|
File without changes
|