icontrol 0.3.1 → 0.3.2

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.
Files changed (151) hide show
  1. data/lib/icontrol/arx.rb +38 -8
  2. data/lib/icontrol/arx/api.rb +1 -0
  3. data/lib/icontrol/arx/chassis.rb +11 -0
  4. data/lib/icontrol/arx/export.rb +4 -1
  5. data/lib/icontrol/arx/file_change_notification.rb +25 -4
  6. data/lib/icontrol/arx/file_server.rb +2 -0
  7. data/lib/icontrol/arx/namespace.rb +2 -0
  8. data/lib/icontrol/arx/network.rb +3 -0
  9. data/lib/icontrol/arx/policy.rb +3 -0
  10. data/lib/icontrol/arx/share.rb +2 -0
  11. data/lib/icontrol/arx/virtual_service.rb +3 -0
  12. data/lib/icontrol/arx/volume.rb +2 -0
  13. data/lib/icontrol/asm.rb +18 -3
  14. data/lib/icontrol/asm/object_params.rb +12 -6
  15. data/lib/icontrol/asm/policy.rb +118 -79
  16. data/lib/icontrol/asm/system_configuration.rb +27 -19
  17. data/lib/icontrol/asm/web_application.rb +74 -52
  18. data/lib/icontrol/asm/web_application_group.rb +33 -24
  19. data/lib/icontrol/base.rb +1 -0
  20. data/lib/icontrol/base/exception.rb +1 -0
  21. data/lib/icontrol/base/icontrol/local_lb/pool.rb +7 -0
  22. data/lib/icontrol/base/icontrol_overlay.rb +6 -0
  23. data/lib/icontrol/base/predeclarations.rb +5 -4
  24. data/lib/icontrol/base/struct.rb +6 -2
  25. data/lib/icontrol/common.rb +55 -4
  26. data/lib/icontrol/global_lb.rb +22 -3
  27. data/lib/icontrol/global_lb/application.rb +63 -44
  28. data/lib/icontrol/global_lb/data_center.rb +82 -58
  29. data/lib/icontrol/global_lb/dnssec_key.rb +152 -90
  30. data/lib/icontrol/global_lb/dnssec_zone.rb +55 -35
  31. data/lib/icontrol/global_lb/globals.rb +662 -430
  32. data/lib/icontrol/global_lb/link.rb +181 -131
  33. data/lib/icontrol/global_lb/monitor.rb +174 -104
  34. data/lib/icontrol/global_lb/pool.rb +290 -203
  35. data/lib/icontrol/global_lb/pool_member.rb +118 -71
  36. data/lib/icontrol/global_lb/region.rb +37 -25
  37. data/lib/icontrol/global_lb/rule.rb +53 -37
  38. data/lib/icontrol/global_lb/server.rb +176 -124
  39. data/lib/icontrol/global_lb/topology.rb +41 -27
  40. data/lib/icontrol/global_lb/virtual_server.rb +118 -84
  41. data/lib/icontrol/global_lb/wide_ip.rb +168 -117
  42. data/lib/icontrol/local_lb.rb +81 -10
  43. data/lib/icontrol/local_lb/klass.rb +233 -153
  44. data/lib/icontrol/local_lb/monitor.rb +158 -96
  45. data/lib/icontrol/local_lb/nat.rb +74 -52
  46. data/lib/icontrol/local_lb/node_address.rb +123 -86
  47. data/lib/icontrol/local_lb/pool.rb +229 -164
  48. data/lib/icontrol/local_lb/pool_member.rb +134 -76
  49. data/lib/icontrol/local_lb/profile_auth.rb +103 -75
  50. data/lib/icontrol/local_lb/profile_client_ssl.rb +284 -201
  51. data/lib/icontrol/local_lb/profile_diameter.rb +113 -71
  52. data/lib/icontrol/local_lb/profile_dns.rb +65 -46
  53. data/lib/icontrol/local_lb/profile_fast_http.rb +265 -178
  54. data/lib/icontrol/local_lb/profile_fast_l4.rb +283 -194
  55. data/lib/icontrol/local_lb/profile_ftp.rb +81 -58
  56. data/lib/icontrol/local_lb/profile_http.rb +701 -433
  57. data/lib/icontrol/local_lb/profile_http_class.rb +169 -121
  58. data/lib/icontrol/local_lb/profile_iiop.rb +87 -63
  59. data/lib/icontrol/local_lb/profile_one_connect.rb +99 -71
  60. data/lib/icontrol/local_lb/profile_persistence.rb +326 -203
  61. data/lib/icontrol/local_lb/profile_radius.rb +94 -62
  62. data/lib/icontrol/local_lb/profile_rtsp.rb +207 -129
  63. data/lib/icontrol/local_lb/profile_sctp.rb +231 -167
  64. data/lib/icontrol/local_lb/profile_server_ssl.rb +268 -189
  65. data/lib/icontrol/local_lb/profile_sip.rb +145 -99
  66. data/lib/icontrol/local_lb/profile_stream.rb +71 -51
  67. data/lib/icontrol/local_lb/profile_tcp.rb +455 -296
  68. data/lib/icontrol/local_lb/profile_udp.rb +109 -78
  69. data/lib/icontrol/local_lb/profile_user_statistic.rb +77 -46
  70. data/lib/icontrol/local_lb/profile_xml.rb +116 -79
  71. data/lib/icontrol/local_lb/ram_cache_information.rb +43 -20
  72. data/lib/icontrol/local_lb/rate_class.rb +523 -318
  73. data/lib/icontrol/local_lb/rule.rb +53 -37
  74. data/lib/icontrol/local_lb/snat.rb +96 -65
  75. data/lib/icontrol/local_lb/snat_pool.rb +54 -39
  76. data/lib/icontrol/local_lb/snat_pool_member.rb +22 -15
  77. data/lib/icontrol/local_lb/snat_translation_address.rb +94 -69
  78. data/lib/icontrol/local_lb/virtual_address.rb +99 -70
  79. data/lib/icontrol/local_lb/virtual_server.rb +358 -243
  80. data/lib/icontrol/lt_config.rb +8 -1
  81. data/lib/icontrol/lt_config/field.rb +87 -53
  82. data/lib/icontrol/lt_config/klass.rb +59 -43
  83. data/lib/icontrol/management.rb +80 -38
  84. data/lib/icontrol/management/ccldap_configuration.rb +218 -144
  85. data/lib/icontrol/management/change_control.rb +67 -41
  86. data/lib/icontrol/management/crldp_configuration.rb +73 -52
  87. data/lib/icontrol/management/crldp_server.rb +55 -39
  88. data/lib/icontrol/management/db_variable.rb +32 -21
  89. data/lib/icontrol/management/event_notification.rb +19 -8
  90. data/lib/icontrol/management/event_subscription.rb +121 -74
  91. data/lib/icontrol/management/key_certificate.rb +235 -138
  92. data/lib/icontrol/management/ldap_configuration.rb +249 -179
  93. data/lib/icontrol/management/license_administration.rb +97 -56
  94. data/lib/icontrol/management/named.rb +103 -67
  95. data/lib/icontrol/management/ocsp_configuration.rb +33 -24
  96. data/lib/icontrol/management/ocsp_responder.rb +294 -165
  97. data/lib/icontrol/management/partition.rb +42 -23
  98. data/lib/icontrol/management/provision.rb +73 -39
  99. data/lib/icontrol/management/radius_configuration.rb +85 -57
  100. data/lib/icontrol/management/radius_server.rb +51 -37
  101. data/lib/icontrol/management/resource_record.rb +163 -121
  102. data/lib/icontrol/management/snmp_configuration.rb +675 -390
  103. data/lib/icontrol/management/tacacs_configuration.rb +99 -67
  104. data/lib/icontrol/management/tmos_module.rb +20 -8
  105. data/lib/icontrol/management/user_management.rb +198 -124
  106. data/lib/icontrol/management/view.rb +33 -24
  107. data/lib/icontrol/management/zone.rb +49 -34
  108. data/lib/icontrol/management/zone_runner.rb +11 -7
  109. data/lib/icontrol/networking.rb +31 -4
  110. data/lib/icontrol/networking/admin_ip.rb +92 -71
  111. data/lib/icontrol/networking/arp.rb +41 -28
  112. data/lib/icontrol/networking/i_session_advertised_route.rb +47 -32
  113. data/lib/icontrol/networking/i_session_local_interface.rb +72 -52
  114. data/lib/icontrol/networking/i_session_peer_discovery.rb +105 -68
  115. data/lib/icontrol/networking/i_session_remote_interface.rb +105 -76
  116. data/lib/icontrol/networking/interfaces.rb +241 -142
  117. data/lib/icontrol/networking/packet_filter.rb +111 -69
  118. data/lib/icontrol/networking/packet_filter_globals.rb +39 -28
  119. data/lib/icontrol/networking/port_mirror.rb +39 -27
  120. data/lib/icontrol/networking/profile_gre.rb +63 -41
  121. data/lib/icontrol/networking/profile_ipip.rb +38 -25
  122. data/lib/icontrol/networking/profile_wccpgre.rb +85 -55
  123. data/lib/icontrol/networking/route_domain.rb +70 -44
  124. data/lib/icontrol/networking/route_table.rb +128 -91
  125. data/lib/icontrol/networking/self_ip.rb +57 -39
  126. data/lib/icontrol/networking/self_ip_port_lockdown.rb +34 -22
  127. data/lib/icontrol/networking/stp_globals.rb +115 -63
  128. data/lib/icontrol/networking/stp_instance.rb +166 -68
  129. data/lib/icontrol/networking/trunk.rb +165 -101
  130. data/lib/icontrol/networking/tunnel.rb +77 -52
  131. data/lib/icontrol/networking/vlan.rb +140 -98
  132. data/lib/icontrol/networking/vlan_group.rb +145 -101
  133. data/lib/icontrol/system.rb +70 -33
  134. data/lib/icontrol/system/cluster.rb +103 -81
  135. data/lib/icontrol/system/config_sync.rb +128 -72
  136. data/lib/icontrol/system/connections.rb +27 -17
  137. data/lib/icontrol/system/disk.rb +134 -67
  138. data/lib/icontrol/system/failover.rb +44 -27
  139. data/lib/icontrol/system/geo_ip.rb +16 -5
  140. data/lib/icontrol/system/inet.rb +47 -30
  141. data/lib/icontrol/system/internal.rb +13 -9
  142. data/lib/icontrol/system/services.rb +75 -42
  143. data/lib/icontrol/system/software_management.rb +132 -83
  144. data/lib/icontrol/system/statistics.rb +443 -298
  145. data/lib/icontrol/system/system_info.rb +137 -95
  146. data/lib/icontrol/web_accelerator/applications.rb +17 -10
  147. data/lib/icontrol/web_accelerator/policies.rb +13 -9
  148. data/lib/icontrol/web_accelerator/proxy_message.rb +11 -7
  149. data/spec/icontrol/local_lb/pool_member_spec.rb +495 -0
  150. data/spec/icontrol/local_lb/profile_http_class_spec.rb +514 -0
  151. metadata +10 -4
