ionoscloud-container-registry 1.0.0

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.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +70 -0
  4. data/LICENSE +201 -0
  5. data/README.md +54 -0
  6. data/Rakefile +10 -0
  7. data/docs/api/LocationsApi.md +78 -0
  8. data/docs/api/NamesApi.md +82 -0
  9. data/docs/api/RegistriesApi.md +470 -0
  10. data/docs/api/RepositoriesApi.md +84 -0
  11. data/docs/api/TokensApi.md +478 -0
  12. data/docs/models/ApiErrorMessage.md +20 -0
  13. data/docs/models/ApiErrorResponse.md +20 -0
  14. data/docs/models/ApiResourceMetadata.md +30 -0
  15. data/docs/models/Credentials.md +20 -0
  16. data/docs/models/Day.md +15 -0
  17. data/docs/models/Location.md +18 -0
  18. data/docs/models/LocationsResponse.md +24 -0
  19. data/docs/models/PaginationLinks.md +22 -0
  20. data/docs/models/PatchRegistryInput.md +18 -0
  21. data/docs/models/PatchTokenInput.md +22 -0
  22. data/docs/models/PostRegistryInput.md +18 -0
  23. data/docs/models/PostRegistryOutput.md +26 -0
  24. data/docs/models/PostRegistryProperties.md +22 -0
  25. data/docs/models/PostTokenInput.md +18 -0
  26. data/docs/models/PostTokenOutput.md +26 -0
  27. data/docs/models/PostTokenProperties.md +24 -0
  28. data/docs/models/PutRegistryInput.md +18 -0
  29. data/docs/models/PutRegistryOutput.md +26 -0
  30. data/docs/models/PutTokenInput.md +18 -0
  31. data/docs/models/PutTokenOutput.md +26 -0
  32. data/docs/models/RegistriesResponse.md +30 -0
  33. data/docs/models/RegistryProperties.md +26 -0
  34. data/docs/models/RegistryResponse.md +26 -0
  35. data/docs/models/Scope.md +22 -0
  36. data/docs/models/StorageUsage.md +20 -0
  37. data/docs/models/TokenProperties.md +26 -0
  38. data/docs/models/TokenResponse.md +26 -0
  39. data/docs/models/TokensResponse.md +34 -0
  40. data/docs/models/WeeklySchedule.md +20 -0
  41. data/docs/summary.md +44 -0
  42. data/git_push.sh +56 -0
  43. data/ionoscloud-container-registry.gemspec +38 -0
  44. data/lib/ionoscloud-container-registry/api/locations_api.rb +77 -0
  45. data/lib/ionoscloud-container-registry/api/names_api.rb +90 -0
  46. data/lib/ionoscloud-container-registry/api/registries_api.rb +439 -0
  47. data/lib/ionoscloud-container-registry/api/repositories_api.rb +99 -0
  48. data/lib/ionoscloud-container-registry/api/tokens_api.rb +500 -0
  49. data/lib/ionoscloud-container-registry/api_client.rb +471 -0
  50. data/lib/ionoscloud-container-registry/api_error.rb +57 -0
  51. data/lib/ionoscloud-container-registry/configuration.rb +276 -0
  52. data/lib/ionoscloud-container-registry/models/api_error_message.rb +237 -0
  53. data/lib/ionoscloud-container-registry/models/api_error_response.rb +233 -0
  54. data/lib/ionoscloud-container-registry/models/api_resource_metadata.rb +293 -0
  55. data/lib/ionoscloud-container-registry/models/credentials.rb +237 -0
  56. data/lib/ionoscloud-container-registry/models/day.rb +42 -0
  57. data/lib/ionoscloud-container-registry/models/location.rb +218 -0
  58. data/lib/ionoscloud-container-registry/models/locations_response.rb +246 -0
  59. data/lib/ionoscloud-container-registry/models/pagination_links.rb +251 -0
  60. data/lib/ionoscloud-container-registry/models/patch_registry_input.rb +219 -0
  61. data/lib/ionoscloud-container-registry/models/patch_token_input.rb +272 -0
  62. data/lib/ionoscloud-container-registry/models/post_registry_input.rb +223 -0
  63. data/lib/ionoscloud-container-registry/models/post_registry_output.rb +256 -0
  64. data/lib/ionoscloud-container-registry/models/post_registry_properties.rb +268 -0
  65. data/lib/ionoscloud-container-registry/models/post_token_input.rb +223 -0
  66. data/lib/ionoscloud-container-registry/models/post_token_output.rb +256 -0
  67. data/lib/ionoscloud-container-registry/models/post_token_properties.rb +316 -0
  68. data/lib/ionoscloud-container-registry/models/put_registry_input.rb +223 -0
  69. data/lib/ionoscloud-container-registry/models/put_registry_output.rb +256 -0
  70. data/lib/ionoscloud-container-registry/models/put_token_input.rb +223 -0
  71. data/lib/ionoscloud-container-registry/models/put_token_output.rb +256 -0
  72. data/lib/ionoscloud-container-registry/models/registries_response.rb +288 -0
  73. data/lib/ionoscloud-container-registry/models/registry_properties.rb +287 -0
  74. data/lib/ionoscloud-container-registry/models/registry_response.rb +256 -0
  75. data/lib/ionoscloud-container-registry/models/scope.rb +247 -0
  76. data/lib/ionoscloud-container-registry/models/storage_usage.rb +229 -0
  77. data/lib/ionoscloud-container-registry/models/token_properties.rb +326 -0
  78. data/lib/ionoscloud-container-registry/models/token_response.rb +256 -0
  79. data/lib/ionoscloud-container-registry/models/tokens_response.rb +316 -0
  80. data/lib/ionoscloud-container-registry/models/weekly_schedule.rb +234 -0
  81. data/lib/ionoscloud-container-registry/version.rb +15 -0
  82. data/lib/ionoscloud-container-registry.rb +73 -0
  83. data/spec/api_client_spec.rb +226 -0
  84. data/spec/configuration_spec.rb +42 -0
  85. data/spec/spec_helper.rb +111 -0
  86. metadata +173 -0
