pulp_maven_client 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/docs/ContentArtifactApi.md +8 -8
  4. data/docs/DistributionsMavenApi.md +18 -12
  5. data/docs/MavenMavenDistribution.md +1 -1
  6. data/docs/MavenMavenDistributionResponse.md +1 -1
  7. data/docs/MavenMavenRemote.md +1 -1
  8. data/docs/MavenMavenRemoteResponse.md +4 -2
  9. data/docs/MavenMavenRemoteResponseHiddenFields.md +19 -0
  10. data/docs/MavenMavenRepository.md +2 -2
  11. data/docs/MavenMavenRepositoryResponse.md +2 -2
  12. data/docs/PatchedmavenMavenDistribution.md +1 -1
  13. data/docs/PatchedmavenMavenRemote.md +1 -1
  14. data/docs/PatchedmavenMavenRepository.md +2 -2
  15. data/docs/PulpMavenApi.md +110 -0
  16. data/docs/RemotesMavenApi.md +12 -12
  17. data/docs/RepositoriesMavenApi.md +28 -10
  18. data/docs/RepositoriesMavenVersionsApi.md +12 -12
  19. data/lib/pulp_maven_client/api/content_artifact_api.rb +13 -13
  20. data/lib/pulp_maven_client/api/distributions_maven_api.rb +26 -17
  21. data/lib/pulp_maven_client/api/pulp_maven_api.rb +176 -0
  22. data/lib/pulp_maven_client/api/remotes_maven_api.rb +17 -17
  23. data/lib/pulp_maven_client/api/repositories_maven_api.rb +42 -15
  24. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +17 -17
  25. data/lib/pulp_maven_client/api_client.rb +1 -1
  26. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +4 -2
  27. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +4 -2
  28. data/lib/pulp_maven_client/models/maven_maven_remote.rb +4 -2
  29. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +21 -7
  30. data/lib/pulp_maven_client/models/maven_maven_remote_response_hidden_fields.rb +215 -0
  31. data/lib/pulp_maven_client/models/maven_maven_repository.rb +5 -3
  32. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +5 -3
  33. data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +4 -2
  34. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +4 -2
  35. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +5 -3
  36. data/lib/pulp_maven_client/version.rb +1 -1
  37. data/lib/pulp_maven_client.rb +2 -0
  38. data/pulp_maven_client.gemspec +3 -3
  39. data/spec/api/content_artifact_api_spec.rb +4 -4
  40. data/spec/api/distributions_maven_api_spec.rb +9 -6
  41. data/spec/api/pulp_maven_api_spec.rb +61 -0
  42. data/spec/api/remotes_maven_api_spec.rb +6 -6
  43. data/spec/api/repositories_maven_api_spec.rb +14 -5
  44. data/spec/api/repositories_maven_versions_api_spec.rb +6 -6
  45. data/spec/models/maven_maven_remote_response_hidden_fields_spec.rb +47 -0
  46. data/spec/models/maven_maven_remote_response_spec.rb +6 -0
  47. metadata +34 -27
  48. data/git_push.sh +0 -58
data/git_push.sh DELETED
@@ -1,58 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=`git remote`
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
58
-