azure-storage-queue 1.1.0 → 2.0.1
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 +5 -5
- data/lib/azure/storage/queue.rb +26 -26
- data/lib/azure/storage/queue/autoload.rb +43 -43
- data/lib/azure/storage/queue/default.rb +84 -84
- data/lib/azure/storage/queue/message.rb +41 -41
- data/lib/azure/storage/queue/queue.rb +38 -38
- data/lib/azure/storage/queue/queue_service.rb +755 -755
- data/lib/azure/storage/queue/serialization.rb +110 -110
- data/lib/azure/storage/queue/version.rb +49 -49
- metadata +10 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ce0f50766052928b725c6dcfc1978366f902bec9e1e2ed6bb73b13fa3baaef9a
|
4
|
+
data.tar.gz: 607ffbaeb607b6d3d4a6b0f872662416a3215706ca3159313f365c105b84f653
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e6db32254f4aa9cae6f591174d6bbf50e9cc23a82705e4acdd5c3b9a0571d1e3dbe162afec7b0f34a33920792833494b991d5501015f78d0a2bb3b9e692bc75
|
7
|
+
data.tar.gz: 191c5c875d7c946a6408c3df40ec9e31a18b21879cee944c3ed24aa59169596fbb2d33e26b42684e43c24454b5a78dc6d5a18fd4132245253f22640358bb445a
|
data/lib/azure/storage/queue.rb
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
#-------------------------------------------------------------------------
|
4
|
-
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
-
#
|
6
|
-
# The MIT License(MIT)
|
7
|
-
|
8
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
# of this software and associated documentation files(the "Software"), to deal
|
10
|
-
# in the Software without restriction, including without limitation the rights
|
11
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
-
# copies of the Software, and to permit persons to whom the Software is
|
13
|
-
# furnished to do so, subject to the following conditions :
|
14
|
-
|
15
|
-
# The above copyright notice and this permission notice shall be included in
|
16
|
-
# all copies or substantial portions of the Software.
|
17
|
-
|
18
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
# THE SOFTWARE.
|
25
|
-
#--------------------------------------------------------------------------
|
26
|
-
require "azure/storage/queue/autoload"
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
+
#
|
6
|
+
# The MIT License(MIT)
|
7
|
+
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
# of this software and associated documentation files(the "Software"), to deal
|
10
|
+
# in the Software without restriction, including without limitation the rights
|
11
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
+
# copies of the Software, and to permit persons to whom the Software is
|
13
|
+
# furnished to do so, subject to the following conditions :
|
14
|
+
|
15
|
+
# The above copyright notice and this permission notice shall be included in
|
16
|
+
# all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
# THE SOFTWARE.
|
25
|
+
#--------------------------------------------------------------------------
|
26
|
+
require "azure/storage/queue/autoload"
|
@@ -1,43 +1,43 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
#-------------------------------------------------------------------------
|
4
|
-
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
-
#
|
6
|
-
# The MIT License(MIT)
|
7
|
-
|
8
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
# of this software and associated documentation files(the "Software"), to deal
|
10
|
-
# in the Software without restriction, including without limitation the rights
|
11
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
-
# copies of the Software, and to permit persons to whom the Software is
|
13
|
-
# furnished to do so, subject to the following conditions :
|
14
|
-
|
15
|
-
# The above copyright notice and this permission notice shall be included in
|
16
|
-
# all copies or substantial portions of the Software.
|
17
|
-
|
18
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
# THE SOFTWARE.
|
25
|
-
#--------------------------------------------------------------------------
|
26
|
-
require "rubygems"
|
27
|
-
require "nokogiri"
|
28
|
-
require "base64"
|
29
|
-
|
30
|
-
require "azure/storage/common"
|
31
|
-
|
32
|
-
module Azure
|
33
|
-
module Storage
|
34
|
-
module Queue
|
35
|
-
autoload :Default, "azure/storage/queue/default"
|
36
|
-
autoload :Version, "azure/storage/queue/version"
|
37
|
-
autoload :QueueService, "azure/storage/queue/queue_service"
|
38
|
-
autoload :Message, "azure/storage/queue/message"
|
39
|
-
autoload :Serialization, "azure/storage/queue/serialization"
|
40
|
-
autoload :Queue, "azure/storage/queue/queue"
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
+
#
|
6
|
+
# The MIT License(MIT)
|
7
|
+
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
# of this software and associated documentation files(the "Software"), to deal
|
10
|
+
# in the Software without restriction, including without limitation the rights
|
11
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
+
# copies of the Software, and to permit persons to whom the Software is
|
13
|
+
# furnished to do so, subject to the following conditions :
|
14
|
+
|
15
|
+
# The above copyright notice and this permission notice shall be included in
|
16
|
+
# all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
# THE SOFTWARE.
|
25
|
+
#--------------------------------------------------------------------------
|
26
|
+
require "rubygems"
|
27
|
+
require "nokogiri"
|
28
|
+
require "base64"
|
29
|
+
|
30
|
+
require "azure/storage/common"
|
31
|
+
|
32
|
+
module Azure
|
33
|
+
module Storage
|
34
|
+
module Queue
|
35
|
+
autoload :Default, "azure/storage/queue/default"
|
36
|
+
autoload :Version, "azure/storage/queue/version"
|
37
|
+
autoload :QueueService, "azure/storage/queue/queue_service"
|
38
|
+
autoload :Message, "azure/storage/queue/message"
|
39
|
+
autoload :Serialization, "azure/storage/queue/serialization"
|
40
|
+
autoload :Queue, "azure/storage/queue/queue"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -1,84 +1,84 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
#-------------------------------------------------------------------------
|
4
|
-
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
-
#
|
6
|
-
# The MIT License(MIT)
|
7
|
-
|
8
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
# of this software and associated documentation files(the "Software"), to deal
|
10
|
-
# in the Software without restriction, including without limitation the rights
|
11
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
-
# copies of the Software, and to permit persons to whom the Software is
|
13
|
-
# furnished to do so, subject to the following conditions :
|
14
|
-
|
15
|
-
# The above copyright notice and this permission notice shall be included in
|
16
|
-
# all copies or substantial portions of the Software.
|
17
|
-
|
18
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
# THE SOFTWARE.
|
25
|
-
#--------------------------------------------------------------------------
|
26
|
-
|
27
|
-
require "rbconfig"
|
28
|
-
require "azure/storage/queue/version"
|
29
|
-
|
30
|
-
module Azure::Storage::Queue
|
31
|
-
module Default
|
32
|
-
# Default REST service (STG) version number
|
33
|
-
STG_VERSION = "2017-11-09"
|
34
|
-
|
35
|
-
# The number of default concurrent requests for parallel operation.
|
36
|
-
DEFAULT_PARALLEL_OPERATION_THREAD_COUNT = 1
|
37
|
-
|
38
|
-
# Constant representing a kilobyte (Non-SI version).
|
39
|
-
KB = 1024
|
40
|
-
# Constant representing a megabyte (Non-SI version).
|
41
|
-
MB = 1024 * 1024
|
42
|
-
# Constant representing a gigabyte (Non-SI version).
|
43
|
-
GB = 1024 * 1024 * 1024
|
44
|
-
|
45
|
-
# Specifies HTTP.
|
46
|
-
HTTP = "http"
|
47
|
-
# Specifies HTTPS.
|
48
|
-
HTTPS = "https"
|
49
|
-
# Default HTTP port.
|
50
|
-
DEFAULT_HTTP_PORT = 80
|
51
|
-
# Default HTTPS port.
|
52
|
-
DEFAULT_HTTPS_PORT = 443
|
53
|
-
|
54
|
-
# Marker for atom metadata.
|
55
|
-
XML_METADATA_MARKER = "$"
|
56
|
-
# Marker for atom value.
|
57
|
-
XML_VALUE_MARKER = "_"
|
58
|
-
|
59
|
-
# Default User Agent header string
|
60
|
-
USER_AGENT = "Azure-Storage/#{Azure::Storage::Queue::Version.to_uas}-#{Azure::Storage::Common::Version.to_uas} (Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}; #{Azure::Storage::Common::Default.os})".freeze
|
61
|
-
end
|
62
|
-
|
63
|
-
# Defines constants for use with queue storage.
|
64
|
-
module QueueConstants
|
65
|
-
# XML element for QueueMessage.
|
66
|
-
QUEUE_MESSAGE_ELEMENT = "QueueMessage"
|
67
|
-
|
68
|
-
# XML element for MessageText.
|
69
|
-
MESSAGE_TEXT_ELEMENT = "MessageText"
|
70
|
-
end
|
71
|
-
|
72
|
-
module QueueErrorCodeStrings
|
73
|
-
QUEUE_NOT_FOUND = "QueueNotFound"
|
74
|
-
QUEUE_DISABLED = "QueueDisabled"
|
75
|
-
QUEUE_ALREADY_EXISTS = "QueueAlreadyExists"
|
76
|
-
QUEUE_NOT_EMPTY = "QueueNotEmpty"
|
77
|
-
QUEUE_BEING_DELETED = "QueueBeingDeleted"
|
78
|
-
POP_RECEIPT_MISMATCH = "PopReceiptMismatch"
|
79
|
-
INVALID_PARAMETER = "InvalidParameter"
|
80
|
-
MESSAGE_NOT_FOUND = "MessageNotFound"
|
81
|
-
MESSAGE_TOO_LARGE = "MessageTooLarge"
|
82
|
-
INVALID_MARKER = "InvalidMarker"
|
83
|
-
end
|
84
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
+
#
|
6
|
+
# The MIT License(MIT)
|
7
|
+
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
# of this software and associated documentation files(the "Software"), to deal
|
10
|
+
# in the Software without restriction, including without limitation the rights
|
11
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
+
# copies of the Software, and to permit persons to whom the Software is
|
13
|
+
# furnished to do so, subject to the following conditions :
|
14
|
+
|
15
|
+
# The above copyright notice and this permission notice shall be included in
|
16
|
+
# all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
# THE SOFTWARE.
|
25
|
+
#--------------------------------------------------------------------------
|
26
|
+
|
27
|
+
require "rbconfig"
|
28
|
+
require "azure/storage/queue/version"
|
29
|
+
|
30
|
+
module Azure::Storage::Queue
|
31
|
+
module Default
|
32
|
+
# Default REST service (STG) version number
|
33
|
+
STG_VERSION = "2017-11-09"
|
34
|
+
|
35
|
+
# The number of default concurrent requests for parallel operation.
|
36
|
+
DEFAULT_PARALLEL_OPERATION_THREAD_COUNT = 1
|
37
|
+
|
38
|
+
# Constant representing a kilobyte (Non-SI version).
|
39
|
+
KB = 1024
|
40
|
+
# Constant representing a megabyte (Non-SI version).
|
41
|
+
MB = 1024 * 1024
|
42
|
+
# Constant representing a gigabyte (Non-SI version).
|
43
|
+
GB = 1024 * 1024 * 1024
|
44
|
+
|
45
|
+
# Specifies HTTP.
|
46
|
+
HTTP = "http"
|
47
|
+
# Specifies HTTPS.
|
48
|
+
HTTPS = "https"
|
49
|
+
# Default HTTP port.
|
50
|
+
DEFAULT_HTTP_PORT = 80
|
51
|
+
# Default HTTPS port.
|
52
|
+
DEFAULT_HTTPS_PORT = 443
|
53
|
+
|
54
|
+
# Marker for atom metadata.
|
55
|
+
XML_METADATA_MARKER = "$"
|
56
|
+
# Marker for atom value.
|
57
|
+
XML_VALUE_MARKER = "_"
|
58
|
+
|
59
|
+
# Default User Agent header string
|
60
|
+
USER_AGENT = "Azure-Storage/#{Azure::Storage::Queue::Version.to_uas}-#{Azure::Storage::Common::Version.to_uas} (Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}; #{Azure::Storage::Common::Default.os})".freeze
|
61
|
+
end
|
62
|
+
|
63
|
+
# Defines constants for use with queue storage.
|
64
|
+
module QueueConstants
|
65
|
+
# XML element for QueueMessage.
|
66
|
+
QUEUE_MESSAGE_ELEMENT = "QueueMessage"
|
67
|
+
|
68
|
+
# XML element for MessageText.
|
69
|
+
MESSAGE_TEXT_ELEMENT = "MessageText"
|
70
|
+
end
|
71
|
+
|
72
|
+
module QueueErrorCodeStrings
|
73
|
+
QUEUE_NOT_FOUND = "QueueNotFound"
|
74
|
+
QUEUE_DISABLED = "QueueDisabled"
|
75
|
+
QUEUE_ALREADY_EXISTS = "QueueAlreadyExists"
|
76
|
+
QUEUE_NOT_EMPTY = "QueueNotEmpty"
|
77
|
+
QUEUE_BEING_DELETED = "QueueBeingDeleted"
|
78
|
+
POP_RECEIPT_MISMATCH = "PopReceiptMismatch"
|
79
|
+
INVALID_PARAMETER = "InvalidParameter"
|
80
|
+
MESSAGE_NOT_FOUND = "MessageNotFound"
|
81
|
+
MESSAGE_TOO_LARGE = "MessageTooLarge"
|
82
|
+
INVALID_MARKER = "InvalidMarker"
|
83
|
+
end
|
84
|
+
end
|
@@ -1,41 +1,41 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
#-------------------------------------------------------------------------
|
4
|
-
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
-
#
|
6
|
-
# The MIT License(MIT)
|
7
|
-
|
8
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
# of this software and associated documentation files(the "Software"), to deal
|
10
|
-
# in the Software without restriction, including without limitation the rights
|
11
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
-
# copies of the Software, and to permit persons to whom the Software is
|
13
|
-
# furnished to do so, subject to the following conditions :
|
14
|
-
|
15
|
-
# The above copyright notice and this permission notice shall be included in
|
16
|
-
# all copies or substantial portions of the Software.
|
17
|
-
|
18
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
# THE SOFTWARE.
|
25
|
-
#--------------------------------------------------------------------------
|
26
|
-
module Azure::Storage
|
27
|
-
module Queue
|
28
|
-
class Message
|
29
|
-
def initialize
|
30
|
-
yield self if block_given?
|
31
|
-
end
|
32
|
-
attr_accessor :id
|
33
|
-
attr_accessor :insertion_time
|
34
|
-
attr_accessor :expiration_time
|
35
|
-
attr_accessor :dequeue_count
|
36
|
-
attr_accessor :message_text
|
37
|
-
attr_accessor :time_next_visible
|
38
|
-
attr_accessor :pop_receipt
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
+
#
|
6
|
+
# The MIT License(MIT)
|
7
|
+
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
# of this software and associated documentation files(the "Software"), to deal
|
10
|
+
# in the Software without restriction, including without limitation the rights
|
11
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
+
# copies of the Software, and to permit persons to whom the Software is
|
13
|
+
# furnished to do so, subject to the following conditions :
|
14
|
+
|
15
|
+
# The above copyright notice and this permission notice shall be included in
|
16
|
+
# all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
# THE SOFTWARE.
|
25
|
+
#--------------------------------------------------------------------------
|
26
|
+
module Azure::Storage
|
27
|
+
module Queue
|
28
|
+
class Message
|
29
|
+
def initialize
|
30
|
+
yield self if block_given?
|
31
|
+
end
|
32
|
+
attr_accessor :id
|
33
|
+
attr_accessor :insertion_time
|
34
|
+
attr_accessor :expiration_time
|
35
|
+
attr_accessor :dequeue_count
|
36
|
+
attr_accessor :message_text
|
37
|
+
attr_accessor :time_next_visible
|
38
|
+
attr_accessor :pop_receipt
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -1,38 +1,38 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
#-------------------------------------------------------------------------
|
4
|
-
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
-
#
|
6
|
-
# The MIT License(MIT)
|
7
|
-
|
8
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
# of this software and associated documentation files(the "Software"), to deal
|
10
|
-
# in the Software without restriction, including without limitation the rights
|
11
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
-
# copies of the Software, and to permit persons to whom the Software is
|
13
|
-
# furnished to do so, subject to the following conditions :
|
14
|
-
|
15
|
-
# The above copyright notice and this permission notice shall be included in
|
16
|
-
# all copies or substantial portions of the Software.
|
17
|
-
|
18
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
# THE SOFTWARE.
|
25
|
-
#--------------------------------------------------------------------------
|
26
|
-
module Azure::Storage
|
27
|
-
module Queue
|
28
|
-
class Queue
|
29
|
-
def initialize
|
30
|
-
@metadata = {}
|
31
|
-
yield self if block_given?
|
32
|
-
end
|
33
|
-
|
34
|
-
attr_accessor :name
|
35
|
-
attr_accessor :metadata
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#-------------------------------------------------------------------------
|
4
|
+
# # Copyright (c) Microsoft and contributors. All rights reserved.
|
5
|
+
#
|
6
|
+
# The MIT License(MIT)
|
7
|
+
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
# of this software and associated documentation files(the "Software"), to deal
|
10
|
+
# in the Software without restriction, including without limitation the rights
|
11
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
12
|
+
# copies of the Software, and to permit persons to whom the Software is
|
13
|
+
# furnished to do so, subject to the following conditions :
|
14
|
+
|
15
|
+
# The above copyright notice and this permission notice shall be included in
|
16
|
+
# all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
# THE SOFTWARE.
|
25
|
+
#--------------------------------------------------------------------------
|
26
|
+
module Azure::Storage
|
27
|
+
module Queue
|
28
|
+
class Queue
|
29
|
+
def initialize
|
30
|
+
@metadata = {}
|
31
|
+
yield self if block_given?
|
32
|
+
end
|
33
|
+
|
34
|
+
attr_accessor :name
|
35
|
+
attr_accessor :metadata
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|