fastly 14.0.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +13 -11
  5. data/docs/ApiDiscoveryResponseBodyGetAllServices.md +13 -0
  6. data/docs/ApiDiscoveryResponseCustomer.md +10 -0
  7. data/docs/ApiDiscoveryResponseCustomerCustomer.md +11 -0
  8. data/docs/ApiDiscoveryResponseEnable.md +12 -0
  9. data/docs/ApiDiscoveryResponseEnabledServices.md +10 -0
  10. data/docs/ApiDiscoveryResponseLinks.md +10 -0
  11. data/docs/ApiDiscoveryResponseLinksGetAllServices.md +10 -0
  12. data/docs/ApiDiscoveryResponseLinksGetAllServicesLinks.md +10 -0
  13. data/docs/ApiDiscoveryResponseLinksLinks.md +10 -0
  14. data/docs/ApiDiscoveryResponseProduct.md +10 -0
  15. data/docs/ApiDiscoveryResponseProductProduct.md +11 -0
  16. data/docs/ApiDiscoveryResponseService.md +10 -0
  17. data/docs/{BotManagementResponseServiceService.md → ApiDiscoveryResponseServiceService.md} +1 -1
  18. data/docs/BotManagementResponseBodyEnable.md +1 -1
  19. data/docs/BotManagementResponseService.md +1 -1
  20. data/docs/BrotliCompressionResponseBodyEnable.md +1 -1
  21. data/docs/BrotliCompressionResponseService.md +1 -1
  22. data/docs/DdosProtectionApi.md +2 -0
  23. data/docs/DdosProtectionResponseConfigure.md +1 -1
  24. data/docs/DdosProtectionResponseEnable.md +1 -1
  25. data/docs/DdosProtectionResponseService.md +1 -1
  26. data/docs/DdosProtectionRuleWithStats.md +23 -0
  27. data/docs/DdosProtectionRuleWithStatsAllOf.md +10 -0
  28. data/docs/DdosProtectionTrafficStats.md +1 -0
  29. data/docs/DdosProtectionTrafficStatsAllOf.md +1 -0
  30. data/docs/DmDomainsApi.md +220 -0
  31. data/docs/DomainInspectorResponseBodyEnable.md +1 -1
  32. data/docs/DomainInspectorResponseService.md +1 -1
  33. data/docs/DomainOwnershipsApi.md +2 -2
  34. data/docs/FanoutResponseBodyEnable.md +1 -1
  35. data/docs/FanoutResponseService.md +1 -1
  36. data/docs/Healthcheck.md +1 -1
  37. data/docs/HealthcheckApi.md +4 -4
  38. data/docs/HealthcheckResponse.md +1 -1
  39. data/docs/IamRolesApi.md +23 -253
  40. data/docs/IamV1RoleListResponse.md +12 -0
  41. data/docs/IamV1RoleResponse.md +13 -0
  42. data/docs/ImageOptimizerResponseBodyEnable.md +1 -1
  43. data/docs/ImageOptimizerResponseService.md +1 -1
  44. data/docs/InlineResponse20010.md +10 -0
  45. data/docs/InlineResponse2003.md +2 -2
  46. data/docs/InlineResponse2004.md +2 -1
  47. data/docs/InlineResponse2005.md +1 -2
  48. data/docs/InlineResponse2006.md +1 -1
  49. data/docs/InlineResponse2007.md +1 -1
  50. data/docs/InlineResponse2008.md +1 -1
  51. data/docs/InlineResponse2009.md +2 -1
  52. data/docs/InvitationDataAttributes.md +1 -0
  53. data/docs/KvStoreApi.md +2 -2
  54. data/docs/KvStoreItemApi.md +2 -2
  55. data/docs/LogExplorerInsightsResponseBodyEnable.md +1 -1
  56. data/docs/LogExplorerInsightsResponseService.md +1 -1
  57. data/docs/LoggingHttpsAdditional.md +1 -0
  58. data/docs/LoggingHttpsApi.md +4 -0
  59. data/docs/LoggingHttpsResponse.md +1 -0
  60. data/docs/NgwafResponseConfigure.md +1 -1
  61. data/docs/NgwafResponseEnable.md +1 -1
  62. data/docs/NgwafResponseService.md +1 -1
  63. data/docs/OriginInspectorResponseBodyEnable.md +1 -1
  64. data/docs/OriginInspectorResponseService.md +1 -1
  65. data/docs/ProductApiDiscoveryApi.md +163 -0
  66. data/docs/RealtimeEntryAggregated.md +1 -0
  67. data/docs/RealtimeMeasurements.md +1 -0
  68. data/docs/RequestBodyForCreate.md +12 -0
  69. data/docs/RequestBodyForUpdate.md +11 -0
  70. data/docs/Results.md +1 -0
  71. data/docs/SchemasUserResponse.md +1 -0
  72. data/docs/SecretStoreApi.md +2 -2
  73. data/docs/SecretStoreItemApi.md +2 -2
  74. data/docs/ServiceAuthorizationsApi.md +2 -2
  75. data/docs/SuccessfulResponseAsObject.md +17 -0
  76. data/docs/SuccessfulResponseAsObjectAllOf.md +15 -0
  77. data/docs/User.md +1 -0
  78. data/docs/UserApi.md +4 -0
  79. data/docs/UserResponse.md +1 -0
  80. data/docs/WebsocketsResponseBodyEnable.md +1 -1
  81. data/docs/WebsocketsResponseService.md +1 -1
  82. data/lib/fastly/api/ddos_protection_api.rb +3 -0
  83. data/lib/fastly/api/dm_domains_api.rb +362 -0
  84. data/lib/fastly/api/domain_ownerships_api.rb +3 -3
  85. data/lib/fastly/api/healthcheck_api.rb +20 -4
  86. data/lib/fastly/api/iam_roles_api.rb +43 -435
  87. data/lib/fastly/api/kv_store_api.rb +3 -3
  88. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  89. data/lib/fastly/api/logging_https_api.rb +6 -0
  90. data/lib/fastly/api/product_api_discovery_api.rb +263 -0
  91. data/lib/fastly/api/secret_store_api.rb +3 -3
  92. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  93. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  94. data/lib/fastly/api/user_api.rb +6 -0
  95. data/lib/fastly/configuration.rb +56 -38
  96. data/lib/fastly/models/api_discovery_response_body_get_all_services.rb +256 -0
  97. data/lib/fastly/models/api_discovery_response_customer.rb +216 -0
  98. data/lib/fastly/models/api_discovery_response_customer_customer.rb +227 -0
  99. data/lib/fastly/models/api_discovery_response_enable.rb +243 -0
  100. data/lib/fastly/models/api_discovery_response_enabled_services.rb +219 -0
  101. data/lib/fastly/models/api_discovery_response_links.rb +216 -0
  102. data/lib/fastly/models/api_discovery_response_links_get_all_services.rb +216 -0
  103. data/lib/fastly/models/api_discovery_response_links_get_all_services_links.rb +217 -0
  104. data/lib/fastly/models/api_discovery_response_links_links.rb +217 -0
  105. data/lib/fastly/models/api_discovery_response_product.rb +216 -0
  106. data/lib/fastly/models/api_discovery_response_product_product.rb +227 -0
  107. data/lib/fastly/models/api_discovery_response_service.rb +216 -0
  108. data/lib/fastly/models/{bot_management_response_service_service.rb → api_discovery_response_service_service.rb} +3 -3
  109. data/lib/fastly/models/bot_management_response_body_enable.rb +1 -1
  110. data/lib/fastly/models/bot_management_response_service.rb +1 -1
  111. data/lib/fastly/models/brotli_compression_response_body_enable.rb +1 -1
  112. data/lib/fastly/models/brotli_compression_response_service.rb +1 -1
  113. data/lib/fastly/models/ddos_protection_response_configure.rb +1 -1
  114. data/lib/fastly/models/ddos_protection_response_enable.rb +1 -1
  115. data/lib/fastly/models/ddos_protection_response_service.rb +1 -1
  116. data/lib/fastly/models/ddos_protection_rule_with_stats.rb +365 -0
  117. data/lib/fastly/models/ddos_protection_rule_with_stats_all_of.rb +216 -0
  118. data/lib/fastly/models/ddos_protection_traffic_stats.rb +20 -4
  119. data/lib/fastly/models/ddos_protection_traffic_stats_all_of.rb +20 -4
  120. data/lib/fastly/models/domain_inspector_response_body_enable.rb +1 -1
  121. data/lib/fastly/models/domain_inspector_response_service.rb +1 -1
  122. data/lib/fastly/models/fanout_response_body_enable.rb +1 -1
  123. data/lib/fastly/models/fanout_response_service.rb +1 -1
  124. data/lib/fastly/models/healthcheck.rb +25 -1
  125. data/lib/fastly/models/healthcheck_response.rb +25 -1
  126. data/lib/fastly/models/iam_v1_role_list_response.rb +240 -0
  127. data/lib/fastly/models/{iam_role_all_of.rb → iam_v1_role_response.rb} +14 -34
  128. data/lib/fastly/models/image_optimizer_response_body_enable.rb +1 -1
  129. data/lib/fastly/models/image_optimizer_response_service.rb +1 -1
  130. data/lib/fastly/models/inline_response20010.rb +218 -0
  131. data/lib/fastly/models/inline_response2003.rb +11 -1
  132. data/lib/fastly/models/inline_response2004.rb +20 -8
  133. data/lib/fastly/models/inline_response2005.rb +8 -18
  134. data/lib/fastly/models/inline_response2006.rb +1 -1
  135. data/lib/fastly/models/inline_response2007.rb +1 -1
  136. data/lib/fastly/models/inline_response2008.rb +1 -1
  137. data/lib/fastly/models/inline_response2009.rb +13 -4
  138. data/lib/fastly/models/invitation_data_attributes.rb +12 -1
  139. data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +1 -1
  140. data/lib/fastly/models/log_explorer_insights_response_service.rb +1 -1
  141. data/lib/fastly/models/logging_https_additional.rb +16 -4
  142. data/lib/fastly/models/logging_https_response.rb +13 -1
  143. data/lib/fastly/models/ngwaf_response_configure.rb +1 -1
  144. data/lib/fastly/models/ngwaf_response_enable.rb +1 -1
  145. data/lib/fastly/models/ngwaf_response_service.rb +1 -1
  146. data/lib/fastly/models/origin_inspector_response_body_enable.rb +1 -1
  147. data/lib/fastly/models/origin_inspector_response_service.rb +1 -1
  148. data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
  149. data/lib/fastly/models/realtime_measurements.rb +14 -4
  150. data/lib/fastly/models/request_body_for_create.rb +244 -0
  151. data/lib/fastly/models/request_body_for_update.rb +229 -0
  152. data/lib/fastly/models/results.rb +11 -1
  153. data/lib/fastly/models/role_user.rb +2 -0
  154. data/lib/fastly/models/schemas_user_response.rb +13 -1
  155. data/lib/fastly/models/{iam_role.rb → successful_response_as_object.rb} +37 -35
  156. data/lib/fastly/models/successful_response_as_object_all_of.rb +268 -0
  157. data/lib/fastly/models/user.rb +13 -1
  158. data/lib/fastly/models/user_response.rb +13 -1
  159. data/lib/fastly/models/websockets_response_body_enable.rb +1 -1
  160. data/lib/fastly/models/websockets_response_service.rb +1 -1
  161. data/lib/fastly/version.rb +1 -1
  162. data/lib/fastly.rb +24 -3
  163. data/sig.json +1 -1
  164. metadata +50 -8
  165. data/docs/IamRole.md +0 -17
  166. data/docs/IamRoleAllOf.md +0 -15