@@ -7,13 +7,17 @@ module IControl::ASM
7
7
 
8
8
  class AttackSignatureDefinition < IControl::Base::Struct; end
9
9
  class MetacharDefinition < IControl::Base::Struct; end
10
+ class AttackSignatureDefinitionSequence < IControl::Base::Sequence ; end
11
+ class MetacharDefinitionSequence < IControl::Base::Sequence ; end
12
+ class ObjectParamCategorySequence < IControl::Base::Sequence ; end
10
13
  # An enumeration for different states of URL parameter
11
14
  class ObjectParamCategory < IControl::Base::Enumeration; end ##
12
15
  # Adds (if doesn't exists) or updates (if exists) URL parameter in a polic.
16
+ # @rspec_example
13
17
  # @return [boolean]
14
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
15
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
16
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
18
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
19
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
20
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
17
21
  # @param [Hash] opts
18
22
  # @option opts [String] :uri
19
23
  # @option opts [String] :param_name The name of the URL parameter.
@@ -25,6 +29,7 @@ module IControl::ASM
25
29
 
26
30
  ##
27
31
  # Gets the version information for this interface.
32
+ # @rspec_example
28
33
  # @return [String]
29
34
  def version
30
35
  super
@@ -32,10 +37,11 @@ module IControl::ASM
32
37
 
