pulp_container_client 2.14.14 → 2.14.16
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.
- checksums.yaml +4 -4
- data/README.md +222 -246
- data/docs/AccessPoliciesApi.md +28 -32
- data/docs/ArtifactDistributionResponse.md +7 -7
- data/docs/ArtifactsApi.md +23 -27
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerContainerRepository.md +1 -1
- data/docs/ContainerContainerRepositoryResponse.md +1 -1
- data/docs/ContentApi.md +8 -14
- data/docs/ContentBlobsApi.md +13 -17
- data/docs/ContentManifestsApi.md +15 -19
- data/docs/ContentSignaturesApi.md +13 -17
- data/docs/ContentTagsApi.md +15 -19
- data/docs/ContentguardsApi.md +8 -14
- data/docs/ContentguardsContentRedirectApi.md +53 -57
- data/docs/ContentguardsRbacApi.md +53 -57
- data/docs/DistributionsApi.md +8 -18
- data/docs/DistributionsArtifactsApi.md +13 -21
- data/docs/DistributionsContainerApi.md +53 -61
- data/docs/DocsApiJsonApi.md +6 -6
- data/docs/DocsApiYamlApi.md +6 -6
- data/docs/ExportersFilesystemApi.md +36 -40
- data/docs/ExportersFilesystemExportsApi.md +24 -24
- data/docs/ExportersPulpApi.md +33 -37
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExporter.md +1 -1
- data/docs/FilesystemExporterResponse.md +1 -1
- data/docs/GroupRole.md +1 -3
- data/docs/GroupRoleResponse.md +1 -3
- data/docs/GroupsApi.md +59 -63
- data/docs/GroupsRolesApi.md +27 -33
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -37
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PatchedFilesystemExporter.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PatchedcontainerContainerRepository.md +1 -1
- data/docs/PublicationsApi.md +9 -15
- data/docs/PulpContainerNamespacesApi.md +43 -47
- data/docs/RemoteResponse.md +1 -1
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +8 -14
- data/docs/RemotesContainerApi.md +53 -57
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +8 -30
- data/docs/RepositoriesContainerApi.md +102 -122
- data/docs/RepositoriesContainerPushApi.md +68 -88
- data/docs/RepositoriesContainerPushVersionsApi.md +23 -25
- data/docs/RepositoriesContainerVersionsApi.md +23 -25
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +8 -12
- data/docs/RolesApi.md +39 -43
- data/docs/SigningServicesApi.md +13 -17
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +1 -3
- data/docs/TaskGroupsApi.md +11 -11
- data/docs/TaskSchedulesApi.md +35 -39
- data/docs/TasksApi.md +101 -105
- data/docs/TokenApi.md +6 -6
- data/docs/UploadsApi.md +53 -57
- data/docs/UserRole.md +2 -4
- data/docs/UserRoleResponse.md +2 -4
- data/docs/UsersApi.md +39 -43
- data/docs/UsersRolesApi.md +27 -33
- data/docs/VersionResponse.md +1 -3
- data/docs/WorkersApi.md +13 -17
- data/lib/pulp_container_client/api/access_policies_api.rb +33 -39
- data/lib/pulp_container_client/api/artifacts_api.rb +31 -37
- data/lib/pulp_container_client/api/content_api.rb +7 -20
- data/lib/pulp_container_client/api/content_blobs_api.rb +13 -19
- data/lib/pulp_container_client/api/content_manifests_api.rb +15 -21
- data/lib/pulp_container_client/api/content_signatures_api.rb +13 -19
- data/lib/pulp_container_client/api/content_tags_api.rb +15 -21
- data/lib/pulp_container_client/api/contentguards_api.rb +7 -20
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +65 -71
- data/lib/pulp_container_client/api/contentguards_rbac_api.rb +65 -71
- data/lib/pulp_container_client/api/distributions_api.rb +7 -26
- data/lib/pulp_container_client/api/distributions_artifacts_api.rb +13 -25
- data/lib/pulp_container_client/api/distributions_container_api.rb +65 -77
- data/lib/pulp_container_client/api/docs_api_json_api.rb +5 -5
- data/lib/pulp_container_client/api/docs_api_yaml_api.rb +5 -5
- data/lib/pulp_container_client/api/exporters_filesystem_api.rb +45 -51
- data/lib/pulp_container_client/api/exporters_filesystem_exports_api.rb +31 -31
- data/lib/pulp_container_client/api/exporters_pulp_api.rb +39 -45
- data/lib/pulp_container_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulp_container_client/api/groups_api.rb +77 -83
- data/lib/pulp_container_client/api/groups_roles_api.rb +35 -44
- data/lib/pulp_container_client/api/groups_users_api.rb +19 -19
- data/lib/pulp_container_client/api/importers_pulp_api.rb +39 -45
- data/lib/pulp_container_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulp_container_client/api/orphans_api.rb +5 -5
- data/lib/pulp_container_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulp_container_client/api/publications_api.rb +9 -18
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +51 -57
- data/lib/pulp_container_client/api/remotes_api.rb +7 -20
- data/lib/pulp_container_client/api/remotes_container_api.rb +65 -71
- data/lib/pulp_container_client/api/repair_api.rb +6 -6
- data/lib/pulp_container_client/api/repositories_api.rb +7 -44
- data/lib/pulp_container_client/api/repositories_container_api.rb +128 -158
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +88 -118
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +27 -30
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +27 -30
- data/lib/pulp_container_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulp_container_client/api/repository_versions_api.rb +7 -12
- data/lib/pulp_container_client/api/roles_api.rb +51 -57
- data/lib/pulp_container_client/api/signing_services_api.rb +13 -19
- data/lib/pulp_container_client/api/task_groups_api.rb +11 -11
- data/lib/pulp_container_client/api/task_schedules_api.rb +43 -49
- data/lib/pulp_container_client/api/tasks_api.rb +125 -131
- data/lib/pulp_container_client/api/token_api.rb +5 -5
- data/lib/pulp_container_client/api/uploads_api.rb +67 -73
- data/lib/pulp_container_client/api/users_api.rb +51 -57
- data/lib/pulp_container_client/api/users_roles_api.rb +35 -44
- data/lib/pulp_container_client/api/workers_api.rb +14 -20
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/artifact_distribution_response.rb +35 -35
- data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +37 -37
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +33 -33
- data/lib/pulp_container_client/models/container_container_remote.rb +21 -21
- data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -21
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/filesystem_exporter.rb +1 -1
- data/lib/pulp_container_client/models/filesystem_exporter_response.rb +1 -1
- data/lib/pulp_container_client/models/group_role.rb +5 -16
- data/lib/pulp_container_client/models/group_role_response.rb +4 -15
- data/lib/pulp_container_client/models/nested_role.rb +0 -19
- data/lib/pulp_container_client/models/patched_filesystem_exporter.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +37 -37
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/remote_response.rb +21 -21
- data/lib/pulp_container_client/models/remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/repository_response.rb +1 -1
- data/lib/pulp_container_client/models/status_response.rb +4 -19
- data/lib/pulp_container_client/models/user_role.rb +6 -17
- data/lib/pulp_container_client/models/user_role_response.rb +5 -16
- data/lib/pulp_container_client/models/version_response.rb +4 -19
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -11
- data/spec/api/access_policies_api_spec.rb +11 -13
- data/spec/api/artifacts_api_spec.rb +9 -11
- data/spec/api/content_api_spec.rb +3 -6
- data/spec/api/content_blobs_api_spec.rb +5 -7
- data/spec/api/content_manifests_api_spec.rb +6 -8
- data/spec/api/content_signatures_api_spec.rb +5 -7
- data/spec/api/content_tags_api_spec.rb +6 -8
- data/spec/api/contentguards_api_spec.rb +3 -6
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -23
- data/spec/api/contentguards_rbac_api_spec.rb +21 -23
- data/spec/api/distributions_api_spec.rb +3 -8
- data/spec/api/distributions_artifacts_api_spec.rb +5 -9
- data/spec/api/distributions_container_api_spec.rb +21 -25
- data/spec/api/docs_api_json_api_spec.rb +2 -2
- data/spec/api/docs_api_yaml_api_spec.rb +2 -2
- data/spec/api/exporters_filesystem_api_spec.rb +16 -18
- data/spec/api/exporters_filesystem_exports_api_spec.rb +11 -11
- data/spec/api/exporters_pulp_api_spec.rb +13 -15
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +27 -29
- data/spec/api/groups_roles_api_spec.rb +13 -16
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +13 -15
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +4 -7
- data/spec/api/pulp_container_namespaces_api_spec.rb +17 -19
- data/spec/api/remotes_api_spec.rb +3 -6
- data/spec/api/remotes_container_api_spec.rb +21 -23
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -14
- data/spec/api/repositories_container_api_spec.rb +39 -49
- data/spec/api/repositories_container_push_api_spec.rb +27 -37
- data/spec/api/repositories_container_push_versions_api_spec.rb +9 -10
- data/spec/api/repositories_container_versions_api_spec.rb +9 -10
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +3 -5
- data/spec/api/roles_api_spec.rb +19 -21
- data/spec/api/signing_services_api_spec.rb +5 -7
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +15 -17
- data/spec/api/tasks_api_spec.rb +32 -34
- data/spec/api/token_api_spec.rb +2 -2
- data/spec/api/uploads_api_spec.rb +21 -23
- data/spec/api/users_api_spec.rb +19 -21
- data/spec/api/users_roles_api_spec.rb +13 -16
- data/spec/api/workers_api_spec.rb +5 -7
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/group_role_response_spec.rb +0 -6
- data/spec/models/group_role_spec.rb +0 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/status_response_spec.rb +0 -6
- data/spec/models/user_role_response_spec.rb +0 -6
- data/spec/models/user_role_spec.rb +0 -6
- data/spec/models/version_response_spec.rb +0 -6
- metadata +196 -240
- data/docs/Domain.md +0 -27
- data/docs/DomainResponse.md +0 -31
- data/docs/DomainsApi.md +0 -366
- data/docs/PaginatedDomainResponseList.md +0 -23
- data/docs/PaginatedUpstreamPulpResponseList.md +0 -23
- data/docs/PatchedDomain.md +0 -27
- data/docs/PatchedUpstreamPulp.md +0 -37
- data/docs/StorageClassEnum.md +0 -16
- data/docs/UpstreamPulp.md +0 -37
- data/docs/UpstreamPulpResponse.md +0 -39
- data/docs/UpstreamPulpsApi.md +0 -405
- data/lib/pulp_container_client/api/domains_api.rb +0 -452
- data/lib/pulp_container_client/api/upstream_pulps_api.rb +0 -492
- data/lib/pulp_container_client/models/domain.rb +0 -323
- data/lib/pulp_container_client/models/domain_response.rb +0 -318
- data/lib/pulp_container_client/models/paginated_domain_response_list.rb +0 -237
- data/lib/pulp_container_client/models/paginated_upstream_pulp_response_list.rb +0 -237
- data/lib/pulp_container_client/models/patched_domain.rb +0 -304
- data/lib/pulp_container_client/models/patched_upstream_pulp.rb +0 -450
- data/lib/pulp_container_client/models/storage_class_enum.rb +0 -37
- data/lib/pulp_container_client/models/upstream_pulp.rb +0 -477
- data/lib/pulp_container_client/models/upstream_pulp_response.rb +0 -338
- data/spec/api/domains_api_spec.rb +0 -122
- data/spec/api/upstream_pulps_api_spec.rb +0 -127
- data/spec/models/domain_response_spec.rb +0 -83
- data/spec/models/domain_spec.rb +0 -71
- data/spec/models/paginated_domain_response_list_spec.rb +0 -59
- data/spec/models/paginated_upstream_pulp_response_list_spec.rb +0 -59
- data/spec/models/patched_domain_spec.rb +0 -71
- data/spec/models/patched_upstream_pulp_spec.rb +0 -101
- data/spec/models/storage_class_enum_spec.rb +0 -35
- data/spec/models/upstream_pulp_response_spec.rb +0 -107
- data/spec/models/upstream_pulp_spec.rb +0 -101
|
@@ -32,7 +32,7 @@ module PulpContainerClient
|
|
|
32
32
|
# An optional description.
|
|
33
33
|
attr_accessor :description
|
|
34
34
|
|
|
35
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
35
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
36
36
|
attr_accessor :retain_repo_versions
|
|
37
37
|
|
|
38
38
|
# An optional remote to use by default when syncing.
|
|
@@ -36,9 +36,6 @@ module PulpContainerClient
|
|
|
36
36
|
# Content-app settings
|
|
37
37
|
attr_accessor :content_settings
|
|
38
38
|
|
|
39
|
-
# Is Domains enabled
|
|
40
|
-
attr_accessor :domain_enabled
|
|
41
|
-
|
|
42
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
40
|
def self.attribute_map
|
|
44
41
|
{
|
|
@@ -48,8 +45,7 @@ module PulpContainerClient
|
|
|
48
45
|
:'database_connection' => :'database_connection',
|
|
49
46
|
:'redis_connection' => :'redis_connection',
|
|
50
47
|
:'storage' => :'storage',
|
|
51
|
-
:'content_settings' => :'content_settings'
|
|
52
|
-
:'domain_enabled' => :'domain_enabled'
|
|
48
|
+
:'content_settings' => :'content_settings'
|
|
53
49
|
}
|
|
54
50
|
end
|
|
55
51
|
|
|
@@ -62,8 +58,7 @@ module PulpContainerClient
|
|
|
62
58
|
:'database_connection' => :'DatabaseConnectionResponse',
|
|
63
59
|
:'redis_connection' => :'RedisConnectionResponse',
|
|
64
60
|
:'storage' => :'StorageResponse',
|
|
65
|
-
:'content_settings' => :'ContentSettingsResponse'
|
|
66
|
-
:'domain_enabled' => :'Boolean'
|
|
61
|
+
:'content_settings' => :'ContentSettingsResponse'
|
|
67
62
|
}
|
|
68
63
|
end
|
|
69
64
|
|
|
@@ -121,10 +116,6 @@ module PulpContainerClient
|
|
|
121
116
|
if attributes.key?(:'content_settings')
|
|
122
117
|
self.content_settings = attributes[:'content_settings']
|
|
123
118
|
end
|
|
124
|
-
|
|
125
|
-
if attributes.key?(:'domain_enabled')
|
|
126
|
-
self.domain_enabled = attributes[:'domain_enabled']
|
|
127
|
-
end
|
|
128
119
|
end
|
|
129
120
|
|
|
130
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -151,10 +142,6 @@ module PulpContainerClient
|
|
|
151
142
|
invalid_properties.push('invalid value for "content_settings", content_settings cannot be nil.')
|
|
152
143
|
end
|
|
153
144
|
|
|
154
|
-
if @domain_enabled.nil?
|
|
155
|
-
invalid_properties.push('invalid value for "domain_enabled", domain_enabled cannot be nil.')
|
|
156
|
-
end
|
|
157
|
-
|
|
158
145
|
invalid_properties
|
|
159
146
|
end
|
|
160
147
|
|
|
@@ -166,7 +153,6 @@ module PulpContainerClient
|
|
|
166
153
|
return false if @online_content_apps.nil?
|
|
167
154
|
return false if @database_connection.nil?
|
|
168
155
|
return false if @content_settings.nil?
|
|
169
|
-
return false if @domain_enabled.nil?
|
|
170
156
|
true
|
|
171
157
|
end
|
|
172
158
|
|
|
@@ -181,8 +167,7 @@ module PulpContainerClient
|
|
|
181
167
|
database_connection == o.database_connection &&
|
|
182
168
|
redis_connection == o.redis_connection &&
|
|
183
169
|
storage == o.storage &&
|
|
184
|
-
content_settings == o.content_settings
|
|
185
|
-
domain_enabled == o.domain_enabled
|
|
170
|
+
content_settings == o.content_settings
|
|
186
171
|
end
|
|
187
172
|
|
|
188
173
|
# @see the `==` method
|
|
@@ -194,7 +179,7 @@ module PulpContainerClient
|
|
|
194
179
|
# Calculates hash code according to all attributes.
|
|
195
180
|
# @return [Integer] Hash code
|
|
196
181
|
def hash
|
|
197
|
-
[versions, online_workers, online_content_apps, database_connection, redis_connection, storage, content_settings
|
|
182
|
+
[versions, online_workers, online_content_apps, database_connection, redis_connection, storage, content_settings].hash
|
|
198
183
|
end
|
|
199
184
|
|
|
200
185
|
# Builds the object from hash
|
|
@@ -17,18 +17,14 @@ module PulpContainerClient
|
|
|
17
17
|
class UserRole
|
|
18
18
|
attr_accessor :role
|
|
19
19
|
|
|
20
|
-
# pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on
|
|
20
|
+
# pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level.
|
|
21
21
|
attr_accessor :content_object
|
|
22
22
|
|
|
23
|
-
# Domain this role should be applied on, mutually exclusive with content_object.
|
|
24
|
-
attr_accessor :domain
|
|
25
|
-
|
|
26
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
24
|
def self.attribute_map
|
|
28
25
|
{
|
|
29
26
|
:'role' => :'role',
|
|
30
|
-
:'content_object' => :'content_object'
|
|
31
|
-
:'domain' => :'domain'
|
|
27
|
+
:'content_object' => :'content_object'
|
|
32
28
|
}
|
|
33
29
|
end
|
|
34
30
|
|
|
@@ -36,16 +32,14 @@ module PulpContainerClient
|
|
|
36
32
|
def self.openapi_types
|
|
37
33
|
{
|
|
38
34
|
:'role' => :'String',
|
|
39
|
-
:'content_object' => :'String'
|
|
40
|
-
:'domain' => :'String'
|
|
35
|
+
:'content_object' => :'String'
|
|
41
36
|
}
|
|
42
37
|
end
|
|
43
38
|
|
|
44
39
|
# List of attributes with nullable: true
|
|
45
40
|
def self.openapi_nullable
|
|
46
41
|
Set.new([
|
|
47
|
-
:'content_object'
|
|
48
|
-
:'domain'
|
|
42
|
+
:'content_object'
|
|
49
43
|
])
|
|
50
44
|
end
|
|
51
45
|
|
|
@@ -71,10 +65,6 @@ module PulpContainerClient
|
|
|
71
65
|
if attributes.key?(:'content_object')
|
|
72
66
|
self.content_object = attributes[:'content_object']
|
|
73
67
|
end
|
|
74
|
-
|
|
75
|
-
if attributes.key?(:'domain')
|
|
76
|
-
self.domain = attributes[:'domain']
|
|
77
|
-
end
|
|
78
68
|
end
|
|
79
69
|
|
|
80
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -135,8 +125,7 @@ module PulpContainerClient
|
|
|
135
125
|
return true if self.equal?(o)
|
|
136
126
|
self.class == o.class &&
|
|
137
127
|
role == o.role &&
|
|
138
|
-
content_object == o.content_object
|
|
139
|
-
domain == o.domain
|
|
128
|
+
content_object == o.content_object
|
|
140
129
|
end
|
|
141
130
|
|
|
142
131
|
# @see the `==` method
|
|
@@ -148,7 +137,7 @@ module PulpContainerClient
|
|
|
148
137
|
# Calculates hash code according to all attributes.
|
|
149
138
|
# @return [Integer] Hash code
|
|
150
139
|
def hash
|
|
151
|
-
[role, content_object
|
|
140
|
+
[role, content_object].hash
|
|
152
141
|
end
|
|
153
142
|
|
|
154
143
|
# Builds the object from hash
|
|
@@ -22,16 +22,13 @@ module PulpContainerClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :role
|
|
24
24
|
|
|
25
|
-
# pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on
|
|
25
|
+
# pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level.
|
|
26
26
|
attr_accessor :content_object
|
|
27
27
|
|
|
28
28
|
attr_accessor :description
|
|
29
29
|
|
|
30
30
|
attr_accessor :permissions
|
|
31
31
|
|
|
32
|
-
# Domain this role should be applied on, mutually exclusive with content_object.
|
|
33
|
-
attr_accessor :domain
|
|
34
|
-
|
|
35
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
33
|
def self.attribute_map
|
|
37
34
|
{
|
|
@@ -40,8 +37,7 @@ module PulpContainerClient
|
|
|
40
37
|
:'role' => :'role',
|
|
41
38
|
:'content_object' => :'content_object',
|
|
42
39
|
:'description' => :'description',
|
|
43
|
-
:'permissions' => :'permissions'
|
|
44
|
-
:'domain' => :'domain'
|
|
40
|
+
:'permissions' => :'permissions'
|
|
45
41
|
}
|
|
46
42
|
end
|
|
47
43
|
|
|
@@ -53,8 +49,7 @@ module PulpContainerClient
|
|
|
53
49
|
:'role' => :'String',
|
|
54
50
|
:'content_object' => :'String',
|
|
55
51
|
:'description' => :'String',
|
|
56
|
-
:'permissions' => :'Array<String>'
|
|
57
|
-
:'domain' => :'String'
|
|
52
|
+
:'permissions' => :'Array<String>'
|
|
58
53
|
}
|
|
59
54
|
end
|
|
60
55
|
|
|
@@ -62,7 +57,6 @@ module PulpContainerClient
|
|
|
62
57
|
def self.openapi_nullable
|
|
63
58
|
Set.new([
|
|
64
59
|
:'content_object',
|
|
65
|
-
:'domain'
|
|
66
60
|
])
|
|
67
61
|
end
|
|
68
62
|
|
|
@@ -106,10 +100,6 @@ module PulpContainerClient
|
|
|
106
100
|
self.permissions = value
|
|
107
101
|
end
|
|
108
102
|
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'domain')
|
|
111
|
-
self.domain = attributes[:'domain']
|
|
112
|
-
end
|
|
113
103
|
end
|
|
114
104
|
|
|
115
105
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -140,8 +130,7 @@ module PulpContainerClient
|
|
|
140
130
|
role == o.role &&
|
|
141
131
|
content_object == o.content_object &&
|
|
142
132
|
description == o.description &&
|
|
143
|
-
permissions == o.permissions
|
|
144
|
-
domain == o.domain
|
|
133
|
+
permissions == o.permissions
|
|
145
134
|
end
|
|
146
135
|
|
|
147
136
|
# @see the `==` method
|
|
@@ -153,7 +142,7 @@ module PulpContainerClient
|
|
|
153
142
|
# Calculates hash code according to all attributes.
|
|
154
143
|
# @return [Integer] Hash code
|
|
155
144
|
def hash
|
|
156
|
-
[pulp_href, pulp_created, role, content_object, description, permissions
|
|
145
|
+
[pulp_href, pulp_created, role, content_object, description, permissions].hash
|
|
157
146
|
end
|
|
158
147
|
|
|
159
148
|
# Builds the object from hash
|
|
@@ -24,16 +24,12 @@ module PulpContainerClient
|
|
|
24
24
|
# Python package name providing the component
|
|
25
25
|
attr_accessor :package
|
|
26
26
|
|
|
27
|
-
# Domain feature compatibility of component
|
|
28
|
-
attr_accessor :domain_compatible
|
|
29
|
-
|
|
30
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
28
|
def self.attribute_map
|
|
32
29
|
{
|
|
33
30
|
:'component' => :'component',
|
|
34
31
|
:'version' => :'version',
|
|
35
|
-
:'package' => :'package'
|
|
36
|
-
:'domain_compatible' => :'domain_compatible'
|
|
32
|
+
:'package' => :'package'
|
|
37
33
|
}
|
|
38
34
|
end
|
|
39
35
|
|
|
@@ -42,8 +38,7 @@ module PulpContainerClient
|
|
|
42
38
|
{
|
|
43
39
|
:'component' => :'String',
|
|
44
40
|
:'version' => :'String',
|
|
45
|
-
:'package' => :'String'
|
|
46
|
-
:'domain_compatible' => :'Boolean'
|
|
41
|
+
:'package' => :'String'
|
|
47
42
|
}
|
|
48
43
|
end
|
|
49
44
|
|
|
@@ -79,10 +74,6 @@ module PulpContainerClient
|
|
|
79
74
|
if attributes.key?(:'package')
|
|
80
75
|
self.package = attributes[:'package']
|
|
81
76
|
end
|
|
82
|
-
|
|
83
|
-
if attributes.key?(:'domain_compatible')
|
|
84
|
-
self.domain_compatible = attributes[:'domain_compatible']
|
|
85
|
-
end
|
|
86
77
|
end
|
|
87
78
|
|
|
88
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -101,10 +92,6 @@ module PulpContainerClient
|
|
|
101
92
|
invalid_properties.push('invalid value for "package", package cannot be nil.')
|
|
102
93
|
end
|
|
103
94
|
|
|
104
|
-
if @domain_compatible.nil?
|
|
105
|
-
invalid_properties.push('invalid value for "domain_compatible", domain_compatible cannot be nil.')
|
|
106
|
-
end
|
|
107
|
-
|
|
108
95
|
invalid_properties
|
|
109
96
|
end
|
|
110
97
|
|
|
@@ -114,7 +101,6 @@ module PulpContainerClient
|
|
|
114
101
|
return false if @component.nil?
|
|
115
102
|
return false if @version.nil?
|
|
116
103
|
return false if @package.nil?
|
|
117
|
-
return false if @domain_compatible.nil?
|
|
118
104
|
true
|
|
119
105
|
end
|
|
120
106
|
|
|
@@ -125,8 +111,7 @@ module PulpContainerClient
|
|
|
125
111
|
self.class == o.class &&
|
|
126
112
|
component == o.component &&
|
|
127
113
|
version == o.version &&
|
|
128
|
-
package == o.package
|
|
129
|
-
domain_compatible == o.domain_compatible
|
|
114
|
+
package == o.package
|
|
130
115
|
end
|
|
131
116
|
|
|
132
117
|
# @see the `==` method
|
|
@@ -138,7 +123,7 @@ module PulpContainerClient
|
|
|
138
123
|
# Calculates hash code according to all attributes.
|
|
139
124
|
# @return [Integer] Hash code
|
|
140
125
|
def hash
|
|
141
|
-
[component, version, package
|
|
126
|
+
[component, version, package].hash
|
|
142
127
|
end
|
|
143
128
|
|
|
144
129
|
# Builds the object from hash
|
|
@@ -46,8 +46,6 @@ require 'pulp_container_client/models/content_settings_response'
|
|
|
46
46
|
require 'pulp_container_client/models/content_summary_response'
|
|
47
47
|
require 'pulp_container_client/models/database_connection_response'
|
|
48
48
|
require 'pulp_container_client/models/distribution_response'
|
|
49
|
-
require 'pulp_container_client/models/domain'
|
|
50
|
-
require 'pulp_container_client/models/domain_response'
|
|
51
49
|
require 'pulp_container_client/models/evaluation_response'
|
|
52
50
|
require 'pulp_container_client/models/filesystem_export'
|
|
53
51
|
require 'pulp_container_client/models/filesystem_export_response'
|
|
@@ -78,7 +76,6 @@ require 'pulp_container_client/models/paginated_artifact_response_list'
|
|
|
78
76
|
require 'pulp_container_client/models/paginated_content_guard_response_list'
|
|
79
77
|
require 'pulp_container_client/models/paginated_content_redirect_content_guard_response_list'
|
|
80
78
|
require 'pulp_container_client/models/paginated_distribution_response_list'
|
|
81
|
-
require 'pulp_container_client/models/paginated_domain_response_list'
|
|
82
79
|
require 'pulp_container_client/models/paginated_filesystem_export_response_list'
|
|
83
80
|
require 'pulp_container_client/models/paginated_filesystem_exporter_response_list'
|
|
84
81
|
require 'pulp_container_client/models/paginated_group_response_list'
|
|
@@ -100,7 +97,6 @@ require 'pulp_container_client/models/paginated_task_group_response_list'
|
|
|
100
97
|
require 'pulp_container_client/models/paginated_task_response_list'
|
|
101
98
|
require 'pulp_container_client/models/paginated_task_schedule_response_list'
|
|
102
99
|
require 'pulp_container_client/models/paginated_upload_response_list'
|
|
103
|
-
require 'pulp_container_client/models/paginated_upstream_pulp_response_list'
|
|
104
100
|
require 'pulp_container_client/models/paginated_user_response_list'
|
|
105
101
|
require 'pulp_container_client/models/paginated_user_role_response_list'
|
|
106
102
|
require 'pulp_container_client/models/paginated_worker_response_list'
|
|
@@ -115,7 +111,6 @@ require 'pulp_container_client/models/paginatedcontainer_manifest_signature_resp
|
|
|
115
111
|
require 'pulp_container_client/models/paginatedcontainer_tag_response_list'
|
|
116
112
|
require 'pulp_container_client/models/patched_access_policy'
|
|
117
113
|
require 'pulp_container_client/models/patched_content_redirect_content_guard'
|
|
118
|
-
require 'pulp_container_client/models/patched_domain'
|
|
119
114
|
require 'pulp_container_client/models/patched_filesystem_exporter'
|
|
120
115
|
require 'pulp_container_client/models/patched_group'
|
|
121
116
|
require 'pulp_container_client/models/patched_pulp_exporter'
|
|
@@ -123,7 +118,6 @@ require 'pulp_container_client/models/patched_pulp_importer'
|
|
|
123
118
|
require 'pulp_container_client/models/patched_rbac_content_guard'
|
|
124
119
|
require 'pulp_container_client/models/patched_role'
|
|
125
120
|
require 'pulp_container_client/models/patched_task_cancel'
|
|
126
|
-
require 'pulp_container_client/models/patched_upstream_pulp'
|
|
127
121
|
require 'pulp_container_client/models/patched_user'
|
|
128
122
|
require 'pulp_container_client/models/patchedcontainer_container_distribution'
|
|
129
123
|
require 'pulp_container_client/models/patchedcontainer_container_push_repository'
|
|
@@ -162,7 +156,6 @@ require 'pulp_container_client/models/role_response'
|
|
|
162
156
|
require 'pulp_container_client/models/signing_service_response'
|
|
163
157
|
require 'pulp_container_client/models/states_enum'
|
|
164
158
|
require 'pulp_container_client/models/status_response'
|
|
165
|
-
require 'pulp_container_client/models/storage_class_enum'
|
|
166
159
|
require 'pulp_container_client/models/storage_response'
|
|
167
160
|
require 'pulp_container_client/models/tag_copy'
|
|
168
161
|
require 'pulp_container_client/models/tag_image'
|
|
@@ -177,8 +170,6 @@ require 'pulp_container_client/models/upload_chunk_response'
|
|
|
177
170
|
require 'pulp_container_client/models/upload_commit'
|
|
178
171
|
require 'pulp_container_client/models/upload_detail_response'
|
|
179
172
|
require 'pulp_container_client/models/upload_response'
|
|
180
|
-
require 'pulp_container_client/models/upstream_pulp'
|
|
181
|
-
require 'pulp_container_client/models/upstream_pulp_response'
|
|
182
173
|
require 'pulp_container_client/models/user'
|
|
183
174
|
require 'pulp_container_client/models/user_group'
|
|
184
175
|
require 'pulp_container_client/models/user_group_response'
|
|
@@ -204,7 +195,6 @@ require 'pulp_container_client/api/distributions_artifacts_api'
|
|
|
204
195
|
require 'pulp_container_client/api/distributions_container_api'
|
|
205
196
|
require 'pulp_container_client/api/docs_api_json_api'
|
|
206
197
|
require 'pulp_container_client/api/docs_api_yaml_api'
|
|
207
|
-
require 'pulp_container_client/api/domains_api'
|
|
208
198
|
require 'pulp_container_client/api/exporters_filesystem_api'
|
|
209
199
|
require 'pulp_container_client/api/exporters_filesystem_exports_api'
|
|
210
200
|
require 'pulp_container_client/api/exporters_pulp_api'
|
|
@@ -237,7 +227,6 @@ require 'pulp_container_client/api/task_schedules_api'
|
|
|
237
227
|
require 'pulp_container_client/api/tasks_api'
|
|
238
228
|
require 'pulp_container_client/api/token_api'
|
|
239
229
|
require 'pulp_container_client/api/uploads_api'
|
|
240
|
-
require 'pulp_container_client/api/upstream_pulps_api'
|
|
241
230
|
require 'pulp_container_client/api/users_api'
|
|
242
231
|
require 'pulp_container_client/api/users_roles_api'
|
|
243
232
|
require 'pulp_container_client/api/workers_api'
|
|
@@ -32,16 +32,14 @@ describe 'AccessPoliciesApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
35
|
+
# unit tests for access_policies_list
|
|
36
36
|
# List access policys
|
|
37
37
|
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Boolean] :customized Filter results where customized matches value
|
|
40
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
41
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
42
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
43
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
44
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
42
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
45
43
|
# @option opts [String] :viewset_name Filter results where viewset_name matches value
|
|
46
44
|
# @option opts [String] :viewset_name__contains Filter results where viewset_name contains value
|
|
47
45
|
# @option opts [String] :viewset_name__icontains Filter results where viewset_name contains value
|
|
@@ -50,26 +48,26 @@ describe 'AccessPoliciesApi' do
|
|
|
50
48
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
51
49
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
52
50
|
# @return [PaginatedAccessPolicyResponseList]
|
|
53
|
-
describe '
|
|
51
|
+
describe 'access_policies_list test' do
|
|
54
52
|
it 'should work' do
|
|
55
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
54
|
end
|
|
57
55
|
end
|
|
58
56
|
|
|
59
|
-
# unit tests for
|
|
57
|
+
# unit tests for access_policies_partial_update
|
|
60
58
|
# Update an access policy
|
|
61
59
|
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
62
60
|
# @param access_policy_href
|
|
63
61
|
# @param patched_access_policy
|
|
64
62
|
# @param [Hash] opts the optional parameters
|
|
65
63
|
# @return [AccessPolicyResponse]
|
|
66
|
-
describe '
|
|
64
|
+
describe 'access_policies_partial_update test' do
|
|
67
65
|
it 'should work' do
|
|
68
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
69
67
|
end
|
|
70
68
|
end
|
|
71
69
|
|
|
72
|
-
# unit tests for
|
|
70
|
+
# unit tests for access_policies_read
|
|
73
71
|
# Inspect an access policy
|
|
74
72
|
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
75
73
|
# @param access_policy_href
|
|
@@ -77,31 +75,31 @@ describe 'AccessPoliciesApi' do
|
|
|
77
75
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
78
76
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
79
77
|
# @return [AccessPolicyResponse]
|
|
80
|
-
describe '
|
|
78
|
+
describe 'access_policies_read test' do
|
|
81
79
|
it 'should work' do
|
|
82
80
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
83
81
|
end
|
|
84
82
|
end
|
|
85
83
|
|
|
86
|
-
# unit tests for
|
|
84
|
+
# unit tests for access_policies_reset
|
|
87
85
|
# Reset the access policy to its uncustomized default value.
|
|
88
86
|
# @param access_policy_href
|
|
89
87
|
# @param [Hash] opts the optional parameters
|
|
90
88
|
# @return [AccessPolicyResponse]
|
|
91
|
-
describe '
|
|
89
|
+
describe 'access_policies_reset test' do
|
|
92
90
|
it 'should work' do
|
|
93
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
94
92
|
end
|
|
95
93
|
end
|
|
96
94
|
|
|
97
|
-
# unit tests for
|
|
95
|
+
# unit tests for access_policies_update
|
|
98
96
|
# Update an access policy
|
|
99
97
|
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
|
100
98
|
# @param access_policy_href
|
|
101
99
|
# @param access_policy
|
|
102
100
|
# @param [Hash] opts the optional parameters
|
|
103
101
|
# @return [AccessPolicyResponse]
|
|
104
|
-
describe '
|
|
102
|
+
describe 'access_policies_update test' do
|
|
105
103
|
it 'should work' do
|
|
106
104
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
107
105
|
end
|
|
@@ -32,7 +32,7 @@ describe 'ArtifactsApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
35
|
+
# unit tests for artifacts_create
|
|
36
36
|
# Create an artifact
|
|
37
37
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
38
38
|
# @param file The stored file.
|
|
@@ -45,34 +45,32 @@ describe 'ArtifactsApi' do
|
|
|
45
45
|
# @option opts [String] :sha384 The SHA-384 checksum of the file if available.
|
|
46
46
|
# @option opts [String] :sha512 The SHA-512 checksum of the file if available.
|
|
47
47
|
# @return [ArtifactResponse]
|
|
48
|
-
describe '
|
|
48
|
+
describe 'artifacts_create test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
# unit tests for
|
|
54
|
+
# unit tests for artifacts_delete
|
|
55
55
|
# Delete an artifact
|
|
56
56
|
# Remove Artifact only if it is not associated with any Content.
|
|
57
57
|
# @param artifact_href
|
|
58
58
|
# @param [Hash] opts the optional parameters
|
|
59
59
|
# @return [nil]
|
|
60
|
-
describe '
|
|
60
|
+
describe 'artifacts_delete test' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
# unit tests for
|
|
66
|
+
# unit tests for artifacts_list
|
|
67
67
|
# List artifacts
|
|
68
68
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
69
69
|
# @param [Hash] opts the optional parameters
|
|
70
70
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
71
71
|
# @option opts [String] :md5 Filter results where md5 matches value
|
|
72
72
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
73
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
74
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
75
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
73
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
76
74
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
77
75
|
# @option opts [String] :sha1 Filter results where sha1 matches value
|
|
78
76
|
# @option opts [String] :sha224 Filter results where sha224 matches value
|
|
@@ -82,13 +80,13 @@ describe 'ArtifactsApi' do
|
|
|
82
80
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
83
81
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
84
82
|
# @return [PaginatedArtifactResponseList]
|
|
85
|
-
describe '
|
|
83
|
+
describe 'artifacts_list test' do
|
|
86
84
|
it 'should work' do
|
|
87
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
88
86
|
end
|
|
89
87
|
end
|
|
90
88
|
|
|
91
|
-
# unit tests for
|
|
89
|
+
# unit tests for artifacts_read
|
|
92
90
|
# Inspect an artifact
|
|
93
91
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
94
92
|
# @param artifact_href
|
|
@@ -96,7 +94,7 @@ describe 'ArtifactsApi' do
|
|
|
96
94
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
97
95
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
98
96
|
# @return [ArtifactResponse]
|
|
99
|
-
describe '
|
|
97
|
+
describe 'artifacts_read test' do
|
|
100
98
|
it 'should work' do
|
|
101
99
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
102
100
|
end
|
|
@@ -32,23 +32,20 @@ describe 'ContentApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
35
|
+
# unit tests for content_list
|
|
36
36
|
# List content
|
|
37
37
|
# Endpoint to list all content.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
40
40
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
41
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
42
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
43
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
44
|
-
# @option opts [Array<String>] :pulp_type__in Pulp type is in * `core.publishedmetadata` - core.publishedmetadata * `container.blob` - container.blob * `container.manifest` - container.manifest * `container.tag` - container.tag * `container.signature` - container.signature
|
|
41
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
45
42
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
46
43
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
47
44
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
48
45
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
49
46
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
50
47
|
# @return [PaginatedMultipleArtifactContentResponseList]
|
|
51
|
-
describe '
|
|
48
|
+
describe 'content_list test' do
|
|
52
49
|
it 'should work' do
|
|
53
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
51
|
end
|
|
@@ -32,7 +32,7 @@ describe 'ContentBlobsApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
# unit tests for
|
|
35
|
+
# unit tests for content_container_blobs_list
|
|
36
36
|
# List blobs
|
|
37
37
|
# ViewSet for Blobs.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
@@ -40,22 +40,20 @@ describe 'ContentBlobsApi' do
|
|
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
42
42
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
43
|
-
# @option opts [Array<String>] :ordering Ordering
|
|
44
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
45
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
43
|
+
# @option opts [Array<String>] :ordering Ordering
|
|
46
44
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
47
45
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
48
46
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
49
47
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
50
48
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
51
49
|
# @return [PaginatedcontainerBlobResponseList]
|
|
52
|
-
describe '
|
|
50
|
+
describe 'content_container_blobs_list test' do
|
|
53
51
|
it 'should work' do
|
|
54
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
53
|
end
|
|
56
54
|
end
|
|
57
55
|
|
|
58
|
-
# unit tests for
|
|
56
|
+
# unit tests for content_container_blobs_read
|
|
59
57
|
# Inspect a blob
|
|
60
58
|
# ViewSet for Blobs.
|
|
61
59
|
# @param container_blob_href
|
|
@@ -63,7 +61,7 @@ describe 'ContentBlobsApi' do
|
|
|
63
61
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
64
62
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
65
63
|
# @return [ContainerBlobResponse]
|
|
66
|
-
describe '
|
|
64
|
+
describe 'content_container_blobs_read test' do
|
|
67
65
|
it 'should work' do
|
|
68
66
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
69
67
|
end
|