@@ -818,6 +818,9 @@ module Fastly
818
818
  # Count of Edge WAF requests challenged.
819
819
  attr_accessor :ngwaf_requests_challenged_count
820
820
 
821
+ # Number of requests processed by the API Discovery engine.
822
+ attr_accessor :api_discovery_requests_count
823
+
821
824
  attr_accessor :service_id
822
825
 
823
826
  # Timestamp for the start of the time period being reported
@@ -1094,6 +1097,7 @@ module Fastly
1094
1097
  :'ngwaf_requests_blocked_count' => :'ngwaf_requests_blocked_count',
1095
1098
  :'ngwaf_requests_timeout_count' => :'ngwaf_requests_timeout_count',
1096
1099
  :'ngwaf_requests_challenged_count' => :'ngwaf_requests_challenged_count',
1100
+ :'api_discovery_requests_count' => :'api_discovery_requests_count',
1097
1101
  :'service_id' => :'service_id',
1098
1102
  :'start_time' => :'start_time'
1099
1103
  }
@@ -1375,6 +1379,7 @@ module Fastly
1375
1379
  :'ngwaf_requests_blocked_count' => :'Integer',
1376
1380
  :'ngwaf_requests_timeout_count' => :'Integer',
1377
1381
  :'ngwaf_requests_challenged_count' => :'Integer',