33
38
  ##
34
39
  # Set or unset staging for URL parameter in a polic.
40
+ # @rspec_example
35
41
  # @return [boolean]
36
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
37
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
38
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
42
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
43
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
44
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
39
45
  # @param [Hash] opts
40
46
  # @option opts [String] :uri
41
47
  # @option opts [String] :param_name The name of the URL parameter.
@@ -7,10 +7,11 @@ module IControl::ASM
7
7
 
8
8
  ##
9
9
  # Add predictable resource location
10
+ # @rspec_example
10
11
  # @return [boolean]
11
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
12
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
13
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
12
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
13
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
14
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
14
15
  # @param [Hash] opts
15
16
  # @option opts [String] :policy_name The polciy's name.
16
17
  # @option opts [String] :uris List or URIs to block. The URI is full, e.g.: http://foo.com/bar.php
@@ -21,9 +22,10 @@ module IControl::ASM
21
22
 
22
23
  ##
23
24
  # Associates the WA web applictions to the ASM policy.
24
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
25
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
26
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
25
+ # @rspec_example
26
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
27
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
28
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
27
29
  # @param [Hash] opts
28
30
  # @option opts [String] :wa_webapp_names List of WA web applcations.
29
31
  def associate_wa_webapp(opts)
@@ -33,9 +35,10 @@ module IControl::ASM
33
35
 
