appmarketapi-rest 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +126 -0
  4. data/Rakefile +8 -0
  5. data/appmarketapi-rest.gemspec +45 -0
  6. data/docs/AppMarketAPIApi.md +388 -0
  7. data/docs/AppmarketapiApplication.md +22 -0
  8. data/docs/AppmarketapiApplicationCategories.md +8 -0
  9. data/docs/AppmarketapiApplicationFlowImages.md +8 -0
  10. data/docs/AppmarketapiApplicationIcon.md +8 -0
  11. data/docs/AppmarketapiApplicationMode.md +7 -0
  12. data/docs/AppmarketapiApplicationPromotion.md +8 -0
  13. data/docs/AppmarketapiApplicationSupportedPlatforms.md +8 -0
  14. data/docs/AppmarketapiApplicationTestUsers.md +8 -0
  15. data/docs/AppmarketapiAuthorizeApplicationRequest.md +11 -0
  16. data/docs/AppmarketapiAuthorizeApplicationResponse.md +8 -0
  17. data/docs/AppmarketapiCategory.md +8 -0
  18. data/docs/AppmarketapiCreateApplicationRequest.md +9 -0
  19. data/docs/AppmarketapiCreateApplicationResponse.md +9 -0
  20. data/docs/AppmarketapiCreateDeveloperRequest.md +11 -0
  21. data/docs/AppmarketapiCreateDeveloperResponse.md +11 -0
  22. data/docs/AppmarketapiCurrentApplicationMode.md +8 -0
  23. data/docs/AppmarketapiDeauthorizeApplicationRequest.md +10 -0
  24. data/docs/AppmarketapiDeauthorizeApplicationResponse.md +7 -0
  25. data/docs/AppmarketapiDeveloper.md +10 -0
  26. data/docs/AppmarketapiExtendedApplication.md +9 -0
  27. data/docs/AppmarketapiFlowImage.md +9 -0
  28. data/docs/AppmarketapiGetApplicationIdResponse.md +8 -0
  29. data/docs/AppmarketapiGetApplicationResponse.md +9 -0
  30. data/docs/AppmarketapiGetApplicationsResponse.md +8 -0
  31. data/docs/AppmarketapiPlatform.md +8 -0
  32. data/docs/AppmarketapiSectionError.md +9 -0
  33. data/docs/AppmarketapiUpdateApplicationMetadata.md +14 -0
  34. data/docs/AppmarketapiUpdateApplicationRequest.md +16 -0
  35. data/docs/AppmarketapiUpdateApplicationResponse.md +17 -0
  36. data/docs/AppmarketapiUser.md +9 -0
  37. data/git_push.sh +55 -0
  38. data/lib/appmarketapi-rest.rb +70 -0
  39. data/lib/appmarketapi-rest/api/app_market_api_api.rb +450 -0
  40. data/lib/appmarketapi-rest/api_client.rb +388 -0
  41. data/lib/appmarketapi-rest/api_error.rb +38 -0
  42. data/lib/appmarketapi-rest/configuration.rb +202 -0
  43. data/lib/appmarketapi-rest/models/appmarketapi_application.rb +317 -0
  44. data/lib/appmarketapi-rest/models/appmarketapi_application_categories.rb +185 -0
  45. data/lib/appmarketapi-rest/models/appmarketapi_application_flow_images.rb +185 -0
  46. data/lib/appmarketapi-rest/models/appmarketapi_application_icon.rb +183 -0
  47. data/lib/appmarketapi-rest/models/appmarketapi_application_mode.rb +32 -0
  48. data/lib/appmarketapi-rest/models/appmarketapi_application_promotion.rb +183 -0
  49. data/lib/appmarketapi-rest/models/appmarketapi_application_supported_platforms.rb +185 -0
  50. data/lib/appmarketapi-rest/models/appmarketapi_application_test_users.rb +185 -0
  51. data/lib/appmarketapi-rest/models/appmarketapi_authorize_application_request.rb +210 -0
  52. data/lib/appmarketapi-rest/models/appmarketapi_authorize_application_response.rb +183 -0
  53. data/lib/appmarketapi-rest/models/appmarketapi_category.rb +183 -0
  54. data/lib/appmarketapi-rest/models/appmarketapi_create_application_request.rb +192 -0
  55. data/lib/appmarketapi-rest/models/appmarketapi_create_application_response.rb +192 -0
  56. data/lib/appmarketapi-rest/models/appmarketapi_create_developer_request.rb +210 -0
  57. data/lib/appmarketapi-rest/models/appmarketapi_create_developer_response.rb +210 -0
  58. data/lib/appmarketapi-rest/models/appmarketapi_current_application_mode.rb +183 -0
  59. data/lib/appmarketapi-rest/models/appmarketapi_deauthorize_application_request.rb +201 -0
  60. data/lib/appmarketapi-rest/models/appmarketapi_deauthorize_application_response.rb +174 -0
  61. data/lib/appmarketapi-rest/models/appmarketapi_developer.rb +201 -0
  62. data/lib/appmarketapi-rest/models/appmarketapi_extended_application.rb +192 -0
  63. data/lib/appmarketapi-rest/models/appmarketapi_flow_image.rb +192 -0
  64. data/lib/appmarketapi-rest/models/appmarketapi_get_application_id_response.rb +183 -0
  65. data/lib/appmarketapi-rest/models/appmarketapi_get_application_response.rb +192 -0
  66. data/lib/appmarketapi-rest/models/appmarketapi_get_applications_response.rb +185 -0
  67. data/lib/appmarketapi-rest/models/appmarketapi_platform.rb +183 -0
  68. data/lib/appmarketapi-rest/models/appmarketapi_section_error.rb +192 -0
  69. data/lib/appmarketapi-rest/models/appmarketapi_update_application_metadata.rb +237 -0
  70. data/lib/appmarketapi-rest/models/appmarketapi_update_application_request.rb +255 -0
  71. data/lib/appmarketapi-rest/models/appmarketapi_update_application_response.rb +266 -0
  72. data/lib/appmarketapi-rest/models/appmarketapi_user.rb +194 -0
  73. data/lib/appmarketapi-rest/version.rb +15 -0
  74. data/spec/api/app_market_api_api_spec.rb +122 -0
  75. data/spec/api_client_spec.rb +226 -0
  76. data/spec/configuration_spec.rb +42 -0
  77. data/spec/models/appmarketapi_application_categories_spec.rb +41 -0
  78. data/spec/models/appmarketapi_application_flow_images_spec.rb +41 -0
  79. data/spec/models/appmarketapi_application_icon_spec.rb +41 -0
  80. data/spec/models/appmarketapi_application_mode_spec.rb +35 -0
  81. data/spec/models/appmarketapi_application_promotion_spec.rb +41 -0
  82. data/spec/models/appmarketapi_application_spec.rb +125 -0
  83. data/spec/models/appmarketapi_application_supported_platforms_spec.rb +41 -0
  84. data/spec/models/appmarketapi_application_test_users_spec.rb +41 -0
  85. data/spec/models/appmarketapi_authorize_application_request_spec.rb +59 -0
  86. data/spec/models/appmarketapi_authorize_application_response_spec.rb +41 -0
  87. data/spec/models/appmarketapi_category_spec.rb +41 -0
  88. data/spec/models/appmarketapi_create_application_request_spec.rb +47 -0
  89. data/spec/models/appmarketapi_create_application_response_spec.rb +47 -0
  90. data/spec/models/appmarketapi_create_developer_request_spec.rb +59 -0
  91. data/spec/models/appmarketapi_create_developer_response_spec.rb +59 -0
  92. data/spec/models/appmarketapi_current_application_mode_spec.rb +41 -0
  93. data/spec/models/appmarketapi_deauthorize_application_request_spec.rb +53 -0
  94. data/spec/models/appmarketapi_deauthorize_application_response_spec.rb +35 -0
  95. data/spec/models/appmarketapi_developer_spec.rb +53 -0
  96. data/spec/models/appmarketapi_extended_application_spec.rb +47 -0
  97. data/spec/models/appmarketapi_flow_image_spec.rb +47 -0
  98. data/spec/models/appmarketapi_get_application_id_response_spec.rb +41 -0
  99. data/spec/models/appmarketapi_get_application_response_spec.rb +47 -0
  100. data/spec/models/appmarketapi_get_applications_response_spec.rb +41 -0
  101. data/spec/models/appmarketapi_platform_spec.rb +41 -0
  102. data/spec/models/appmarketapi_section_error_spec.rb +47 -0
  103. data/spec/models/appmarketapi_update_application_metadata_spec.rb +77 -0
  104. data/spec/models/appmarketapi_update_application_request_spec.rb +89 -0
  105. data/spec/models/appmarketapi_update_application_response_spec.rb +95 -0
  106. data/spec/models/appmarketapi_user_spec.rb +47 -0
  107. data/spec/spec_helper.rb +111 -0
  108. metadata +364 -0