1382
+ :'api_discovery_requests_count' => :'Integer',
1378
1383
  :'service_id' => :'String',
1379
1384
  :'start_time' => :'Integer'
1380
1385
  }
@@ -2474,6 +2479,10 @@ module Fastly
2474
2479
  self.ngwaf_requests_challenged_count = attributes[:'ngwaf_requests_challenged_count']
2475
2480
  end
2476
2481
 
2482
+ if attributes.key?(:'api_discovery_requests_count')
2483
+ self.api_discovery_requests_count = attributes[:'api_discovery_requests_count']
2484
+ end
2485
+
2477
2486
  if attributes.key?(:'service_id')
2478
2487
  self.service_id = attributes[:'service_id']
2479
2488
  end
@@ -2769,6 +2778,7 @@ module Fastly
2769
2778
  ngwaf_requests_blocked_count == o.ngwaf_requests_blocked_count &&
2770
2779
  ngwaf_requests_timeout_count == o.ngwaf_requests_timeout_count &&
2771
2780
  ngwaf_requests_challenged_count == o.ngwaf_requests_challenged_count &&
2781
+ api_discovery_requests_count == o.api_discovery_requests_count &&
2772
2782
  service_id == o.service_id &&
2773
2783
  start_time == o.start_time
2774
2784
  end
@@ -2782,7 +2792,7 @@ module Fastly
2782
2792
  # Calculates hash code according to all attributes.
2783
2793
  # @return [Integer] Hash code
2784
2794
  def hash