34
36
  ##
35
37
  # Create policies for this web applications.
36
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
37
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
38
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
38
+ # @rspec_example
39
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
40
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
41
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
39
42
  # @param [Hash] opts
40
43
  # @option opts [String] :webapp_names The web application names.
41
44
  def create(opts)
@@ -45,9 +48,10 @@ module IControl::ASM
45
48
 
46
49
  ##
47
50
  # Create policies from template for this web applications.
48
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
49
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
50
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
51
+ # @rspec_example
52
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
53
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
54
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
51
55
  # @param [Hash] opts
52
56
  # @option opts [String] :webapp_names The web application names.
53
57
  # @option opts [IControl::ASM::PolicyTemplate[]] :policy_templates The policy templates.
@@ -58,18 +62,20 @@ module IControl::ASM
58
62
 
59
63
  ##
60
64
  # Deletes a policy.
61
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
62
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
63
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
65
+ # @rspec_example
66
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
67
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
68
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
64
69
  def delete_policy
65
70
  super
66
71
  end
67
72
 
68
73
  ##
69
74
  # Detaches the WA web applictions from the ASM policy.
70
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
71
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
72
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
75
+ # @rspec_example
76
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
77
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
78
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
73
79
  # @param [Hash] opts
74
80
  # @option opts [String] :wa_webapp_names List of WA web applcations.
75
81
  def detach_wa_webapp(opts)
@@ -78,11 +84,18 @@ module IControl::ASM
78
84
  end
79
85
 
80
86
  ##
81
- # Downloads the policy from the device. The download_policy is typically called after having called to export_policy. The parameter policy_name must be the same as used during export_policy. The file is downloaded in chunks. Each chunk should be concatenated to the previous one on the client side. The return value has two fields: - file_data: The relevant part of the content of the file - chunk_type: Indicates the current chunk whether it is the first, middle, last chunk or the current call includes the entire file.
87
+ # Downloads the policy from the device. The download_policy is typically called after
88
+ # having called to export_policy. The parameter policy_name must be the same as used
89
+ # during export_policy. The file is downloaded in chunks. Each chunk should be concatenated
90
+ # to the previous one on the client side. The return value has two fields: - file_data:
91
+ # The relevant part of the content of the file - chunk_type: Indicates the current
92
+ # chunk whether it is the first, middle, last chunk or the current call includes the
93
+ # entire file.
94
+ # @rspec_example
82
95
  # @return [FileTransferContext]
