pulp_container_client 2.20.0 → 2.20.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +9 -9
  5. data/docs/ContainerContainerDistributionResponse.md +13 -11
  6. data/docs/ContainerContainerNamespaceResponse.md +2 -0
  7. data/docs/ContainerContainerPullThroughDistribution.md +9 -9
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +13 -11
  9. data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
  10. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
  11. data/docs/ContainerContainerPushRepository.md +6 -6
  12. data/docs/ContainerContainerPushRepositoryResponse.md +15 -13
  13. data/docs/ContainerContainerRemoteResponse.md +2 -2
  14. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  15. data/docs/ContainerManifestResponse.md +2 -0
  16. data/docs/ContainerManifestSignatureResponse.md +2 -0
  17. data/docs/ContainerTagResponse.md +2 -0
  18. data/docs/ContentBlobsApi.md +1 -1
  19. data/docs/ContentManifestsApi.md +1 -1
  20. data/docs/ContentSignaturesApi.md +1 -1
  21. data/docs/ContentTagsApi.md +1 -1
  22. data/docs/DistributionsContainerApi.md +1 -1
  23. data/docs/DistributionsPullThroughApi.md +1 -1
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedcontainerBlobResponseList.md +2 -2
  26. data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
  27. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
  28. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
  29. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
  30. data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
  31. data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
  32. data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
  33. data/docs/PaginatedcontainerManifestResponseList.md +2 -2
  34. data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
  35. data/docs/PaginatedcontainerTagResponseList.md +2 -2
  36. data/docs/PatchedcontainerContainerDistribution.md +9 -9
  37. data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
  38. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  39. data/docs/PulpContainerNamespacesApi.md +1 -1
  40. data/docs/RemotesContainerApi.md +1 -1
  41. data/docs/RemotesPullThroughApi.md +1 -1
  42. data/docs/RepositoriesContainerApi.md +1 -1
  43. data/docs/RepositoriesContainerPushApi.md +1 -1
  44. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  45. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  46. data/docs/RepositoryVersionResponse.md +2 -0
  47. data/docs/TokenApi.md +1 -1
  48. data/lib/pulp_container_client/configuration.rb +2 -2
  49. data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +63 -63
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +62 -52
  52. data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
  53. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +63 -63
  54. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +62 -52
  55. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
  56. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +31 -31
  57. data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
  58. data/lib/pulp_container_client/models/container_container_push_repository.rb +40 -40
  59. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -50
  60. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  61. data/lib/pulp_container_client/models/container_container_remote_response.rb +31 -31
  62. data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
  63. data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
  64. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
  65. data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
  66. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
  67. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
  68. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
  69. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
  70. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
  71. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
  72. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
  73. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
  74. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
  75. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
  76. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
  77. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
  78. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +54 -54
  79. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +54 -54
  80. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
  81. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -40
  82. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  83. data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
  84. data/lib/pulp_container_client/version.rb +1 -1
  85. data/lib/pulp_container_client.rb +0 -2
  86. data/spec/configuration_spec.rb +3 -3
  87. data/spec/models/container_blob_response_spec.rb +6 -0
  88. data/spec/models/container_container_distribution_response_spec.rb +14 -8
  89. data/spec/models/container_container_distribution_spec.rb +6 -6
  90. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  91. data/spec/models/container_container_pull_through_distribution_response_spec.rb +14 -8
  92. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  93. data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
  94. data/spec/models/container_container_push_repository_response_spec.rb +14 -8
  95. data/spec/models/container_container_push_repository_spec.rb +5 -5
  96. data/spec/models/container_container_remote_response_spec.rb +6 -6
  97. data/spec/models/container_container_repository_response_spec.rb +6 -0
  98. data/spec/models/container_manifest_response_spec.rb +6 -0
  99. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  100. data/spec/models/container_tag_response_spec.rb +6 -0
  101. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  102. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  103. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  104. data/spec/models/repository_version_response_spec.rb +6 -0
  105. metadata +70 -78
  106. data/docs/IndexDynamicApi.md +0 -50
  107. data/docs/IndexStaticApi.md +0 -50
  108. data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
  109. data/lib/pulp_container_client/api/index_static_api.rb +0 -74
  110. data/spec/api/index_dynamic_api_spec.rb +0 -45
  111. data/spec/api/index_static_api_spec.rb +0 -45
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | | [optional]
7
+ **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<ContainerContainerRemoteResponse>**](ContainerContainerRemoteResponse.md) | | [optional]
10
+ **results** | [**Array<ContainerContainerRemoteResponse>**](ContainerContainerRemoteResponse.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | | [optional]
7
+ **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<ContainerContainerRepositoryResponse>**](ContainerContainerRepositoryResponse.md) | | [optional]
10
+ **results** | [**Array<ContainerContainerRepositoryResponse>**](ContainerContainerRepositoryResponse.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | | [optional]
7
+ **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<ContainerManifestResponse>**](ContainerManifestResponse.md) | | [optional]
10
+ **results** | [**Array<ContainerManifestResponse>**](ContainerManifestResponse.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | | [optional]
7
+ **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<ContainerManifestSignatureResponse>**](ContainerManifestSignatureResponse.md) | | [optional]
10
+ **results** | [**Array<ContainerManifestSignatureResponse>**](ContainerManifestSignatureResponse.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -4,10 +4,10 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | | [optional]
7
+ **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<ContainerTagResponse>**](ContainerTagResponse.md) | | [optional]
10
+ **results** | [**Array<ContainerTagResponse>**](ContainerTagResponse.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
@@ -4,12 +4,12 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
- **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
9
- **pulp_labels** | **Hash<String, String>** | | [optional]
10
7
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
12
8
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
9
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
10
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
11
+ **pulp_labels** | **Hash<String, String>** | | [optional]
12
+ **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
13
13
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
14
14
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
15
15
  **description** | **String** | An optional description. | [optional]
@@ -19,12 +19,12 @@ Name | Type | Description | Notes
19
19
  ```ruby
20
20
  require 'PulpContainerClient'
21
21
 
22
- instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(content_guard: null,
23
- hidden: null,
24
- pulp_labels: null,
25
- repository: null,
26
- base_path: null,
22
+ instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(repository: null,
27
23
  name: null,
24
+ base_path: null,
25
+ content_guard: null,
26
+ pulp_labels: null,
27
+ hidden: null,
28
28
  repository_version: null,
29
29
  private: null,
30
30
  description: null)
@@ -4,12 +4,12 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
8
- **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
9
- **pulp_labels** | **Hash<String, String>** | | [optional]
10
7
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
12
8
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
9
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
10
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
11
+ **pulp_labels** | **Hash<String, String>** | | [optional]
12
+ **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
13
13
  **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
14
14
  **distributions** | **Array<String>** | Distributions created after pulling content through cache | [optional]
15
15
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Related distributions inherit this value. Defaults to unrestricted pull access. | [optional]
@@ -20,12 +20,12 @@ Name | Type | Description | Notes
20
20
  ```ruby
21
21
  require 'PulpContainerClient'
22
22
 
23
- instance = PulpContainerClient::PatchedcontainerContainerPullThroughDistribution.new(content_guard: null,
24
- hidden: null,
25
- pulp_labels: null,
26
- repository: null,
27
- base_path: null,
23
+ instance = PulpContainerClient::PatchedcontainerContainerPullThroughDistribution.new(repository: null,
28
24
  name: null,
25
+ base_path: null,
26
+ content_guard: null,
27
+ pulp_labels: null,
28
+ hidden: null,
29
29
  remote: null,
30
30
  distributions: null,
31
31
  private: null,
@@ -4,22 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **description** | **String** | An optional description. | [optional]
7
8
  **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
9
+ **name** | **String** | A unique name for this repository. | [optional]
8
10
  **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
9
11
  **pulp_labels** | **Hash<String, String>** | | [optional]
10
- **name** | **String** | A unique name for this repository. | [optional]
11
- **description** | **String** | An optional description. | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
15
15
  ```ruby
16
16
  require 'PulpContainerClient'
17
17
 
18
- instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(retain_repo_versions: null,
19
- manifest_signing_service: null,
20
- pulp_labels: null,
18
+ instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(description: null,
19
+ retain_repo_versions: null,
21
20
  name: null,
22
- description: null)
21
+ manifest_signing_service: null,
22
+ pulp_labels: null)
23
23
  ```
24
24
 
25
25
 
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::PulpContainerNamespacesApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RemotesContainerApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RemotesPullThroughApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerPushApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerPushVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::RepositoriesContainerVersionsApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
9
10
  **number** | **Integer** | | [optional] [readonly]
10
11
  **repository** | **String** | | [optional] [readonly]
11
12
  **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
@@ -18,6 +19,7 @@ require 'PulpContainerClient'
18
19
 
19
20
  instance = PulpContainerClient::RepositoryVersionResponse.new(pulp_href: null,
20
21
  pulp_created: null,
22
+ pulp_last_updated: null,
21
23
  number: null,
22
24
  repository: null,
23
25
  base_version: null,
data/docs/TokenApi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # PulpContainerClient::TokenApi
2
2
 
3
- All URIs are relative to *http://pulp*
3
+ All URIs are relative to *http://localhost:24817*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -128,7 +128,7 @@ module PulpContainerClient
128
128
 
129
129
  def initialize
130
130
  @scheme = 'http'
131
- @host = 'pulp'
131
+ @host = 'localhost'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpContainerClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "http://pulp/",
213
+ url: "http://localhost:24817/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -20,6 +20,9 @@ module PulpContainerClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # Artifact file representing the physical content
24
27
  attr_accessor :artifact
25
28
 
@@ -31,6 +34,7 @@ module PulpContainerClient
31
34
  {
32
35
  :'pulp_href' => :'pulp_href',
33
36
  :'pulp_created' => :'pulp_created',
37
+ :'pulp_last_updated' => :'pulp_last_updated',
34
38
  :'artifact' => :'artifact',
35
39
  :'digest' => :'digest'
36
40
  }
@@ -41,6 +45,7 @@ module PulpContainerClient
41
45
  {
42
46
  :'pulp_href' => :'String',
43
47
  :'pulp_created' => :'DateTime',
48
+ :'pulp_last_updated' => :'DateTime',
44
49
  :'artifact' => :'String',
45
50
  :'digest' => :'String'
46
51
  }
@@ -75,6 +80,10 @@ module PulpContainerClient
75
80
  self.pulp_created = attributes[:'pulp_created']
76
81
  end
77
82
 
83
+ if attributes.key?(:'pulp_last_updated')
84
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
85
+ end
86
+
78
87
  if attributes.key?(:'artifact')
79
88
  self.artifact = attributes[:'artifact']
80
89
  end
@@ -114,6 +123,7 @@ module PulpContainerClient
114
123
  self.class == o.class &&
115
124
  pulp_href == o.pulp_href &&
116
125
  pulp_created == o.pulp_created &&
126
+ pulp_last_updated == o.pulp_last_updated &&
117
127
  artifact == o.artifact &&
118
128
  digest == o.digest
119
129
  end
@@ -127,7 +137,7 @@ module PulpContainerClient
127
137
  # Calculates hash code according to all attributes.
128
138
  # @return [Integer] Hash code
129
139
  def hash
130
- [pulp_href, pulp_created, artifact, digest].hash
140
+ [pulp_href, pulp_created, pulp_last_updated, artifact, digest].hash
131
141
  end
132
142
 
133
143
  # Builds the object from hash
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
20
-
21
- # Whether this distribution should be shown in the content app.
22
- attr_accessor :hidden
23
-
24
- attr_accessor :pulp_labels
25
-
26
18
  # The latest RepositoryVersion for this Repository will be served.
27
19
  attr_accessor :repository
28
20
 
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
23
+
29
24
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
25
  attr_accessor :base_path
31
26
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
27
+ # An optional content-guard. If none is specified, a default one will be used.
28
+ attr_accessor :content_guard
29
+
30
+ attr_accessor :pulp_labels
31
+
32
+ # Whether this distribution should be shown in the content app.
33
+ attr_accessor :hidden
34
34
 
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'content_guard' => :'content_guard',
48
- :'hidden' => :'hidden',
49
- :'pulp_labels' => :'pulp_labels',
50
47
  :'repository' => :'repository',
51
- :'base_path' => :'base_path',
52
48
  :'name' => :'name',
49
+ :'base_path' => :'base_path',
50
+ :'content_guard' => :'content_guard',
51
+ :'pulp_labels' => :'pulp_labels',
52
+ :'hidden' => :'hidden',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'content_guard' => :'String',
63
- :'hidden' => :'Boolean',
64
- :'pulp_labels' => :'Hash<String, String>',
65
62
  :'repository' => :'String',
66
- :'base_path' => :'String',
67
63
  :'name' => :'String',
64
+ :'base_path' => :'String',
65
+ :'content_guard' => :'String',
66
+ :'pulp_labels' => :'Hash<String, String>',
67
+ :'hidden' => :'Boolean',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,32 +95,32 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'content_guard')
99
- self.content_guard = attributes[:'content_guard']
98
+ if attributes.key?(:'repository')
99
+ self.repository = attributes[:'repository']
100
100
  end
101
101
 
102
- if attributes.key?(:'hidden')
103
- self.hidden = attributes[:'hidden']
104
- else
105
- self.hidden = false
102
+ if attributes.key?(:'name')
103
+ self.name = attributes[:'name']
106
104
  end
107
105
 
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
106
+ if attributes.key?(:'base_path')
107
+ self.base_path = attributes[:'base_path']
112
108
  end
113
109
 
114
- if attributes.key?(:'repository')
115
- self.repository = attributes[:'repository']
110
+ if attributes.key?(:'content_guard')
111
+ self.content_guard = attributes[:'content_guard']
116
112
  end
117
113
 
118
- if attributes.key?(:'base_path')
119
- self.base_path = attributes[:'base_path']
114
+ if attributes.key?(:'pulp_labels')
115
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
+ self.pulp_labels = value
117
+ end
120
118
  end
121
119
 
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
120
+ if attributes.key?(:'hidden')
121
+ self.hidden = attributes[:'hidden']
122
+ else
123
+ self.hidden = false
124
124
  end
125
125
 
126
126
  if attributes.key?(:'repository_version')
@@ -140,14 +140,6 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if @base_path.nil?
144
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
145
- end
146
-
147
- if @base_path.to_s.length < 1
148
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
149
- end
150
-
151
143
  if @name.nil?
152
144
  invalid_properties.push('invalid value for "name", name cannot be nil.')
153
145
  end
@@ -156,6 +148,14 @@ module PulpContainerClient
156
148
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
157
149
  end
158
150
 
151
+ if @base_path.nil?
152
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
153
+ end
154
+
155
+ if @base_path.to_s.length < 1
156
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
157
+ end
158
+
159
159
  if !@description.nil? && @description.to_s.length < 1
160
160
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
161
161
  end
@@ -166,28 +166,14 @@ module PulpContainerClient
166
166
  # Check to see if the all the properties in the model are valid
167
167
  # @return true if the model is valid
168
168
  def valid?
169
- return false if @base_path.nil?
170
- return false if @base_path.to_s.length < 1
171
169
  return false if @name.nil?
172
170
  return false if @name.to_s.length < 1
171
+ return false if @base_path.nil?
172
+ return false if @base_path.to_s.length < 1
173
173
  return false if !@description.nil? && @description.to_s.length < 1
174
174
  true
175
175
  end
176
176
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] base_path Value to be assigned
179
- def base_path=(base_path)
180
- if base_path.nil?
181
- fail ArgumentError, 'base_path cannot be nil'
182
- end
183
-
184
- if base_path.to_s.length < 1
185
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
186
- end
187
-
188
- @base_path = base_path
189
- end
190
-
191
177
  # Custom attribute writer method with validation
192
178
  # @param [Object] name Value to be assigned
193
179
  def name=(name)
@@ -202,6 +188,20 @@ module PulpContainerClient
202
188
  @name = name
203
189
  end
204
190
 
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] base_path Value to be assigned
193
+ def base_path=(base_path)
194
+ if base_path.nil?
195
+ fail ArgumentError, 'base_path cannot be nil'
196
+ end
197
+
198
+ if base_path.to_s.length < 1
199
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
200
+ end
201
+
202
+ @base_path = base_path
203
+ end
204
+
205
205
  # Custom attribute writer method with validation
206
206
  # @param [Object] description Value to be assigned
207
207
  def description=(description)
@@ -217,12 +217,12 @@ module PulpContainerClient
217
217
  def ==(o)
218
218
  return true if self.equal?(o)
219
219
  self.class == o.class &&
220
- content_guard == o.content_guard &&
221
- hidden == o.hidden &&
222
- pulp_labels == o.pulp_labels &&
223
220
  repository == o.repository &&
224
- base_path == o.base_path &&
225
221
  name == o.name &&
222
+ base_path == o.base_path &&
223
+ content_guard == o.content_guard &&
224
+ pulp_labels == o.pulp_labels &&
225
+ hidden == o.hidden &&
226
226
  repository_version == o.repository_version &&
227
227
  private == o.private &&
228
228
  description == o.description
@@ -237,7 +237,7 @@ module PulpContainerClient
237
237
  # Calculates hash code according to all attributes.
238
238
  # @return [Integer] Hash code
239
239
  def hash
240
- [content_guard, hidden, pulp_labels, repository, base_path, name, repository_version, private, description].hash
240
+ [repository, name, base_path, content_guard, pulp_labels, hidden, repository_version, private, description].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash