pulp_container_client 2.14.14 → 2.14.16
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -29,9 +29,6 @@ module PulpContainerClient
|
|
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
|
@@ -85,10 +85,6 @@ module PulpContainerClient
|
|
85
85
|
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
86
86
|
end
|
87
87
|
|
88
|
-
if @role.to_s.length < 1
|
89
|
-
invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
|
90
|
-
end
|
91
|
-
|
92
88
|
invalid_properties
|
93
89
|
end
|
94
90
|
|
@@ -96,24 +92,9 @@ module PulpContainerClient
|
|
96
92
|
# @return true if the model is valid
|
97
93
|
def valid?
|
98
94
|
return false if @role.nil?
|
99
|
-
return false if @role.to_s.length < 1
|
100
95
|
true
|
101
96
|
end
|
102
97
|
|
103
|
-
# Custom attribute writer method with validation
|
104
|
-
# @param [Object] role Value to be assigned
|
105
|
-
def role=(role)
|
106
|
-
if role.nil?
|
107
|
-
fail ArgumentError, 'role cannot be nil'
|
108
|
-
end
|
109
|
-
|
110
|
-
if role.to_s.length < 1
|
111
|
-
fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
|
112
|
-
end
|
113
|
-
|
114
|
-
@role = role
|
115
|
-
end
|
116
|
-
|
117
98
|
# Checks equality by comparing each attribute.
|
118
99
|
# @param [Object] Object to be compared
|
119
100
|
def ==(o)
|
@@ -21,7 +21,7 @@ module PulpContainerClient
|
|
21
21
|
# File system location to export to.
|
22
22
|
attr_accessor :path
|
23
23
|
|
24
|
-
# Method of exporting
|
24
|
+
# Method of exporting
|
25
25
|
attr_accessor :method
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -15,18 +15,18 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
+
attr_accessor :base_path
|
20
|
+
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
+
attr_accessor :name
|
23
|
+
|
18
24
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
25
|
attr_accessor :content_guard
|
20
26
|
|
21
27
|
# The latest RepositoryVersion for this Repository will be served.
|
22
28
|
attr_accessor :repository
|
23
29
|
|
24
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
25
|
-
attr_accessor :name
|
26
|
-
|
27
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
28
|
-
attr_accessor :base_path
|
29
|
-
|
30
30
|
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
@@ -41,10 +41,10 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
+
:'base_path' => :'base_path',
|
45
|
+
:'name' => :'name',
|
44
46
|
:'content_guard' => :'content_guard',
|
45
47
|
:'repository' => :'repository',
|
46
|
-
:'name' => :'name',
|
47
|
-
:'base_path' => :'base_path',
|
48
48
|
:'pulp_labels' => :'pulp_labels',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
@@ -55,10 +55,10 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
+
:'base_path' => :'String',
|
59
|
+
:'name' => :'String',
|
58
60
|
:'content_guard' => :'String',
|
59
61
|
:'repository' => :'String',
|
60
|
-
:'name' => :'String',
|
61
|
-
:'base_path' => :'String',
|
62
62
|
:'pulp_labels' => :'Hash<String, String>',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
@@ -90,20 +90,20 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'repository')
|
98
|
-
self.repository = attributes[:'repository']
|
93
|
+
if attributes.key?(:'base_path')
|
94
|
+
self.base_path = attributes[:'base_path']
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'name')
|
102
98
|
self.name = attributes[:'name']
|
103
99
|
end
|
104
100
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
101
|
+
if attributes.key?(:'content_guard')
|
102
|
+
self.content_guard = attributes[:'content_guard']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'repository')
|
106
|
+
self.repository = attributes[:'repository']
|
107
107
|
end
|
108
108
|
|
109
109
|
if attributes.key?(:'pulp_labels')
|
@@ -129,14 +129,14 @@ module PulpContainerClient
|
|
129
129
|
# @return Array for valid properties with the reasons
|
130
130
|
def list_invalid_properties
|
131
131
|
invalid_properties = Array.new
|
132
|
-
if !@name.nil? && @name.to_s.length < 1
|
133
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
134
|
-
end
|
135
|
-
|
136
132
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
137
133
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
138
134
|
end
|
139
135
|
|
136
|
+
if !@name.nil? && @name.to_s.length < 1
|
137
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
138
|
+
end
|
139
|
+
|
140
140
|
if !@description.nil? && @description.to_s.length < 1
|
141
141
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
142
142
|
end
|
@@ -147,22 +147,12 @@ module PulpContainerClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
151
150
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
151
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
152
152
|
return false if !@description.nil? && @description.to_s.length < 1
|
153
153
|
true
|
154
154
|
end
|
155
155
|
|
156
|
-
# Custom attribute writer method with validation
|
157
|
-
# @param [Object] name Value to be assigned
|
158
|
-
def name=(name)
|
159
|
-
if !name.nil? && name.to_s.length < 1
|
160
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
161
|
-
end
|
162
|
-
|
163
|
-
@name = name
|
164
|
-
end
|
165
|
-
|
166
156
|
# Custom attribute writer method with validation
|
167
157
|
# @param [Object] base_path Value to be assigned
|
168
158
|
def base_path=(base_path)
|
@@ -173,6 +163,16 @@ module PulpContainerClient
|
|
173
163
|
@base_path = base_path
|
174
164
|
end
|
175
165
|
|
166
|
+
# Custom attribute writer method with validation
|
167
|
+
# @param [Object] name Value to be assigned
|
168
|
+
def name=(name)
|
169
|
+
if !name.nil? && name.to_s.length < 1
|
170
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
171
|
+
end
|
172
|
+
|
173
|
+
@name = name
|
174
|
+
end
|
175
|
+
|
176
176
|
# Custom attribute writer method with validation
|
177
177
|
# @param [Object] description Value to be assigned
|
178
178
|
def description=(description)
|
@@ -188,10 +188,10 @@ module PulpContainerClient
|
|
188
188
|
def ==(o)
|
189
189
|
return true if self.equal?(o)
|
190
190
|
self.class == o.class &&
|
191
|
+
base_path == o.base_path &&
|
192
|
+
name == o.name &&
|
191
193
|
content_guard == o.content_guard &&
|
192
194
|
repository == o.repository &&
|
193
|
-
name == o.name &&
|
194
|
-
base_path == o.base_path &&
|
195
195
|
pulp_labels == o.pulp_labels &&
|
196
196
|
repository_version == o.repository_version &&
|
197
197
|
private == o.private &&
|
@@ -207,7 +207,7 @@ module PulpContainerClient
|
|
207
207
|
# Calculates hash code according to all attributes.
|
208
208
|
# @return [Integer] Hash code
|
209
209
|
def hash
|
210
|
-
[
|
210
|
+
[base_path, name, content_guard, repository, pulp_labels, repository_version, private, description].hash
|
211
211
|
end
|
212
212
|
|
213
213
|
# Builds the object from hash
|
@@ -15,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
+
# 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.
|
19
|
+
attr_accessor :retain_repo_versions
|
20
|
+
|
21
|
+
# A unique name for this repository.
|
22
|
+
attr_accessor :name
|
23
|
+
|
18
24
|
# An optional description.
|
19
25
|
attr_accessor :description
|
20
26
|
|
21
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
22
|
-
attr_accessor :retain_repo_versions
|
23
|
-
|
24
27
|
# A reference to an associated signing service.
|
25
28
|
attr_accessor :manifest_signing_service
|
26
29
|
|
27
|
-
# A unique name for this repository.
|
28
|
-
attr_accessor :name
|
29
|
-
|
30
30
|
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'description' => :'description',
|
36
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
37
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
38
36
|
:'name' => :'name',
|
37
|
+
:'description' => :'description',
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
39
39
|
:'pulp_labels' => :'pulp_labels'
|
40
40
|
}
|
41
41
|
end
|
@@ -43,10 +43,10 @@ module PulpContainerClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'description' => :'String',
|
47
46
|
:'retain_repo_versions' => :'Integer',
|
48
|
-
:'manifest_signing_service' => :'String',
|
49
47
|
:'name' => :'String',
|
48
|
+
:'description' => :'String',
|
49
|
+
:'manifest_signing_service' => :'String',
|
50
50
|
:'pulp_labels' => :'Hash<String, String>'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,8 +54,8 @@ module PulpContainerClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'description',
|
58
57
|
:'retain_repo_versions',
|
58
|
+
:'description',
|
59
59
|
:'manifest_signing_service',
|
60
60
|
])
|
61
61
|
end
|
@@ -75,22 +75,22 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'description')
|
79
|
-
self.description = attributes[:'description']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'retain_repo_versions')
|
83
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.key?(:'manifest_signing_service')
|
87
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
88
|
-
end
|
89
|
-
|
90
82
|
if attributes.key?(:'name')
|
91
83
|
self.name = attributes[:'name']
|
92
84
|
end
|
93
85
|
|
86
|
+
if attributes.key?(:'description')
|
87
|
+
self.description = attributes[:'description']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'manifest_signing_service')
|
91
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
92
|
+
end
|
93
|
+
|
94
94
|
if attributes.key?(:'pulp_labels')
|
95
95
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
96
|
self.pulp_labels = value
|
@@ -102,10 +102,6 @@ module PulpContainerClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@description.nil? && @description.to_s.length < 1
|
106
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
107
|
-
end
|
108
|
-
|
109
105
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
110
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
107
|
end
|
@@ -114,28 +110,22 @@ module PulpContainerClient
|
|
114
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
111
|
end
|
116
112
|
|
113
|
+
if !@description.nil? && @description.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
124
123
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
125
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
-
# Custom attribute writer method with validation
|
130
|
-
# @param [Object] description Value to be assigned
|
131
|
-
def description=(description)
|
132
|
-
if !description.nil? && description.to_s.length < 1
|
133
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
134
|
-
end
|
135
|
-
|
136
|
-
@description = description
|
137
|
-
end
|
138
|
-
|
139
129
|
# Custom attribute writer method with validation
|
140
130
|
# @param [Object] retain_repo_versions Value to be assigned
|
141
131
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -156,15 +146,25 @@ module PulpContainerClient
|
|
156
146
|
@name = name
|
157
147
|
end
|
158
148
|
|
149
|
+
# Custom attribute writer method with validation
|
150
|
+
# @param [Object] description Value to be assigned
|
151
|
+
def description=(description)
|
152
|
+
if !description.nil? && description.to_s.length < 1
|
153
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
154
|
+
end
|
155
|
+
|
156
|
+
@description = description
|
157
|
+
end
|
158
|
+
|
159
159
|
# Checks equality by comparing each attribute.
|
160
160
|
# @param [Object] Object to be compared
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
description == o.description &&
|
165
164
|
retain_repo_versions == o.retain_repo_versions &&
|
166
|
-
manifest_signing_service == o.manifest_signing_service &&
|
167
165
|
name == o.name &&
|
166
|
+
description == o.description &&
|
167
|
+
manifest_signing_service == o.manifest_signing_service &&
|
168
168
|
pulp_labels == o.pulp_labels
|
169
169
|
end
|
170
170
|
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[
|
180
|
+
[retain_repo_versions, name, description, manifest_signing_service, pulp_labels].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -56,7 +56,7 @@ module PulpContainerClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
59
|
+
# immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -346,20 +346,20 @@ module PulpContainerClient
|
|
346
346
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
347
347
|
end
|
348
348
|
|
349
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
350
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
349
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
350
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
351
351
|
end
|
352
352
|
|
353
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
354
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
353
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
354
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
357
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
358
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
361
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
362
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
363
363
|
end
|
364
364
|
|
365
365
|
if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
@@ -387,10 +387,10 @@ module PulpContainerClient
|
|
387
387
|
return false if !@username.nil? && @username.to_s.length < 1
|
388
388
|
return false if !@password.nil? && @password.to_s.length < 1
|
389
389
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
390
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
391
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
392
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
393
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
390
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
391
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
392
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
393
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
394
394
|
return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
395
395
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
396
396
|
true
|
@@ -509,8 +509,8 @@ module PulpContainerClient
|
|
509
509
|
# Custom attribute writer method with validation
|
510
510
|
# @param [Object] total_timeout Value to be assigned
|
511
511
|
def total_timeout=(total_timeout)
|
512
|
-
if !total_timeout.nil? && total_timeout < 0
|
513
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
512
|
+
if !total_timeout.nil? && total_timeout < 0
|
513
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
514
514
|
end
|
515
515
|
|
516
516
|
@total_timeout = total_timeout
|
@@ -519,8 +519,8 @@ module PulpContainerClient
|
|
519
519
|
# Custom attribute writer method with validation
|
520
520
|
# @param [Object] connect_timeout Value to be assigned
|
521
521
|
def connect_timeout=(connect_timeout)
|
522
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
523
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
522
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
523
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
524
524
|
end
|
525
525
|
|
526
526
|
@connect_timeout = connect_timeout
|
@@ -529,8 +529,8 @@ module PulpContainerClient
|
|
529
529
|
# Custom attribute writer method with validation
|
530
530
|
# @param [Object] sock_connect_timeout Value to be assigned
|
531
531
|
def sock_connect_timeout=(sock_connect_timeout)
|
532
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
533
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
532
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
533
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
534
534
|
end
|
535
535
|
|
536
536
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -539,8 +539,8 @@ module PulpContainerClient
|
|
539
539
|
# Custom attribute writer method with validation
|
540
540
|
# @param [Object] sock_read_timeout Value to be assigned
|
541
541
|
def sock_read_timeout=(sock_read_timeout)
|
542
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
543
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
542
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
543
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
544
544
|
end
|
545
545
|
|
546
546
|
@sock_read_timeout = sock_read_timeout
|
@@ -23,7 +23,7 @@ module PulpContainerClient
|
|
23
23
|
# An optional description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
26
|
+
# 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.
|
27
27
|
attr_accessor :retain_repo_versions
|
28
28
|
|
29
29
|
# An optional remote to use by default when syncing.
|
@@ -49,7 +49,7 @@ module PulpContainerClient
|
|
49
49
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
50
|
attr_accessor :max_retries
|
51
51
|
|
52
|
-
# The policy to use when downloading content.
|
52
|
+
# The policy to use when downloading content.
|
53
53
|
attr_accessor :policy
|
54
54
|
|
55
55
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -259,20 +259,20 @@ module PulpContainerClient
|
|
259
259
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
260
260
|
end
|
261
261
|
|
262
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
263
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
262
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
263
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
264
264
|
end
|
265
265
|
|
266
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
267
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
266
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
267
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
268
268
|
end
|
269
269
|
|
270
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
271
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
270
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
271
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
272
272
|
end
|
273
273
|
|
274
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
275
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
274
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
275
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
276
276
|
end
|
277
277
|
|
278
278
|
invalid_properties
|
@@ -284,10 +284,10 @@ module PulpContainerClient
|
|
284
284
|
return false if @name.nil?
|
285
285
|
return false if @url.nil?
|
286
286
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
287
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
288
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
289
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
290
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
287
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
288
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
289
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
290
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
291
291
|
true
|
292
292
|
end
|
293
293
|
|
@@ -304,8 +304,8 @@ module PulpContainerClient
|
|
304
304
|
# Custom attribute writer method with validation
|
305
305
|
# @param [Object] total_timeout Value to be assigned
|
306
306
|
def total_timeout=(total_timeout)
|
307
|
-
if !total_timeout.nil? && total_timeout < 0
|
308
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
307
|
+
if !total_timeout.nil? && total_timeout < 0
|
308
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
309
309
|
end
|
310
310
|
|
311
311
|
@total_timeout = total_timeout
|
@@ -314,8 +314,8 @@ module PulpContainerClient
|
|
314
314
|
# Custom attribute writer method with validation
|
315
315
|
# @param [Object] connect_timeout Value to be assigned
|
316
316
|
def connect_timeout=(connect_timeout)
|
317
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
318
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
317
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
318
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
319
319
|
end
|
320
320
|
|
321
321
|
@connect_timeout = connect_timeout
|
@@ -324,8 +324,8 @@ module PulpContainerClient
|
|
324
324
|
# Custom attribute writer method with validation
|
325
325
|
# @param [Object] sock_connect_timeout Value to be assigned
|
326
326
|
def sock_connect_timeout=(sock_connect_timeout)
|
327
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
328
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
327
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
328
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
329
329
|
end
|
330
330
|
|
331
331
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -334,8 +334,8 @@ module PulpContainerClient
|
|
334
334
|
# Custom attribute writer method with validation
|
335
335
|
# @param [Object] sock_read_timeout Value to be assigned
|
336
336
|
def sock_read_timeout=(sock_read_timeout)
|
337
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
338
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
337
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
338
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
339
339
|
end
|
340
340
|
|
341
341
|
@sock_read_timeout = sock_read_timeout
|
@@ -68,12 +68,22 @@ module PulpContainerClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
+
if @name.nil?
|
72
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @is_set.nil?
|
76
|
+
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
+
end
|
78
|
+
|
71
79
|
invalid_properties
|
72
80
|
end
|
73
81
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
75
83
|
# @return true if the model is valid
|
76
84
|
def valid?
|
85
|
+
return false if @name.nil?
|
86
|
+
return false if @is_set.nil?
|
77
87
|
true
|
78
88
|
end
|
79
89
|
|