launchdarkly_api 2.0.10 → 2.0.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (276) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +153 -151
  3. data/docs/AuditLogApi.md +7 -7
  4. data/docs/{Action.md → CopyActions.md} +1 -1
  5. data/docs/CustomProperty.md +1 -1
  6. data/docs/CustomRole.md +1 -1
  7. data/docs/CustomRoleBody.md +1 -1
  8. data/docs/CustomRoles.md +1 -1
  9. data/docs/CustomRolesApi.md +7 -6
  10. data/docs/CustomerMetricsApi.md +511 -0
  11. data/docs/DataExportDestinationsApi.md +293 -0
  12. data/docs/Destination.md +14 -0
  13. data/docs/DestinationAmazonKinesis.md +10 -0
  14. data/docs/DestinationBody.md +11 -0
  15. data/docs/DestinationGooglePubSub.md +9 -0
  16. data/docs/DestinationMParticle.md +11 -0
  17. data/docs/{CustomRoleKeyOrId.md → DestinationSegment.md} +2 -1
  18. data/docs/Destinations.md +9 -0
  19. data/docs/Environment.md +2 -0
  20. data/docs/EnvironmentPost.md +5 -0
  21. data/docs/EnvironmentsApi.md +11 -10
  22. data/docs/EvaluationUsageError.md +9 -0
  23. data/docs/Events.md +8 -0
  24. data/docs/FeatureFlag.md +4 -1
  25. data/docs/FeatureFlagConfig.md +0 -1
  26. data/docs/FeatureFlagCopyBody.md +12 -0
  27. data/docs/FeatureFlagCopyObject.md +9 -0
  28. data/docs/FeatureFlagStatus.md +1 -1
  29. data/docs/FeatureFlagStatusAcrossEnvironments.md +10 -0
  30. data/docs/FeatureFlagStatusForQueriedEnvironment.md +10 -0
  31. data/docs/FeatureFlagsApi.md +136 -17
  32. data/docs/MAU.md +10 -0
  33. data/docs/{Actions.md → MAUMetadata.md} +1 -1
  34. data/docs/MAUbyCategory.md +10 -0
  35. data/docs/Member.md +2 -0
  36. data/docs/Members.md +1 -1
  37. data/docs/MembersBody.md +1 -1
  38. data/docs/Policy.md +4 -2
  39. data/docs/ProjectBody.md +2 -0
  40. data/docs/ProjectsApi.md +7 -6
  41. data/docs/Rollout.md +1 -0
  42. data/docs/Statement.md +4 -4
  43. data/docs/Stream.md +10 -0
  44. data/docs/StreamBySDK.md +10 -0
  45. data/docs/StreamBySDKLinks.md +9 -0
  46. data/docs/StreamBySDKLinksMetadata.md +10 -0
  47. data/docs/StreamLinks.md +10 -0
  48. data/docs/StreamSDKVersion.md +9 -0
  49. data/docs/StreamSDKVersionData.md +9 -0
  50. data/docs/StreamUsageError.md +9 -0
  51. data/docs/StreamUsageLinks.md +10 -0
  52. data/docs/StreamUsageMetadata.md +10 -0
  53. data/docs/StreamUsageSeries.md +9 -0
  54. data/docs/Streams.md +8 -0
  55. data/docs/TeamMembersApi.md +7 -6
  56. data/docs/Usage.md +9 -0
  57. data/docs/{CustomProperties.md → UsageError.md} +2 -1
  58. data/docs/UsageLinks.md +10 -0
  59. data/docs/UserSegmentsApi.md +18 -17
  60. data/docs/UserSettingsApi.md +11 -11
  61. data/docs/UsersApi.md +15 -15
  62. data/docs/Webhook.md +1 -0
  63. data/docs/WebhookBody.md +2 -0
  64. data/docs/WebhooksApi.md +7 -6
  65. data/launchdarkly_api.gemspec +5 -6
  66. data/lib/launchdarkly_api/api/audit_log_api.rb +13 -19
  67. data/lib/launchdarkly_api/api/custom_roles_api.rb +23 -37
  68. data/lib/launchdarkly_api/api/customer_metrics_api.rb +519 -0
  69. data/lib/launchdarkly_api/api/data_export_destinations_api.rb +330 -0
  70. data/lib/launchdarkly_api/api/environments_api.rb +20 -31
  71. data/lib/launchdarkly_api/api/feature_flags_api.rb +150 -43
  72. data/lib/launchdarkly_api/api/projects_api.rb +23 -37
  73. data/lib/launchdarkly_api/api/root_api.rb +6 -9
  74. data/lib/launchdarkly_api/api/team_members_api.rb +23 -37
  75. data/lib/launchdarkly_api/api/user_segments_api.rb +23 -37
  76. data/lib/launchdarkly_api/api/user_settings_api.rb +12 -21
  77. data/lib/launchdarkly_api/api/users_api.rb +17 -29
  78. data/lib/launchdarkly_api/api/webhooks_api.rb +23 -37
  79. data/lib/launchdarkly_api/api_client.rb +10 -10
  80. data/lib/launchdarkly_api/api_error.rb +2 -2
  81. data/lib/launchdarkly_api/configuration.rb +3 -3
  82. data/lib/launchdarkly_api/models/audit_log_entries.rb +7 -12
  83. data/lib/launchdarkly_api/models/audit_log_entry.rb +7 -12
  84. data/lib/launchdarkly_api/models/audit_log_entry_target.rb +7 -12
  85. data/lib/launchdarkly_api/models/clause.rb +7 -12
  86. data/lib/launchdarkly_api/models/copy_actions.rb +34 -0
  87. data/lib/launchdarkly_api/models/custom_property.rb +13 -14
  88. data/lib/launchdarkly_api/models/custom_property_values.rb +7 -11
  89. data/lib/launchdarkly_api/models/custom_role.rb +9 -13
  90. data/lib/launchdarkly_api/models/custom_role_body.rb +12 -16
  91. data/lib/launchdarkly_api/models/custom_roles.rb +11 -14
  92. data/lib/launchdarkly_api/models/destination.rb +276 -0
  93. data/lib/launchdarkly_api/models/destination_amazon_kinesis.rb +201 -0
  94. data/lib/launchdarkly_api/models/destination_body.rb +263 -0
  95. data/lib/launchdarkly_api/models/destination_google_pub_sub.rb +192 -0
  96. data/lib/launchdarkly_api/models/destination_m_particle.rb +210 -0
  97. data/lib/launchdarkly_api/models/destination_segment.rb +183 -0
  98. data/lib/launchdarkly_api/models/destinations.rb +194 -0
  99. data/lib/launchdarkly_api/models/environment.rb +29 -14
  100. data/lib/launchdarkly_api/models/environment_post.rb +64 -17
  101. data/lib/launchdarkly_api/models/evaluation_usage_error.rb +192 -0
  102. data/lib/launchdarkly_api/models/{action.rb → events.rb} +17 -13
  103. data/lib/launchdarkly_api/models/fallthrough.rb +7 -12
  104. data/lib/launchdarkly_api/models/feature_flag.rb +46 -16
  105. data/lib/launchdarkly_api/models/feature_flag_body.rb +10 -15
  106. data/lib/launchdarkly_api/models/feature_flag_config.rb +8 -24
  107. data/lib/launchdarkly_api/models/feature_flag_copy_body.rb +226 -0
  108. data/lib/launchdarkly_api/models/feature_flag_copy_object.rb +199 -0
  109. data/lib/launchdarkly_api/models/feature_flag_status.rb +22 -26
  110. data/lib/launchdarkly_api/models/feature_flag_status_across_environments.rb +203 -0
  111. data/lib/launchdarkly_api/models/feature_flag_status_for_queried_environment.rb +236 -0
  112. data/lib/launchdarkly_api/models/feature_flag_statuses.rb +7 -12
  113. data/lib/launchdarkly_api/models/feature_flags.rb +7 -12
  114. data/lib/launchdarkly_api/models/id.rb +7 -11
  115. data/lib/launchdarkly_api/models/link.rb +7 -12
  116. data/lib/launchdarkly_api/models/links.rb +7 -12
  117. data/lib/launchdarkly_api/models/ma_uby_category.rb +205 -0
  118. data/lib/launchdarkly_api/models/mau.rb +205 -0
  119. data/lib/launchdarkly_api/models/{actions.rb → mau_metadata.rb} +8 -13
  120. data/lib/launchdarkly_api/models/member.rb +26 -13
  121. data/lib/launchdarkly_api/models/members.rb +11 -14
  122. data/lib/launchdarkly_api/models/members_body.rb +9 -14
  123. data/lib/launchdarkly_api/models/patch_comment.rb +7 -12
  124. data/lib/launchdarkly_api/models/patch_operation.rb +10 -15
  125. data/lib/launchdarkly_api/models/policy.rb +40 -17
  126. data/lib/launchdarkly_api/models/prerequisite.rb +7 -12
  127. data/lib/launchdarkly_api/models/project.rb +7 -12
  128. data/lib/launchdarkly_api/models/project_body.rb +30 -15
  129. data/lib/launchdarkly_api/models/projects.rb +7 -12
  130. data/lib/launchdarkly_api/models/role.rb +7 -8
  131. data/lib/launchdarkly_api/models/rollout.rb +17 -13
  132. data/lib/launchdarkly_api/models/rule.rb +7 -12
  133. data/lib/launchdarkly_api/models/statement.rb +35 -31
  134. data/lib/launchdarkly_api/models/statements.rb +7 -12
  135. data/lib/launchdarkly_api/models/stream.rb +205 -0
  136. data/lib/launchdarkly_api/models/stream_by_sdk.rb +205 -0
  137. data/lib/launchdarkly_api/models/stream_by_sdk_links.rb +192 -0
  138. data/lib/launchdarkly_api/models/{resources.rb → stream_by_sdk_links_metadata.rb} +34 -12
  139. data/lib/launchdarkly_api/models/stream_links.rb +204 -0
  140. data/lib/launchdarkly_api/models/stream_sdk_version.rb +194 -0
  141. data/lib/launchdarkly_api/models/stream_sdk_version_data.rb +194 -0
  142. data/lib/launchdarkly_api/models/stream_usage_error.rb +192 -0
  143. data/lib/launchdarkly_api/models/stream_usage_links.rb +204 -0
  144. data/lib/launchdarkly_api/models/stream_usage_metadata.rb +203 -0
  145. data/lib/launchdarkly_api/models/stream_usage_series.rb +194 -0
  146. data/lib/launchdarkly_api/models/{custom_properties.rb → streams.rb} +17 -13
  147. data/lib/launchdarkly_api/models/target.rb +7 -12
  148. data/lib/launchdarkly_api/models/usage.rb +194 -0
  149. data/lib/launchdarkly_api/models/{custom_role_key_or_id.rb → usage_error.rb} +17 -13
  150. data/lib/launchdarkly_api/models/usage_links.rb +204 -0
  151. data/lib/launchdarkly_api/models/user.rb +7 -12
  152. data/lib/launchdarkly_api/models/user_flag_setting.rb +7 -12
  153. data/lib/launchdarkly_api/models/user_flag_settings.rb +7 -12
  154. data/lib/launchdarkly_api/models/user_record.rb +7 -12
  155. data/lib/launchdarkly_api/models/user_segment.rb +10 -15
  156. data/lib/launchdarkly_api/models/user_segment_body.rb +9 -14
  157. data/lib/launchdarkly_api/models/user_segment_rule.rb +7 -12
  158. data/lib/launchdarkly_api/models/user_segments.rb +7 -12
  159. data/lib/launchdarkly_api/models/user_settings_body.rb +7 -12
  160. data/lib/launchdarkly_api/models/users.rb +7 -12
  161. data/lib/launchdarkly_api/models/variation.rb +8 -13
  162. data/lib/launchdarkly_api/models/webhook.rb +17 -13
  163. data/lib/launchdarkly_api/models/webhook_body.rb +33 -17
  164. data/lib/launchdarkly_api/models/webhooks.rb +7 -12
  165. data/lib/launchdarkly_api/models/weighted_variation.rb +7 -12
  166. data/lib/launchdarkly_api/version.rb +3 -3
  167. data/lib/launchdarkly_api.rb +36 -8
  168. data/openapi.yml +1004 -115
  169. data/spec/api/audit_log_api_spec.rb +6 -8
  170. data/spec/api/custom_roles_api_spec.rb +8 -13
  171. data/spec/api/customer_metrics_api_spec.rb +141 -0
  172. data/spec/api/data_export_destinations_api_spec.rb +98 -0
  173. data/spec/api/environments_api_spec.rb +7 -11
  174. data/spec/api/feature_flags_api_spec.rb +36 -16
  175. data/spec/api/projects_api_spec.rb +8 -13
  176. data/spec/api/root_api_spec.rb +3 -4
  177. data/spec/api/team_members_api_spec.rb +8 -13
  178. data/spec/api/user_segments_api_spec.rb +8 -13
  179. data/spec/api/user_settings_api_spec.rb +5 -8
  180. data/spec/api/users_api_spec.rb +7 -11
  181. data/spec/api/webhooks_api_spec.rb +8 -13
  182. data/spec/api_client_spec.rb +36 -36
  183. data/spec/configuration_spec.rb +10 -10
  184. data/spec/models/audit_log_entries_spec.rb +4 -5
  185. data/spec/models/audit_log_entry_spec.rb +14 -15
  186. data/spec/models/audit_log_entry_target_spec.rb +5 -6
  187. data/spec/models/clause_spec.rb +6 -7
  188. data/spec/models/{action_spec.rb → copy_actions_spec.rb} +8 -9
  189. data/spec/models/custom_property_spec.rb +4 -5
  190. data/spec/models/custom_property_values_spec.rb +2 -3
  191. data/spec/models/custom_role_body_spec.rb +6 -7
  192. data/spec/models/custom_role_spec.rb +8 -9
  193. data/spec/models/custom_roles_spec.rb +4 -5
  194. data/spec/models/destination_amazon_kinesis_spec.rb +53 -0
  195. data/spec/models/destination_body_spec.rb +63 -0
  196. data/spec/models/destination_google_pub_sub_spec.rb +47 -0
  197. data/spec/models/destination_m_particle_spec.rb +59 -0
  198. data/spec/models/destination_segment_spec.rb +41 -0
  199. data/spec/models/destination_spec.rb +81 -0
  200. data/spec/models/destinations_spec.rb +47 -0
  201. data/spec/models/environment_post_spec.rb +36 -7
  202. data/spec/models/environment_spec.rb +25 -14
  203. data/spec/models/evaluation_usage_error_spec.rb +47 -0
  204. data/spec/models/events_spec.rb +41 -0
  205. data/spec/models/fallthrough_spec.rb +4 -5
  206. data/spec/models/feature_flag_body_spec.rb +9 -10
  207. data/spec/models/feature_flag_config_spec.rb +14 -21
  208. data/spec/models/feature_flag_copy_body_spec.rb +65 -0
  209. data/spec/models/feature_flag_copy_object_spec.rb +47 -0
  210. data/spec/models/feature_flag_spec.rb +35 -18
  211. data/spec/models/feature_flag_status_across_environments_spec.rb +53 -0
  212. data/spec/models/feature_flag_status_for_queried_environment_spec.rb +57 -0
  213. data/spec/models/feature_flag_status_spec.rb +14 -15
  214. data/spec/models/feature_flag_statuses_spec.rb +4 -5
  215. data/spec/models/feature_flags_spec.rb +4 -5
  216. data/spec/models/id_spec.rb +2 -3
  217. data/spec/models/link_spec.rb +4 -5
  218. data/spec/models/links_spec.rb +4 -5
  219. data/spec/models/ma_uby_category_spec.rb +53 -0
  220. data/spec/models/{actions_spec.rb → mau_metadata_spec.rb} +8 -9
  221. data/spec/models/mau_spec.rb +53 -0
  222. data/spec/models/member_spec.rb +21 -10
  223. data/spec/models/members_body_spec.rb +8 -9
  224. data/spec/models/members_spec.rb +4 -5
  225. data/spec/models/patch_comment_spec.rb +4 -5
  226. data/spec/models/patch_operation_spec.rb +5 -6
  227. data/spec/models/policy_spec.rb +17 -6
  228. data/spec/models/prerequisite_spec.rb +4 -5
  229. data/spec/models/project_body_spec.rb +17 -6
  230. data/spec/models/project_spec.rb +8 -9
  231. data/spec/models/projects_spec.rb +4 -5
  232. data/spec/models/role_spec.rb +2 -3
  233. data/spec/models/rollout_spec.rb +9 -4
  234. data/spec/models/rule_spec.rb +6 -7
  235. data/spec/models/statement_spec.rb +13 -14
  236. data/spec/models/statements_spec.rb +2 -3
  237. data/spec/models/stream_by_sdk_links_metadata_spec.rb +53 -0
  238. data/spec/models/stream_by_sdk_links_spec.rb +47 -0
  239. data/spec/models/stream_by_sdk_spec.rb +53 -0
  240. data/spec/models/stream_links_spec.rb +53 -0
  241. data/spec/models/stream_sdk_version_data_spec.rb +47 -0
  242. data/spec/models/stream_sdk_version_spec.rb +47 -0
  243. data/spec/models/stream_spec.rb +53 -0
  244. data/spec/models/stream_usage_error_spec.rb +47 -0
  245. data/spec/models/stream_usage_links_spec.rb +53 -0
  246. data/spec/models/stream_usage_metadata_spec.rb +53 -0
  247. data/spec/models/stream_usage_series_spec.rb +47 -0
  248. data/spec/models/streams_spec.rb +41 -0
  249. data/spec/models/target_spec.rb +4 -5
  250. data/spec/models/usage_error_spec.rb +41 -0
  251. data/spec/models/usage_links_spec.rb +53 -0
  252. data/spec/models/usage_spec.rb +47 -0
  253. data/spec/models/user_flag_setting_spec.rb +5 -6
  254. data/spec/models/user_flag_settings_spec.rb +4 -5
  255. data/spec/models/user_record_spec.rb +7 -8
  256. data/spec/models/user_segment_body_spec.rb +6 -7
  257. data/spec/models/user_segment_rule_spec.rb +5 -6
  258. data/spec/models/user_segment_spec.rb +12 -13
  259. data/spec/models/user_segments_spec.rb +4 -5
  260. data/spec/models/user_settings_body_spec.rb +3 -4
  261. data/spec/models/user_spec.rb +13 -14
  262. data/spec/models/users_spec.rb +5 -6
  263. data/spec/models/variation_spec.rb +5 -6
  264. data/spec/models/webhook_body_spec.rb +19 -8
  265. data/spec/models/webhook_spec.rb +15 -10
  266. data/spec/models/webhooks_spec.rb +4 -5
  267. data/spec/models/weighted_variation_spec.rb +4 -5
  268. data/spec/spec_helper.rb +2 -2
  269. metadata +187 -74
  270. data/docs/Resource.md +0 -7
  271. data/docs/Resources.md +0 -7
  272. data/lib/launchdarkly_api/models/resource.rb +0 -179
  273. data/spec/models/custom_properties_spec.rb +0 -36
  274. data/spec/models/custom_role_key_or_id_spec.rb +0 -36
  275. data/spec/models/resource_spec.rb +0 -36
  276. data/spec/models/resources_spec.rb +0 -36