2785
- [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_transforms, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, ddos_action_downgrade, ddos_action_downgraded_connections, all_hit_requests, all_miss_requests, all_pass_requests, all_error_requests, all_synth_requests, all_edge_hit_requests, all_edge_miss_requests, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, origin_offload, request_denied_get_head_body, ddos_protection_requests_detect_count, ddos_protection_requests_mitigate_count, ddos_protection_requests_allow_count, object_storage_class_a_operations_count, object_storage_class_b_operations_count, aia_requests, aia_status_1xx, aia_status_2xx, aia_status_3xx, aia_status_4xx, aia_status_5xx, aia_response_usage_tokens, aia_origin_usage_tokens, aia_estimated_time_saved_ms, request_collapse_usable_count, request_collapse_unusable_count, compute_cache_operations_count, ngwaf_requests_total_count, ngwaf_requests_unknown_count, ngwaf_requests_allowed_count, ngwaf_requests_logged_count, ngwaf_requests_blocked_count, ngwaf_requests_timeout_count, ngwaf_requests_challenged_count, service_id, start_time].hash
2795
+ [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_transforms, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, ddos_action_downgrade, ddos_action_downgraded_connections, all_hit_requests, all_miss_requests, all_pass_requests, all_error_requests, all_synth_requests, all_edge_hit_requests, all_edge_miss_requests, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, origin_offload, request_denied_get_head_body, ddos_protection_requests_detect_count, ddos_protection_requests_mitigate_count, ddos_protection_requests_allow_count, object_storage_class_a_operations_count, object_storage_class_b_operations_count, aia_requests, aia_status_1xx, aia_status_2xx, aia_status_3xx, aia_status_4xx, aia_status_5xx, aia_response_usage_tokens, aia_origin_usage_tokens, aia_estimated_time_saved_ms, request_collapse_usable_count, request_collapse_unusable_count, compute_cache_operations_count, ngwaf_requests_total_count, ngwaf_requests_unknown_count, ngwaf_requests_allowed_count, ngwaf_requests_logged_count, ngwaf_requests_blocked_count, ngwaf_requests_timeout_count, ngwaf_requests_challenged_count, api_discovery_requests_count, service_id, start_time].hash
2786
2796
  end
2787
2797
 
2788
2798
  # Builds the object from hash
@@ -14,6 +14,8 @@ require 'time'
14
14
  module Fastly
15
15
  class RoleUser
16
16
  USER = "user".freeze
17
+ TLS_VIEWER = "tls_viewer".freeze
18
+ TLS_ADMIN = "tls_admin".freeze
17
19
  BILLING = "billing".freeze
18
20
  ENGINEER = "engineer".freeze
19
21
  SUPERUSER = "superuser".freeze
@@ -29,6 +29,9 @@ module Fastly
29
29
 
30
30
  attr_accessor :role
31
31
 
32
+ # A list of role IDs assigned to the user.
33
+ attr_accessor :roles
34
+
32
35
  # Indicates if 2FA is enabled on the user.
33
36
  attr_accessor :two_factor_auth_enabled
34
37
 
@@ -60,6 +63,7 @@ module Fastly
60
63
  :'locked' => :'locked',
61
64
  :'require_new_password' => :'require_new_password',
62
65
  :'role' => :'role',
66
+ :'roles' => :'roles',
63
67
  :'two_factor_auth_enabled' => :'two_factor_auth_enabled',
64
68
  :'two_factor_setup_required' => :'two_factor_setup_required',
65
69
  :'created_at' => :'created_at',
@@ -85,6 +89,7 @@ module Fastly
85
89
  :'locked' => :'Boolean',
86
90
  :'require_new_password' => :'Boolean',
87
91
  :'role' => :'RoleUser',
92
+ :'roles' => :'Array<String>',
88
93
  :'two_factor_auth_enabled' => :'Boolean',
89
94
  :'two_factor_setup_required' => :'Boolean',
90
95
  :'created_at' => :'Time',
@@ -156,6 +161,12 @@ module Fastly
156
161
  self.role = attributes[:'role']
157
162
  end
158
163
 
164
+ if attributes.key?(:'roles')
165
+ if (value = attributes[:'roles']).is_a?(Array)
166
+ self.roles = value
167
+ end
168
+ end
169
+
159
170
  if attributes.key?(:'two_factor_auth_enabled')
160
171
  self.two_factor_auth_enabled = attributes[:'two_factor_auth_enabled']
161
172
  end
@@ -213,6 +224,7 @@ module Fastly
213
224
  locked == o.locked &&
214
225
  require_new_password == o.require_new_password &&
215
226
  role == o.role &&
227
+ roles == o.roles &&
216
228
  two_factor_auth_enabled == o.two_factor_auth_enabled &&
217
229
  two_factor_setup_required == o.two_factor_setup_required &&
218
230
  created_at == o.created_at &&
@@ -232,7 +244,7 @@ module Fastly
232
244
  # Calculates hash code according to all attributes.
