pulp_ansible_client 0.2.0b15 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +88 -61
- data/docs/AnsibleAnsibleDistribution.md +2 -8
- data/docs/AnsibleAnsibleDistributionResponse.md +31 -0
- data/docs/AnsibleAnsibleRepository.md +4 -10
- data/docs/AnsibleAnsibleRepositoryResponse.md +29 -0
- data/docs/AnsibleCollectionRemote.md +4 -10
- data/docs/AnsibleCollectionRemoteResponse.md +49 -0
- data/docs/{AnsibleCollection.md → AnsibleCollectionResponse.md} +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -25
- data/docs/AnsibleCollectionVersionResponse.md +67 -0
- data/docs/AnsibleCollectionsApi.md +47 -47
- data/docs/AnsibleRole.md +1 -5
- data/docs/AnsibleRoleRemote.md +37 -0
- data/docs/{AnsibleAnsibleRemote.md → AnsibleRoleRemoteResponse.md} +5 -5
- data/docs/AnsibleRoleResponse.md +27 -0
- data/docs/{AnsibleTag.md → AnsibleTagResponse.md} +2 -2
- data/docs/CertificationEnum.md +16 -0
- data/docs/Collection.md +2 -12
- data/docs/CollectionImportApi.md +70 -0
- data/docs/{CollectionImportDetail.md → CollectionImportDetailResponse.md} +2 -2
- data/docs/CollectionMetadata.md +1 -19
- data/docs/CollectionMetadataResponse.md +35 -0
- data/docs/CollectionNamespaceResponse.md +17 -0
- data/docs/CollectionOneShot.md +25 -0
- data/docs/CollectionRef.md +1 -3
- data/docs/CollectionRefResponse.md +21 -0
- data/docs/CollectionResponse.md +31 -0
- data/docs/CollectionVersion.md +3 -19
- data/docs/CollectionVersionResponse.md +37 -0
- data/docs/ContentCollectionVersionsApi.md +42 -42
- data/docs/ContentRolesApi.md +32 -32
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsAnsibleApi.md +108 -60
- data/docs/GalaxyCollection.md +1 -5
- data/docs/GalaxyCollectionListApi.md +65 -0
- data/docs/GalaxyCollectionResponse.md +23 -0
- data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionResponse.md} +7 -7
- data/docs/GalaxyDetailApi.md +61 -0
- data/docs/{GalaxyRole.md → GalaxyRoleResponse.md} +3 -3
- data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionResponse.md} +3 -3
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +3 -3
- data/docs/InlineResponse20011.md +3 -3
- data/docs/InlineResponse20012.md +3 -3
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/PatchedansibleAnsibleDistribution.md +25 -0
- data/docs/PatchedansibleAnsibleRepository.md +21 -0
- data/docs/PatchedansibleCollectionRemote.md +43 -0
- data/docs/PatchedansibleRoleRemote.md +37 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PulpAnsibleApiApi.md +6 -12
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +37 -108
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +17 -22
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +1 -69
- data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +63 -0
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +172 -0
- data/docs/PulpAnsibleTagsApi.md +4 -4
- data/docs/RemotesCollectionApi.md +127 -67
- data/docs/RemotesRoleApi.md +428 -0
- data/docs/RepositoriesAnsibleApi.md +100 -76
- data/docs/RepositoriesAnsibleVersionsApi.md +96 -64
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/{PulpAnsibleGalaxyApiV1VersionsApi.md → RoleListApi.md} +9 -17
- data/docs/{Tag.md → TagResponse.md} +2 -2
- data/docs/{PulpAnsibleGalaxyApiRolesApi.md → V1RolesApi.md} +9 -15
- data/docs/V2CollectionsApi.md +112 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +74 -90
- data/lib/pulp_ansible_client/api/collection_import_api.rb +93 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +67 -63
- data/lib/pulp_ansible_client/api/content_roles_api.rb +48 -48
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +153 -90
- data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +94 -0
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +77 -122
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +38 -28
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -90
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +108 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +264 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +184 -103
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +532 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +151 -124
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +141 -96
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v1_versions_api.rb → role_list_api.rb} +15 -21
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_roles_api.rb → v1_roles_api.rb} +15 -15
- data/lib/pulp_ansible_client/api/v2_collections_api.rb +159 -0
- data/lib/pulp_ansible_client/api_client.rb +2 -2
- data/lib/pulp_ansible_client/api_error.rb +2 -2
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +8 -74
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +290 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +18 -78
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +271 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +7 -232
- data/lib/pulp_ansible_client/models/{ansible_ansible_remote.rb → ansible_collection_remote_response.rb} +66 -166
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_response.rb} +6 -43
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +55 -250
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +721 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +4 -79
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +339 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +368 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +274 -0
- data/lib/pulp_ansible_client/models/{ansible_tag.rb → ansible_tag_response.rb} +6 -20
- data/lib/pulp_ansible_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_ansible_client/models/certification_enum.rb +37 -0
- data/lib/pulp_ansible_client/models/collection.rb +7 -81
- data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_response.rb} +6 -24
- data/lib/pulp_ansible_client/models/collection_metadata.rb +4 -163
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +367 -0
- data/lib/pulp_ansible_client/models/collection_namespace.rb +3 -21
- data/lib/pulp_ansible_client/models/{tag.rb → collection_namespace_response.rb} +9 -18
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +253 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +7 -53
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +235 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +285 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +8 -143
- data/lib/pulp_ansible_client/models/collection_version_response.rb +307 -0
- data/lib/pulp_ansible_client/models/content_summary.rb +9 -15
- data/lib/pulp_ansible_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +7 -62
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +244 -0
- data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_response.rb} +11 -29
- data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_response.rb} +7 -44
- data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_response.rb} +7 -25
- data/lib/pulp_ansible_client/models/inline_response200.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20010.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20011.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20012.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20013.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20014.rb +237 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2009.rb +3 -13
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +251 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +229 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +392 -0
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +329 -0
- data/lib/pulp_ansible_client/models/policy_enum.rb +36 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_ansible_client/models/repository_version.rb +7 -43
- data/lib/pulp_ansible_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_ansible_client/models/tag_response.rb +207 -0
- data/lib/pulp_ansible_client/version.rb +3 -3
- data/lib/pulp_ansible_client.rb +41 -13
- data/pulp_ansible_client.gemspec +4 -4
- data/spec/api/ansible_collections_api_spec.rb +21 -21
- data/spec/api/collection_import_api_spec.rb +50 -0
- data/spec/api/content_collection_versions_api_spec.rb +18 -18
- data/spec/api/content_roles_api_spec.rb +13 -13
- data/spec/api/distributions_ansible_api_spec.rb +39 -18
- data/spec/api/galaxy_collection_list_api_spec.rb +50 -0
- data/spec/api/galaxy_detail_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_api_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +19 -29
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +10 -9
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +2 -17
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +90 -0
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -3
- data/spec/api/remotes_collection_api_spec.rb +49 -22
- data/spec/api/remotes_role_api_spec.rb +150 -0
- data/spec/api/repositories_ansible_api_spec.rb +31 -22
- data/spec/api/repositories_ansible_versions_api_spec.rb +40 -25
- data/spec/api/{pulp_ansible_galaxy_api_v1_versions_api_spec.rb → role_list_api_spec.rb} +9 -10
- data/spec/api/{pulp_ansible_galaxy_api_roles_api_spec.rb → v1_roles_api_spec.rb} +9 -9
- data/spec/api/v2_collections_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/ansible_ansible_distribution_response_spec.rb +83 -0
- data/spec/models/ansible_ansible_distribution_spec.rb +2 -20
- data/spec/models/ansible_ansible_repository_response_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_spec.rb +5 -23
- data/spec/models/ansible_collection_remote_response_spec.rb +137 -0
- data/spec/models/ansible_collection_remote_spec.rb +2 -24
- data/spec/models/{ansible_collection_spec.rb → ansible_collection_response_spec.rb} +8 -8
- data/spec/models/ansible_collection_version_response_spec.rb +191 -0
- data/spec/models/ansible_collection_version_spec.rb +2 -62
- data/spec/models/{ansible_ansible_remote_spec.rb → ansible_role_remote_response_spec.rb} +8 -12
- data/spec/models/ansible_role_remote_spec.rb +101 -0
- data/spec/models/ansible_role_response_spec.rb +71 -0
- data/spec/models/ansible_role_spec.rb +2 -14
- data/spec/models/{ansible_tag_spec.rb → ansible_tag_response_spec.rb} +8 -8
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/certification_enum_spec.rb +35 -0
- data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_response_spec.rb} +8 -8
- data/spec/models/collection_metadata_response_spec.rb +95 -0
- data/spec/models/collection_metadata_spec.rb +2 -56
- data/spec/models/collection_namespace_response_spec.rb +41 -0
- data/spec/models/collection_namespace_spec.rb +2 -2
- data/spec/models/collection_one_shot_spec.rb +65 -0
- data/spec/models/collection_ref_response_spec.rb +53 -0
- data/spec/models/collection_ref_spec.rb +2 -8
- data/spec/models/collection_response_spec.rb +83 -0
- data/spec/models/collection_spec.rb +2 -32
- data/spec/models/collection_version_response_spec.rb +101 -0
- data/spec/models/collection_version_spec.rb +2 -54
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/galaxy_collection_response_spec.rb +59 -0
- data/spec/models/galaxy_collection_spec.rb +2 -14
- data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_spec.rb → galaxy_role_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +2 -2
- data/spec/models/inline_response20011_spec.rb +2 -2
- data/spec/models/inline_response20012_spec.rb +2 -2
- data/spec/models/inline_response20013_spec.rb +2 -2
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +65 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +53 -0
- data/spec/models/patchedansible_collection_remote_spec.rb +119 -0
- data/spec/models/patchedansible_role_remote_spec.rb +101 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/{tag_spec.rb → tag_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +192 -80
- data/docs/RemotesAnsibleApi.md +0 -368
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +0 -451
- data/spec/api/remotes_ansible_api_spec.rb +0 -123
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,22 +13,17 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
+
# A serializer for a Collection.
|
16
17
|
class GalaxyCollection
|
17
18
|
attr_accessor :name
|
18
19
|
|
19
20
|
attr_accessor :namespace
|
20
21
|
|
21
|
-
attr_accessor :href
|
22
|
-
|
23
|
-
attr_accessor :versions_url
|
24
|
-
|
25
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
23
|
def self.attribute_map
|
27
24
|
{
|
28
25
|
:'name' => :'name',
|
29
|
-
:'namespace' => :'namespace'
|
30
|
-
:'href' => :'href',
|
31
|
-
:'versions_url' => :'versions_url'
|
26
|
+
:'namespace' => :'namespace'
|
32
27
|
}
|
33
28
|
end
|
34
29
|
|
@@ -36,9 +31,7 @@ module PulpAnsibleClient
|
|
36
31
|
def self.openapi_types
|
37
32
|
{
|
38
33
|
:'name' => :'String',
|
39
|
-
:'namespace' => :'String'
|
40
|
-
:'href' => :'String',
|
41
|
-
:'versions_url' => :'String'
|
34
|
+
:'namespace' => :'String'
|
42
35
|
}
|
43
36
|
end
|
44
37
|
|
@@ -70,14 +63,6 @@ module PulpAnsibleClient
|
|
70
63
|
if attributes.key?(:'namespace')
|
71
64
|
self.namespace = attributes[:'namespace']
|
72
65
|
end
|
73
|
-
|
74
|
-
if attributes.key?(:'href')
|
75
|
-
self.href = attributes[:'href']
|
76
|
-
end
|
77
|
-
|
78
|
-
if attributes.key?(:'versions_url')
|
79
|
-
self.versions_url = attributes[:'versions_url']
|
80
|
-
end
|
81
66
|
end
|
82
67
|
|
83
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -88,18 +73,10 @@ module PulpAnsibleClient
|
|
88
73
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
89
74
|
end
|
90
75
|
|
91
|
-
if @name.to_s.length < 1
|
92
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
93
|
-
end
|
94
|
-
|
95
76
|
if @namespace.nil?
|
96
77
|
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
97
78
|
end
|
98
79
|
|
99
|
-
if @namespace.to_s.length < 1
|
100
|
-
invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
|
101
|
-
end
|
102
|
-
|
103
80
|
invalid_properties
|
104
81
|
end
|
105
82
|
|
@@ -107,49 +84,17 @@ module PulpAnsibleClient
|
|
107
84
|
# @return true if the model is valid
|
108
85
|
def valid?
|
109
86
|
return false if @name.nil?
|
110
|
-
return false if @name.to_s.length < 1
|
111
87
|
return false if @namespace.nil?
|
112
|
-
return false if @namespace.to_s.length < 1
|
113
88
|
true
|
114
89
|
end
|
115
90
|
|
116
|
-
# Custom attribute writer method with validation
|
117
|
-
# @param [Object] name Value to be assigned
|
118
|
-
def name=(name)
|
119
|
-
if name.nil?
|
120
|
-
fail ArgumentError, 'name cannot be nil'
|
121
|
-
end
|
122
|
-
|
123
|
-
if name.to_s.length < 1
|
124
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
125
|
-
end
|
126
|
-
|
127
|
-
@name = name
|
128
|
-
end
|
129
|
-
|
130
|
-
# Custom attribute writer method with validation
|
131
|
-
# @param [Object] namespace Value to be assigned
|
132
|
-
def namespace=(namespace)
|
133
|
-
if namespace.nil?
|
134
|
-
fail ArgumentError, 'namespace cannot be nil'
|
135
|
-
end
|
136
|
-
|
137
|
-
if namespace.to_s.length < 1
|
138
|
-
fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
|
139
|
-
end
|
140
|
-
|
141
|
-
@namespace = namespace
|
142
|
-
end
|
143
|
-
|
144
91
|
# Checks equality by comparing each attribute.
|
145
92
|
# @param [Object] Object to be compared
|
146
93
|
def ==(o)
|
147
94
|
return true if self.equal?(o)
|
148
95
|
self.class == o.class &&
|
149
96
|
name == o.name &&
|
150
|
-
namespace == o.namespace
|
151
|
-
href == o.href &&
|
152
|
-
versions_url == o.versions_url
|
97
|
+
namespace == o.namespace
|
153
98
|
end
|
154
99
|
|
155
100
|
# @see the `==` method
|
@@ -161,7 +106,7 @@ module PulpAnsibleClient
|
|
161
106
|
# Calculates hash code according to all attributes.
|
162
107
|
# @return [Integer] Hash code
|
163
108
|
def hash
|
164
|
-
[name, namespace
|
109
|
+
[name, namespace].hash
|
165
110
|
end
|
166
111
|
|
167
112
|
# Builds the object from hash
|
@@ -0,0 +1,244 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
# A serializer for a Collection.
|
17
|
+
class GalaxyCollectionResponse
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
attr_accessor :namespace
|
21
|
+
|
22
|
+
attr_accessor :href
|
23
|
+
|
24
|
+
attr_accessor :versions_url
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'name' => :'name',
|
30
|
+
:'namespace' => :'namespace',
|
31
|
+
:'href' => :'href',
|
32
|
+
:'versions_url' => :'versions_url'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'name' => :'String',
|
40
|
+
:'namespace' => :'String',
|
41
|
+
:'href' => :'Object',
|
42
|
+
:'versions_url' => :'Object'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
])
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
if (!attributes.is_a?(Hash))
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollectionResponse` initialize method"
|
57
|
+
end
|
58
|
+
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyCollectionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'name')
|
68
|
+
self.name = attributes[:'name']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'namespace')
|
72
|
+
self.namespace = attributes[:'namespace']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'href')
|
76
|
+
self.href = attributes[:'href']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'versions_url')
|
80
|
+
self.versions_url = attributes[:'versions_url']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
+
# @return Array for valid properties with the reasons
|
86
|
+
def list_invalid_properties
|
87
|
+
invalid_properties = Array.new
|
88
|
+
if @name.nil?
|
89
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @namespace.nil?
|
93
|
+
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
return false if @name.nil?
|
103
|
+
return false if @namespace.nil?
|
104
|
+
true
|
105
|
+
end
|
106
|
+
|
107
|
+
# Checks equality by comparing each attribute.
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
name == o.name &&
|
113
|
+
namespace == o.namespace &&
|
114
|
+
href == o.href &&
|
115
|
+
versions_url == o.versions_url
|
116
|
+
end
|
117
|
+
|
118
|
+
# @see the `==` method
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def eql?(o)
|
121
|
+
self == o
|
122
|
+
end
|
123
|
+
|
124
|
+
# Calculates hash code according to all attributes.
|
125
|
+
# @return [Integer] Hash code
|
126
|
+
def hash
|
127
|
+
[name, namespace, href, versions_url].hash
|
128
|
+
end
|
129
|
+
|
130
|
+
# Builds the object from hash
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @return [Object] Returns the model itself
|
133
|
+
def self.build_from_hash(attributes)
|
134
|
+
new.build_from_hash(attributes)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def build_from_hash(attributes)
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
142
|
+
self.class.openapi_types.each_pair do |key, type|
|
143
|
+
if type =~ /\AArray<(.*)>/i
|
144
|
+
# check to ensure the input is an array given that the attribute
|
145
|
+
# is documented as an array but the input is not
|
146
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
148
|
+
end
|
149
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
150
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
151
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
152
|
+
end
|
153
|
+
|
154
|
+
self
|
155
|
+
end
|
156
|
+
|
157
|
+
# Deserializes the data based on type
|
158
|
+
# @param string type Data type
|
159
|
+
# @param string value Value to be deserialized
|
160
|
+
# @return [Object] Deserialized data
|
161
|
+
def _deserialize(type, value)
|
162
|
+
case type.to_sym
|
163
|
+
when :DateTime
|
164
|
+
DateTime.parse(value)
|
165
|
+
when :Date
|
166
|
+
Date.parse(value)
|
167
|
+
when :String
|
168
|
+
value.to_s
|
169
|
+
when :Integer
|
170
|
+
value.to_i
|
171
|
+
when :Float
|
172
|
+
value.to_f
|
173
|
+
when :Boolean
|
174
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
175
|
+
true
|
176
|
+
else
|
177
|
+
false
|
178
|
+
end
|
179
|
+
when :Object
|
180
|
+
# generic object (usually a Hash), return directly
|
181
|
+
value
|
182
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
183
|
+
inner_type = Regexp.last_match[:inner_type]
|
184
|
+
value.map { |v| _deserialize(inner_type, v) }
|
185
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
186
|
+
k_type = Regexp.last_match[:k_type]
|
187
|
+
v_type = Regexp.last_match[:v_type]
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each do |k, v|
|
190
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
else # model
|
194
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the string representation of the object
|
199
|
+
# @return [String] String presentation of the object
|
200
|
+
def to_s
|
201
|
+
to_hash.to_s
|
202
|
+
end
|
203
|
+
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_body
|
207
|
+
to_hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_hash
|
213
|
+
hash = {}
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
215
|
+
value = self.send(attr)
|
216
|
+
if value.nil?
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
219
|
+
end
|
220
|
+
|
221
|
+
hash[param] = _to_hash(value)
|
222
|
+
end
|
223
|
+
hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Outputs non-array value in the form of hash
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
228
|
+
# @param [Object] value Any valid value
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
230
|
+
def _to_hash(value)
|
231
|
+
if value.is_a?(Array)
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
233
|
+
elsif value.is_a?(Hash)
|
234
|
+
{}.tap do |hash|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
236
|
+
end
|
237
|
+
elsif value.respond_to? :to_hash
|
238
|
+
value.to_hash
|
239
|
+
else
|
240
|
+
value
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
|
16
|
+
# A serializer for a CollectionVersion.
|
17
|
+
class GalaxyCollectionVersionResponse
|
17
18
|
attr_accessor :version
|
18
19
|
|
19
20
|
attr_accessor :href
|
@@ -42,11 +43,11 @@ module PulpAnsibleClient
|
|
42
43
|
def self.openapi_types
|
43
44
|
{
|
44
45
|
:'version' => :'String',
|
45
|
-
:'href' => :'
|
46
|
-
:'namespace' => :'
|
47
|
-
:'collection' => :'
|
48
|
-
:'artifact' => :'
|
49
|
-
:'metadata' => :'
|
46
|
+
:'href' => :'Object',
|
47
|
+
:'namespace' => :'Object',
|
48
|
+
:'collection' => :'Object',
|
49
|
+
:'artifact' => :'Object',
|
50
|
+
:'metadata' => :'CollectionMetadataResponse'
|
50
51
|
}
|
51
52
|
end
|
52
53
|
|
@@ -60,13 +61,13 @@ module PulpAnsibleClient
|
|
60
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
62
|
def initialize(attributes = {})
|
62
63
|
if (!attributes.is_a?(Hash))
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollectionVersionResponse` initialize method"
|
64
65
|
end
|
65
66
|
|
66
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
69
|
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyCollectionVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
71
|
end
|
71
72
|
h[k.to_sym] = v
|
72
73
|
}
|
@@ -104,10 +105,6 @@ module PulpAnsibleClient
|
|
104
105
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
105
106
|
end
|
106
107
|
|
107
|
-
if @version.to_s.length < 1
|
108
|
-
invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
|
109
|
-
end
|
110
|
-
|
111
108
|
if @metadata.nil?
|
112
109
|
invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
|
113
110
|
end
|
@@ -119,25 +116,10 @@ module PulpAnsibleClient
|
|
119
116
|
# @return true if the model is valid
|
120
117
|
def valid?
|
121
118
|
return false if @version.nil?
|
122
|
-
return false if @version.to_s.length < 1
|
123
119
|
return false if @metadata.nil?
|
124
120
|
true
|
125
121
|
end
|
126
122
|
|
127
|
-
# Custom attribute writer method with validation
|
128
|
-
# @param [Object] version Value to be assigned
|
129
|
-
def version=(version)
|
130
|
-
if version.nil?
|
131
|
-
fail ArgumentError, 'version cannot be nil'
|
132
|
-
end
|
133
|
-
|
134
|
-
if version.to_s.length < 1
|
135
|
-
fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
|
136
|
-
end
|
137
|
-
|
138
|
-
@version = version
|
139
|
-
end
|
140
|
-
|
141
123
|
# Checks equality by comparing each attribute.
|
142
124
|
# @param [Object] Object to be compared
|
143
125
|
def ==(o)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
|
16
|
+
# A serializer for Galaxy's representation of Roles.
|
17
|
+
class GalaxyRoleResponse
|
17
18
|
attr_accessor :id
|
18
19
|
|
19
20
|
attr_accessor :name
|
@@ -32,7 +33,7 @@ module PulpAnsibleClient
|
|
32
33
|
# Attribute type mapping.
|
33
34
|
def self.openapi_types
|
34
35
|
{
|
35
|
-
:'id' => :'
|
36
|
+
:'id' => :'Object',
|
36
37
|
:'name' => :'String',
|
37
38
|
:'namespace' => :'String'
|
38
39
|
}
|
@@ -48,13 +49,13 @@ module PulpAnsibleClient
|
|
48
49
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
50
|
def initialize(attributes = {})
|
50
51
|
if (!attributes.is_a?(Hash))
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyRoleResponse` initialize method"
|
52
53
|
end
|
53
54
|
|
54
55
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
56
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
57
|
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyRoleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
59
|
end
|
59
60
|
h[k.to_sym] = v
|
60
61
|
}
|
@@ -80,18 +81,10 @@ module PulpAnsibleClient
|
|
80
81
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
81
82
|
end
|
82
83
|
|
83
|
-
if @name.to_s.length < 1
|
84
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
85
|
-
end
|
86
|
-
|
87
84
|
if @namespace.nil?
|
88
85
|
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
89
86
|
end
|
90
87
|
|
91
|
-
if @namespace.to_s.length < 1
|
92
|
-
invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
|
93
|
-
end
|
94
|
-
|
95
88
|
invalid_properties
|
96
89
|
end
|
97
90
|
|
@@ -99,40 +92,10 @@ module PulpAnsibleClient
|
|
99
92
|
# @return true if the model is valid
|
100
93
|
def valid?
|
101
94
|
return false if @name.nil?
|
102
|
-
return false if @name.to_s.length < 1
|
103
95
|
return false if @namespace.nil?
|
104
|
-
return false if @namespace.to_s.length < 1
|
105
96
|
true
|
106
97
|
end
|
107
98
|
|
108
|
-
# Custom attribute writer method with validation
|
109
|
-
# @param [Object] name Value to be assigned
|
110
|
-
def name=(name)
|
111
|
-
if name.nil?
|
112
|
-
fail ArgumentError, 'name cannot be nil'
|
113
|
-
end
|
114
|
-
|
115
|
-
if name.to_s.length < 1
|
116
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
117
|
-
end
|
118
|
-
|
119
|
-
@name = name
|
120
|
-
end
|
121
|
-
|
122
|
-
# Custom attribute writer method with validation
|
123
|
-
# @param [Object] namespace Value to be assigned
|
124
|
-
def namespace=(namespace)
|
125
|
-
if namespace.nil?
|
126
|
-
fail ArgumentError, 'namespace cannot be nil'
|
127
|
-
end
|
128
|
-
|
129
|
-
if namespace.to_s.length < 1
|
130
|
-
fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
|
131
|
-
end
|
132
|
-
|
133
|
-
@namespace = namespace
|
134
|
-
end
|
135
|
-
|
136
99
|
# Checks equality by comparing each attribute.
|
137
100
|
# @param [Object] Object to be compared
|
138
101
|
def ==(o)
|
data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_response.rb}
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
=begin
|
2
2
|
#Pulp 3 API
|
3
3
|
|
4
|
-
#
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
|
-
|
7
|
+
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.3
|
10
10
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
|
16
|
+
# A serializer for Galaxy's representation of Role versions.
|
17
|
+
class GalaxyRoleVersionResponse
|
17
18
|
attr_accessor :name
|
18
19
|
|
19
20
|
attr_accessor :source
|
@@ -30,7 +31,7 @@ module PulpAnsibleClient
|
|
30
31
|
def self.openapi_types
|
31
32
|
{
|
32
33
|
:'name' => :'String',
|
33
|
-
:'source' => :'
|
34
|
+
:'source' => :'Object'
|
34
35
|
}
|
35
36
|
end
|
36
37
|
|
@@ -44,13 +45,13 @@ module PulpAnsibleClient
|
|
44
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
46
|
def initialize(attributes = {})
|
46
47
|
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyRoleVersionResponse` initialize method"
|
48
49
|
end
|
49
50
|
|
50
51
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
52
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
53
|
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyRoleVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
55
|
end
|
55
56
|
h[k.to_sym] = v
|
56
57
|
}
|
@@ -72,10 +73,6 @@ module PulpAnsibleClient
|
|
72
73
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
74
|
end
|
74
75
|
|
75
|
-
if @name.to_s.length < 1
|
76
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
77
|
-
end
|
78
|
-
|
79
76
|
invalid_properties
|
80
77
|
end
|
81
78
|
|
@@ -83,24 +80,9 @@ module PulpAnsibleClient
|
|
83
80
|
# @return true if the model is valid
|
84
81
|
def valid?
|
85
82
|
return false if @name.nil?
|
86
|
-
return false if @name.to_s.length < 1
|
87
83
|
true
|
88
84
|
end
|
89
85
|
|
90
|
-
# Custom attribute writer method with validation
|
91
|
-
# @param [Object] name Value to be assigned
|
92
|
-
def name=(name)
|
93
|
-
if name.nil?
|
94
|
-
fail ArgumentError, 'name cannot be nil'
|
95
|
-
end
|
96
|
-
|
97
|
-
if name.to_s.length < 1
|
98
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
99
|
-
end
|
100
|
-
|
101
|
-
@name = name
|
102
|
-
end
|
103
|
-
|
104
86
|
# Checks equality by comparing each attribute.
|
105
87
|
# @param [Object] Object to be compared
|
106
88
|
def ==(o)
|