@@ -3,17 +3,16 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module LaunchDarklyApi
16
-
17
16
  class PatchOperation
18
17
  attr_accessor :op
19
18
 
@@ -21,7 +20,6 @@ module LaunchDarklyApi
21
20
 
22
21
  attr_accessor :value
23
22
 
24
-
25
23
  # Attribute mapping from ruby-style variable name to JSON key.
26
24
  def self.attribute_map
27
25
  {
@@ -46,7 +44,7 @@ module LaunchDarklyApi
46
44
  return unless attributes.is_a?(Hash)
47
45
 
48
46
  # convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
48
 
51
49
  if attributes.has_key?(:'op')
52
50
  self.op = attributes[:'op']
@@ -59,7 +57,6 @@ module LaunchDarklyApi
59
57
  if attributes.has_key?(:'value')
60
58
  self.value = attributes[:'value']
61
59
  end
62
-
63
60
  end
64
61
 
65
62
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -67,18 +64,18 @@ module LaunchDarklyApi
67
64
  def list_invalid_properties
68
65
  invalid_properties = Array.new
69
66
  if @op.nil?
70
- invalid_properties.push("invalid value for 'op', op cannot be nil.")
67
+ invalid_properties.push('invalid value for "op", op cannot be nil.')
71
68
  end
72
69
 
73
70
  if @path.nil?
74
- invalid_properties.push("invalid value for 'path', path cannot be nil.")
71
+ invalid_properties.push('invalid value for "path", path cannot be nil.')
75
72
  end
76
73
 
77
74
  if @value.nil?
78
- invalid_properties.push("invalid value for 'value', value cannot be nil.")
75
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
79
76
  end
80
77
 
81
- return invalid_properties
78
+ invalid_properties
82
79
  end
83
80
 
84
81
  # Check to see if the all the properties in the model are valid
@@ -87,7 +84,7 @@ module LaunchDarklyApi
87
84
  return false if @op.nil?
88
85
  return false if @path.nil?
89
86
  return false if @value.nil?
90
- return true
87
+ true
91
88
  end
92
89
 
93
90
  # Checks equality by comparing each attribute.
@@ -122,7 +119,7 @@ module LaunchDarklyApi
122
119
  # check to ensure the input is an array given that the the attribute
123
120
  # is documented as an array but the input is not
124
121
  if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
122
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
123
  end
127
124
  elsif !attributes[self.class.attribute_map[key]].nil?
128
125
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -204,7 +201,7 @@ module LaunchDarklyApi
204
201
  # @return [Hash] Returns the value in the form of hash
205
202
  def _to_hash(value)
206
203
  if value.is_a?(Array)
207
- value.compact.map{ |v| _to_hash(v) }
204
+ value.compact.map { |v| _to_hash(v) }
208
205
  elsif value.is_a?(Hash)
209
206
  {}.tap do |hash|
210
207
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -215,7 +212,5 @@ module LaunchDarklyApi
215
212
  value
216
213
  end
217
214
  end
218
-
219
215
  end
220
-
221
216
  end
@@ -3,31 +3,37 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module LaunchDarklyApi
16
-
17
16
  class Policy
18
17
  attr_accessor :resources
19
18
 
19
+ # Targeted resource will be those resources NOT in this list. The \"resources`\" field must be empty to use this field.
20
+ attr_accessor :not_resources
21
+
20
22
  attr_accessor :actions
21
23
 
24
+ # Targeted actions will be those actions NOT in this list. The \"actions\" field must be empty to use this field.
25
+ attr_accessor :not_actions
26
+
22
27
  # Effect of the policy - allow or deny.
23
28
  attr_accessor :effect
24
29
 
25
-
26
30
  # Attribute mapping from ruby-style variable name to JSON key.
27
31
  def self.attribute_map
28
32
  {
29
33
  :'resources' => :'resources',
34
+ :'not_resources' => :'notResources',
30
35
  :'actions' => :'actions',
36
+ :'not_actions' => :'notActions',
31
37
  :'effect' => :'effect'
32
38
  }
33
39
  end
@@ -35,8 +41,10 @@ module LaunchDarklyApi
35
41
  # Attribute type mapping.
36
42
  def self.swagger_types
37
43
  {
38
- :'resources' => :'Resources',
39
- :'actions' => :'Actions',
44
+ :'resources' => :'Array<String>',
45
+ :'not_resources' => :'Array<String>',
46
+ :'actions' => :'Array<String>',
47
+ :'not_actions' => :'Array<String>',
40
48
  :'effect' => :'String'
41
49
  }
42
50
  end
@@ -47,33 +55,48 @@ module LaunchDarklyApi
47
55
  return unless attributes.is_a?(Hash)
48
56
 
49
57
  # convert string to symbol for hash key
50
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
58
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
59
 
52
60
  if attributes.has_key?(:'resources')
53
- self.resources = attributes[:'resources']
61
+ if (value = attributes[:'resources']).is_a?(Array)
62
+ self.resources = value
63
+ end
64
+ end
65
+
66
+ if attributes.has_key?(:'notResources')
67
+ if (value = attributes[:'notResources']).is_a?(Array)
68
+ self.not_resources = value
69
+ end
54
70
  end
55
71
 
56
72
  if attributes.has_key?(:'actions')
57
- self.actions = attributes[:'actions']
73
+ if (value = attributes[:'actions']).is_a?(Array)
74
+ self.actions = value
75
+ end
76
+ end
77
+
78
+ if attributes.has_key?(:'notActions')
79
+ if (value = attributes[:'notActions']).is_a?(Array)
80
+ self.not_actions = value
81
+ end
58
82
  end
59
83
 
60
84
  if attributes.has_key?(:'effect')
61
85
  self.effect = attributes[:'effect']
62
86
  end
63
-
64
87
  end
65
88
 
66
89
  # Show invalid properties with the reasons. Usually used together with valid?
67
90
  # @return Array for valid properties with the reasons
68
91
  def list_invalid_properties
69
92
  invalid_properties = Array.new
70
- return invalid_properties
93
+ invalid_properties
71
94
  end
72
95
 
73
96
  # Check to see if the all the properties in the model are valid
74
97
  # @return true if the model is valid
75
98
  def valid?
76
- return true
99
+ true
77
100
  end
78
101
 
79
102
  # Checks equality by comparing each attribute.
@@ -82,7 +105,9 @@ module LaunchDarklyApi
82
105
  return true if self.equal?(o)
83
106
  self.class == o.class &&
84
107
  resources == o.resources &&
108
+ not_resources == o.not_resources &&
85
109
  actions == o.actions &&
110
+ not_actions == o.not_actions &&
86
111
  effect == o.effect
87
112
  end
88
113
 
@@ -95,7 +120,7 @@ module LaunchDarklyApi
95
120
  # Calculates hash code according to all attributes.
96
121
  # @return [Fixnum] Hash code
97
122
  def hash
98
- [resources, actions, effect].hash
123
+ [resources, not_resources, actions, not_actions, effect].hash
99
124
  end
100
125
 
101
126
  # Builds the object from hash
@@ -108,7 +133,7 @@ module LaunchDarklyApi
108
133
  # check to ensure the input is an array given that the the attribute
109
134
  # is documented as an array but the input is not
110
135
  if attributes[self.class.attribute_map[key]].is_a?(Array)
111
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
137
  end
113
138
  elsif !attributes[self.class.attribute_map[key]].nil?
114
139
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -190,7 +215,7 @@ module LaunchDarklyApi
190
215
  # @return [Hash] Returns the value in the form of hash
191
216
  def _to_hash(value)
192
217
  if value.is_a?(Array)
193
- value.compact.map{ |v| _to_hash(v) }
218
+ value.compact.map { |v| _to_hash(v) }
194
219
  elsif value.is_a?(Hash)
195
220
  {}.tap do |hash|
196
221
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -201,7 +226,5 @@ module LaunchDarklyApi
201
226
  value
202
227
  end
203
228
  end
204
-
205
229
  end
206
-
207
230
  end
@@ -3,23 +3,21 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module LaunchDarklyApi
16
-
17
16
  class Prerequisite
18
17
  attr_accessor :key
19
18
 
20
19
  attr_accessor :variation
21
20
 
22
-
23
21
  # Attribute mapping from ruby-style variable name to JSON key.
24
22
  def self.attribute_map
25
23
  {
@@ -42,7 +40,7 @@ module LaunchDarklyApi
42
40
  return unless attributes.is_a?(Hash)
43
41
 
44
42
  # convert string to symbol for hash key
45
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
44
 
47
45
  if attributes.has_key?(:'key')
48
46
  self.key = attributes[:'key']
@@ -51,20 +49,19 @@ module LaunchDarklyApi
51
49
  if attributes.has_key?(:'variation')
52
50
  self.variation = attributes[:'variation']
53
51
  end
54
-
55
52
  end
56
53
 
57
54
  # Show invalid properties with the reasons. Usually used together with valid?
58
55
  # @return Array for valid properties with the reasons
59
56
  def list_invalid_properties
60
57
  invalid_properties = Array.new
61
- return invalid_properties
58
+ invalid_properties
62
59
  end
63
60
 
64
61
  # Check to see if the all the properties in the model are valid
65
62
  # @return true if the model is valid
66
63
  def valid?
67
- return true
64
+ true
68
65
  end
69
66
 
70
67
  # Checks equality by comparing each attribute.
@@ -98,7 +95,7 @@ module LaunchDarklyApi
98
95
  # check to ensure the input is an array given that the the attribute
99
96
  # is documented as an array but the input is not
100
97
  if attributes[self.class.attribute_map[key]].is_a?(Array)
101
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
98
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
99
  end
103
100
  elsif !attributes[self.class.attribute_map[key]].nil?
104
101
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -180,7 +177,7 @@ module LaunchDarklyApi
180
177
  # @return [Hash] Returns the value in the form of hash
181
178
  def _to_hash(value)
182
179
  if value.is_a?(Array)
183
- value.compact.map{ |v| _to_hash(v) }
180
+ value.compact.map { |v| _to_hash(v) }
184
181
  elsif value.is_a?(Hash)
185
182
  {}.tap do |hash|
186
183
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -191,7 +188,5 @@ module LaunchDarklyApi
191
188
  value
192
189
  end
193
190
  end
194
-
195
191
  end
196
-
197
192
  end
@@ -3,17 +3,16 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module LaunchDarklyApi
16
-
17
16
  class Project
18
17
  attr_accessor :_links
19
18
 
@@ -28,7 +27,6 @@ module LaunchDarklyApi
28
27
  # An array of tags for this project.
29
28
  attr_accessor :tags
30
29
 
31
-
32
30
  # Attribute mapping from ruby-style variable name to JSON key.
33
31
  def self.attribute_map
34
32
  {
@@ -59,7 +57,7 @@ module LaunchDarklyApi
59
57
  return unless attributes.is_a?(Hash)
60
58
 
61
59
  # convert string to symbol for hash key
62
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
63
61
 
64
62
  if attributes.has_key?(:'_links')
65
63
  self._links = attributes[:'_links']
@@ -88,20 +86,19 @@ module LaunchDarklyApi
88
86
  self.tags = value
89
87
  end
90
88
  end
91
-
92
89
  end
93
90
 
94
91
  # Show invalid properties with the reasons. Usually used together with valid?
95
92
  # @return Array for valid properties with the reasons
96
93
  def list_invalid_properties
97
94
  invalid_properties = Array.new
98
- return invalid_properties
95
+ invalid_properties
99
96
  end
100
97
 
101
98
  # Check to see if the all the properties in the model are valid
102
99
  # @return true if the model is valid
103
100
  def valid?
104
- return true
101
+ true
105
102
  end
106
103
 
107
104
  # Checks equality by comparing each attribute.
@@ -139,7 +136,7 @@ module LaunchDarklyApi
139
136
  # check to ensure the input is an array given that the the attribute
140
137
  # is documented as an array but the input is not
141
138
  if attributes[self.class.attribute_map[key]].is_a?(Array)
142
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
143
140
  end
144
141
  elsif !attributes[self.class.attribute_map[key]].nil?
145
142
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -221,7 +218,7 @@ module LaunchDarklyApi
221
218
  # @return [Hash] Returns the value in the form of hash
222
219
  def _to_hash(value)
223
220
  if value.is_a?(Array)
224
- value.compact.map{ |v| _to_hash(v) }
221
+ value.compact.map { |v| _to_hash(v) }
225
222
  elsif value.is_a?(Hash)
226
223
  {}.tap do |hash|
227
224
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -232,7 +229,5 @@ module LaunchDarklyApi
232
229
  value
233
230
  end
234
231
  end
235
-
236
232
  end
237
-
238
233
  end
@@ -3,30 +3,34 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module LaunchDarklyApi
16
-
17
16
  class ProjectBody
18
17
  attr_accessor :name
19
18
 
20
19
  attr_accessor :key
21
20
 
22
- attr_accessor :environments
21
+ attr_accessor :include_in_snippet_by_default
22
+
23
+ attr_accessor :tags
23
24
 
25
+ attr_accessor :environments
24
26
 
25
27
  # Attribute mapping from ruby-style variable name to JSON key.
26
28
  def self.attribute_map
27
29
  {
28
30
  :'name' => :'name',
29
31
  :'key' => :'key',
32
+ :'include_in_snippet_by_default' => :'includeInSnippetByDefault',
33
+ :'tags' => :'tags',
30
34
  :'environments' => :'environments'
31
35
  }
32
36
  end
@@ -36,6 +40,8 @@ module LaunchDarklyApi
36
40
  {
37
41
  :'name' => :'String',
38
42
  :'key' => :'String',
43
+ :'include_in_snippet_by_default' => :'BOOLEAN',
44
+ :'tags' => :'Array<String>',
39
45
  :'environments' => :'Array<EnvironmentPost>'
40
46
  }
41
47
  end
@@ -46,7 +52,7 @@ module LaunchDarklyApi
46
52
  return unless attributes.is_a?(Hash)
47
53
 
48
54
  # convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
56
 
51
57
  if attributes.has_key?(:'name')
52
58
  self.name = attributes[:'name']
@@ -56,12 +62,21 @@ module LaunchDarklyApi
56
62
  self.key = attributes[:'key']
57
63
  end
58
64
 
65
+ if attributes.has_key?(:'includeInSnippetByDefault')
66
+ self.include_in_snippet_by_default = attributes[:'includeInSnippetByDefault']
67
+ end
68
+
69
+ if attributes.has_key?(:'tags')
70
+ if (value = attributes[:'tags']).is_a?(Array)
71
+ self.tags = value
72
+ end
73
+ end
74
+
59
75
  if attributes.has_key?(:'environments')
60
76
  if (value = attributes[:'environments']).is_a?(Array)
61
77
  self.environments = value
62
78
  end
63
79
  end
64
-
65
80
  end
66
81
 
67
82
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -69,14 +84,14 @@ module LaunchDarklyApi
69
84
  def list_invalid_properties
70
85
  invalid_properties = Array.new
71
86
  if @name.nil?
72
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
87
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
73
88
  end
74
89
 
75
90
  if @key.nil?
76
- invalid_properties.push("invalid value for 'key', key cannot be nil.")
91
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
77
92
  end
78
93
 
79
- return invalid_properties
94
+ invalid_properties
80
95
  end
81
96
 
82
97
  # Check to see if the all the properties in the model are valid
@@ -84,7 +99,7 @@ module LaunchDarklyApi
84
99
  def valid?
85
100
  return false if @name.nil?
86
101
  return false if @key.nil?
87
- return true
102
+ true
88
103
  end
89
104
 
90
105
  # Checks equality by comparing each attribute.
@@ -94,6 +109,8 @@ module LaunchDarklyApi
94
109
  self.class == o.class &&
95
110
  name == o.name &&
96
111
  key == o.key &&
112
+ include_in_snippet_by_default == o.include_in_snippet_by_default &&
113
+ tags == o.tags &&
97
114
  environments == o.environments
98
115
  end
99
116
 
@@ -106,7 +123,7 @@ module LaunchDarklyApi
106
123
  # Calculates hash code according to all attributes.
107
124
  # @return [Fixnum] Hash code
108
125
  def hash
109
- [name, key, environments].hash
126
+ [name, key, include_in_snippet_by_default, tags, environments].hash
110
127
  end
111
128
 
112
129
  # Builds the object from hash
@@ -119,7 +136,7 @@ module LaunchDarklyApi
119
136
  # check to ensure the input is an array given that the the attribute
120
137
  # is documented as an array but the input is not
121
138
  if attributes[self.class.attribute_map[key]].is_a?(Array)
122
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
123
140
  end
124
141
  elsif !attributes[self.class.attribute_map[key]].nil?
125
142
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -201,7 +218,7 @@ module LaunchDarklyApi
201
218
  # @return [Hash] Returns the value in the form of hash
202
219
  def _to_hash(value)
203
220
  if value.is_a?(Array)
204
- value.compact.map{ |v| _to_hash(v) }
221
+ value.compact.map { |v| _to_hash(v) }
205
222
  elsif value.is_a?(Hash)
206
223
  {}.tap do |hash|
207
224
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -212,7 +229,5 @@ module LaunchDarklyApi
212
229
  value
213
230
  end
214
231
  end
215
-
216
232
  end
217
-
218
233
  end
@@ -3,23 +3,21 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module LaunchDarklyApi
16
-
17
16
  class Projects
18
17
  attr_accessor :_links
19
18
 
20
19
  attr_accessor :items
21
20
 
22
-
23
21
  # Attribute mapping from ruby-style variable name to JSON key.
24
22
  def self.attribute_map
25
23
  {
@@ -42,7 +40,7 @@ module LaunchDarklyApi
42
40
  return unless attributes.is_a?(Hash)
43
41
 
44
42
  # convert string to symbol for hash key
45
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
44
 
47
45
  if attributes.has_key?(:'_links')
48
46
  self._links = attributes[:'_links']
@@ -53,20 +51,19 @@ module LaunchDarklyApi
53
51
  self.items = value
54
52
  end
55
53
  end
56
-
57
54
  end
58
55
 
59
56
  # Show invalid properties with the reasons. Usually used together with valid?
60
57
  # @return Array for valid properties with the reasons
61
58
  def list_invalid_properties
62
59
  invalid_properties = Array.new
63
- return invalid_properties
60
+ invalid_properties
64
61
  end
65
62
 
66
63
  # Check to see if the all the properties in the model are valid
67
64
  # @return true if the model is valid
68
65
  def valid?
69
- return true
66
+ true
70
67
  end
71
68
 
72
69
  # Checks equality by comparing each attribute.
@@ -100,7 +97,7 @@ module LaunchDarklyApi
100
97
  # check to ensure the input is an array given that the the attribute
101
98
  # is documented as an array but the input is not
102
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
101
  end
105
102
  elsif !attributes[self.class.attribute_map[key]].nil?
106
103
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -182,7 +179,7 @@ module LaunchDarklyApi
182
179
  # @return [Hash] Returns the value in the form of hash
183
180
  def _to_hash(value)
184
181
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
182
+ value.compact.map { |v| _to_hash(v) }
186
183
  elsif value.is_a?(Hash)
187
184
  {}.tap do |hash|
188
185
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -193,7 +190,5 @@ module LaunchDarklyApi
193
190
  value
194
191
  end
195
192
  end
196
-
197
193
  end
198
-
199
194
  end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Build custom integrations with the LaunchDarkly REST API
5
5
 
6
- OpenAPI spec version: 2.0.10
6
+ OpenAPI spec version: 2.0.27
7
7
  Contact: support@launchdarkly.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.8
10
10
 
11
11
  =end
12
12
 
@@ -15,19 +15,18 @@ require 'date'
15
15
  module LaunchDarklyApi
16
16
  class Role
17
17
 
18
- WRITER = "writer".freeze
19
- READER = "reader".freeze
20
- ADMIN = "admin".freeze
21
- OWNER = "owner".freeze
18
+ WRITER = 'writer'.freeze
19
+ READER = 'reader'.freeze
20
+ ADMIN = 'admin'.freeze
21
+ OWNER = 'owner'.freeze
22
22
 
23
23
  # Builds the enum from string
24
24
  # @param [String] The enum value in the form of the string
25
25
  # @return [String] The enum value
26
26
  def build_from_hash(value)
27
- constantValues = Role.constants.select{|c| Role::const_get(c) == value}
27
+ constantValues = Role.constants.select { |c| Role::const_get(c) == value }
28
28
  raise "Invalid ENUM value #{value} for class #Role" if constantValues.empty?
29
29
  value
30
30
  end
31
31
  end
32
-
33
32
  end