Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 1.12.0 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.8
2.4.13
88 changes: 79 additions & 9 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/APIError.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **str** | | [optional]
**url** | **str** | | [optional]
**message** | **str** | | [optional]
**url** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/AccessToken.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | |
**name** | **str** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/AddCollaboratorOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**permission** | **str** | | [optional]
**permission** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 3 additions & 1 deletion docs/AddTimeOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**time** | **int** | time in seconds |
**created** | **datetime** | | [optional]
**time** | **int** | time in seconds |
**user_name** | **str** | User who spent the time (optional) | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
18 changes: 12 additions & 6 deletions docs/AdminApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**admin_create_org**](AdminApi.md#admin_create_org) | **POST** /admin/users/{username}/orgs | Create an organization
[**admin_create_public_key**](AdminApi.md#admin_create_public_key) | **POST** /admin/users/{username}/keys | Add a public key on behalf of a user
[**admin_create_repo**](AdminApi.md#admin_create_repo) | **POST** /admin/users/{username}/repos | Create a repository on behalf a user
[**admin_create_repo**](AdminApi.md#admin_create_repo) | **POST** /admin/users/{username}/repos | Create a repository on behalf of a user
[**admin_create_user**](AdminApi.md#admin_create_user) | **POST** /admin/users | Create a user
[**admin_delete_user**](AdminApi.md#admin_delete_user) | **DELETE** /admin/users/{username} | Delete a user
[**admin_delete_user_public_key**](AdminApi.md#admin_delete_user_public_key) | **DELETE** /admin/users/{username}/keys/{id} | Delete a user's public key
Expand Down Expand Up @@ -174,7 +174,7 @@ Name | Type | Description | Notes
# **admin_create_repo**
> Repository admin_create_repo(username, repository)

Create a repository on behalf a user
Create a repository on behalf of a user

### Example
```python
Expand Down Expand Up @@ -220,7 +220,7 @@ username = 'username_example' # str | username of the user. This user will own t
repository = giteapy.CreateRepoOption() # CreateRepoOption |

try:
# Create a repository on behalf a user
# Create a repository on behalf of a user
api_response = api_instance.admin_create_repo(username, repository)
pprint(api_response)
except ApiException as e:
Expand Down Expand Up @@ -634,7 +634,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **admin_get_all_users**
> list[User] admin_get_all_users()
> list[User] admin_get_all_users(page=page, limit=limit)

List all users

Expand Down Expand Up @@ -678,17 +678,23 @@ configuration.api_key['token'] = 'YOUR_API_KEY'

# create an instance of the API class
api_instance = giteapy.AdminApi(giteapy.ApiClient(configuration))
page = 56 # int | page number of results to return (1-based) (optional)
limit = 56 # int | page size of results, maximum page size is 50 (optional)

try:
# List all users
api_response = api_instance.admin_get_all_users()
api_response = api_instance.admin_get_all_users(page=page, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling AdminApi->admin_get_all_users: %s\n" % e)
```

### Parameters
This endpoint does not need any parameter.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page** | **int**| page number of results to return (1-based) | [optional]
**limit** | **int**| page size of results, maximum page size is 50 | [optional]

### Return type

Expand Down
14 changes: 7 additions & 7 deletions docs/AnnotatedTag.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **str** | | [optional]
**object** | [**AnnotatedTagObject**](AnnotatedTagObject.md) | | [optional]
**sha** | **str** | | [optional]
**tag** | **str** | | [optional]
**tagger** | [**CommitUser**](CommitUser.md) | | [optional]
**url** | **str** | | [optional]
**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]
**message** | **str** | | [optional]
**object** | [**AnnotatedTagObject**](AnnotatedTagObject.md) | | [optional]
**sha** | **str** | | [optional]
**tag** | **str** | | [optional]
**tagger** | [**CommitUser**](CommitUser.md) | | [optional]
**url** | **str** | | [optional]
**verification** | [**PayloadCommitVerification**](PayloadCommitVerification.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/AnnotatedTagObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sha** | **str** | | [optional]
**type** | **str** | | [optional]
**url** | **str** | | [optional]
**sha** | **str** | | [optional]
**type** | **str** | | [optional]
**url** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
14 changes: 7 additions & 7 deletions docs/Attachment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**browser_download_url** | **str** | | [optional]
**created_at** | **datetime** | | [optional]
**download_count** | **int** | | [optional]
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**size** | **int** | | [optional]
**uuid** | **str** | | [optional]
**browser_download_url** | **str** | | [optional]
**created_at** | **datetime** | | [optional]
**download_count** | **int** | | [optional]
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**size** | **int** | | [optional]
**uuid** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
11 changes: 9 additions & 2 deletions docs/Branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**commit** | [**PayloadCommit**](PayloadCommit.md) | | [optional]
**name** | **str** | | [optional]
**commit** | [**PayloadCommit**](PayloadCommit.md) | | [optional]
**effective_branch_protection_name** | **str** | | [optional]
**enable_status_check** | **bool** | | [optional]
**name** | **str** | | [optional]
**protected** | **bool** | | [optional]
**required_approvals** | **int** | | [optional]
**status_check_contexts** | **list[str]** | | [optional]
**user_can_merge** | **bool** | | [optional]
**user_can_push** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
31 changes: 31 additions & 0 deletions docs/BranchProtection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# BranchProtection

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**approvals_whitelist_teams** | **list[str]** | | [optional]
**approvals_whitelist_username** | **list[str]** | | [optional]
**block_on_outdated_branch** | **bool** | | [optional]
**block_on_rejected_reviews** | **bool** | | [optional]
**branch_name** | **str** | | [optional]
**created_at** | **datetime** | | [optional]
**dismiss_stale_approvals** | **bool** | | [optional]
**enable_approvals_whitelist** | **bool** | | [optional]
**enable_merge_whitelist** | **bool** | | [optional]
**enable_push** | **bool** | | [optional]
**enable_push_whitelist** | **bool** | | [optional]
**enable_status_check** | **bool** | | [optional]
**merge_whitelist_teams** | **list[str]** | | [optional]
**merge_whitelist_usernames** | **list[str]** | | [optional]
**protected_file_patterns** | **str** | | [optional]
**push_whitelist_deploy_keys** | **bool** | | [optional]
**push_whitelist_teams** | **list[str]** | | [optional]
**push_whitelist_usernames** | **list[str]** | | [optional]
**require_signed_commits** | **bool** | | [optional]
**required_approvals** | **int** | | [optional]
**status_check_contexts** | **list[str]** | | [optional]
**updated_at** | **datetime** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


20 changes: 10 additions & 10 deletions docs/Comment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**body** | **str** | | [optional]
**created_at** | **datetime** | | [optional]
**html_url** | **str** | | [optional]
**id** | **int** | | [optional]
**issue_url** | **str** | | [optional]
**original_author** | **str** | | [optional]
**original_author_id** | **int** | | [optional]
**pull_request_url** | **str** | | [optional]
**updated_at** | **datetime** | | [optional]
**user** | [**User**](User.md) | | [optional]
**body** | **str** | | [optional]
**created_at** | **datetime** | | [optional]
**html_url** | **str** | | [optional]
**id** | **int** | | [optional]
**issue_url** | **str** | | [optional]
**original_author** | **str** | | [optional]
**original_author_id** | **int** | | [optional]
**pull_request_url** | **str** | | [optional]
**updated_at** | **datetime** | | [optional]
**user** | [**User**](User.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
14 changes: 7 additions & 7 deletions docs/Commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**User**](User.md) | | [optional]
**commit** | [**RepoCommit**](RepoCommit.md) | | [optional]
**committer** | [**User**](User.md) | | [optional]
**html_url** | **str** | | [optional]
**parents** | [**list[CommitMeta]**](CommitMeta.md) | | [optional]
**sha** | **str** | | [optional]
**url** | **str** | | [optional]
**author** | [**User**](User.md) | | [optional]
**commit** | [**RepoCommit**](RepoCommit.md) | | [optional]
**committer** | [**User**](User.md) | | [optional]
**html_url** | **str** | | [optional]
**parents** | [**list[CommitMeta]**](CommitMeta.md) | | [optional]
**sha** | **str** | | [optional]
**url** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
11 changes: 11 additions & 0 deletions docs/CommitDateOptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CommitDateOptions

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | **datetime** | | [optional]
**committer** | **datetime** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


4 changes: 2 additions & 2 deletions docs/CommitMeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sha** | **str** | | [optional]
**url** | **str** | | [optional]
**sha** | **str** | | [optional]
**url** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
6 changes: 3 additions & 3 deletions docs/CommitUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_date** | **str** | | [optional]
**email** | **str** | | [optional]
**name** | **str** | | [optional]
**_date** | **str** | | [optional]
**email** | **str** | | [optional]
**name** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
28 changes: 14 additions & 14 deletions docs/ContentsResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**links** | [**FileLinksResponse**](FileLinksResponse.md) | | [optional]
**content** | **str** | `content` is populated when `type` is `file`, otherwise null | [optional]
**download_url** | **str** | | [optional]
**encoding** | **str** | `encoding` is populated when `type` is `file`, otherwise null | [optional]
**git_url** | **str** | | [optional]
**html_url** | **str** | | [optional]
**name** | **str** | | [optional]
**path** | **str** | | [optional]
**sha** | **str** | | [optional]
**size** | **int** | | [optional]
**submodule_git_url** | **str** | `submodule_git_url` is populated when `type` is `submodule`, otherwise null | [optional]
**target** | **str** | `target` is populated when `type` is `symlink`, otherwise null | [optional]
**type** | **str** | `type` will be `file`, `dir`, `symlink`, or `submodule` | [optional]
**url** | **str** | | [optional]
**links** | [**FileLinksResponse**](FileLinksResponse.md) | | [optional]
**content** | **str** | `content` is populated when `type` is `file`, otherwise null | [optional]
**download_url** | **str** | | [optional]
**encoding** | **str** | `encoding` is populated when `type` is `file`, otherwise null | [optional]
**git_url** | **str** | | [optional]
**html_url** | **str** | | [optional]
**name** | **str** | | [optional]
**path** | **str** | | [optional]
**sha** | **str** | | [optional]
**size** | **int** | | [optional]
**submodule_git_url** | **str** | `submodule_git_url` is populated when `type` is `submodule`, otherwise null | [optional]
**target** | **str** | `target` is populated when `type` is `symlink`, otherwise null | [optional]
**type** | **str** | `type` will be `file`, `dir`, `symlink`, or `submodule` | [optional]
**url** | **str** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
29 changes: 29 additions & 0 deletions docs/CreateBranchProtectionOption.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CreateBranchProtectionOption

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**approvals_whitelist_teams** | **list[str]** | | [optional]
**approvals_whitelist_username** | **list[str]** | | [optional]
**block_on_outdated_branch** | **bool** | | [optional]
**block_on_rejected_reviews** | **bool** | | [optional]
**branch_name** | **str** | | [optional]
**dismiss_stale_approvals** | **bool** | | [optional]
**enable_approvals_whitelist** | **bool** | | [optional]
**enable_merge_whitelist** | **bool** | | [optional]
**enable_push** | **bool** | | [optional]
**enable_push_whitelist** | **bool** | | [optional]
**enable_status_check** | **bool** | | [optional]
**merge_whitelist_teams** | **list[str]** | | [optional]
**merge_whitelist_usernames** | **list[str]** | | [optional]
**protected_file_patterns** | **str** | | [optional]
**push_whitelist_deploy_keys** | **bool** | | [optional]
**push_whitelist_teams** | **list[str]** | | [optional]
**push_whitelist_usernames** | **list[str]** | | [optional]
**require_signed_commits** | **bool** | | [optional]
**required_approvals** | **int** | | [optional]
**status_check_contexts** | **list[str]** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion docs/CreateEmailOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emails** | **list[str]** | email addresses to add | [optional]
**emails** | **list[str]** | email addresses to add | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
13 changes: 7 additions & 6 deletions docs/CreateFileOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**author** | [**Identity**](Identity.md) | | [optional]
**branch** | **str** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
**committer** | [**Identity**](Identity.md) | | [optional]
**content** | **str** | content must be base64 encoded |
**message** | **str** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
**new_branch** | **str** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional]
**author** | [**Identity**](Identity.md) | | [optional]
**branch** | **str** | branch (optional) to base this file from. if not given, the default branch is used | [optional]
**committer** | [**Identity**](Identity.md) | | [optional]
**content** | **str** | content must be base64 encoded |
**dates** | [**CommitDateOptions**](CommitDateOptions.md) | | [optional]
**message** | **str** | message (optional) for the commit of this file. if not supplied, a default message will be used | [optional]
**new_branch** | **str** | new_branch (optional) will make a new branch from `branch` before creating the file | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/CreateForkOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**organization** | **str** | organization name, if forking into an organization | [optional]
**organization** | **str** | organization name, if forking into an organization | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading