crv_api_client 0.1.3
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 +7 -0
- data/.gitignore +26 -0
- data/.rspec +2 -0
- data/Gemfile +4 -0
- data/Guardfile +10 -0
- data/LICENSE.txt +22 -0
- data/README.md +47 -0
- data/Rakefile +7 -0
- data/crv_api_client.gemspec +30 -0
- data/lib/crv_api_client/animals.rb +84 -0
- data/lib/crv_api_client/api/animals/animals.rb +1734 -0
- data/lib/crv_api_client/api/animals/animals_driver.rb +113 -0
- data/lib/crv_api_client/api/animals/animals_mapping_registry.rb +2082 -0
- data/lib/crv_api_client/api/animals/rs_animal_service_client.rb +122 -0
- data/lib/crv_api_client/api/animals.rb +9 -0
- data/lib/crv_api_client/api/reproduction/esb_rs_reproduction_service_client.rb +158 -0
- data/lib/crv_api_client/api/reproduction/reproduction.rb +8810 -0
- data/lib/crv_api_client/api/reproduction/reproduction_driver.rb +136 -0
- data/lib/crv_api_client/api/reproduction/reproduction_mapping_registry.rb +5244 -0
- data/lib/crv_api_client/api/reproduction.rb +9 -0
- data/lib/crv_api_client/api.rb +6 -0
- data/lib/crv_api_client/errors.rb +57 -0
- data/lib/crv_api_client/helpers/attributes.rb +34 -0
- data/lib/crv_api_client/helpers/crv.rb +89 -0
- data/lib/crv_api_client/helpers/endpoint.rb +46 -0
- data/lib/crv_api_client/helpers.rb +7 -0
- data/lib/crv_api_client/reproduction.rb +87 -0
- data/lib/crv_api_client/utils/configuration.rb +40 -0
- data/lib/crv_api_client/utils.rb +5 -0
- data/lib/crv_api_client/version.rb +3 -0
- data/lib/crv_api_client.rb +26 -0
- data/spec/lib/crv/animals_spec.rb +95 -0
- data/spec/lib/crv/api/animals/animals_driver_spec.rb +39 -0
- data/spec/lib/crv/api/reproduction/reproduction_driver_spec.rb +39 -0
- data/spec/lib/crv/helpers/attributes_spec.rb +52 -0
- data/spec/lib/crv/helpers/crv_spec.rb +146 -0
- data/spec/lib/crv/helpers/endpoint_spec.rb +54 -0
- data/spec/lib/crv/reproduction_spec.rb +137 -0
- data/spec/lib/crv_spec.rb +22 -0
- data/spec/spec_helper.rb +91 -0
- metadata +204 -0
@@ -0,0 +1,122 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'AnimalsDriver.rb'
|
3
|
+
|
4
|
+
|
5
|
+
module CrvApiClient::Animals
|
6
|
+
|
7
|
+
endpoint_url = ARGV.shift
|
8
|
+
obj = RsAnimalPortType.new(endpoint_url)
|
9
|
+
|
10
|
+
# run ruby with -d to see SOAP wiredumps.
|
11
|
+
obj.wiredump_dev = STDERR if $DEBUG
|
12
|
+
|
13
|
+
# SYNOPSIS
|
14
|
+
# modifyAnimalManagement(requestStream)
|
15
|
+
#
|
16
|
+
# ARGS
|
17
|
+
# requestStream ModifyAnimalManagementRequest - {http://ws.crvholding.com/animalMessages/}modifyAnimalManagementRequest
|
18
|
+
#
|
19
|
+
# RETURNS
|
20
|
+
# responseStream ModifyAnimalManagementResponse - {http://ws.crvholding.com/animalMessages/}modifyAnimalManagementResponse
|
21
|
+
#
|
22
|
+
requestStream = nil
|
23
|
+
puts obj.modifyAnimalManagement(requestStream)
|
24
|
+
|
25
|
+
# SYNOPSIS
|
26
|
+
# addPlannedDeparture(requestStream)
|
27
|
+
#
|
28
|
+
# ARGS
|
29
|
+
# requestStream AddPlannedDepartureRequest - {http://ws.crvholding.com/animalMessages/}addPlannedDepartureRequest
|
30
|
+
#
|
31
|
+
# RETURNS
|
32
|
+
# responseStream AddPlannedDepartureResponse - {http://ws.crvholding.com/animalMessages/}addPlannedDepartureResponse
|
33
|
+
#
|
34
|
+
requestStream = nil
|
35
|
+
puts obj.addPlannedDeparture(requestStream)
|
36
|
+
|
37
|
+
# SYNOPSIS
|
38
|
+
# deletePlannedDeparture(requestStream)
|
39
|
+
#
|
40
|
+
# ARGS
|
41
|
+
# requestStream DeletePlannedDepartureRequest - {http://ws.crvholding.com/animalMessages/}deletePlannedDepartureRequest
|
42
|
+
#
|
43
|
+
# RETURNS
|
44
|
+
# responseStream DeletePlannedDepartureResponse - {http://ws.crvholding.com/animalMessages/}deletePlannedDepartureResponse
|
45
|
+
#
|
46
|
+
requestStream = nil
|
47
|
+
puts obj.deletePlannedDeparture(requestStream)
|
48
|
+
|
49
|
+
# SYNOPSIS
|
50
|
+
# listPlannedDeparture(requestStream)
|
51
|
+
#
|
52
|
+
# ARGS
|
53
|
+
# requestStream ListPlannedDepartureRequest - {http://ws.crvholding.com/animalMessages/}listPlannedDepartureRequest
|
54
|
+
#
|
55
|
+
# RETURNS
|
56
|
+
# responseStream ListPlannedDepartureResponse - {http://ws.crvholding.com/animalMessages/}listPlannedDepartureResponse
|
57
|
+
#
|
58
|
+
requestStream = nil
|
59
|
+
puts obj.listPlannedDeparture(requestStream)
|
60
|
+
|
61
|
+
# SYNOPSIS
|
62
|
+
# listFoodChainInformation(requestStream)
|
63
|
+
#
|
64
|
+
# ARGS
|
65
|
+
# requestStream ListFoodChainInformationRequest - {http://ws.crvholding.com/animalMessages/}listFoodChainInformationRequest
|
66
|
+
#
|
67
|
+
# RETURNS
|
68
|
+
# responseStream ListFoodChainInformationResponse - {http://ws.crvholding.com/animalMessages/}listFoodChainInformationResponse
|
69
|
+
#
|
70
|
+
requestStream = nil
|
71
|
+
puts obj.listFoodChainInformation(requestStream)
|
72
|
+
|
73
|
+
# SYNOPSIS
|
74
|
+
# listPlannedArrival(requestStream)
|
75
|
+
#
|
76
|
+
# ARGS
|
77
|
+
# requestStream ListPlannedArrivalRequest - {http://ws.crvholding.com/animalMessages/}listPlannedArrivalRequest
|
78
|
+
#
|
79
|
+
# RETURNS
|
80
|
+
# responseStream ListPlannedArrivalResponse - {http://ws.crvholding.com/animalMessages/}listPlannedArrivalResponse
|
81
|
+
#
|
82
|
+
requestStream = nil
|
83
|
+
puts obj.listPlannedArrival(requestStream)
|
84
|
+
|
85
|
+
# SYNOPSIS
|
86
|
+
# modifyPlannedArrival(requestStream)
|
87
|
+
#
|
88
|
+
# ARGS
|
89
|
+
# requestStream ModifyPlannedArrivalRequest - {http://ws.crvholding.com/animalMessages/}modifyPlannedArrivalRequest
|
90
|
+
#
|
91
|
+
# RETURNS
|
92
|
+
# responseStream ModifyPlannedArrivalResponse - {http://ws.crvholding.com/animalMessages/}modifyPlannedArrivalResponse
|
93
|
+
#
|
94
|
+
requestStream = nil
|
95
|
+
puts obj.modifyPlannedArrival(requestStream)
|
96
|
+
|
97
|
+
# SYNOPSIS
|
98
|
+
# getAverageHerdWeight(requestStream)
|
99
|
+
#
|
100
|
+
# ARGS
|
101
|
+
# requestStream GetAverageHerdWeightRequest - {http://ws.crvholding.com/animalMessages/}getAverageHerdWeightRequest
|
102
|
+
#
|
103
|
+
# RETURNS
|
104
|
+
# responseStream GetAverageHerdWeightResponse - {http://ws.crvholding.com/animalMessages/}getAverageHerdWeightResponse
|
105
|
+
#
|
106
|
+
requestStream = nil
|
107
|
+
puts obj.getAverageHerdWeight(requestStream)
|
108
|
+
|
109
|
+
# SYNOPSIS
|
110
|
+
# listHerdPedigree(requestStream)
|
111
|
+
#
|
112
|
+
# ARGS
|
113
|
+
# requestStream ListHerdPedigreeRequest - {http://ws.crvholding.com/animalMessages/}listHerdPedigreeRequest
|
114
|
+
#
|
115
|
+
# RETURNS
|
116
|
+
# responseStream ListHerdPedigreeResponse - {http://ws.crvholding.com/animalMessages/}listHerdPedigreeResponse
|
117
|
+
#
|
118
|
+
requestStream = nil
|
119
|
+
puts obj.listHerdPedigree(requestStream)
|
120
|
+
|
121
|
+
|
122
|
+
end
|
@@ -0,0 +1,158 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'ReproductionDriver.rb'
|
3
|
+
|
4
|
+
|
5
|
+
module CrvApiClient::Reproduction
|
6
|
+
|
7
|
+
endpoint_url = ARGV.shift
|
8
|
+
obj = RsReproductionPortType.new(endpoint_url)
|
9
|
+
|
10
|
+
# run ruby with -d to see SOAP wiredumps.
|
11
|
+
obj.wiredump_dev = STDERR if $DEBUG
|
12
|
+
|
13
|
+
# SYNOPSIS
|
14
|
+
# listTopGestationCalving(requestStream)
|
15
|
+
#
|
16
|
+
# ARGS
|
17
|
+
# requestStream ListTopGestationCalvingRequest - {http://ws.crvholding.com/reproductionMessages/}listTopGestationCalvingRequest
|
18
|
+
#
|
19
|
+
# RETURNS
|
20
|
+
# responseStream ListTopGestationCalvingResponse - {http://ws.crvholding.com/reproductionMessages/}listTopGestationCalvingResponse
|
21
|
+
#
|
22
|
+
requestStream = nil
|
23
|
+
puts obj.listTopGestationCalving(requestStream)
|
24
|
+
|
25
|
+
# SYNOPSIS
|
26
|
+
# listFertilization(requestStream)
|
27
|
+
#
|
28
|
+
# ARGS
|
29
|
+
# requestStream ListFertilizationRequest - {http://ws.crvholding.com/reproductionMessages/}listFertilizationRequest
|
30
|
+
#
|
31
|
+
# RETURNS
|
32
|
+
# responseStream ListFertilizationResponse - {http://ws.crvholding.com/reproductionMessages/}listFertilizationResponse
|
33
|
+
#
|
34
|
+
requestStream = nil
|
35
|
+
puts obj.listFertilization(requestStream)
|
36
|
+
|
37
|
+
# SYNOPSIS
|
38
|
+
# addAnimalReproductionIndication(requestStream)
|
39
|
+
#
|
40
|
+
# ARGS
|
41
|
+
# requestStream AddAnimalReproductionIndicationRequest - {http://ws.crvholding.com/reproductionMessages/}addAnimalReproductionIndicationRequest
|
42
|
+
#
|
43
|
+
# RETURNS
|
44
|
+
# responseStream AddAnimalReproductionIndicationResponse - {http://ws.crvholding.com/reproductionMessages/}addAnimalReproductionIndicationResponse
|
45
|
+
#
|
46
|
+
requestStream = nil
|
47
|
+
puts obj.addAnimalReproductionIndication(requestStream)
|
48
|
+
|
49
|
+
# SYNOPSIS
|
50
|
+
# listAnimalReproduction(requestStream)
|
51
|
+
#
|
52
|
+
# ARGS
|
53
|
+
# requestStream ListAnimalReproductionRequest - {http://ws.crvholding.com/reproductionMessages/}listAnimalReproductionRequest
|
54
|
+
#
|
55
|
+
# RETURNS
|
56
|
+
# responseStream ListAnimalReproductionResponse - {http://ws.crvholding.com/reproductionMessages/}listAnimalReproductionResponse
|
57
|
+
#
|
58
|
+
requestStream = nil
|
59
|
+
puts obj.listAnimalReproduction(requestStream)
|
60
|
+
|
61
|
+
# SYNOPSIS
|
62
|
+
# addAiEtDelivery(requestStream)
|
63
|
+
#
|
64
|
+
# ARGS
|
65
|
+
# requestStream AddAiEtDeliveryRequest - {http://ws.crvholding.com/reproductionMessages/}addAiEtDeliveryRequest
|
66
|
+
#
|
67
|
+
# RETURNS
|
68
|
+
# responseStream AddAiEtDeliveryResponse - {http://ws.crvholding.com/reproductionMessages/}addAiEtDeliveryResponse
|
69
|
+
#
|
70
|
+
requestStream = nil
|
71
|
+
puts obj.addAiEtDelivery(requestStream)
|
72
|
+
|
73
|
+
# SYNOPSIS
|
74
|
+
# addPreferredBull(requestStream)
|
75
|
+
#
|
76
|
+
# ARGS
|
77
|
+
# requestStream AddPreferredBullRequest - {http://ws.crvholding.com/reproductionMessages/}addPreferredBullRequest
|
78
|
+
#
|
79
|
+
# RETURNS
|
80
|
+
# responseStream AddPreferredBullResponse - {http://ws.crvholding.com/reproductionMessages/}addPreferredBullResponse
|
81
|
+
#
|
82
|
+
requestStream = nil
|
83
|
+
puts obj.addPreferredBull(requestStream)
|
84
|
+
|
85
|
+
# SYNOPSIS
|
86
|
+
# deletePreferredBull(requestStream)
|
87
|
+
#
|
88
|
+
# ARGS
|
89
|
+
# requestStream DeletePreferredBullRequest - {http://ws.crvholding.com/reproductionMessages/}deletePreferredBullRequest
|
90
|
+
#
|
91
|
+
# RETURNS
|
92
|
+
# responseStream DeletePreferredBullResponse - {http://ws.crvholding.com/reproductionMessages/}deletePreferredBullResponse
|
93
|
+
#
|
94
|
+
requestStream = nil
|
95
|
+
puts obj.deletePreferredBull(requestStream)
|
96
|
+
|
97
|
+
# SYNOPSIS
|
98
|
+
# listPreferredBull(requestStream)
|
99
|
+
#
|
100
|
+
# ARGS
|
101
|
+
# requestStream ListPreferredBullRequest - {http://ws.crvholding.com/reproductionMessages/}listPreferredBullRequest
|
102
|
+
#
|
103
|
+
# RETURNS
|
104
|
+
# responseStream ListPreferredBullResponse - {http://ws.crvholding.com/reproductionMessages/}listPreferredBullResponse
|
105
|
+
#
|
106
|
+
requestStream = nil
|
107
|
+
puts obj.listPreferredBull(requestStream)
|
108
|
+
|
109
|
+
# SYNOPSIS
|
110
|
+
# listReproductionLastParity(requestStream)
|
111
|
+
#
|
112
|
+
# ARGS
|
113
|
+
# requestStream ListReproductionLastParityRequest - {http://ws.crvholding.com/reproductionMessages/}listReproductionLastParityRequest
|
114
|
+
#
|
115
|
+
# RETURNS
|
116
|
+
# responseStream ListReproductionLastParityResponse - {http://ws.crvholding.com/reproductionMessages/}listReproductionLastParityResponse
|
117
|
+
#
|
118
|
+
requestStream = nil
|
119
|
+
puts obj.listReproductionLastParity(requestStream)
|
120
|
+
|
121
|
+
# SYNOPSIS
|
122
|
+
# listAnimalReproductionIndication(requestStream)
|
123
|
+
#
|
124
|
+
# ARGS
|
125
|
+
# requestStream ListAnimalIndicationRequest - {http://ws.crvholding.com/reproductionMessages/}listAnimalIndicationRequest
|
126
|
+
#
|
127
|
+
# RETURNS
|
128
|
+
# responseStream ListAnimalIndicationResponse - {http://ws.crvholding.com/reproductionMessages/}listAnimalIndicationResponse
|
129
|
+
#
|
130
|
+
requestStream = nil
|
131
|
+
puts obj.listAnimalReproductionIndication(requestStream)
|
132
|
+
|
133
|
+
# SYNOPSIS
|
134
|
+
# modifyAnimalReproductionIndication(requestStream)
|
135
|
+
#
|
136
|
+
# ARGS
|
137
|
+
# requestStream ModifyAnimalIndicationRequest - {http://ws.crvholding.com/reproductionMessages/}modifyAnimalIndicationRequest
|
138
|
+
#
|
139
|
+
# RETURNS
|
140
|
+
# responseStream ModifyAnimalIndicationResponse - {http://ws.crvholding.com/reproductionMessages/}modifyAnimalIndicationResponse
|
141
|
+
#
|
142
|
+
requestStream = nil
|
143
|
+
puts obj.modifyAnimalReproductionIndication(requestStream)
|
144
|
+
|
145
|
+
# SYNOPSIS
|
146
|
+
# getHerdList(parameters)
|
147
|
+
#
|
148
|
+
# ARGS
|
149
|
+
# parameters GetHerdListRequestType - {ICARAggregateBusinessInformationEntity:1}GetHerdListRequestType
|
150
|
+
#
|
151
|
+
# RETURNS
|
152
|
+
# parameters GetHerdListResponseType - {ICARAggregateBusinessInformationEntity:1}GetHerdListResponseType
|
153
|
+
#
|
154
|
+
parameters = nil
|
155
|
+
puts obj.getHerdList(parameters)
|
156
|
+
|
157
|
+
|
158
|
+
end
|