233
245
  # @return [Integer] Hash code
234
246
  def hash
235
- [login, name, limit_services, locked, require_new_password, role, two_factor_auth_enabled, two_factor_setup_required, created_at, deleted_at, updated_at, id, email_hash, customer_id].hash
247
+ [login, name, limit_services, locked, require_new_password, role, roles, two_factor_auth_enabled, two_factor_setup_required, created_at, deleted_at, updated_at, id, email_hash, customer_id].hash
236
248
  end
237
249
 
238
250
  # Builds the object from hash
@@ -12,30 +12,31 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class IamRole
15
+ # All attributes for a domain response
16
+ class SuccessfulResponseAsObject
16
17
  # Date and time in ISO 8601 format.
17
18
  attr_accessor :created_at
18
19
 
19
20
  # Date and time in ISO 8601 format.
20
21
  attr_accessor :updated_at
21
22
 
22
- # Alphanumeric string identifying the role.
23
+ # Domain Identifier (UUID).
23
24
  attr_accessor :id
24
25
 
25
- # The type of the object.
26
- attr_accessor :object
26
+ # The fully-qualified domain name for your domain. Can be created, but not updated.
27
+ attr_accessor :fqdn
27
28
 
28
- # Name of the role.
29
- attr_accessor :name
29
+ # The `service_id` associated with your domain or `null` if there is no association.
30
+ attr_accessor :service_id
30
31
 
31
- # Description of the role.
32
+ # A freeform descriptive note.
32
33
  attr_accessor :description
33
34
 
34
- # This attribute is set to `true` if the role is managed by the customer. It is set to `false` if the role was created by Fastly.
35
- attr_accessor :custom
35
+ # Denotes if the domain has at least one TLS activation or not.
36
+ attr_accessor :activated
36
37
 
37
- # Number of permissions assigned to the role.
38
- attr_accessor :permissions_count
38
+ # Denotes that the customer has proven ownership over the domain by obtaining a Fastly-managed TLS certificate for it or by providing a their own TLS certificate from a publicly-trusted CA that includes the domain or matching wildcard.
39
+ attr_accessor :verified
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
41
42
  def self.attribute_map
@@ -43,11 +44,11 @@ module Fastly
43
44
  :'created_at' => :'created_at',
44
45
  :'updated_at' => :'updated_at',
45
46
  :'id' => :'id',
46
- :'object' => :'object',
47
- :'name' => :'name',
47
+ :'fqdn' => :'fqdn',
48
+ :'service_id' => :'service_id',
48
49
  :'description' => :'description',
49
- :'custom' => :'custom',
50
- :'permissions_count' => :'permissions_count'
50
+ :'activated' => :'activated',
51
+ :'verified' => :'verified'
51
52
  }
52
53
  end
53
54
 
@@ -62,11 +63,11 @@ module Fastly
62
63
  :'created_at' => :'Time',
63
64
  :'updated_at' => :'Time',
64
65
  :'id' => :'String',
65
- :'object' => :'String',
66
- :'name' => :'String',
66
+ :'fqdn' => :'String',
67
+ :'service_id' => :'String',
67
68
  :'description' => :'String',
68
- :'custom' => :'Boolean',
69
- :'permissions_count' => :'Integer'
69
+ :'activated' => :'Boolean',
70
+ :'verified' => :'Boolean'
70
71
  }
71
72
  end
72
73
 
@@ -75,13 +76,14 @@ module Fastly
75
76
  Set.new([
76
77
  :'created_at',
77
78
  :'updated_at',
79
+ :'service_id',
78
80
  ])
79
81
  end
80
82
 
81
83
  # List of class defined in allOf (OpenAPI v3)
82
84
  def self.fastly_all_of
83
85
  [
84
- :'IamRoleAllOf',
86
+ :'SuccessfulResponseAsObjectAllOf',
85
87
  :'TimestampsNoDelete'
86
88
  ]
87
89
  end
@@ -90,13 +92,13 @@ module Fastly
90
92
  # @param [Hash] attributes Model attributes in the form of hash
91
93
  def initialize(attributes = {})
92
94
  if (!attributes.is_a?(Hash))
93
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::IamRole` initialize method"
95
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::SuccessfulResponseAsObject` initialize method"
94
96
  end
95
97
 
96
98
  # check to see if the attribute exists and convert string to symbol for hash key
97
99
  attributes = attributes.each_with_object({}) { |(k, v), h|
98
100
  if (!self.class.attribute_map.key?(k.to_sym))
99
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::IamRole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
101
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::SuccessfulResponseAsObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
100
102
  end
101
103
  h[k.to_sym] = v
102
104
  }
@@ -113,24 +115,24 @@ module Fastly
113
115
  self.id = attributes[:'id']
114
116
  end
115
117
 