83
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
84
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
85
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
96
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
97
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
98
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
86
99
  # @param [Hash] opts
87
100
  # @option opts [String] :policy_name The relative filename under /var/tmp into which export_policy previously exported the policy.
88
101
  # @option opts [long] :chunk_size The chunk/block size of the file data to read from the device.
@@ -93,10 +106,13 @@ module IControl::ASM
93
106
  end
94
107
 
95
108
  ##
96
- # Export Policy The export_policy method exports the policy specified in parameter policy_name and writes the file to the device's local disk. This method is typically followed by a call to download_policy which gets this full path filename as a parameter.
97
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
98
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
99
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
109
+ # Export Policy The export_policy method exports the policy specified in parameter
110
+ # policy_name and writes the file to the device's local disk. This method is typically
111
+ # followed by a call to download_policy which gets this full path filename as a parameter.
112
+ # @rspec_example
113
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
114
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
115
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
100
116
  # @param [Hash] opts
101
117
  # @option opts [String] :policy_name The name of the policy.
102
118
  # @option opts [String] :filename The filename to which the policy will be exported under /var/tmp.
@@ -107,56 +123,62 @@ module IControl::ASM
107
123
 
108
124
  ##
109
125
  # Get the max cookie length.
126
+ # @rspec_example
110
127
  # @return [long]
111
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
112
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
113
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
128
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
129
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
130
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
114
131
  def cookie_length
115
132
  super
116
133
  end
117
134
 
118
135
  ##
119
136
  # Get blocking flag.
137
+ # @rspec_example
120
138
  # @return [boolean]
121
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
122
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
123
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
139
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
140
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
141
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
124
142
  def disable_blocking_flag
125
143
  super
126
144
  end
127
145
 
128
146
  ##
129
147
  # Get the &amp;quot;dynamic sessions in URL" for this policies.
148
+ # @rspec_example
130
149
  # @return [DynamicSessionsInUrl]
131
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
132
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
133
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
150
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
151
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
152
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
134
153
  def dynamic_sessions_in_url
135
154
  super
136
155
  end
137
156
 
138
157
  ##
139
158
  # Get max http header length.
159
+ # @rspec_example
140
160
  # @return [long]
141
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
142
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
143
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
161
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
162
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
163
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
144
164
  def http_header_length
145
165
  super
146
166
  end
147
167
 
148
168
  ##
149
169
  # Get the list of policies.
170
+ # @rspec_example
150
171
  # @return [String]
151
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
152
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
153
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
172
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
173
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
174
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
154
175
  def list
155
176
  super
156
177
  end
157
178
 
158
179
  ##
159
180
  # Gets the version information for this interface.
181
+ # @rspec_example
160
182
  # @return [String]
161
183
  def version
162
184
  super
@@ -164,19 +186,22 @@ module IControl::ASM
164
186
 
165
187
  ##
166
188
  # Gets violation blocking flag.
189
+ # @rspec_example
167
190
  # @return [Violation[]]
168
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
169
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
170
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
191
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
192
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
193
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
171
194
  def violation_flags
172
195
  super
173
196
  end
174
197
 
175
198
  ##
176
- # Import Policy Before calling import_policy, upload_policy should be done. Once the policy is completely uploaded, you can import it.
177
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
178
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
179
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
199
+ # Import Policy Before calling import_policy, upload_policy should be done. Once the
200
+ # policy is completely uploaded, you can import it.
201
+ # @rspec_example
202
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
203
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
204
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
180
205
  # @param [Hash] opts
181
206
  # @option opts [String] :webapp_name The target web application into which the policy will be imported.
182
207
  # @option opts [String] :filename The server-side full path where the policy was previously uploaded during upload_policy. This is: "/var/tmp/" concatenated with the parameter policy_name from the import_policy call.
@@ -187,9 +212,10 @@ module IControl::ASM
187
212
 
