codecraftai-restclient-gitlab 1.2.0__tar.gz → 1.3.0__tar.gz
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.
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/LICENSE.md +30 -21
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/PKG-INFO +4 -3
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/pyproject.toml +5 -24
- codecraftai_restclient_gitlab-1.3.0/source/packages/ccai/gitlab/rest/aspectsrest.py +57 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/gitlabrestclient.py +6 -5
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/accessrequests.py +27 -42
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/admin.py +6 -7
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/alertmanagement.py +18 -27
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/application.py +7 -6
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/applications.py +10 -11
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/avatar.py +6 -7
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/badges.py +39 -62
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/batchedbackgroundmigrations.py +14 -19
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/branches.py +27 -42
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/broadcastmessages.py +16 -21
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/bulkimports.py +18 -23
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/clusters.py +16 -21
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/jobs.py +12 -17
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/metadata.py +7 -6
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/migrations.py +6 -7
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/pipelinecomposition.py +16 -21
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/planlimits.py +7 -6
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/generation/restclientgenerator.py +53 -14
- codecraftai_restclient_gitlab-1.3.0/source/packages/ccai/gitlab/rest/itemsresult.py +28 -0
- codecraftai_restclient_gitlab-1.3.0/source/packages/ccai/gitlab/rest/restapigroup.py +46 -0
- codecraftai_restclient_gitlab-1.3.0/source/packages/ccai/gitlab/rest/restclientbase.py +160 -0
- codecraftai_restclient_gitlab-1.2.0/source/packages/ccai/gitlab/rest/aspectsrest.py +0 -120
- codecraftai_restclient_gitlab-1.2.0/source/packages/ccai/gitlab/rest/itemsresult.py +0 -274
- codecraftai_restclient_gitlab-1.2.0/source/packages/ccai/gitlab/rest/restapigroup.py +0 -17
- codecraftai_restclient_gitlab-1.2.0/source/packages/ccai/gitlab/rest/restclientbase.py +0 -676
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/README.rst +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/py.typed +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/__init__.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/groups/__init__.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/__init__.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/accessrequests.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/admin.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/alertmanagement.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/application.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/applications.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/avatar.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/badges.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/batchedbackgroundmigrations.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/branches.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/broadcastmessages.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/bulkimports.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/clusters.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/jobs.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/metadata.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/migrations.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/pipelinecomposition.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/parameters/planlimits.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/__init__.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/accessrequests.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/admin.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/alertmanagement.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/application.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/applications.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/avatar.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/badges.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/batchedbackgroundmigrations.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/branches.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/broadcastmessages.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/bulkimports.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/clusters.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/jobs.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/metadata.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/migrations.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/pipelinecomposition.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/clients/responses/planlimits.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/descriptions/gitlab-openapi-hints.yaml +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/descriptions/gitlab-openapi-spec.yaml +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/generation/__init__.py +0 -0
- {codecraftai_restclient_gitlab-1.2.0 → codecraftai_restclient_gitlab-1.3.0}/source/packages/ccai/gitlab/rest/restclientutils.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Code Craft AI - Source Available License
|
|
2
|
-
Version 1.
|
|
2
|
+
Version 1.1, November 2026
|
|
3
3
|
|
|
4
4
|
Copyright (C) 2026, Code Craft AI LLC
|
|
5
5
|
|
|
@@ -7,12 +7,12 @@ Everyone is permitted to copy and distribute verbatim copies of *This License* d
|
|
|
7
7
|
|
|
8
8
|
*This License* covers the Python Automation Kit, the full suite of software published by *Licensor* that consists of every `codecraftai-*` package, every `pychestrate` package, and the `pychestrate` server.
|
|
9
9
|
|
|
10
|
-
*The Software* is source available. Its source code is published so that anyone can read it, learn from it, and use it, but *This License* is not an open source license. *The Software* is free to use for *Non-Commercial Use*. *Commercial Use* is permitted in exchange for a *Usage Fee* that is based on a reasonable estimation of the income derived from *The Software*, as described in section 5. When a company migrates a product or service to *The Software* from another code base, the *
|
|
10
|
+
*The Software* is source available. Its source code is published so that anyone can read it, learn from it, and use it, but *This License* is not an open source license. *The Software* is free to use for *Non-Commercial Use*. *Commercial Use* is permitted in exchange for a *Usage Fee* that is based on a reasonable estimation of the income derived from *The Software*, as described in section 5. That estimation starts from *Gross Income*, not net profit, so spending on research and development or other operating expenses does not reduce it. When a company migrates a product or service to *The Software* from another code base, the *Gross Income* from that product or service is not counted toward the *Usage Fee* for two years, as described in section 5.4. For assurance of costs, a company can disclose its usage and estimated returns to *Licensor* and negotiate a fixed license cost, as described in section 5.10.
|
|
11
11
|
|
|
12
12
|
## 1. Definitions
|
|
13
13
|
|
|
14
14
|
### 1.1 *This License* or *The License*
|
|
15
|
-
**This License** or **The License** refers to version 1.
|
|
15
|
+
**This License** or **The License** refers to version 1.1 of the Code Craft AI - Source Available License.
|
|
16
16
|
|
|
17
17
|
### 1.2 Licensor
|
|
18
18
|
**Licensor** refers to Code Craft AI LLC.
|
|
@@ -42,14 +42,14 @@ Everyone is permitted to copy and distribute verbatim copies of *This License* d
|
|
|
42
42
|
### 1.9 Fiscal Year
|
|
43
43
|
**Fiscal Year** means the annual accounting period that *You* use for financial reporting.
|
|
44
44
|
|
|
45
|
-
### 1.10
|
|
46
|
-
**
|
|
45
|
+
### 1.10 Gross Income
|
|
46
|
+
**Gross Income** means, for each product or service in connection with which *You* make *Commercial Use* of *The Software*, the gross profit that *You* earn from that product or service during a *Fiscal Year*: the revenue from that product or service, less its cost of goods sold or cost of revenue, determined under the accounting principles that *You* regularly use for financial reporting. *Gross Income* is calculated before operating expenses, such as research and development, sales and marketing, and general and administrative expenses, and before interest and taxes. *Gross Income* is measured for the products and services that *The Software* is used for, not for *Your* business as a whole.
|
|
47
47
|
|
|
48
48
|
### 1.11 Contribution Estimate
|
|
49
|
-
**Contribution Estimate** means *Your* reasonable, good faith estimate of the portion of the *
|
|
49
|
+
**Contribution Estimate** means *Your* reasonable, good faith estimate of the portion of the *Gross Income* that *The Software* contributed to, expressed as a number from 0 to 1.
|
|
50
50
|
|
|
51
51
|
### 1.12 Derived Income
|
|
52
|
-
**Derived Income** means the portion of the *
|
|
52
|
+
**Derived Income** means the portion of the *Gross Income* for a *Fiscal Year* that is derived from *The Software*, calculated as described in section 5.2.
|
|
53
53
|
|
|
54
54
|
### 1.13 Usage Fee
|
|
55
55
|
**Usage Fee** means the yearly fee for *Commercial Use* that is set by the table in section 5.3.
|
|
@@ -58,7 +58,7 @@ Everyone is permitted to copy and distribute verbatim copies of *This License* d
|
|
|
58
58
|
**Migration** means moving the work for one of *Your* products or services from a code base other than *The Software*, such as another framework, another library, or *Your* own code, to *The Software*.
|
|
59
59
|
|
|
60
60
|
### 1.15 Migration Period
|
|
61
|
-
**Migration Period** means the two (2) year period, described in section 5.4, during which the *
|
|
61
|
+
**Migration Period** means the two (2) year period, described in section 5.4, during which the *Gross Income* from a product or service that *You* are migrating to *The Software* is not counted.
|
|
62
62
|
|
|
63
63
|
## 2. License Grant
|
|
64
64
|
|
|
@@ -96,11 +96,11 @@ For each *Fiscal Year* in which *You* make *Commercial Use* of *The Software*, *
|
|
|
96
96
|
### 5.2 Derived Income
|
|
97
97
|
The *Derived Income* for a *Fiscal Year* is calculated as follows:
|
|
98
98
|
|
|
99
|
-
(Contribution Estimate) * (
|
|
99
|
+
(Contribution Estimate) * (Gross Income) = (Derived Income)
|
|
100
100
|
|
|
101
|
-
If *You* make *Commercial Use* of *The Software* for more than one product or service, calculate the *Derived Income* for each product or service using its own *Contribution Estimate* and *
|
|
101
|
+
If *You* make *Commercial Use* of *The Software* for more than one product or service, calculate the *Derived Income* for each product or service using its own *Contribution Estimate* and *Gross Income*, and add the results together. The *Gross Income* from a product or service that is in its *Migration Period* is not counted, as described in section 5.4.
|
|
102
102
|
|
|
103
|
-
If the *
|
|
103
|
+
If the *Gross Income* from a product or service for a *Fiscal Year* is zero or less, then the *Derived Income* from that product or service for that *Fiscal Year* is zero.
|
|
104
104
|
|
|
105
105
|
### 5.3 Usage Fee
|
|
106
106
|
The *Usage Fee* for a *Fiscal Year* is set by the *Derived Income* for that *Fiscal Year*, as shown in the following table.
|
|
@@ -113,56 +113,65 @@ The *Usage Fee* for a *Fiscal Year* is set by the *Derived Income* for that *Fis
|
|
|
113
113
|
| More than 100,000,000, up to and including 1,000,000,000 | 250,000 |
|
|
114
114
|
| More than 1,000,000,000 | 500,000 |
|
|
115
115
|
|
|
116
|
-
All amounts in this section 5 are in United States dollars. If *You* report *
|
|
116
|
+
All amounts in this section 5 are in United States dollars. If *You* report *Gross Income* in a different currency, convert the *Derived Income* to United States dollars using the average exchange rate for the *Fiscal Year*.
|
|
117
117
|
|
|
118
118
|
### 5.4 Migration Allowance
|
|
119
|
-
When *You* migrate a product or service to *The Software*, the *
|
|
119
|
+
When *You* migrate a product or service to *The Software*, the *Gross Income* from that product or service is not counted when calculating the *Derived Income* during its *Migration Period* (the **Migration Allowance**).
|
|
120
120
|
|
|
121
121
|
The *Migration Period* for a product or service begins on the date that *You* first make *Commercial Use* of *The Software* for that product or service as part of its *Migration*, and ends two (2) years after that date.
|
|
122
122
|
|
|
123
123
|
The *Migration Allowance* applies to each product or service separately, and *You* may use it for every product or service that *You* migrate. Each product or service has only one *Migration Period*.
|
|
124
124
|
|
|
125
|
-
If a *Fiscal Year* is only partly within the *Migration Period* of a product or service, the *
|
|
125
|
+
If a *Fiscal Year* is only partly within the *Migration Period* of a product or service, the *Gross Income* from that product or service for that *Fiscal Year* is reduced in proportion to the number of days of that *Fiscal Year* that fall within its *Migration Period*.
|
|
126
126
|
|
|
127
|
-
For example, a company tests product A with *The Software* and pays a *Usage Fee* based on the *
|
|
127
|
+
For example, a company tests product A with *The Software* and pays a *Usage Fee* based on the *Gross Income* from product A. On March 1, 2027, the company begins moving the testing of product B from a different test framework to *The Software*. The company does not count the *Gross Income* from product B in its *Derived Income* from March 1, 2027 until March 1, 2029. Starting March 1, 2029, the *Gross Income* from product B is counted. If the company later migrates product C, the *Gross Income* from product C is not counted for two years from the start of its own *Migration*.
|
|
128
128
|
|
|
129
129
|
### 5.5 Contribution Estimate
|
|
130
130
|
*You* are responsible for making the *Contribution Estimate*. A *Contribution Estimate* must be reasonable and made in good faith. The *Contribution Estimate* for a product or service covers all of the *Components* that *You* *Use* for that product or service. When making the *Contribution Estimate*, *You* should consider how important *The Software* is to the *Commercial Activity*, how much of the *Commercial Activity* depends on *The Software*, and the effort and cost that *You* would otherwise need to spend to accomplish what *The Software* accomplishes for *You*.
|
|
131
131
|
|
|
132
132
|
The following table is a guide for making the *Contribution Estimate*. When *Your* *Commercial Use* of *The Software* matches an entry in the table, the *Contribution Estimate* in that entry is a reasonable *Contribution Estimate*. When *Your* *Commercial Use* does not match an entry in the table, make the *Contribution Estimate* by comparing *Your* *Commercial Use* with the entries in the table. When more than one entry matches the same *Commercial Activity*, use the entry with the highest *Contribution Estimate*.
|
|
133
133
|
|
|
134
|
+
Many products are not software, such as devices, machines, vehicles, and other physical goods, and software accounts for only part of what such a product is worth. For a product or service that is not software, *You* may reduce the *Contribution Estimate* in proportion to the share of the value of the shipped product that its software reasonably accounts for. To do so, multiply the *Contribution Estimate* from the table by that share, expressed as a number from 0 to 1. *You* must keep records that reasonably support that share, as described in section 5.8.
|
|
135
|
+
|
|
134
136
|
| Commercial Use of *The Software* | Contribution Estimate |
|
|
135
137
|
|----------------------------------|-----------------------|
|
|
136
138
|
| Quality Assurance (QA) and Continuous Integration (CI): *The Software* is used to test or validate the products or services of the *Commercial Activity*, or to run their build and test pipelines | 0.3 |
|
|
137
139
|
| Products Completely Based on *The Software*: the products or services of the *Commercial Activity* are built completely on *The Software* | 0.5 |
|
|
138
140
|
|
|
139
141
|
### 5.6 Examples
|
|
140
|
-
A company earns 1,000,000,000 in *
|
|
142
|
+
A company earns 1,000,000,000 in *Gross Income* from a product line during a *Fiscal Year*. The company uses *The Software* for the QA and CI of that product line, so the *Contribution Estimate* is 0.3.
|
|
141
143
|
|
|
142
144
|
0.3 * 1,000,000,000 = 300,000,000
|
|
143
145
|
|
|
144
146
|
The *Derived Income* of 300,000,000 is more than 100,000,000 and not more than 1,000,000,000, so the *Usage Fee* for that *Fiscal Year* is 250,000.
|
|
145
147
|
|
|
146
|
-
A company earns 4,000,000 in *
|
|
148
|
+
A company earns 4,000,000 in *Gross Income* from a product during a *Fiscal Year*. The product is built completely on *The Software*, so the *Contribution Estimate* is 0.5.
|
|
147
149
|
|
|
148
150
|
0.5 * 4,000,000 = 2,000,000
|
|
149
151
|
|
|
150
152
|
The *Derived Income* of 2,000,000 is more than 1,000,000 and not more than 10,000,000, so the *Usage Fee* for that *Fiscal Year* is 50,000.
|
|
151
153
|
|
|
152
|
-
A company earns 3,000,000 in *
|
|
154
|
+
A company earns 3,000,000 in *Gross Income* from a product line during a *Fiscal Year*. The company uses *The Software* for the QA and CI of that product line, so the *Contribution Estimate* is 0.3.
|
|
153
155
|
|
|
154
156
|
0.3 * 3,000,000 = 900,000
|
|
155
157
|
|
|
156
158
|
The *Derived Income* of 900,000 is 1,000,000 or less, so there is no *Usage Fee* for that *Fiscal Year*.
|
|
157
159
|
|
|
160
|
+
A company earns 50,000,000 in *Gross Income* from a line of medical devices during a *Fiscal Year*. The company uses *The Software* for the QA and CI of the devices, so the *Contribution Estimate* from the table is 0.3. The devices are not software, and the company reasonably estimates that their software accounts for one fifth (0.2) of the value of each shipped device, so the company reduces the *Contribution Estimate* to 0.06.
|
|
161
|
+
|
|
162
|
+
0.3 * 0.2 = 0.06
|
|
163
|
+
0.06 * 50,000,000 = 3,000,000
|
|
164
|
+
|
|
165
|
+
The *Derived Income* of 3,000,000 is more than 1,000,000 and not more than 10,000,000, so the *Usage Fee* for that *Fiscal Year* is 50,000. Without the reduction, the *Derived Income* would be 15,000,000 and the *Usage Fee* would be 100,000.
|
|
166
|
+
|
|
158
167
|
### 5.7 Reporting and Payment
|
|
159
|
-
Within one hundred twenty (120) days after the end of each *Fiscal Year* for which a *Usage Fee* is owed, *You* must pay the *Usage Fee* to *Licensor* and provide *Licensor* with a written statement that shows the *
|
|
168
|
+
Within one hundred twenty (120) days after the end of each *Fiscal Year* for which a *Usage Fee* is owed, *You* must pay the *Usage Fee* to *Licensor* and provide *Licensor* with a written statement that shows the *Gross Income*, the *Contribution Estimate*, the reasoning used to make the *Contribution Estimate*, the *Derived Income*, and the *Usage Fee*. *Usage Fees* are payable in United States dollars. If any *Gross Income* is not counted under section 5.4, the statement must also identify each product or service that is in a *Migration Period* and show the dates of its *Migration Period*. No statement is required for a *Fiscal Year* in which no *Usage Fee* is owed.
|
|
160
169
|
|
|
161
170
|
### 5.8 Records and Review
|
|
162
|
-
*You* must keep records that reasonably support each *Contribution Estimate*, each *
|
|
171
|
+
*You* must keep records that reasonably support each *Contribution Estimate*, including any share used to reduce it under section 5.5, each *Gross Income* figure, and the dates of any *Migration Period* for at least three (3) years after the end of the *Fiscal Year* that they apply to. No more than once in any twelve (12) month period, *Licensor* may ask in writing for the records that support a statement, and *You* must provide them within sixty (60) days of the request. *Licensor* will treat those records as confidential.
|
|
163
172
|
|
|
164
173
|
### 5.9 Disputes About the Usage Fee
|
|
165
|
-
If *Licensor* believes that a *Contribution Estimate*, a *
|
|
174
|
+
If *Licensor* believes that a *Contribution Estimate*, a *Gross Income* figure, or the dates of a *Migration Period* are not reasonable, *Licensor* will notify *You* in writing and explain why. *You* and *Licensor* will then negotiate in good faith for at least sixty (60) days to agree on a reasonable *Usage Fee*. If *You* and *Licensor* cannot agree, either party may resolve the dispute as described in section 8.
|
|
166
175
|
|
|
167
176
|
### 5.10 Fixed License Cost
|
|
168
177
|
For assurance of costs, *You* may disclose to *Licensor* how *You* *Use* *The Software* and the returns that *You* estimate *You* will derive from it, and negotiate a fixed license cost with *Licensor*. A fixed license cost, and any other terms that *You* and *Licensor* agree to, must be set out in a writing signed by both *You* and *Licensor* (a **Fixed License Agreement**).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codecraftai-restclient-gitlab
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Code Craft AI - GitLab REST Client
|
|
5
5
|
License-Expression: LicenseRef-CodeCraftAI-Source-Available
|
|
6
6
|
License-File: LICENSE.md
|
|
@@ -10,8 +10,9 @@ Author-email: myron.walker@gmail.com
|
|
|
10
10
|
Requires-Python: >=3.10,<4.0
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Operating System :: POSIX
|
|
13
|
-
Requires-Dist: codecraftai-credentials (
|
|
14
|
-
Requires-Dist: codecraftai-foundations (
|
|
13
|
+
Requires-Dist: codecraftai-credentials (>=1.0.0,<2.0.0)
|
|
14
|
+
Requires-Dist: codecraftai-foundations (>=1.0.0,<2.0.0)
|
|
15
|
+
Requires-Dist: codecraftai-restclient-base (>=1.3.0,<2.0.0)
|
|
15
16
|
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
|
|
16
17
|
Requires-Dist: requests (>=2.32.5,<3.0.0)
|
|
17
18
|
Project-URL: Issues, https://github.com/code-craft-ai-company/codecraftai-restclient-gitlab/issues
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codecraftai-restclient-gitlab"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.3.0"
|
|
4
4
|
description = "Code Craft AI - GitLab REST Client"
|
|
5
5
|
readme = "README.rst"
|
|
6
6
|
license = "LicenseRef-CodeCraftAI-Source-Available"
|
|
@@ -16,8 +16,9 @@ requires-python = ">=3.10,<4.0"
|
|
|
16
16
|
dependencies = [
|
|
17
17
|
"pyyaml>=6.0.1,<7.0.0",
|
|
18
18
|
"requests>=2.32.5,<3.0.0",
|
|
19
|
-
"codecraftai-foundations
|
|
20
|
-
"codecraftai-credentials
|
|
19
|
+
"codecraftai-foundations>=1.0.0,<2.0.0",
|
|
20
|
+
"codecraftai-credentials>=1.0.0,<2.0.0",
|
|
21
|
+
"codecraftai-restclient-base>=1.3.0,<2.0.0",
|
|
21
22
|
]
|
|
22
23
|
|
|
23
24
|
[project.urls]
|
|
@@ -26,32 +27,12 @@ Issues = "https://github.com/code-craft-ai-company/codecraftai-restclient-gitlab
|
|
|
26
27
|
|
|
27
28
|
[dependency-groups]
|
|
28
29
|
dev = [
|
|
29
|
-
"codecraftai-testbase
|
|
30
|
+
"codecraftai-testbase>=1.0.0,<2.0.0",
|
|
30
31
|
]
|
|
31
32
|
|
|
32
33
|
[tool.poetry]
|
|
33
34
|
packages = [{include="ccai", from="source/packages"}]
|
|
34
35
|
|
|
35
|
-
[tool.poetry.dependencies]
|
|
36
|
-
codecraftai-foundations = {source = "codecraftai"}
|
|
37
|
-
codecraftai-credentials = {source = "codecraftai"}
|
|
38
|
-
|
|
39
|
-
[tool.poetry.group.dev.dependencies]
|
|
40
|
-
codecraftai-testbase = {source = "codecraftai"}
|
|
41
|
-
|
|
42
|
-
[[tool.poetry.source]]
|
|
43
|
-
name = "codecraftai"
|
|
44
|
-
url = "https://code-craft.ai/licensed-repository/simple/"
|
|
45
|
-
priority = "supplemental"
|
|
46
|
-
|
|
47
|
-
[[tool.uv.index]]
|
|
48
|
-
# Same licensed index as [[tool.poetry.source]]. Listed before PyPI so that
|
|
49
|
-
# codecraftai-* packages (direct and transitive) resolve from it; everything
|
|
50
|
-
# else falls through to PyPI. Credentials: UV_INDEX_CODECRAFTAI_USERNAME /
|
|
51
|
-
# UV_INDEX_CODECRAFTAI_PASSWORD, or `uv auth login`.
|
|
52
|
-
name = "codecraftai"
|
|
53
|
-
url = "https://code-craft.ai/licensed-repository/simple/"
|
|
54
|
-
|
|
55
36
|
[tool.ruff.lint]
|
|
56
37
|
# Deliberately narrow. This gate exists for one reason: a bare `except:`
|
|
57
38
|
# swallows ConfigurationError and SemanticError, which derive from
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""
|
|
2
|
+
.. module:: aspectsrest
|
|
3
|
+
:platform: Darwin, Linux, Unix, Windows
|
|
4
|
+
:synopsis: Compatibility re-export of :mod:`ccai.restclient.base.aspectsrest`.
|
|
5
|
+
|
|
6
|
+
.. moduleauthor:: Myron Walker <myron.walker@gmail.com>
|
|
7
|
+
|
|
8
|
+
.. deprecated:: 1.3.0
|
|
9
|
+
The GitLab client no longer carries its own copy of the REST aspects; it uses the shared
|
|
10
|
+
``codecraftai-restclient-base`` package. Import from :mod:`ccai.restclient.base.aspectsrest`
|
|
11
|
+
instead. This module only re-exports the shared names and will be removed in a later major
|
|
12
|
+
release.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
__author__ = "Myron Walker"
|
|
17
|
+
__copyright__ = "Copyright 2025, Code Craft AI LLC"
|
|
18
|
+
__credits__ = []
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from ccai.restclient.base.aspectsrest import (
|
|
22
|
+
ActionPattern,
|
|
23
|
+
AspectsRest,
|
|
24
|
+
LoggingPattern,
|
|
25
|
+
DEFAULT_ALLOWED_CONNECTION_EXCEPTIONS,
|
|
26
|
+
DEFAULT_ALLOWED_ERROR_CODES,
|
|
27
|
+
DEFAULT_COMPLETION_INTERVAL,
|
|
28
|
+
DEFAULT_COMPLETION_TIMEOUT,
|
|
29
|
+
DEFAULT_CONNECTION_INTERVAL,
|
|
30
|
+
DEFAULT_CONNECTION_TIMEOUT,
|
|
31
|
+
DEFAULT_INACTIVITY_INTERVAL,
|
|
32
|
+
DEFAULT_INACTIVITY_TIMEOUT,
|
|
33
|
+
DEFAULT_LOGGING_PATTERN,
|
|
34
|
+
DEFAULT_MONITOR_DELAY,
|
|
35
|
+
DEFAULT_MUST_CONNECT,
|
|
36
|
+
DEFAULT_REST_ASPECTS,
|
|
37
|
+
DEFAULT_RETRY_LOGGING_INTERVAL,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
__all__ = [
|
|
41
|
+
"ActionPattern",
|
|
42
|
+
"AspectsRest",
|
|
43
|
+
"LoggingPattern",
|
|
44
|
+
"DEFAULT_ALLOWED_CONNECTION_EXCEPTIONS",
|
|
45
|
+
"DEFAULT_ALLOWED_ERROR_CODES",
|
|
46
|
+
"DEFAULT_COMPLETION_INTERVAL",
|
|
47
|
+
"DEFAULT_COMPLETION_TIMEOUT",
|
|
48
|
+
"DEFAULT_CONNECTION_INTERVAL",
|
|
49
|
+
"DEFAULT_CONNECTION_TIMEOUT",
|
|
50
|
+
"DEFAULT_INACTIVITY_INTERVAL",
|
|
51
|
+
"DEFAULT_INACTIVITY_TIMEOUT",
|
|
52
|
+
"DEFAULT_LOGGING_PATTERN",
|
|
53
|
+
"DEFAULT_MONITOR_DELAY",
|
|
54
|
+
"DEFAULT_MUST_CONNECT",
|
|
55
|
+
"DEFAULT_REST_ASPECTS",
|
|
56
|
+
"DEFAULT_RETRY_LOGGING_INTERVAL",
|
|
57
|
+
]
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# Auto-generated by RestClientGenerator. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
from typing import Optional
|
|
3
|
+
from typing import Dict, Optional, Union
|
|
4
4
|
|
|
5
|
-
from ccai.gitlab.rest.aspectsrest import AspectsRest, DEFAULT_REST_ASPECTS
|
|
6
|
-
from ccai.gitlab.rest.restclientbase import RestClientBase
|
|
7
5
|
from ccai.credentials.basecredential import BaseCredential
|
|
6
|
+
from ccai.restclient.base.aspectsrest import AspectsRest, DEFAULT_REST_ASPECTS
|
|
7
|
+
|
|
8
|
+
from ccai.gitlab.rest.restclientbase import RestClientBase
|
|
8
9
|
from ccai.gitlab.rest.clients.groups.accessrequests import AccessRequestsApiGroup
|
|
9
10
|
from ccai.gitlab.rest.clients.groups.admin import AdminApiGroup
|
|
10
11
|
from ccai.gitlab.rest.clients.groups.alertmanagement import AlertManagementApiGroup
|
|
@@ -28,8 +29,8 @@ class GitLabRestClient(RestClientBase):
|
|
|
28
29
|
"""
|
|
29
30
|
GitLab REST API client generated from the OpenAPI specification.
|
|
30
31
|
"""
|
|
31
|
-
def __init__(self, host: str, credential: BaseCredential, port: Optional[int] = None, scheme: Optional[str] = "https", aspects: AspectsRest = DEFAULT_REST_ASPECTS):
|
|
32
|
-
super().__init__(host, credential, port, scheme=scheme, aspects=aspects)
|
|
32
|
+
def __init__(self, host: str, credential: BaseCredential, port: Optional[int] = None, scheme: Optional[str] = "https", aspects: AspectsRest = DEFAULT_REST_ASPECTS, *, headers: Optional[Dict[str, str]] = None, verify_certificate: Optional[Union[bool, str]] = None):
|
|
33
|
+
super().__init__(host, credential, port, scheme=scheme, aspects=aspects, headers=headers, verify_certificate=verify_certificate)
|
|
33
34
|
self._grp_access_requests = AccessRequestsApiGroup(self)
|
|
34
35
|
self._grp_admin = AdminApiGroup(self)
|
|
35
36
|
self._grp_alert_management = AlertManagementApiGroup(self)
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
|
-
from ccai.
|
|
6
|
-
|
|
5
|
+
from ccai.restclient.base.aspectsrest import AspectsRest, DEFAULT_REST_ASPECTS
|
|
6
|
+
|
|
7
|
+
from ccai.gitlab.rest.restapigroup import RestApiGroup, SUCCESS_STATUS_CODES
|
|
7
8
|
from ccai.gitlab.rest.clients.parameters import accessrequests as parameters
|
|
8
9
|
from ccai.gitlab.rest.clients.responses import accessrequests as responses
|
|
9
10
|
|
|
@@ -13,20 +14,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
13
14
|
Operations related to access requests
|
|
14
15
|
"""
|
|
15
16
|
|
|
16
|
-
def deleteapiv4groupsidaccessrequestsuserid(self, params:
|
|
17
|
+
def deleteapiv4groupsidaccessrequestsuserid(self, params: parameters.AccessRequestsDeleteapiv4groupsidaccessrequestsuseridParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsDeleteapiv4groupsidaccessrequestsuseridResponse:
|
|
17
18
|
"""
|
|
18
19
|
Denies an access request for the given user.
|
|
19
20
|
"""
|
|
20
|
-
|
|
21
|
-
params = parameters.AccessRequestsDeleteapiv4groupsidaccessrequestsuseridParams()
|
|
22
|
-
call_leaf = "/groups/{id}/access_requests/{user_id}"
|
|
21
|
+
call_leaf = "/api/v4/groups/{id}/access_requests/{user_id}"
|
|
23
22
|
path_params = params.path_params()
|
|
24
23
|
if path_params:
|
|
25
24
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
26
25
|
query_params = params.query_params()
|
|
27
26
|
header_params = params.header_params()
|
|
28
27
|
body_params = params.body_params()
|
|
29
|
-
exp_status = [204]
|
|
28
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [204]
|
|
30
29
|
resp = self.client.perform_call(
|
|
31
30
|
leaf=call_leaf,
|
|
32
31
|
method="DELETE",
|
|
@@ -40,20 +39,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
40
39
|
result = responses.AccessRequestsDeleteapiv4groupsidaccessrequestsuseridResponse(resp)
|
|
41
40
|
return result
|
|
42
41
|
|
|
43
|
-
def deleteapiv4projectsidaccessrequestsuserid(self, params:
|
|
42
|
+
def deleteapiv4projectsidaccessrequestsuserid(self, params: parameters.AccessRequestsDeleteapiv4projectsidaccessrequestsuseridParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsDeleteapiv4projectsidaccessrequestsuseridResponse:
|
|
44
43
|
"""
|
|
45
44
|
Denies an access request for the given user.
|
|
46
45
|
"""
|
|
47
|
-
|
|
48
|
-
params = parameters.AccessRequestsDeleteapiv4projectsidaccessrequestsuseridParams()
|
|
49
|
-
call_leaf = "/projects/{id}/access_requests/{user_id}"
|
|
46
|
+
call_leaf = "/api/v4/projects/{id}/access_requests/{user_id}"
|
|
50
47
|
path_params = params.path_params()
|
|
51
48
|
if path_params:
|
|
52
49
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
53
50
|
query_params = params.query_params()
|
|
54
51
|
header_params = params.header_params()
|
|
55
52
|
body_params = params.body_params()
|
|
56
|
-
exp_status = [204]
|
|
53
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [204]
|
|
57
54
|
resp = self.client.perform_call(
|
|
58
55
|
leaf=call_leaf,
|
|
59
56
|
method="DELETE",
|
|
@@ -67,20 +64,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
67
64
|
result = responses.AccessRequestsDeleteapiv4projectsidaccessrequestsuseridResponse(resp)
|
|
68
65
|
return result
|
|
69
66
|
|
|
70
|
-
def getapiv4groupsidaccessrequests(self, params:
|
|
67
|
+
def getapiv4groupsidaccessrequests(self, params: parameters.AccessRequestsGetapiv4groupsidaccessrequestsParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsGetapiv4groupsidaccessrequestsResponse:
|
|
71
68
|
"""
|
|
72
69
|
Gets a list of access requests for a group.
|
|
73
70
|
"""
|
|
74
|
-
|
|
75
|
-
params = parameters.AccessRequestsGetapiv4groupsidaccessrequestsParams()
|
|
76
|
-
call_leaf = "/groups/{id}/access_requests"
|
|
71
|
+
call_leaf = "/api/v4/groups/{id}/access_requests"
|
|
77
72
|
path_params = params.path_params()
|
|
78
73
|
if path_params:
|
|
79
74
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
80
75
|
query_params = params.query_params()
|
|
81
76
|
header_params = params.header_params()
|
|
82
77
|
body_params = params.body_params()
|
|
83
|
-
exp_status = [200]
|
|
78
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [200]
|
|
84
79
|
resp = self.client.perform_call(
|
|
85
80
|
leaf=call_leaf,
|
|
86
81
|
method="GET",
|
|
@@ -94,20 +89,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
94
89
|
result = responses.AccessRequestsGetapiv4groupsidaccessrequestsResponse(resp)
|
|
95
90
|
return result
|
|
96
91
|
|
|
97
|
-
def getapiv4projectsidaccessrequests(self, params:
|
|
92
|
+
def getapiv4projectsidaccessrequests(self, params: parameters.AccessRequestsGetapiv4projectsidaccessrequestsParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsGetapiv4projectsidaccessrequestsResponse:
|
|
98
93
|
"""
|
|
99
94
|
Gets a list of access requests for a project.
|
|
100
95
|
"""
|
|
101
|
-
|
|
102
|
-
params = parameters.AccessRequestsGetapiv4projectsidaccessrequestsParams()
|
|
103
|
-
call_leaf = "/projects/{id}/access_requests"
|
|
96
|
+
call_leaf = "/api/v4/projects/{id}/access_requests"
|
|
104
97
|
path_params = params.path_params()
|
|
105
98
|
if path_params:
|
|
106
99
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
107
100
|
query_params = params.query_params()
|
|
108
101
|
header_params = params.header_params()
|
|
109
102
|
body_params = params.body_params()
|
|
110
|
-
exp_status = [200]
|
|
103
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [200]
|
|
111
104
|
resp = self.client.perform_call(
|
|
112
105
|
leaf=call_leaf,
|
|
113
106
|
method="GET",
|
|
@@ -121,20 +114,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
121
114
|
result = responses.AccessRequestsGetapiv4projectsidaccessrequestsResponse(resp)
|
|
122
115
|
return result
|
|
123
116
|
|
|
124
|
-
def postapiv4groupsidaccessrequests(self, params:
|
|
117
|
+
def postapiv4groupsidaccessrequests(self, params: parameters.AccessRequestsPostapiv4groupsidaccessrequestsParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsPostapiv4groupsidaccessrequestsResponse:
|
|
125
118
|
"""
|
|
126
119
|
Requests access for the authenticated user to a group.
|
|
127
120
|
"""
|
|
128
|
-
|
|
129
|
-
params = parameters.AccessRequestsPostapiv4groupsidaccessrequestsParams()
|
|
130
|
-
call_leaf = "/groups/{id}/access_requests"
|
|
121
|
+
call_leaf = "/api/v4/groups/{id}/access_requests"
|
|
131
122
|
path_params = params.path_params()
|
|
132
123
|
if path_params:
|
|
133
124
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
134
125
|
query_params = params.query_params()
|
|
135
126
|
header_params = params.header_params()
|
|
136
127
|
body_params = params.body_params()
|
|
137
|
-
exp_status = [200]
|
|
128
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [200]
|
|
138
129
|
resp = self.client.perform_call(
|
|
139
130
|
leaf=call_leaf,
|
|
140
131
|
method="POST",
|
|
@@ -148,20 +139,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
148
139
|
result = responses.AccessRequestsPostapiv4groupsidaccessrequestsResponse(resp)
|
|
149
140
|
return result
|
|
150
141
|
|
|
151
|
-
def postapiv4projectsidaccessrequests(self, params:
|
|
142
|
+
def postapiv4projectsidaccessrequests(self, params: parameters.AccessRequestsPostapiv4projectsidaccessrequestsParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsPostapiv4projectsidaccessrequestsResponse:
|
|
152
143
|
"""
|
|
153
144
|
Requests access for the authenticated user to a project.
|
|
154
145
|
"""
|
|
155
|
-
|
|
156
|
-
params = parameters.AccessRequestsPostapiv4projectsidaccessrequestsParams()
|
|
157
|
-
call_leaf = "/projects/{id}/access_requests"
|
|
146
|
+
call_leaf = "/api/v4/projects/{id}/access_requests"
|
|
158
147
|
path_params = params.path_params()
|
|
159
148
|
if path_params:
|
|
160
149
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
161
150
|
query_params = params.query_params()
|
|
162
151
|
header_params = params.header_params()
|
|
163
152
|
body_params = params.body_params()
|
|
164
|
-
exp_status = [200]
|
|
153
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [200]
|
|
165
154
|
resp = self.client.perform_call(
|
|
166
155
|
leaf=call_leaf,
|
|
167
156
|
method="POST",
|
|
@@ -175,20 +164,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
175
164
|
result = responses.AccessRequestsPostapiv4projectsidaccessrequestsResponse(resp)
|
|
176
165
|
return result
|
|
177
166
|
|
|
178
|
-
def putapiv4groupsidaccessrequestsuseridapprove(self, params:
|
|
167
|
+
def putapiv4groupsidaccessrequestsuseridapprove(self, params: parameters.AccessRequestsPutapiv4groupsidaccessrequestsuseridapproveParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsPutapiv4groupsidaccessrequestsuseridapproveResponse:
|
|
179
168
|
"""
|
|
180
169
|
Approves an access request for the given user.
|
|
181
170
|
"""
|
|
182
|
-
|
|
183
|
-
params = parameters.AccessRequestsPutapiv4groupsidaccessrequestsuseridapproveParams()
|
|
184
|
-
call_leaf = "/groups/{id}/access_requests/{user_id}/approve"
|
|
171
|
+
call_leaf = "/api/v4/groups/{id}/access_requests/{user_id}/approve"
|
|
185
172
|
path_params = params.path_params()
|
|
186
173
|
if path_params:
|
|
187
174
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
188
175
|
query_params = params.query_params()
|
|
189
176
|
header_params = params.header_params()
|
|
190
177
|
body_params = params.body_params()
|
|
191
|
-
exp_status = [200]
|
|
178
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [200]
|
|
192
179
|
resp = self.client.perform_call(
|
|
193
180
|
leaf=call_leaf,
|
|
194
181
|
method="PUT",
|
|
@@ -202,20 +189,18 @@ class AccessRequestsApiGroup(RestApiGroup):
|
|
|
202
189
|
result = responses.AccessRequestsPutapiv4groupsidaccessrequestsuseridapproveResponse(resp)
|
|
203
190
|
return result
|
|
204
191
|
|
|
205
|
-
def putapiv4projectsidaccessrequestsuseridapprove(self, params:
|
|
192
|
+
def putapiv4projectsidaccessrequestsuseridapprove(self, params: parameters.AccessRequestsPutapiv4projectsidaccessrequestsuseridapproveParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AccessRequestsPutapiv4projectsidaccessrequestsuseridapproveResponse:
|
|
206
193
|
"""
|
|
207
194
|
Approves an access request for the given user.
|
|
208
195
|
"""
|
|
209
|
-
|
|
210
|
-
params = parameters.AccessRequestsPutapiv4projectsidaccessrequestsuseridapproveParams()
|
|
211
|
-
call_leaf = "/projects/{id}/access_requests/{user_id}/approve"
|
|
196
|
+
call_leaf = "/api/v4/projects/{id}/access_requests/{user_id}/approve"
|
|
212
197
|
path_params = params.path_params()
|
|
213
198
|
if path_params:
|
|
214
199
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
215
200
|
query_params = params.query_params()
|
|
216
201
|
header_params = params.header_params()
|
|
217
202
|
body_params = params.body_params()
|
|
218
|
-
exp_status = [200]
|
|
203
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [200]
|
|
219
204
|
resp = self.client.perform_call(
|
|
220
205
|
leaf=call_leaf,
|
|
221
206
|
method="PUT",
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Optional
|
|
4
4
|
|
|
5
|
-
from ccai.
|
|
6
|
-
|
|
5
|
+
from ccai.restclient.base.aspectsrest import AspectsRest, DEFAULT_REST_ASPECTS
|
|
6
|
+
|
|
7
|
+
from ccai.gitlab.rest.restapigroup import RestApiGroup, SUCCESS_STATUS_CODES
|
|
7
8
|
from ccai.gitlab.rest.clients.parameters import admin as parameters
|
|
8
9
|
from ccai.gitlab.rest.clients.responses import admin as responses
|
|
9
10
|
|
|
@@ -13,20 +14,18 @@ class AdminApiGroup(RestApiGroup):
|
|
|
13
14
|
Operations about admins
|
|
14
15
|
"""
|
|
15
16
|
|
|
16
|
-
def getapiv4admindatabasesdatabasenamedictionarytablestablename(self, params:
|
|
17
|
+
def getapiv4admindatabasesdatabasenamedictionarytablestablename(self, params: parameters.AdminGetapiv4admindatabasesdatabasenamedictionarytablestablenameParams, *, aspects: Optional[AspectsRest] = DEFAULT_REST_ASPECTS) -> responses.AdminGetapiv4admindatabasesdatabasenamedictionarytablestablenameResponse:
|
|
17
18
|
"""
|
|
18
19
|
Retrieve dictionary details
|
|
19
20
|
"""
|
|
20
|
-
|
|
21
|
-
params = parameters.AdminGetapiv4admindatabasesdatabasenamedictionarytablestablenameParams()
|
|
22
|
-
call_leaf = "/admin/databases/{database_name}/dictionary/tables/{table_name}"
|
|
21
|
+
call_leaf = "/api/v4/admin/databases/{database_name}/dictionary/tables/{table_name}"
|
|
23
22
|
path_params = params.path_params()
|
|
24
23
|
if path_params:
|
|
25
24
|
call_leaf = self.client.format_path(call_leaf, path_params)
|
|
26
25
|
query_params = params.query_params()
|
|
27
26
|
header_params = params.header_params()
|
|
28
27
|
body_params = params.body_params()
|
|
29
|
-
exp_status = [200]
|
|
28
|
+
exp_status = SUCCESS_STATUS_CODES # the specification lists [200]
|
|
30
29
|
resp = self.client.perform_call(
|
|
31
30
|
leaf=call_leaf,
|
|
32
31
|
method="GET",
|