emass_client 3.12.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +159 -129
- data/lib/emass_client/api/artifacts_api.rb +40 -48
- data/lib/emass_client/api/artifacts_export_api.rb +5 -5
- data/lib/emass_client/api/cac_api.rb +10 -10
- data/lib/emass_client/api/cloud_resource_results_api.rb +10 -10
- data/lib/emass_client/api/cmmc_assessment_dashboards_api.rb +314 -0
- data/lib/emass_client/api/cmmc_assessments_api.rb +5 -5
- data/lib/emass_client/api/coast_guard_system_fisma_metrics_dashboard_api.rb +95 -0
- data/lib/emass_client/api/container_scan_results_api.rb +10 -10
- data/lib/emass_client/api/controls_api.rb +17 -17
- data/lib/emass_client/api/device_scan_results_api.rb +112 -0
- data/lib/emass_client/api/hardware_baseline_api.rb +313 -0
- data/lib/emass_client/api/milestones_api.rb +15 -15
- data/lib/emass_client/api/organization_migration_status_dashboard_api.rb +95 -0
- data/lib/emass_client/api/pac_api.rb +10 -10
- data/lib/emass_client/api/poam_api.rb +40 -40
- data/lib/emass_client/api/registration_api.rb +5 -5
- data/lib/emass_client/api/software_baseline_api.rb +313 -0
- data/lib/emass_client/api/static_code_scans_api.rb +9 -9
- data/lib/emass_client/api/system_application_findings_dashboards_api.rb +168 -0
- data/lib/emass_client/api/{enterprise_artifacts_dashboards_api.rb → system_artifacts_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_associations_dashboard_api.rb +8 -8
- data/lib/emass_client/api/system_atciatc_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_conmon_integration_status_dashboard_api.rb +8 -8
- data/lib/emass_client/api/system_connectivity_ccsd_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_critical_assets_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_device_findings_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_fisma_metrics_dashboard_api.rb +95 -0
- data/lib/emass_client/api/{hardware_baseline_dashboards_api.rb → system_hardware_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_migration_status_dashboard_api.rb +95 -0
- data/lib/emass_client/api/{enterprise_poam_dashboards_api.rb → system_poam_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/{ports_and_protocols_dashboards_api.rb → system_ports_protocols_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_privacy_dashboard_api.rb +95 -0
- data/lib/emass_client/api/system_questionnaire_dashboards_api.rb +168 -0
- data/lib/emass_client/api/system_roles_api.rb +8 -8
- data/lib/emass_client/api/{enterprise_security_controls_dashboards_api.rb → system_security_controls_dashboards_api.rb} +31 -31
- data/lib/emass_client/api/{enterprise_sensor_based_hardware_resources_dashboards_api.rb → system_sensor_hardware_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/{enterprise_sensor_based_software_resources_dashboards_api.rb → system_sensor_software_dashboards_api.rb} +29 -29
- data/lib/emass_client/api/{software_baseline_dashboards_api.rb → system_software_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_status_dashboard_api.rb +8 -8
- data/lib/emass_client/api/{enterprise_terms_conditions_dashboards_api.rb → system_terms_conditions_dashboards_api.rb} +21 -21
- data/lib/emass_client/api/system_vulnerability_dashboard_api.rb +95 -0
- data/lib/emass_client/api/{enterprise_vulnerability_dashboards_api.rb → system_workflows_dashboards_api.rb} +53 -53
- data/lib/emass_client/api/systems_api.rb +16 -22
- data/lib/emass_client/api/test_api.rb +5 -5
- data/lib/emass_client/api/test_results_api.rb +10 -10
- data/lib/emass_client/api/{users_dashboard_api.rb → user_system_assignments_dashboard_api.rb} +13 -13
- data/lib/emass_client/api/va_system_dashboards_api.rb +679 -0
- data/lib/emass_client/api/vaombfisma_dashboard_api.rb +95 -0
- data/lib/emass_client/api/workflow_definitions_api.rb +9 -9
- data/lib/emass_client/api/workflow_instances_api.rb +14 -14
- data/lib/emass_client/api_client.rb +44 -31
- data/lib/emass_client/api_error.rb +4 -4
- data/lib/emass_client/configuration.rb +42 -12
- data/lib/emass_client/models/{response201.rb → api_rule_failed.rb} +17 -11
- data/lib/emass_client/models/{response490_meta.rb → api_rule_failed_meta.rb} +16 -10
- data/lib/emass_client/models/artifacts_ids.rb +221 -0
- data/lib/emass_client/models/artifacts_optional_fields.rb +298 -0
- data/lib/emass_client/models/artifacts_read_only_fields.rb +255 -0
- data/lib/emass_client/models/artifacts_request_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/artifacts_required_fields.rb +252 -0
- data/lib/emass_client/models/artifacts_response_del.rb +14 -8
- data/lib/emass_client/models/artifacts_response_del_data_inner.rb +14 -8
- data/lib/emass_client/models/artifacts_response_get.rb +15 -9
- data/lib/emass_client/models/{artifacts_get.rb → artifacts_response_get_data_inner.rb} +78 -62
- data/lib/emass_client/models/artifacts_response_put_post.rb +14 -8
- data/lib/emass_client/models/artifacts_response_put_post_data_inner.rb +19 -13
- data/lib/emass_client/models/{response400.rb → bad_request.rb} +17 -11
- data/lib/emass_client/models/{response400_meta.rb → bad_request_meta.rb} +16 -10
- data/lib/emass_client/models/cac_get.rb +14 -8
- data/lib/emass_client/models/cac_response_get.rb +14 -8
- data/lib/emass_client/models/cac_response_post.rb +14 -8
- data/lib/emass_client/models/cac_response_post_data_inner.rb +19 -13
- data/lib/emass_client/models/cloud_resources_delete.rb +14 -8
- data/lib/emass_client/models/cloud_resources_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/cloud_resources_post_delete.rb +19 -13
- data/lib/emass_client/models/cloud_resources_response_post.rb +14 -8
- data/lib/emass_client/models/cmmc_get.rb +84 -123
- data/lib/emass_client/models/cmmc_response_get.rb +14 -8
- data/lib/emass_client/models/connectivity_ccsd.rb +14 -8
- data/lib/emass_client/models/container_resources_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/containers_resources_post_delete.rb +19 -13
- data/lib/emass_client/models/containers_response_delete.rb +14 -8
- data/lib/emass_client/models/containers_response_post.rb +14 -8
- data/lib/emass_client/models/controls_conditional_fields.rb +357 -0
- data/lib/emass_client/models/controls_ids.rb +221 -0
- data/lib/emass_client/models/controls_optional_fields.rb +471 -0
- data/lib/emass_client/models/controls_put.rb +19 -13
- data/lib/emass_client/models/controls_read_only_fields.rb +277 -0
- data/lib/emass_client/models/controls_required_fields.rb +295 -0
- data/lib/emass_client/models/controls_response_get.rb +15 -9
- data/lib/emass_client/models/{controls_get.rb → controls_response_get_data_inner.rb} +155 -138
- data/lib/emass_client/models/controls_response_put.rb +14 -8
- data/lib/emass_client/models/{response403.rb → created.rb} +17 -11
- data/lib/emass_client/models/{response201_meta.rb → created_meta.rb} +16 -10
- data/lib/emass_client/models/definition_transitions.rb +14 -8
- data/lib/emass_client/models/{poam_response_post.rb → device_scan_results_response_post.rb} +17 -11
- data/lib/emass_client/models/{success200_response_data_inner.rb → device_scan_results_response_post_data_inner.rb} +51 -16
- data/lib/emass_client/models/{response401.rb → forbidden.rb} +17 -11
- data/lib/emass_client/models/{response403_meta.rb → forbidden_meta.rb} +16 -10
- data/lib/emass_client/models/get_system_status_details200_response.rb +240 -0
- data/lib/emass_client/models/hw_baseline_conditional_fields.rb +244 -0
- data/lib/emass_client/models/hw_baseline_ids.rb +221 -0
- data/lib/emass_client/models/hw_baseline_optional_fields.rb +354 -0
- data/lib/emass_client/models/hw_baseline_read_only_fields.rb +222 -0
- data/lib/emass_client/models/hw_baseline_request_delete_body_inner.rb +220 -0
- data/lib/emass_client/models/hw_baseline_required_fields.rb +221 -0
- data/lib/emass_client/models/{poam_response_delete.rb → hw_baseline_response_delete.rb} +17 -11
- data/lib/emass_client/models/hw_baseline_response_delete_data_inner.rb +274 -0
- data/lib/emass_client/models/{dashboard_mock_response.rb → hw_baseline_response_get.rb} +18 -12
- data/lib/emass_client/models/hw_baseline_response_get_data_inner.rb +429 -0
- data/lib/emass_client/models/{success200_response.rb → hw_baseline_response_post_put.rb} +17 -11
- data/lib/emass_client/models/hw_baseline_response_post_put_data_inner.rb +274 -0
- data/lib/emass_client/models/{instances_transitions.rb → instance_transitions.rb} +16 -10
- data/lib/emass_client/models/internal_server_error.rb +220 -0
- data/lib/emass_client/models/{response500_meta.rb → internal_server_error_meta.rb} +16 -10
- data/lib/emass_client/models/length_required.rb +220 -0
- data/lib/emass_client/models/{response411_meta.rb → length_required_meta.rb} +16 -10
- data/lib/emass_client/models/method_not_allowed.rb +220 -0
- data/lib/emass_client/models/{response405_meta.rb → method_not_allowed_meta.rb} +16 -10
- data/lib/emass_client/models/milestone_response_delete.rb +14 -8
- data/lib/emass_client/models/milestone_response_get.rb +14 -8
- data/lib/emass_client/models/milestone_response_get_milestone.rb +14 -8
- data/lib/emass_client/models/milestone_response_post.rb +14 -8
- data/lib/emass_client/models/milestone_response_put.rb +14 -8
- data/lib/emass_client/models/milestones_fields.rb +222 -0
- data/lib/emass_client/models/milestones_get.rb +43 -15
- data/lib/emass_client/models/milestones_put_post_delete.rb +19 -13
- data/lib/emass_client/models/milestones_request_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/milestones_required_post.rb +23 -40
- data/lib/emass_client/models/milestones_required_post_milestones_inner.rb +265 -0
- data/lib/emass_client/models/milestones_required_put.rb +23 -57
- data/lib/emass_client/models/{ssps.rb → milestones_required_put_milestones_inner.rb} +89 -35
- data/lib/emass_client/models/{response404.rb → not_found.rb} +16 -10
- data/lib/emass_client/models/pac_get.rb +30 -13
- data/lib/emass_client/models/pac_post.rb +19 -13
- data/lib/emass_client/models/pac_response_get.rb +14 -8
- data/lib/emass_client/models/pac_response_post.rb +14 -8
- data/lib/emass_client/models/{dashboard_mock_response_pagination.rb → pagination.rb} +35 -29
- data/lib/emass_client/models/poam_conditional_fields.rb +402 -0
- data/lib/emass_client/models/poam_ids.rb +241 -0
- data/lib/emass_client/models/poam_optional_fields.rb +409 -0
- data/lib/emass_client/models/poam_post_put_del.rb +19 -13
- data/lib/emass_client/models/poam_read_only_fields.rb +332 -0
- data/lib/emass_client/models/poam_request_delete_body_inner.rb +14 -8
- data/lib/emass_client/models/poam_required_fields.rb +305 -0
- data/lib/emass_client/models/poam_response_get_poams.rb +15 -9
- data/lib/emass_client/models/poam_response_get_poams_data.rb +824 -0
- data/lib/emass_client/models/poam_response_get_systems.rb +15 -9
- data/lib/emass_client/models/{poam_get.rb → poam_response_get_systems_data_inner.rb} +325 -365
- data/lib/emass_client/models/{poam_response_put.rb → poam_response_post_put_delete.rb} +16 -10
- data/lib/emass_client/models/register.rb +14 -8
- data/lib/emass_client/models/register_data.rb +14 -8
- data/lib/emass_client/models/register_user_request_post_body.rb +24 -8
- data/lib/emass_client/models/response200.rb +14 -8
- data/lib/emass_client/models/role_category.rb +14 -8
- data/lib/emass_client/models/roles.rb +14 -8
- data/lib/emass_client/models/stage.rb +14 -8
- data/lib/emass_client/models/static_code_application_post.rb +14 -8
- data/lib/emass_client/models/static_code_post.rb +19 -13
- data/lib/emass_client/models/static_code_request_post_body.rb +14 -8
- data/lib/emass_client/models/static_code_request_post_body_application.rb +14 -8
- data/lib/emass_client/models/static_code_response_post.rb +14 -8
- data/lib/emass_client/models/sw_baseline_conditional_fields.rb +222 -0
- data/lib/emass_client/models/sw_baseline_ids.rb +221 -0
- data/lib/emass_client/models/sw_baseline_optional_fields.rb +563 -0
- data/lib/emass_client/models/sw_baseline_read_only_fields.rb +222 -0
- data/lib/emass_client/models/sw_baseline_request_delete_body_inner.rb +220 -0
- data/lib/emass_client/models/sw_baseline_required_fields.rb +241 -0
- data/lib/emass_client/models/sw_baseline_response_delete.rb +231 -0
- data/lib/emass_client/models/sw_baseline_response_delete_data_inner.rb +274 -0
- data/lib/emass_client/models/sw_baseline_response_get.rb +240 -0
- data/lib/emass_client/models/sw_baseline_response_get_data_inner.rb +624 -0
- data/lib/emass_client/models/sw_baseline_response_post_put.rb +231 -0
- data/lib/emass_client/models/sw_baseline_response_post_put_data_inner.rb +274 -0
- data/lib/emass_client/models/system_response.rb +14 -8
- data/lib/emass_client/models/system_roles_category_response.rb +14 -8
- data/lib/emass_client/models/system_roles_response.rb +14 -8
- data/lib/emass_client/models/system_roles_response_data_inner.rb +14 -8
- data/lib/emass_client/models/systems.rb +708 -86
- data/lib/emass_client/models/systems_response.rb +14 -8
- data/lib/emass_client/models/test.rb +14 -8
- data/lib/emass_client/models/test_data.rb +14 -8
- data/lib/emass_client/models/test_results_get.rb +14 -8
- data/lib/emass_client/models/test_results_post.rb +19 -13
- data/lib/emass_client/models/test_results_response_get.rb +14 -8
- data/lib/emass_client/models/test_results_response_post.rb +14 -8
- data/lib/emass_client/models/unauthorized.rb +220 -0
- data/lib/emass_client/models/{response401_meta.rb → unauthorized_meta.rb} +16 -10
- data/lib/emass_client/models/users.rb +14 -8
- data/lib/emass_client/models/workflow_definition_get.rb +14 -8
- data/lib/emass_client/models/workflow_definition_response_get.rb +14 -8
- data/lib/emass_client/models/workflow_instance_get.rb +28 -11
- data/lib/emass_client/models/workflow_instance_response_get.rb +14 -8
- data/lib/emass_client/models/workflow_instances_response_get.rb +15 -9
- data/lib/emass_client/models/workflow_instances_response_get_pagination.rb +14 -8
- data/lib/emass_client/version.rb +5 -5
- data/lib/emass_client.rb +101 -52
- metadata +105 -56
- data/lib/emass_client/api/fisma_inventory_summary_dashboards_api.rb +0 -168
- data/lib/emass_client/api/privacy_compliance_dashboards_api.rb +0 -168
- data/lib/emass_client/api/system_a20_summary_dashboard_api.rb +0 -95
- data/lib/emass_client/api/system_aa_summary_dashboard_api.rb +0 -95
- data/lib/emass_client/api/system_pl109_reporting_summary_dashboard_api.rb +0 -95
- data/lib/emass_client/api/threat_risks_dashboards_api.rb +0 -241
- data/lib/emass_client/models/mock_object.rb +0 -338
- data/lib/emass_client/models/response405.rb +0 -214
- data/lib/emass_client/models/response411.rb +0 -214
- data/lib/emass_client/models/response490.rb +0 -214
- data/lib/emass_client/models/response500.rb +0 -214
- data/lib/emass_client/models/workflow_instances_get.rb +0 -337
@@ -0,0 +1,220 @@
|
|
1
|
+
=begin
|
2
|
+
#Enterprise Mission Assurance Support Service (eMASS)
|
3
|
+
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module EmassClient
|
17
|
+
class Unauthorized
|
18
|
+
attr_accessor :meta
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'meta' => :'meta'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns attribute mapping this model knows about
|
28
|
+
def self.acceptable_attribute_map
|
29
|
+
attribute_map
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns all the JSON keys this model knows about
|
33
|
+
def self.acceptable_attributes
|
34
|
+
acceptable_attribute_map.values
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.openapi_types
|
39
|
+
{
|
40
|
+
:'meta' => :'UnauthorizedMeta'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# List of attributes with nullable: true
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::Unauthorized` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::Unauthorized`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'meta')
|
67
|
+
self.meta = attributes[:'meta']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
75
|
+
invalid_properties = Array.new
|
76
|
+
invalid_properties
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
def valid?
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
meta == o.meta
|
92
|
+
end
|
93
|
+
|
94
|
+
# @see the `==` method
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def eql?(o)
|
97
|
+
self == o
|
98
|
+
end
|
99
|
+
|
100
|
+
# Calculates hash code according to all attributes.
|
101
|
+
# @return [Integer] Hash code
|
102
|
+
def hash
|
103
|
+
[meta].hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def self.build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
attributes = attributes.transform_keys(&:to_sym)
|
112
|
+
transformed_hash = {}
|
113
|
+
openapi_types.each_pair do |key, type|
|
114
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
115
|
+
transformed_hash["#{key}"] = nil
|
116
|
+
elsif type =~ /\AArray<(.*)>/i
|
117
|
+
# check to ensure the input is an array given that the attribute
|
118
|
+
# is documented as an array but the input is not
|
119
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
120
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
121
|
+
end
|
122
|
+
elsif !attributes[attribute_map[key]].nil?
|
123
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
124
|
+
end
|
125
|
+
end
|
126
|
+
new(transformed_hash)
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def self._deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :Time
|
136
|
+
Time.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :Boolean
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
# models (e.g. Pet) or oneOf
|
167
|
+
klass = EmassClient.const_get(type)
|
168
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the string representation of the object
|
173
|
+
# @return [String] String presentation of the object
|
174
|
+
def to_s
|
175
|
+
to_hash.to_s
|
176
|
+
end
|
177
|
+
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
180
|
+
def to_body
|
181
|
+
to_hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = self.send(attr)
|
190
|
+
if value.nil?
|
191
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
192
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
193
|
+
end
|
194
|
+
|
195
|
+
hash[param] = _to_hash(value)
|
196
|
+
end
|
197
|
+
hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Outputs non-array value in the form of hash
|
201
|
+
# For object, use to_hash. Otherwise, just return the value
|
202
|
+
# @param [Object] value Any valid value
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
204
|
+
def _to_hash(value)
|
205
|
+
if value.is_a?(Array)
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
207
|
+
elsif value.is_a?(Hash)
|
208
|
+
{}.tap do |hash|
|
209
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
210
|
+
end
|
211
|
+
elsif value.respond_to? :to_hash
|
212
|
+
value.to_hash
|
213
|
+
else
|
214
|
+
value
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module EmassClient
|
17
|
-
class
|
17
|
+
class UnauthorizedMeta
|
18
18
|
attr_accessor :code
|
19
19
|
|
20
20
|
attr_accessor :error_message
|
@@ -27,9 +27,14 @@ module EmassClient
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
30
35
|
# Returns all the JSON keys this model knows about
|
31
36
|
def self.acceptable_attributes
|
32
|
-
|
37
|
+
acceptable_attribute_map.values
|
33
38
|
end
|
34
39
|
|
35
40
|
# Attribute type mapping.
|
@@ -50,13 +55,14 @@ module EmassClient
|
|
50
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
56
|
def initialize(attributes = {})
|
52
57
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `EmassClient::UnauthorizedMeta` initialize method"
|
54
59
|
end
|
55
60
|
|
56
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
-
if (!
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::UnauthorizedMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -200,7 +206,7 @@ module EmassClient
|
|
200
206
|
else # model
|
201
207
|
# models (e.g. Pet) or oneOf
|
202
208
|
klass = EmassClient.const_get(type)
|
203
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
209
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
204
210
|
end
|
205
211
|
end
|
206
212
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,9 +30,14 @@ module EmassClient
|
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
+
# Returns attribute mapping this model knows about
|
34
|
+
def self.acceptable_attribute_map
|
35
|
+
attribute_map
|
36
|
+
end
|
37
|
+
|
33
38
|
# Returns all the JSON keys this model knows about
|
34
39
|
def self.acceptable_attributes
|
35
|
-
|
40
|
+
acceptable_attribute_map.values
|
36
41
|
end
|
37
42
|
|
38
43
|
# Attribute type mapping.
|
@@ -58,9 +63,10 @@ module EmassClient
|
|
58
63
|
end
|
59
64
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
-
if (!
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::Users`. Please check the name to make sure it's valid. List of attributes: " +
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::Users`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
64
70
|
end
|
65
71
|
h[k.to_sym] = v
|
66
72
|
}
|
@@ -177,7 +183,7 @@ module EmassClient
|
|
177
183
|
else # model
|
178
184
|
# models (e.g. Pet) or oneOf
|
179
185
|
klass = EmassClient.const_get(type)
|
180
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
186
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
181
187
|
end
|
182
188
|
end
|
183
189
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -44,9 +44,14 @@ module EmassClient
|
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
47
|
+
# Returns attribute mapping this model knows about
|
48
|
+
def self.acceptable_attribute_map
|
49
|
+
attribute_map
|
50
|
+
end
|
51
|
+
|
47
52
|
# Returns all the JSON keys this model knows about
|
48
53
|
def self.acceptable_attributes
|
49
|
-
|
54
|
+
acceptable_attribute_map.values
|
50
55
|
end
|
51
56
|
|
52
57
|
# Attribute type mapping.
|
@@ -81,9 +86,10 @@ module EmassClient
|
|
81
86
|
end
|
82
87
|
|
83
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
89
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
84
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
|
-
if (!
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowDefinitionGet`. Please check the name to make sure it's valid. List of attributes: " +
|
91
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowDefinitionGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
87
93
|
end
|
88
94
|
h[k.to_sym] = v
|
89
95
|
}
|
@@ -217,7 +223,7 @@ module EmassClient
|
|
217
223
|
else # model
|
218
224
|
# models (e.g. Pet) or oneOf
|
219
225
|
klass = EmassClient.const_get(type)
|
220
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
226
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
221
227
|
end
|
222
228
|
end
|
223
229
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -27,9 +27,14 @@ module EmassClient
|
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
|
+
# Returns attribute mapping this model knows about
|
31
|
+
def self.acceptable_attribute_map
|
32
|
+
attribute_map
|
33
|
+
end
|
34
|
+
|
30
35
|
# Returns all the JSON keys this model knows about
|
31
36
|
def self.acceptable_attributes
|
32
|
-
|
37
|
+
acceptable_attribute_map.values
|
33
38
|
end
|
34
39
|
|
35
40
|
# Attribute type mapping.
|
@@ -54,9 +59,10 @@ module EmassClient
|
|
54
59
|
end
|
55
60
|
|
56
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
57
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
-
if (!
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowDefinitionResponseGet`. Please check the name to make sure it's valid. List of attributes: " +
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowDefinitionResponseGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
60
66
|
end
|
61
67
|
h[k.to_sym] = v
|
62
68
|
}
|
@@ -170,7 +176,7 @@ module EmassClient
|
|
170
176
|
else # model
|
171
177
|
# models (e.g. Pet) or oneOf
|
172
178
|
klass = EmassClient.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
179
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
180
|
end
|
175
181
|
end
|
176
182
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Enterprise Mission Assurance Support Service (eMASS)
|
3
3
|
|
4
|
-
#The
|
4
|
+
#The eMASS Representational State Transfer (REST) Application Programming Interface (API) enables users to perform assessments and complete actions associated with system records. The eMASS API provides an interface for application to communicate eMASS Services. For information on how to register and use the eMASS API reference the [eMASS API Getting Started](eMASSGettingStarted.md). Additional information about eMASS can be obtain by contacting the National Industrial Security Program (NISP). Points of Contact are:
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v3.
|
7
|
-
Contact: disa.
|
6
|
+
The version of the OpenAPI document: v3.22
|
7
|
+
Contact: disa.global.servicedesk.mbx.ma-ticket-request@mail.mil
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.12.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,6 +18,9 @@ module EmassClient
|
|
18
18
|
# [Read-Only] Unique workflow definition identifier.
|
19
19
|
attr_accessor :workflow_uid
|
20
20
|
|
21
|
+
# [Read-only] Unique system record identifier.
|
22
|
+
attr_accessor :system_id
|
23
|
+
|
21
24
|
# [Read-Only] The system name.
|
22
25
|
attr_accessor :system_name
|
23
26
|
|
@@ -51,6 +54,7 @@ module EmassClient
|
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
53
56
|
:'workflow_uid' => :'workflowUid',
|
57
|
+
:'system_id' => :'systemId',
|
54
58
|
:'system_name' => :'systemName',
|
55
59
|
:'workflow_instance_id' => :'workflowInstanceId',
|
56
60
|
:'package_name' => :'packageName',
|
@@ -64,15 +68,21 @@ module EmassClient
|
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
71
|
+
# Returns attribute mapping this model knows about
|
72
|
+
def self.acceptable_attribute_map
|
73
|
+
attribute_map
|
74
|
+
end
|
75
|
+
|
67
76
|
# Returns all the JSON keys this model knows about
|
68
77
|
def self.acceptable_attributes
|
69
|
-
|
78
|
+
acceptable_attribute_map.values
|
70
79
|
end
|
71
80
|
|
72
81
|
# Attribute type mapping.
|
73
82
|
def self.openapi_types
|
74
83
|
{
|
75
84
|
:'workflow_uid' => :'String',
|
85
|
+
:'system_id' => :'Integer',
|
76
86
|
:'system_name' => :'String',
|
77
87
|
:'workflow_instance_id' => :'Integer',
|
78
88
|
:'package_name' => :'String',
|
@@ -80,9 +90,9 @@ module EmassClient
|
|
80
90
|
:'last_edited_date' => :'Integer',
|
81
91
|
:'last_edited_by' => :'String',
|
82
92
|
:'workflow' => :'String',
|
83
|
-
:'version' => :'
|
93
|
+
:'version' => :'Integer',
|
84
94
|
:'current_stage' => :'String',
|
85
|
-
:'transitions' => :'Array<
|
95
|
+
:'transitions' => :'Array<InstanceTransitions>'
|
86
96
|
}
|
87
97
|
end
|
88
98
|
|
@@ -90,6 +100,7 @@ module EmassClient
|
|
90
100
|
def self.openapi_nullable
|
91
101
|
Set.new([
|
92
102
|
:'workflow_uid',
|
103
|
+
:'system_id',
|
93
104
|
:'system_name',
|
94
105
|
:'workflow_instance_id',
|
95
106
|
:'package_name',
|
@@ -110,9 +121,10 @@ module EmassClient
|
|
110
121
|
end
|
111
122
|
|
112
123
|
# check to see if the attribute exists and convert string to symbol for hash key
|
124
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
113
125
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
114
|
-
if (!
|
115
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstanceGet`. Please check the name to make sure it's valid. List of attributes: " +
|
126
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
127
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `EmassClient::WorkflowInstanceGet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
116
128
|
end
|
117
129
|
h[k.to_sym] = v
|
118
130
|
}
|
@@ -121,6 +133,10 @@ module EmassClient
|
|
121
133
|
self.workflow_uid = attributes[:'workflow_uid']
|
122
134
|
end
|
123
135
|
|
136
|
+
if attributes.key?(:'system_id')
|
137
|
+
self.system_id = attributes[:'system_id']
|
138
|
+
end
|
139
|
+
|
124
140
|
if attributes.key?(:'system_name')
|
125
141
|
self.system_name = attributes[:'system_name']
|
126
142
|
end
|
@@ -185,6 +201,7 @@ module EmassClient
|
|
185
201
|
return true if self.equal?(o)
|
186
202
|
self.class == o.class &&
|
187
203
|
workflow_uid == o.workflow_uid &&
|
204
|
+
system_id == o.system_id &&
|
188
205
|
system_name == o.system_name &&
|
189
206
|
workflow_instance_id == o.workflow_instance_id &&
|
190
207
|
package_name == o.package_name &&
|
@@ -206,7 +223,7 @@ module EmassClient
|
|
206
223
|
# Calculates hash code according to all attributes.
|
207
224
|
# @return [Integer] Hash code
|
208
225
|
def hash
|
209
|
-
[workflow_uid, system_name, workflow_instance_id, package_name, created_date, last_edited_date, last_edited_by, workflow, version, current_stage, transitions].hash
|
226
|
+
[workflow_uid, system_id, system_name, workflow_instance_id, package_name, created_date, last_edited_date, last_edited_by, workflow, version, current_stage, transitions].hash
|
210
227
|
end
|
211
228
|
|
212
229
|
# Builds the object from hash
|
@@ -271,7 +288,7 @@ module EmassClient
|
|
271
288
|
else # model
|
272
289
|
# models (e.g. Pet) or oneOf
|
273
290
|
klass = EmassClient.const_get(type)
|
274
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
291
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
275
292
|
end
|
276
293
|
end
|
277
294
|
|