116
- if attributes.key?(:'object')
117
- self.object = attributes[:'object']
118
+ if attributes.key?(:'fqdn')
119
+ self.fqdn = attributes[:'fqdn']
118
120
  end
119
121
 
120
- if attributes.key?(:'name')
121
- self.name = attributes[:'name']
122
+ if attributes.key?(:'service_id')
123
+ self.service_id = attributes[:'service_id']
122
124
  end
123
125
 
124
126
  if attributes.key?(:'description')
125
127
  self.description = attributes[:'description']
126
128
  end
127
129
 
128
- if attributes.key?(:'custom')
129
- self.custom = attributes[:'custom']
130
+ if attributes.key?(:'activated')
131
+ self.activated = attributes[:'activated']
130
132
  end
131
133
 
132
- if attributes.key?(:'permissions_count')
133
- self.permissions_count = attributes[:'permissions_count']
134
+ if attributes.key?(:'verified')
135
+ self.verified = attributes[:'verified']
134
136
  end
135
137
  end
136
138
 
@@ -155,11 +157,11 @@ module Fastly
155
157
  created_at == o.created_at &&
156
158
  updated_at == o.updated_at &&
157
159
  id == o.id &&
158
- object == o.object &&
159
- name == o.name &&
160
+ fqdn == o.fqdn &&
161
+ service_id == o.service_id &&
160
162
  description == o.description &&
161
- custom == o.custom &&
162
- permissions_count == o.permissions_count
163
+ activated == o.activated &&
164
+ verified == o.verified
163
165
  end
164
166
 
165
167
  # @see the `==` method
@@ -171,7 +173,7 @@ module Fastly
171
173
  # Calculates hash code according to all attributes.
172
174
  # @return [Integer] Hash code
173
175
  def hash
174
- [created_at, updated_at, id, object, name, description, custom, permissions_count].hash
176
+ [created_at, updated_at, id, fqdn, service_id, description, activated, verified].hash
175
177
  end
176
178
 
177
179
  # Builds the object from hash