188
213
  ##
189
214
  # Updates max cookie length.
190
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
191
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
192
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
215
+ # @rspec_example
216
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
217
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
218
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
193
219
  # @param [Hash] opts
194
220
  # @option opts [long] :cookie_lengths The maximum length of a cookie.
195
221
  def set_cookie_length(opts)
@@ -199,9 +225,10 @@ module IControl::ASM
199
225
 
200
226
  ##
201
227
  # Updates blocking flag.
202
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
203
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
204
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
228
+ # @rspec_example
229
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
230
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
231
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
205
232
  # @param [Hash] opts
206
233
  # @option opts [boolean] :blocking_flags The flags of blocking enabled / disabled for each policy
207
234
  def set_disable_blocking_flag(opts)
@@ -211,9 +238,10 @@ module IControl::ASM
211
238
 
212
239
  ##
213
240
  # Set the &amp;quot;dynamic sessions in URL" for this policies.
214
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
215
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
216
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
241
+ # @rspec_example
242
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
243
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
244
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
217
245
  # @param [Hash] opts
218
246
  # @option opts [IControl::ASM::DynamicSessionsInUrl] :settings The "dynamic sessions in URL" settings for the policies
219
247
  def set_dynamic_sessions_in_url(opts)
@@ -223,9 +251,10 @@ module IControl::ASM
223
251
 
224
252
  ##
225
253
  # Updates max http header length.
226
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
227
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
228
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
254
+ # @rspec_example
255
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
256
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
257
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
229
258
  # @param [Hash] opts
230
259
  # @option opts [long] :http_header_lengths The maximum length of http header.
231
260
  def set_http_header_length(opts)
@@ -235,10 +264,11 @@ module IControl::ASM
235
264
 
236
265
  ##
237
266
  # Set HTTP response splitting
267
+ # @rspec_example
238
268
  # @return [boolean]
239
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
240
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
241
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
269
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
270
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
271
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
242
272
  # @param [Hash] opts
243
273
  # @option opts [String] :policy_name The polciy's name.
244
274
  def set_http_response_splitting(opts)
@@ -248,10 +278,11 @@ module IControl::ASM
248
278
 
249
279
  ##
250
280
  # Set path traversal
281
+ # @rspec_example
251
282
  # @return [boolean]
252
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
253
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
254
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
283
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
284
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
285
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
255
286
  # @param [Hash] opts
256
287
  # @option opts [String] :policy_name The polciy's name.
257
288
  def set_path_traversal(opts)
@@ -261,9 +292,10 @@ module IControl::ASM
261
292
 
262
293
  ##
263
294
  # Updates prerequisite expiration period flag.
264
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
265
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
266
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
295
+ # @rspec_example
296
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
297
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
298
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
267
299
  # @param [Hash] opts
268
300
  # @option opts [long] :expiration_periods The expiration period of login pages in seconds
269
301
  def set_prerequisite_expiration_period(opts)
@@ -273,9 +305,10 @@ module IControl::ASM
273
305
 
274
306
  ##
275
307
  # Updates violation blocking flag.
276
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
277
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
278
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
308
+ # @rspec_example
309
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
310
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
311
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
279
312
  # @param [Hash] opts
280
313
  # @option opts [IControl::ASM::Violation[]] :violations The violations for each policy.
281
314
  def set_violation_flags(opts)
@@ -284,10 +317,15 @@ module IControl::ASM
284
317
  end
285
318
 
286
319
  ##
287
- # Uploads the policy to the device. In order to import a policy two things have to be done in this order - call upload_policy - call import_policy upload_policy uploads the policy to the device to /var/tmp/ directory. The filename is the name of the policy given in policy_name. If the policy is big, it should be uploaded in chunks using a loop on the client side.
288
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
289
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
290
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
320
+ # Uploads the policy to the device. In order to import a policy two things have to
321
+ # be done in this order - call upload_policy - call import_policy upload_policy uploads
322
+ # the policy to the device to /var/tmp/ directory. The filename is the name of the
323
+ # policy given in policy_name. If the policy is big, it should be uploaded in chunks
324
+ # using a loop on the client side.
325
+ # @rspec_example
326
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
327
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
328
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
291
329
  # @param [Hash] opts