@@ -0,0 +1,22 @@
1
+ # Appmarketapi::AppmarketapiApplication
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **slug** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
9
+ **short_description** | **String** | | [optional]
10
+ **long_description** | **String** | | [optional]
11
+ **icon_url** | **String** | | [optional]
12
+ **support_url** | **String** | | [optional]
13
+ **support_email** | **String** | | [optional]
14
+ **categories** | [**Array<AppmarketapiCategory>**](AppmarketapiCategory.md) | | [optional]
15
+ **developer** | [**AppmarketapiDeveloper**](AppmarketapiDeveloper.md) | | [optional]
16
+ **supported_platforms** | [**Array<AppmarketapiPlatform>**](AppmarketapiPlatform.md) | | [optional]
17
+ **required_scopes** | **Array<String>** | | [optional]
18
+ **images** | [**Array<AppmarketapiFlowImage>**](AppmarketapiFlowImage.md) | | [optional]
19
+ **app_page_url** | **String** | | [optional]
20
+ **install_link** | **String** | | [optional]
21
+
22
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiApplicationCategories
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **categories** | [**Array<AppmarketapiCategory>**](AppmarketapiCategory.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiApplicationFlowImages
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **images** | [**Array<AppmarketapiFlowImage>**](AppmarketapiFlowImage.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiApplicationIcon
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,7 @@
1
+ # Appmarketapi::AppmarketapiApplicationMode
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiApplicationPromotion
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **rank** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiApplicationSupportedPlatforms
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **platforms** | [**Array<AppmarketapiPlatform>**](AppmarketapiPlatform.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiApplicationTestUsers
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **test_user_ids** | **Array<String>** | | [optional]
7
+
8
+
@@ -0,0 +1,11 @@
1
+ # Appmarketapi::AppmarketapiAuthorizeApplicationRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application_id** | **String** | | [optional]
7
+ **user_id** | **String** | | [optional]
8
+ **user_token** | **String** | | [optional]
9
+ **selected_user_id** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiAuthorizeApplicationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **redirect_url** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiCategory
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Appmarketapi::AppmarketapiCreateApplicationRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **developer_id** | **String** | | [optional]
7
+ **application_metadata** | [**AppmarketapiUpdateApplicationMetadata**](AppmarketapiUpdateApplicationMetadata.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Appmarketapi::AppmarketapiCreateApplicationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application_id** | **String** | | [optional]
7
+ **application_secret** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,11 @@
1
+ # Appmarketapi::AppmarketapiCreateDeveloperRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **support_url** | **String** | | [optional]
9
+ **support_email** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,11 @@
1
+ # Appmarketapi::AppmarketapiCreateDeveloperResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **support_url** | **String** | | [optional]
9
+ **support_email** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiCurrentApplicationMode
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **mode** | [**AppmarketapiApplicationMode**](AppmarketapiApplicationMode.md) | | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # Appmarketapi::AppmarketapiDeauthorizeApplicationRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application_id** | **String** | | [optional]
7
+ **user_id** | **String** | | [optional]
8
+ **user_token** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,7 @@
1
+ # Appmarketapi::AppmarketapiDeauthorizeApplicationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,10 @@
1
+ # Appmarketapi::AppmarketapiDeveloper
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **url** | **String** | | [optional]
8
+ **email** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # Appmarketapi::AppmarketapiExtendedApplication
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application** | [**AppmarketapiApplication**](AppmarketapiApplication.md) | | [optional]
7
+ **user** | [**AppmarketapiUser**](AppmarketapiUser.md) | | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # Appmarketapi::AppmarketapiFlowImage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **url** | **String** | | [optional]
7
+ **order** | **Integer** | | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiGetApplicationIdResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application_id** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Appmarketapi::AppmarketapiGetApplicationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application** | [**AppmarketapiApplication**](AppmarketapiApplication.md) | | [optional]
7
+ **user** | [**AppmarketapiUser**](AppmarketapiUser.md) | | [optional]
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiGetApplicationsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **applications** | [**Array<AppmarketapiExtendedApplication>**](AppmarketapiExtendedApplication.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # Appmarketapi::AppmarketapiPlatform
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Appmarketapi::AppmarketapiSectionError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **section** | **String** | | [optional]
7
+ **error** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,14 @@
1
+ # Appmarketapi::AppmarketapiUpdateApplicationMetadata
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **short_description** | **String** | | [optional]
8
+ **long_description** | **String** | | [optional]
9
+ **image_url** | **String** | | [optional]
10
+ **support_url** | **String** | | [optional]
11
+ **support_email** | **String** | | [optional]
12
+ **redirect_url** | **String** | | [optional]
13
+
14
+
@@ -0,0 +1,16 @@
1
+ # Appmarketapi::AppmarketapiUpdateApplicationRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application_id** | **String** | | [optional]
7
+ **application_metadata** | [**AppmarketapiUpdateApplicationMetadata**](AppmarketapiUpdateApplicationMetadata.md) | | [optional]
8
+ **application_icon** | [**AppmarketapiApplicationIcon**](AppmarketapiApplicationIcon.md) | | [optional]
9
+ **application_promotion** | [**AppmarketapiApplicationPromotion**](AppmarketapiApplicationPromotion.md) | | [optional]
10
+ **application_mode** | [**AppmarketapiCurrentApplicationMode**](AppmarketapiCurrentApplicationMode.md) | | [optional]
11
+ **application_categories** | [**AppmarketapiApplicationCategories**](AppmarketapiApplicationCategories.md) | | [optional]
12
+ **application_flow_images** | [**AppmarketapiApplicationFlowImages**](AppmarketapiApplicationFlowImages.md) | | [optional]
13
+ **application_test_users** | [**AppmarketapiApplicationTestUsers**](AppmarketapiApplicationTestUsers.md) | | [optional]
14
+ **application_supported_platforms** | [**AppmarketapiApplicationSupportedPlatforms**](AppmarketapiApplicationSupportedPlatforms.md) | | [optional]
15
+
16
+
@@ -0,0 +1,17 @@
1
+ # Appmarketapi::AppmarketapiUpdateApplicationResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **application_id** | **String** | | [optional]
7
+ **application_metadata** | [**AppmarketapiUpdateApplicationMetadata**](AppmarketapiUpdateApplicationMetadata.md) | | [optional]
8
+ **application_icon** | [**AppmarketapiApplicationIcon**](AppmarketapiApplicationIcon.md) | | [optional]
9
+ **application_promotion** | [**AppmarketapiApplicationPromotion**](AppmarketapiApplicationPromotion.md) | | [optional]
10
+ **application_mode** | [**AppmarketapiCurrentApplicationMode**](AppmarketapiCurrentApplicationMode.md) | | [optional]
11
+ **application_categories** | [**AppmarketapiApplicationCategories**](AppmarketapiApplicationCategories.md) | | [optional]
12
+ **application_flow_images** | [**AppmarketapiApplicationFlowImages**](AppmarketapiApplicationFlowImages.md) | | [optional]
13
+ **application_test_users** | [**AppmarketapiApplicationTestUsers**](AppmarketapiApplicationTestUsers.md) | | [optional]
14
+ **application_supported_platforms** | [**AppmarketapiApplicationSupportedPlatforms**](AppmarketapiApplicationSupportedPlatforms.md) | | [optional]
15
+ **errors** | [**Array<AppmarketapiSectionError>**](AppmarketapiSectionError.md) | | [optional]
16
+
17
+
@@ -0,0 +1,9 @@
1
+ # Appmarketapi::AppmarketapiUser
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | | [optional]
7
+ **authorized_scopes** | **Array<String>** | | [optional]
8
+
9
+
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,70 @@
1
+ =begin
2
+ #appmarketapi.proto
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: version not set
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'appmarketapi-rest/api_client'
15
+ require 'appmarketapi-rest/api_error'
16
+ require 'appmarketapi-rest/version'
17
+ require 'appmarketapi-rest/configuration'
18
+
19
+ # Models
20
+ require 'appmarketapi-rest/models/appmarketapi_application'
21
+ require 'appmarketapi-rest/models/appmarketapi_application_categories'
22
+ require 'appmarketapi-rest/models/appmarketapi_application_flow_images'
23
+ require 'appmarketapi-rest/models/appmarketapi_application_icon'
24
+ require 'appmarketapi-rest/models/appmarketapi_application_mode'
25
+ require 'appmarketapi-rest/models/appmarketapi_application_promotion'
26
+ require 'appmarketapi-rest/models/appmarketapi_application_supported_platforms'
27
+ require 'appmarketapi-rest/models/appmarketapi_application_test_users'
28
+ require 'appmarketapi-rest/models/appmarketapi_authorize_application_request'
29
+ require 'appmarketapi-rest/models/appmarketapi_authorize_application_response'
30
+ require 'appmarketapi-rest/models/appmarketapi_category'
31
+ require 'appmarketapi-rest/models/appmarketapi_create_application_request'
32
+ require 'appmarketapi-rest/models/appmarketapi_create_application_response'
33
+ require 'appmarketapi-rest/models/appmarketapi_create_developer_request'
34
+ require 'appmarketapi-rest/models/appmarketapi_create_developer_response'
35
+ require 'appmarketapi-rest/models/appmarketapi_current_application_mode'
36
+ require 'appmarketapi-rest/models/appmarketapi_deauthorize_application_request'
37
+ require 'appmarketapi-rest/models/appmarketapi_deauthorize_application_response'
38
+ require 'appmarketapi-rest/models/appmarketapi_developer'
39
+ require 'appmarketapi-rest/models/appmarketapi_extended_application'
40
+ require 'appmarketapi-rest/models/appmarketapi_flow_image'
41
+ require 'appmarketapi-rest/models/appmarketapi_get_application_id_response'
42
+ require 'appmarketapi-rest/models/appmarketapi_get_application_response'
43
+ require 'appmarketapi-rest/models/appmarketapi_get_applications_response'
44
+ require 'appmarketapi-rest/models/appmarketapi_platform'
45
+ require 'appmarketapi-rest/models/appmarketapi_section_error'
46
+ require 'appmarketapi-rest/models/appmarketapi_update_application_metadata'
47
+ require 'appmarketapi-rest/models/appmarketapi_update_application_request'
48
+ require 'appmarketapi-rest/models/appmarketapi_update_application_response'
49
+ require 'appmarketapi-rest/models/appmarketapi_user'
50
+
51
+ # APIs
52
+ require 'appmarketapi-rest/api/app_market_api_api'
53
+
54
+ module Appmarketapi
55
+ class << self
56
+ # Customize default settings for the SDK using block.
57
+ # Appmarketapi.configure do |config|
58
+ # config.username = "xxx"
59
+ # config.password = "xxx"
60
+ # end
61
+ # If no block given, return the default Configuration object.
62
+ def configure
63
+ if block_given?
64
+ yield(Configuration.default)
65
+ else
66
+ Configuration.default
67
+ end
68
+ end
69
+ end
70
+ end