@@ -0,0 +1,268 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Fastly
15
+ class SuccessfulResponseAsObjectAllOf
16
+ # Domain Identifier (UUID).
17
+ attr_accessor :id
18
+
19
+ # The fully-qualified domain name for your domain. Can be created, but not updated.
20
+ attr_accessor :fqdn
21
+
22
+ # The `service_id` associated with your domain or `null` if there is no association.
23
+ attr_accessor :service_id
24
+
25
+ # A freeform descriptive note.
26
+ attr_accessor :description
27
+
28
+ # Denotes if the domain has at least one TLS activation or not.
29
+ attr_accessor :activated
30
+
31
+ # Denotes that the customer has proven ownership over the domain by obtaining a Fastly-managed TLS certificate for it or by providing a their own TLS certificate from a publicly-trusted CA that includes the domain or matching wildcard.
32
+ attr_accessor :verified
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'id' => :'id',
38
+ :'fqdn' => :'fqdn',
39
+ :'service_id' => :'service_id',
40
+ :'description' => :'description',
41
+ :'activated' => :'activated',
42
+ :'verified' => :'verified'
43
+ }
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.fastly_types
53
+ {
54
+ :'id' => :'String',
55
+ :'fqdn' => :'String',
56
+ :'service_id' => :'String',
57
+ :'description' => :'String',
58
+ :'activated' => :'Boolean',
59
+ :'verified' => :'Boolean'
60
+ }
61
+ end
62
+
63
+ # List of attributes with nullable: true
64
+ def self.fastly_nullable
65
+ Set.new([
66
+ :'service_id',
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::SuccessfulResponseAsObjectAllOf` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ attributes = attributes.each_with_object({}) { |(k, v), h|
79
+ if (!self.class.attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::SuccessfulResponseAsObjectAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ end
82
+ h[k.to_sym] = v
83
+ }
84
+
85
+ if attributes.key?(:'id')
86
+ self.id = attributes[:'id']
87
+ end
88
+
89
+ if attributes.key?(:'fqdn')
90
+ self.fqdn = attributes[:'fqdn']
91
+ end
92
+
93
+ if attributes.key?(:'service_id')
94
+ self.service_id = attributes[:'service_id']
95
+ end
96
+
97
+ if attributes.key?(:'description')
98
+ self.description = attributes[:'description']
99
+ end
100
+
101
+ if attributes.key?(:'activated')
102
+ self.activated = attributes[:'activated']
103
+ end
104
+
105
+ if attributes.key?(:'verified')
106
+ self.verified = attributes[:'verified']
107
+ end
108
+ end
109
+
110
+ # Show invalid properties with the reasons. Usually used together with valid?
111
+ # @return Array for valid properties with the reasons
112
+ def list_invalid_properties
113
+ invalid_properties = Array.new
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ true
121
+ end
122
+
123
+ # Checks equality by comparing each attribute.
124
+ # @param [Object] Object to be compared
125
+ def ==(o)
126
+ return true if self.equal?(o)
127
+ self.class == o.class &&
128
+ id == o.id &&
129
+ fqdn == o.fqdn &&
130
+ service_id == o.service_id &&
131
+ description == o.description &&
132
+ activated == o.activated &&
133
+ verified == o.verified
134
+ end
135
+
136
+ # @see the `==` method
137
+ # @param [Object] Object to be compared
138
+ def eql?(o)
139
+ self == o
140
+ end
141
+
142
+ # Calculates hash code according to all attributes.
143
+ # @return [Integer] Hash code
144
+ def hash
145
+ [id, fqdn, service_id, description, activated, verified].hash
146
+ end
147
+
148
+ # Builds the object from hash
149
+ # @param [Hash] attributes Model attributes in the form of hash
150
+ # @return [Object] Returns the model itself
151
+ def self.build_from_hash(attributes)
152
+ new.build_from_hash(attributes)
153
+ end
154
+
155
+ # Builds the object from hash
156
+ # @param [Hash] attributes Model attributes in the form of hash
157
+ # @return [Object] Returns the model itself
158
+ def build_from_hash(attributes)
159
+ return nil unless attributes.is_a?(Hash)
160
+ self.class.fastly_types.each_pair do |key, type|
161
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
162
+ self.send("#{key}=", nil)
163
+ elsif type =~ /\AArray<(.*)>/i
164
+ # check to ensure the input is an array given that the attribute
165
+ # is documented as an array but the input is not
166
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
167
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
168
+ end
169
+ elsif !attributes[self.class.attribute_map[key]].nil?
170
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
171
+ end
172
+ end
173
+
174
+ self
175
+ end
176
+
177
+ # Deserializes the data based on type
178
+ # @param string type Data type
179
+ # @param string value Value to be deserialized
180
+ # @return [Object] Deserialized data
181
+ def _deserialize(type, value)
182
+ case type.to_sym
183
+ when :Time
184
+ Time.parse(value)
185
+ when :Date
186
+ Date.parse(value)
187
+ when :String
188
+ value.to_s
189
+ when :Integer
190
+ value.to_i
191
+ when :Float
192
+ value.to_f
193
+ when :Boolean
194
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
195
+ true
196
+ else
197
+ false
198
+ end
199
+ when :Object
200
+ # generic object (usually a Hash), return directly
201
+ value
202
+ when /\AArray<(?<inner_type>.+)>\z/
203
+ inner_type = Regexp.last_match[:inner_type]
204
+ value.map { |v| _deserialize(inner_type, v) }
205
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
206
+ k_type = Regexp.last_match[:k_type]
207
+ v_type = Regexp.last_match[:v_type]
208
+ {}.tap do |hash|
209
+ value.each do |k, v|
210
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
211
+ end
212
+ end
213
+ else # model
214
+ # models (e.g. Pet) or oneOf
215
+ klass = Fastly.const_get(type)
216
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
217
+ end
218
+ end
219
+
220
+ # Returns the string representation of the object
221
+ # @return [String] String presentation of the object
222
+ def to_s
223
+ to_hash.to_s
224
+ end
225
+
226
+ # to_body is an alias to to_hash (backward compatibility)
227
+ # @return [Hash] Returns the object in the form of hash
228
+ def to_body
229
+ to_hash
230
+ end
231
+
232
+ # Returns the object in the form of hash
233
+ # @return [Hash] Returns the object in the form of hash
234
+ def to_hash
235
+ hash = {}
236
+ self.class.attribute_map.each_pair do |attr, param|
237
+ value = self.send(attr)
238
+ if value.nil?
239
+ is_nullable = self.class.fastly_nullable.include?(attr)
240
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
241
+ end
242
+
243
+ hash[param] = _to_hash(value)
244
+ end
245
+ hash
246
+ end
247
+
248
+ # Outputs non-array value in the form of hash
249
+ # For object, use to_hash. Otherwise, just return the value
250
+ # @param [Object] value Any valid value
251
+ # @return [Hash] Returns the value in the form of hash
252
+ def _to_hash(value)
253
+ if value.is_a?(Array)
254
+ value.compact.map { |v| _to_hash(v) }
255
+ elsif value.is_a?(Hash)
256
+ {}.tap do |hash|
257
+ value.each { |k, v| hash[k] = _to_hash(v) }
258
+ end
259
+ elsif value.respond_to? :to_hash
260
+ value.to_hash
261
+ else
262
+ value
263
+ end
264
+ end
265
+
266
+ end
267
+
268
+ end
@@ -29,6 +29,9 @@ module Fastly
29
29
 
30
30
  attr_accessor :role
31
31
 
32
+ # A list of role IDs assigned to the user.
33
+ attr_accessor :roles
34
+
32
35
  # Indicates if 2FA is enabled on the user.
33
36
  attr_accessor :two_factor_auth_enabled
34
37
 
@@ -44,6 +47,7 @@ module Fastly
44
47
  :'locked' => :'locked',
45
48
  :'require_new_password' => :'require_new_password',
46
49
  :'role' => :'role',
50
+ :'roles' => :'roles',
47
51
  :'two_factor_auth_enabled' => :'two_factor_auth_enabled',
48
52
  :'two_factor_setup_required' => :'two_factor_setup_required'
49
53
  }
@@ -63,6 +67,7 @@ module Fastly
63
67
  :'locked' => :'Boolean',
64
68
  :'require_new_password' => :'Boolean',
65
69
  :'role' => :'RoleUser',
70
+ :'roles' => :'Array<String>',
66
71
  :'two_factor_auth_enabled' => :'Boolean',
67
72
  :'two_factor_setup_required' => :'Boolean'
68
73
  }
@@ -116,6 +121,12 @@ module Fastly
116
121
  self.role = attributes[:'role']
117
122
  end
118
123
 
124
+ if attributes.key?(:'roles')
125
+ if (value = attributes[:'roles']).is_a?(Array)
126
+ self.roles = value
127
+ end
128
+ end
129
+
119
130
  if attributes.key?(:'two_factor_auth_enabled')
120
131
  self.two_factor_auth_enabled = attributes[:'two_factor_auth_enabled']
121
132
  end
@@ -149,6 +160,7 @@ module Fastly
149
160
  locked == o.locked &&
150
161
  require_new_password == o.require_new_password &&
151
162
  role == o.role &&
163
+ roles == o.roles &&
152
164
  two_factor_auth_enabled == o.two_factor_auth_enabled &&
153
165
  two_factor_setup_required == o.two_factor_setup_required
154
166
  end
@@ -162,7 +174,7 @@ module Fastly
162
174
  # Calculates hash code according to all attributes.
163
175
  # @return [Integer] Hash code
164
176
  def hash
165
- [login, name, limit_services, locked, require_new_password, role, two_factor_auth_enabled, two_factor_setup_required].hash
177
+ [login, name, limit_services, locked, require_new_password, role, roles, two_factor_auth_enabled, two_factor_setup_required].hash
166
178
  end
167
179
 
168
180
  # Builds the object from hash
@@ -29,6 +29,9 @@ module Fastly
29
29
 
30
30
  attr_accessor :role
31
31
 
32
+ # A list of role IDs assigned to the user.
33
+ attr_accessor :roles
34
+
32
35
  # Indicates if 2FA is enabled on the user.
33
36
  attr_accessor :two_factor_auth_enabled
34
37
 
@@ -60,6 +63,7 @@ module Fastly
60
63
  :'locked' => :'locked',
61
64
  :'require_new_password' => :'require_new_password',
62
65
  :'role' => :'role',
66
+ :'roles' => :'roles',
63
67
  :'two_factor_auth_enabled' => :'two_factor_auth_enabled',
64
68
  :'two_factor_setup_required' => :'two_factor_setup_required',
65
69
  :'created_at' => :'created_at',
@@ -85,6 +89,7 @@ module Fastly
85
89
  :'locked' => :'Boolean',
86
90
  :'require_new_password' => :'Boolean',
87
91
  :'role' => :'RoleUser',
92
+ :'roles' => :'Array<String>',
88
93
  :'two_factor_auth_enabled' => :'Boolean',
89
94
  :'two_factor_setup_required' => :'Boolean',
90
95
  :'created_at' => :'Time',
@@ -156,6 +161,12 @@ module Fastly
156
161
  self.role = attributes[:'role']
157
162
  end
158
163
 
164
+ if attributes.key?(:'roles')
165
+ if (value = attributes[:'roles']).is_a?(Array)
166
+ self.roles = value
167
+ end
168
+ end
169
+
159
170
  if attributes.key?(:'two_factor_auth_enabled')
160
171
  self.two_factor_auth_enabled = attributes[:'two_factor_auth_enabled']
161
172
  end
@@ -213,6 +224,7 @@ module Fastly
213
224
  locked == o.locked &&
214
225
  require_new_password == o.require_new_password &&
215
226
  role == o.role &&
227
+ roles == o.roles &&
216
228
  two_factor_auth_enabled == o.two_factor_auth_enabled &&
217
229
  two_factor_setup_required == o.two_factor_setup_required &&
218
230
  created_at == o.created_at &&
@@ -232,7 +244,7 @@ module Fastly
232
244
  # Calculates hash code according to all attributes.
233
245
  # @return [Integer] Hash code
234
246
  def hash
235
- [login, name, limit_services, locked, require_new_password, role, two_factor_auth_enabled, two_factor_setup_required, created_at, deleted_at, updated_at, id, email_hash, customer_id].hash
247
+ [login, name, limit_services, locked, require_new_password, role, roles, two_factor_auth_enabled, two_factor_setup_required, created_at, deleted_at, updated_at, id, email_hash, customer_id].hash
236
248
  end
237
249
 
238
250
  # Builds the object from hash