@@ -0,0 +1,18 @@
1
+ # PostRegistryInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **properties** | [**PostRegistryProperties**](PostRegistryProperties.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-container-registry'
13
+
14
+ instance = IonoscloudContainerRegistry::PostRegistryInput.new(
15
+ properties: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # PostRegistryOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **metadata** | [**ApiResourceMetadata**](ApiResourceMetadata.md) | | |
10
+ | **properties** | [**RegistryProperties**](RegistryProperties.md) | | |
11
+ | **type** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::PostRegistryOutput.new(
19
+ href: null,
20
+ id: null,
21
+ metadata: null,
22
+ properties: null,
23
+ type: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,22 @@
1
+ # PostRegistryProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **garbage_collection_schedule** | [**WeeklySchedule**](WeeklySchedule.md) | | [optional] |
8
+ | **location** | **String** | | |
9
+ | **name** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-container-registry'
15
+
16
+ instance = IonoscloudContainerRegistry::PostRegistryProperties.new(
17
+ garbage_collection_schedule: null,
18
+ location: de/txl,
19
+ name: my-registry
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # PostTokenInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **properties** | [**PostTokenProperties**](PostTokenProperties.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-container-registry'
13
+
14
+ instance = IonoscloudContainerRegistry::PostTokenInput.new(
15
+ properties: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # PostTokenOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **metadata** | [**ApiResourceMetadata**](ApiResourceMetadata.md) | | |
10
+ | **properties** | [**TokenProperties**](TokenProperties.md) | | |
11
+ | **type** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::PostTokenOutput.new(
19
+ href: null,
20
+ id: null,
21
+ metadata: null,
22
+ properties: null,
23
+ type: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ # PostTokenProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **expiry_date** | **Time** | | [optional] |
8
+ | **name** | **String** | | |
9
+ | **scopes** | [**Array<Scope>**](Scope.md) | | [optional] |
10
+ | **status** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud-container-registry'
16
+
17
+ instance = IonoscloudContainerRegistry::PostTokenProperties.new(
18
+ expiry_date: null,
19
+ name: push-token,
20
+ scopes: null,
21
+ status: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # PutRegistryInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **properties** | [**PostRegistryProperties**](PostRegistryProperties.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-container-registry'
13
+
14
+ instance = IonoscloudContainerRegistry::PutRegistryInput.new(
15
+ properties: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # PutRegistryOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **metadata** | [**ApiResourceMetadata**](ApiResourceMetadata.md) | | |
10
+ | **properties** | [**RegistryProperties**](RegistryProperties.md) | | |
11
+ | **type** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::PutRegistryOutput.new(
19
+ href: null,
20
+ id: null,
21
+ metadata: null,
22
+ properties: null,
23
+ type: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,18 @@
1
+ # PutTokenInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **properties** | [**PostTokenProperties**](PostTokenProperties.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-container-registry'
13
+
14
+ instance = IonoscloudContainerRegistry::PutTokenInput.new(
15
+ properties: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # PutTokenOutput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **metadata** | [**ApiResourceMetadata**](ApiResourceMetadata.md) | | |
10
+ | **properties** | [**TokenProperties**](TokenProperties.md) | | |
11
+ | **type** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::PutTokenOutput.new(
19
+ href: null,
20
+ id: null,
21
+ metadata: null,
22
+ properties: null,
23
+ type: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,30 @@
1
+ # RegistriesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_links** | [**PaginationLinks**](PaginationLinks.md) | | |
8
+ | **href** | **String** | | [optional] |
9
+ | **id** | **String** | | [optional] |
10
+ | **items** | [**Array<RegistryResponse>**](RegistryResponse.md) | | [optional] |
11
+ | **limit** | **Integer** | | |
12
+ | **next_page_token** | **String** | | |
13
+ | **type** | **String** | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ionoscloud-container-registry'
19
+
20
+ instance = IonoscloudContainerRegistry::RegistriesResponse.new(
21
+ _links: null,
22
+ href: null,
23
+ id: null,
24
+ items: null,
25
+ limit: null,
26
+ next_page_token: null,
27
+ type: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,26 @@
1
+ # RegistryProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **garbage_collection_schedule** | [**WeeklySchedule**](WeeklySchedule.md) | | [optional] |
8
+ | **hostname** | **String** | | [optional] |
9
+ | **location** | **String** | | |
10
+ | **name** | **String** | | |
11
+ | **storage_usage** | [**StorageUsage**](StorageUsage.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::RegistryProperties.new(
19
+ garbage_collection_schedule: null,
20
+ hostname: my-registry.cr.ionos.com,
21
+ location: de/txl,
22
+ name: my-registry,
23
+ storage_usage: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # RegistryResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **metadata** | [**ApiResourceMetadata**](ApiResourceMetadata.md) | | |
10
+ | **properties** | [**RegistryProperties**](RegistryProperties.md) | | |
11
+ | **type** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::RegistryResponse.new(
19
+ href: null,
20
+ id: null,
21
+ metadata: null,
22
+ properties: null,
23
+ type: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,22 @@
1
+ # Scope
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **actions** | **Array<String>** | | |
8
+ | **name** | **String** | | |
9
+ | **type** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-container-registry'
15
+
16
+ instance = IonoscloudContainerRegistry::Scope.new(
17
+ actions: ["pull", "push", "delete"],
18
+ name: *,
19
+ type: repository
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # StorageUsage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **bytes** | **Integer** | | |
8
+ | **updated_at** | **Time** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-container-registry'
14
+
15
+ instance = IonoscloudContainerRegistry::StorageUsage.new(
16
+ bytes: null,
17
+ updated_at: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,26 @@
1
+ # TokenProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **credentials** | [**Credentials**](Credentials.md) | | |
8
+ | **expiry_date** | **Time** | | [optional] |
9
+ | **name** | **String** | | |
10
+ | **scopes** | [**Array<Scope>**](Scope.md) | | [optional] |
11
+ | **status** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::TokenProperties.new(
19
+ credentials: null,
20
+ expiry_date: null,
21
+ name: push-token,
22
+ scopes: null,
23
+ status: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # TokenResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **metadata** | [**ApiResourceMetadata**](ApiResourceMetadata.md) | | |
10
+ | **properties** | [**TokenProperties**](TokenProperties.md) | | |
11
+ | **type** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-container-registry'
17
+
18
+ instance = IonoscloudContainerRegistry::TokenResponse.new(
19
+ href: null,
20
+ id: null,
21
+ metadata: null,
22
+ properties: null,
23
+ type: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,34 @@
1
+ # TokensResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_links** | [**PaginationLinks**](PaginationLinks.md) | | |
8
+ | **count** | **Integer** | | |
9
+ | **href** | **String** | | [optional] |
10
+ | **id** | **String** | | [optional] |
11
+ | **items** | [**Array<TokenResponse>**](TokenResponse.md) | | [optional] |
12
+ | **limit** | **Integer** | | |
13
+ | **offset** | **Integer** | | |
14
+ | **total** | **Integer** | | |
15
+ | **type** | **String** | | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'ionoscloud-container-registry'
21
+
22
+ instance = IonoscloudContainerRegistry::TokensResponse.new(
23
+ _links: null,
24
+ count: null,
25
+ href: null,
26
+ id: null,
27
+ items: null,
28
+ limit: null,
29
+ offset: null,
30
+ total: null,
31
+ type: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,20 @@
1
+ # WeeklySchedule
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **days** | [**Array<Day>**](Day.md) | | |
8
+ | **time** | **String** | UTC time of day e.g. 01:00:00 - as defined by partial-time - RFC3339 | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-container-registry'
14
+
15
+ instance = IonoscloudContainerRegistry::WeeklySchedule.new(
16
+ days: null,
17
+ time: 01:23:00+00:00
18
+ )
19
+ ```
20
+
data/docs/summary.md ADDED
@@ -0,0 +1,44 @@
1
+ # Table of contents
2
+
3
+ * [Introduction](README.md)
4
+ * [Changelog](CHANGELOG.md)
5
+
6
+ ## API
7
+
8
+ * [LocationsApi](api/LocationsApi.md)
9
+ * [NamesApi](api/NamesApi.md)
10
+ * [RegistriesApi](api/RegistriesApi.md)
11
+ * [RepositoriesApi](api/RepositoriesApi.md)
12
+ * [TokensApi](api/TokensApi.md)
13
+
14
+ ## Models
15
+
16
+ * [ApiErrorMessage](models/ApiErrorMessage.md)
17
+ * [ApiErrorResponse](models/ApiErrorResponse.md)
18
+ * [ApiResourceMetadata](models/ApiResourceMetadata.md)
19
+ * [Credentials](models/Credentials.md)
20
+ * [Day](models/Day.md)
21
+ * [Location](models/Location.md)
22
+ * [LocationsResponse](models/LocationsResponse.md)
23
+ * [PaginationLinks](models/PaginationLinks.md)
24
+ * [PatchRegistryInput](models/PatchRegistryInput.md)
25
+ * [PatchTokenInput](models/PatchTokenInput.md)
26
+ * [PostRegistryInput](models/PostRegistryInput.md)
27
+ * [PostRegistryOutput](models/PostRegistryOutput.md)
28
+ * [PostRegistryProperties](models/PostRegistryProperties.md)
29
+ * [PostTokenInput](models/PostTokenInput.md)
30
+ * [PostTokenOutput](models/PostTokenOutput.md)
31
+ * [PostTokenProperties](models/PostTokenProperties.md)
32
+ * [PutRegistryInput](models/PutRegistryInput.md)
33
+ * [PutRegistryOutput](models/PutRegistryOutput.md)
34
+ * [PutTokenInput](models/PutTokenInput.md)
35
+ * [PutTokenOutput](models/PutTokenOutput.md)
36
+ * [RegistriesResponse](models/RegistriesResponse.md)
37
+ * [RegistryProperties](models/RegistryProperties.md)
38
+ * [RegistryResponse](models/RegistryResponse.md)
39
+ * [Scope](models/Scope.md)
40
+ * [StorageUsage](models/StorageUsage.md)
41
+ * [TokenProperties](models/TokenProperties.md)
42
+ * [TokenResponse](models/TokenResponse.md)
43
+ * [TokensResponse](models/TokensResponse.md)
44
+ * [WeeklySchedule](models/WeeklySchedule.md)
data/git_push.sh ADDED
@@ -0,0 +1,56 @@
1
+ #!/bin/sh
2
+
3
+
4
+ git_user_id=$1
5
+ git_repo_id=$2
6
+ release_note=$3
7
+ git_host=$4
8
+
9
+ if [ "$git_host" = "" ]; then
10
+ git_host="github.com"
11
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
12
+ fi
13
+
14
+ if [ "$git_user_id" = "" ]; then
15
+ git_user_id="ionos-cloud"
16
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
17
+ fi
18
+
19
+ if [ "$git_repo_id" = "" ]; then
20
+ git_repo_id="sdk-ruby-container-registry"
21
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
22
+ fi
23
+
24
+ if [ "$release_note" = "" ]; then
25
+ release_note="Minor update"
26
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
27
+ fi
28
+
29
+ # Initialize the local directory as a Git repository
30
+ git init
31
+
32
+ # Adds the files in the local repository and stages them for commit.
33
+ git add .
34
+
35
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
36
+ git commit -m "$release_note"
37
+
38
+ # Sets the new remote
39
+ git_remote=`git remote`
40
+ if [ "$git_remote" = "" ]; then # git remote not defined
41
+
42
+ if [ "$GIT_TOKEN" = "" ]; then
43
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
44
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
45
+ else
46
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
47
+ fi
48
+
49
+ fi
50
+
51
+ git pull origin master
52
+
53
+ # Pushes (Forces) the changes in the local repository up to the remote repository
54
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
55
+ git push origin master 2>&1 | grep -v 'To https'
56
+
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Container Registry service
5
+
6
+ #Container Registry service enables IONOS clients to manage docker and OCI compliant registries for use by their managed Kubernetes clusters. Use a Container Registry to ensure you have a privately accessed registry to efficiently support image pulls.
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: support@cloud.ionos.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.2.1-SNAPSHOT
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "ionoscloud-container-registry/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "ionoscloud-container-registry"
20
+ s.version = IonoscloudContainerRegistry::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = ["support@cloud.ionos.com"]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Container Registry service Ruby Gem"
26
+ s.description = "Container Registry service enables IONOS clients to manage docker and OCI compliant registries for use by their managed Kubernetes clusters. Use a Container Registry to ensure you have a privately accessed registry to efficiently support image pulls."
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+
34
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
+ s.test_files = `find spec/*`.split("\n")
36
+ s.executables = []
37
+ s.require_paths = ["lib"]
38
+ end