292
330
  # @option opts [String] :policy_name The name of the policy. The filename will be the name of the policy in the /var/tmp directory.
293
331
  # @option opts [IControl::ASM::FileTransferContext] :file_context The context of the transfer operation. It has two parts: - file_data: The relevant part of the content of the file - chunk_type: Indicates the current chunk whether it is the first, middle, last chunk or the current call includes the entire file.
@@ -298,9 +336,10 @@ module IControl::ASM
298
336
 
299
337
  ##
300
338
  # Uploads the the wsdl and attaches it to a specific xml profile of a policy.
301
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
302
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
303
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
339
+ # @rspec_example
340
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
341
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
342
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
304
343
  # @param [Hash] opts
305
344
  # @option opts [String] :policy_name The name of the policy.
306
345
  # @option opts [String] :profile_name The name of the XML profile.
@@ -1,22 +1,25 @@
1
1
  module IControl::ASM
2
2
  ##
3
- # The SystemConfiguration interface enables you to manipulate system-wide settings of ASM.
3
+ # The SystemConfiguration interface enables you to manipulate system-wide settings
4
+ # of ASM.
4
5
  class SystemConfiguration < IControl::Base
5
6
 
6
7
  set_id_name "flg_is_user_defined"
7
8
 
8
9
  ##
9
10
  # Returns the current version of the installed signature file
11
+ # @rspec_example
10
12
  # @return [String]
11
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
12
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
13
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
13
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
14
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
15
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
14
16
  def signature_file_version
15
17
  super
16
18
  end
17
19
 
18
20
  ##
19
21
  # Gets the version information for this interface.
22
+ # @rspec_example
20
23
  # @return [String]
21
24
  def version
22
25
  super
@@ -24,29 +27,32 @@ module IControl::ASM
24
27
 
25
28
  ##
26
29
  # Get the severity of violations.
30
+ # @rspec_example
27
31
  # @return [ViolationSeverity]
28
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
29
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
30
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
32
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
33
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
34
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
31
35
  def violation_severities
32
36
  super
33
37
  end
34
38
 
35
39
  ##
36
40
  # Returns the current status of ASM: &amp;apos;1'=ASM ready &amp;apos;0'=ASM not ready
41
+ # @rspec_example
37
42
  # @return [boolean]
38
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
39
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
40
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
43
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
44
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
45
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
41
46
  def is_asm_ready
42
47
  super
43
48
  end
44
49
 
45
50
  ##
46
51
  # Set the severity of violations.
47
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
48
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
49
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
52
+ # @rspec_example
53
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
54
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
55
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
50
56
  # @param [Hash] opts
51
57
  # @option opts [IControl::ASM::ViolationSeverity] :violation_severities The violation severities.
52
58
  def set_violation_severities(opts)
@@ -56,10 +62,11 @@ module IControl::ASM
56
62
 
57
63
  ##
58
64
  # Updates the factory negsig file automatically from F5 server
65
+ # @rspec_example
59
66
  # @return [SignatureFileUpdateReturnValue]
60
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
61
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
62
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
67
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
68
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
69
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
63
70
  # @param [Hash] opts
64
71
  # @option opts [boolean] :do_set_active Whether to make the signatures active for all policies
65
72
  # @option opts [boolean] :force Deprecated.
@@ -72,10 +79,11 @@ module IControl::ASM
72
79
 
73
80
  ##
74
81
  # Updates the factory negsig file manually
82
+ # @rspec_example
75
83
  # @return [SignatureFileUpdateReturnValue]
76
- # @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
77
- # @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
78
- # @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
84
+ # @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
85
+ # @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
86
+ # @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
79
87
  # @param [Hash] opts
80
88
  # @option opts [IControl::ASM::FileTransferContext] :file_context The signature file's context used to update the system.
81
89
  # @option opts [boolean] :do_set_active Whether to make the signatures active for all policies