fastly 5.3.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +62 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +86 -63
  5. data/docs/AclEntry.md +1 -1
  6. data/docs/AclEntryApi.md +176 -0
  7. data/docs/AclEntryResponse.md +1 -1
  8. data/docs/ApexRedirectApi.md +56 -0
  9. data/docs/Batch.md +12 -0
  10. data/docs/BatchErrors.md +13 -0
  11. data/docs/BulkUpdateAclEntry.md +1 -1
  12. data/docs/ClientKey.md +12 -0
  13. data/docs/ContactApi.md +50 -0
  14. data/docs/Content.md +2 -2
  15. data/docs/ContentApi.md +52 -0
  16. data/docs/DirectorApi.md +42 -0
  17. data/docs/DomainInspector.md +12 -0
  18. data/docs/DomainInspectorEntry.md +11 -0
  19. data/docs/DomainInspectorEntryDimensions.md +12 -0
  20. data/docs/DomainInspectorHistoricalApi.md +72 -0
  21. data/docs/DomainInspectorMeasurements.md +71 -0
  22. data/docs/DomainInspectorRealtimeApi.md +132 -0
  23. data/docs/DomainInspectorRealtimeEntry.md +12 -0
  24. data/docs/EventAttributes.md +1 -1
  25. data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
  26. data/docs/HistoricalDomains.md +13 -0
  27. data/docs/HistoricalDomainsData.md +11 -0
  28. data/docs/HistoricalDomainsMeta.md +18 -0
  29. data/docs/HistoricalDomainsMetaFilters.md +12 -0
  30. data/docs/HistoricalDomainsResponse.md +13 -0
  31. data/docs/HistoricalDomainsResponseAllOf.md +10 -0
  32. data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
  33. data/docs/HistoricalOriginsResponse.md +13 -0
  34. data/docs/HistoricalOriginsResponseAllOf.md +10 -0
  35. data/docs/IamRolesApi.md +157 -0
  36. data/docs/IamServiceGroupsApi.md +157 -0
  37. data/docs/IamUserGroupsApi.md +315 -0
  38. data/docs/InlineResponse2005.md +11 -0
  39. data/docs/InlineResponse2006.md +11 -0
  40. data/docs/InlineResponse2007.md +10 -0
  41. data/docs/InlineResponse400.md +10 -0
  42. data/docs/LegacyWafConfigurationSet.md +11 -0
  43. data/docs/LegacyWafConfigurationSetsApi.md +125 -0
  44. data/docs/LegacyWafFirewall.md +18 -0
  45. data/docs/LegacyWafFirewallApi.md +352 -0
  46. data/docs/LegacyWafOwasp.md +38 -0
  47. data/docs/LegacyWafOwaspApi.md +138 -0
  48. data/docs/LegacyWafRule.md +14 -0
  49. data/docs/LegacyWafRuleApi.md +184 -0
  50. data/docs/LegacyWafRuleStatus.md +12 -0
  51. data/docs/LegacyWafRuleStatusApi.md +202 -0
  52. data/docs/LegacyWafRuleset.md +11 -0
  53. data/docs/LegacyWafRulesetApi.md +136 -0
  54. data/docs/LegacyWafTag.md +10 -0
  55. data/docs/LegacyWafTagApi.md +58 -0
  56. data/docs/LegacyWafUpdateStatus.md +15 -0
  57. data/docs/LegacyWafUpdateStatusApi.md +102 -0
  58. data/docs/LoggingKafkaApi.md +42 -0
  59. data/docs/LoggingKinesisApi.md +42 -0
  60. data/docs/OriginInspector.md +12 -0
  61. data/docs/OriginInspectorDimensions.md +12 -0
  62. data/docs/OriginInspectorEntry.md +11 -0
  63. data/docs/OriginInspectorHistorical.md +13 -0
  64. data/docs/OriginInspectorHistoricalApi.md +72 -0
  65. data/docs/OriginInspectorHistoricalData.md +11 -0
  66. data/docs/OriginInspectorHistoricalMeta.md +18 -0
  67. data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
  68. data/docs/OriginInspectorMeasurements.md +161 -0
  69. data/docs/OriginInspectorRealtimeApi.md +132 -0
  70. data/docs/OriginInspectorRealtimeEntry.md +12 -0
  71. data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
  72. data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
  73. data/docs/OriginInspectorValues.md +161 -0
  74. data/docs/PaginationCursorMeta.md +11 -0
  75. data/docs/ReadOnlyServiceId.md +9 -0
  76. data/docs/ReadOnlyVersion.md +9 -0
  77. data/docs/RealtimeEntry.md +2 -2
  78. data/docs/RealtimeEntryAggregated.md +227 -0
  79. data/docs/RealtimeEntryRecorded.md +9 -0
  80. data/docs/RealtimeMeasurements.md +1 -1
  81. data/docs/RecordedTimestamp.md +9 -0
  82. data/docs/RequestSettingsApi.md +40 -0
  83. data/docs/ResponseObjectApi.md +82 -0
  84. data/docs/SchemasSnippetResponse.md +1 -1
  85. data/docs/Secret.md +12 -0
  86. data/docs/SecretResponse.md +13 -0
  87. data/docs/SecretStore.md +10 -0
  88. data/docs/SecretStoreApi.md +233 -0
  89. data/docs/SecretStoreItemApi.md +255 -0
  90. data/docs/SecretStoreResponse.md +12 -0
  91. data/docs/ServiceAuthorizationsApi.md +76 -0
  92. data/docs/SigningKey.md +10 -0
  93. data/docs/Snippet.md +1 -1
  94. data/docs/SnippetApi.md +46 -4
  95. data/docs/SnippetResponse.md +1 -1
  96. data/docs/SubsequentRequestTimestamp.md +9 -0
  97. data/docs/SudoApi.md +52 -0
  98. data/docs/SudoGenericTokenError.md +10 -0
  99. data/docs/SudoRequest.md +12 -0
  100. data/docs/SudoResponse.md +10 -0
  101. data/docs/TokensAdditionalProps.md +9 -0
  102. data/docs/TokensApi.md +70 -0
  103. data/docs/ValidatorResult.md +1 -5
  104. data/docs/ValidatorResultData.md +12 -0
  105. data/docs/ValidatorResultDataAttributes.md +14 -0
  106. data/docs/{ValidatorResultMessages.md → ValidatorResultDataAttributesMessages.md} +2 -2
  107. data/docs/Values.md +71 -0
  108. data/docs/VclApi.md +8 -6
  109. data/docs/VclSyntaxHighlightingResponse.md +10 -0
  110. data/docs/WafActiveRulesApi.md +41 -0
  111. data/lib/fastly/api/acl_entry_api.rb +332 -0
  112. data/lib/fastly/api/apex_redirect_api.rb +111 -0
  113. data/lib/fastly/api/contact_api.rb +90 -0
  114. data/lib/fastly/api/content_api.rb +79 -0
  115. data/lib/fastly/api/director_api.rb +82 -0
  116. data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
  117. data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
  118. data/lib/fastly/api/iam_roles_api.rb +271 -0
  119. data/lib/fastly/api/iam_service_groups_api.rb +271 -0
  120. data/lib/fastly/api/iam_user_groups_api.rb +547 -0
  121. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
  122. data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
  123. data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
  124. data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
  125. data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
  126. data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
  127. data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
  128. data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
  129. data/lib/fastly/api/logging_kafka_api.rb +82 -0
  130. data/lib/fastly/api/logging_kinesis_api.rb +82 -0
  131. data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
  132. data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
  133. data/lib/fastly/api/request_settings_api.rb +75 -0
  134. data/lib/fastly/api/response_object_api.rb +157 -0
  135. data/lib/fastly/api/secret_store_api.rb +381 -0
  136. data/lib/fastly/api/secret_store_item_api.rb +437 -0
  137. data/lib/fastly/api/service_authorizations_api.rb +126 -0
  138. data/lib/fastly/api/snippet_api.rb +88 -6
  139. data/lib/fastly/api/sudo_api.rb +83 -0
  140. data/lib/fastly/api/tokens_api.rb +122 -0
  141. data/lib/fastly/api/vcl_api.rb +10 -10
  142. data/lib/fastly/api/waf_active_rules_api.rb +75 -0
  143. data/lib/fastly/configuration.rb +504 -0
  144. data/lib/fastly/models/acl_entry.rb +1 -1
  145. data/lib/fastly/models/acl_entry_response.rb +1 -1
  146. data/lib/fastly/models/batch.rb +239 -0
  147. data/lib/fastly/models/batch_errors.rb +247 -0
  148. data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
  149. data/lib/fastly/models/client_key.rb +239 -0
  150. data/lib/fastly/models/content.rb +8 -4
  151. data/lib/fastly/models/domain.rb +1 -0
  152. data/lib/fastly/models/domain_inspector.rb +238 -0
  153. data/lib/fastly/models/domain_inspector_entry.rb +228 -0
  154. data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
  155. data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
  156. data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
  157. data/lib/fastly/models/event_attributes.rb +4 -2
  158. data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
  159. data/lib/fastly/models/events_response.rb +1 -1
  160. data/lib/fastly/models/historical_domains.rb +249 -0
  161. data/lib/fastly/models/historical_domains_data.rb +228 -0
  162. data/lib/fastly/models/historical_domains_meta.rb +297 -0
  163. data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
  164. data/lib/fastly/models/historical_domains_response.rb +257 -0
  165. data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
  166. data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
  167. data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
  168. data/lib/fastly/models/historical_origins_response.rb +257 -0
  169. data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
  170. data/lib/fastly/models/inline_response2005.rb +227 -0
  171. data/lib/fastly/models/inline_response2006.rb +227 -0
  172. data/lib/fastly/models/inline_response2007.rb +218 -0
  173. data/lib/fastly/models/inline_response400.rb +250 -0
  174. data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
  175. data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
  176. data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
  177. data/lib/fastly/models/legacy_waf_rule.rb +257 -0
  178. data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
  179. data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
  180. data/lib/fastly/models/legacy_waf_tag.rb +217 -0
  181. data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
  182. data/lib/fastly/models/origin_inspector.rb +238 -0
  183. data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
  184. data/lib/fastly/models/origin_inspector_entry.rb +228 -0
  185. data/lib/fastly/models/origin_inspector_historical.rb +249 -0
  186. data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
  187. data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
  188. data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
  189. data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
  190. data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
  191. data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
  192. data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
  193. data/lib/fastly/models/origin_inspector_values.rb +1728 -0
  194. data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
  195. data/lib/fastly/models/read_only_service_id.rb +207 -0
  196. data/lib/fastly/models/read_only_version.rb +207 -0
  197. data/lib/fastly/models/realtime_entry.rb +2 -7
  198. data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
  199. data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
  200. data/lib/fastly/models/realtime_measurements.rb +4 -2
  201. data/lib/fastly/models/recorded_timestamp.rb +208 -0
  202. data/lib/fastly/models/schemas_snippet_response.rb +3 -3
  203. data/lib/fastly/models/secret.rb +238 -0
  204. data/lib/fastly/models/secret_response.rb +249 -0
  205. data/lib/fastly/models/secret_store.rb +217 -0
  206. data/lib/fastly/models/secret_store_response.rb +238 -0
  207. data/lib/fastly/models/signing_key.rb +218 -0
  208. data/lib/fastly/models/snippet.rb +3 -3
  209. data/lib/fastly/models/snippet_response.rb +3 -3
  210. data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
  211. data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
  212. data/lib/fastly/models/sudo_request.rb +244 -0
  213. data/lib/fastly/models/sudo_response.rb +217 -0
  214. data/lib/fastly/models/tokens_additional_props.rb +227 -0
  215. data/lib/fastly/models/validator_result.rb +7 -84
  216. data/lib/fastly/models/validator_result_data.rb +234 -0
  217. data/lib/fastly/models/validator_result_data_attributes.rb +293 -0
  218. data/lib/fastly/models/{validator_result_messages.rb → validator_result_data_attributes_messages.rb} +4 -4
  219. data/lib/fastly/models/values.rb +828 -0
  220. data/lib/fastly/models/vcl_syntax_highlighting_response.rb +217 -0
  221. data/lib/fastly/version.rb +1 -1
  222. data/lib/fastly.rb +79 -3
  223. data/sig.json +1 -1
  224. metadata +160 -8
@@ -0,0 +1,13 @@
1
+ # Fastly::HistoricalDomains
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | Whether or not we were able to successfully execute the query. | [optional] |
8
+ | **meta** | [**HistoricalDomainsMeta**](HistoricalDomainsMeta.md) | | [optional] |
9
+ | **msg** | **String** | If the query was not successful, this will provide a string that explains why. | [optional] |
10
+ | **data** | [**Array<HistoricalDomainsData>**](HistoricalDomainsData.md) | A list of [entries](#entry-data-model), each representing one unique combination of dimensions, such as domain, region, or POP. | [optional] |
11
+
12
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13
+
@@ -0,0 +1,11 @@
1
+ # Fastly::HistoricalDomainsData
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **dimensions** | [**DomainInspectorEntryDimensions**](DomainInspectorEntryDimensions.md) | | [optional] |
8
+ | **values** | [**Array<Values>**](Values.md) | An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -0,0 +1,18 @@
1
+ # Fastly::HistoricalDomainsMeta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **start** | **String** | Start time that was used to perform the query as an ISO-8601-formatted date and time. | [optional] |
8
+ | **_end** | **String** | End time that was used to perform the query as an ISO-8601-formatted date and time. | [optional] |
9
+ | **downsample** | **String** | Downsample that was used to perform the query. One of `minute`, `hour`, or `day`. | [optional] |
10
+ | **metrics** | **String** | A comma-separated list of the metrics that were requested. | [optional] |
11
+ | **limit** | **Float** | The maximum number of results shown per page. | [optional] |
12
+ | **next_cursor** | **String** | A string that can be used to request the next page of results, if any. | [optional] |
13
+ | **sort** | **String** | A comma-separated list of keys the results are sorted by. | [optional] |
14
+ | **group_by** | **String** | A comma-separated list of dimensions being summed over in the query. | [optional] |
15
+ | **filters** | [**HistoricalDomainsMetaFilters**](HistoricalDomainsMetaFilters.md) | | [optional] |
16
+
17
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
18
+
@@ -0,0 +1,12 @@
1
+ # Fastly::HistoricalDomainsMetaFilters
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **region** | **String** | | [optional] |
8
+ | **datacenter** | **String** | | [optional] |
9
+ | **domain** | **String** | | [optional] |
10
+
11
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
+
@@ -0,0 +1,13 @@
1
+ # Fastly::HistoricalDomainsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | Whether or not we were able to successfully execute the query. | [optional] |
8
+ | **meta** | [**HistoricalDomainsMeta**](HistoricalDomainsMeta.md) | | [optional] |
9
+ | **msg** | **String** | If the query was not successful, this will provide a string that explains why. | [optional] |
10
+ | **data** | [**Array<DomainInspectorEntry>**](DomainInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. | [optional] |
11
+
12
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13
+
@@ -0,0 +1,10 @@
1
+ # Fastly::HistoricalDomainsResponseAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<DomainInspectorEntry>**](DomainInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as domain, region or POP. | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -1,4 +1,4 @@
1
- # Fastly::HistoricalFieldResultsAttributesAllOf
1
+ # Fastly::HistoricalFieldResultsAttributesAdditional
2
2
 
3
3
  ## Properties
4
4
 
@@ -0,0 +1,13 @@
1
+ # Fastly::HistoricalOriginsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | Whether or not we were able to successfully execute the query. | [optional] |
8
+ | **meta** | [**OriginInspectorHistoricalMeta**](OriginInspectorHistoricalMeta.md) | | [optional] |
9
+ | **msg** | **String** | If the query was not successful, this will provide a string that explains why. | [optional] |
10
+ | **data** | [**Array<OriginInspectorEntry>**](OriginInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. | [optional] |
11
+
12
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13
+
@@ -0,0 +1,10 @@
1
+ # Fastly::HistoricalOriginsResponseAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<OriginInspectorEntry>**](OriginInspectorEntry.md) | A list of timeseries. Each individual timeseries represents a unique combination of dimensions, such as origin host, region or POP. | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
data/docs/IamRolesApi.md CHANGED
@@ -10,12 +10,92 @@ api_instance = Fastly::IamRolesApi.new
10
10
 
11
11
  | Method | HTTP request | Description |
12
12
  | ------ | ------------ | ----------- |
13
+ | [**add_role_permissions**](IamRolesApi.md#add_role_permissions) | **POST** /roles/{role_id}/permissions | Add permissions to a role |
14
+ | [**create_a_role**](IamRolesApi.md#create_a_role) | **POST** /roles | Create a role |
13
15
  | [**delete_a_role**](IamRolesApi.md#delete_a_role) | **DELETE** /roles/{role_id} | Delete a role |
14
16
  | [**get_a_role**](IamRolesApi.md#get_a_role) | **GET** /roles/{role_id} | Get a role |
15
17
  | [**list_role_permissions**](IamRolesApi.md#list_role_permissions) | **GET** /roles/{role_id}/permissions | List permissions in a role |
16
18
  | [**list_roles**](IamRolesApi.md#list_roles) | **GET** /roles | List roles |
19
+ | [**remove_role_permissions**](IamRolesApi.md#remove_role_permissions) | **DELETE** /roles/{role_id}/permissions | Remove permissions from a role |
20
+ | [**update_a_role**](IamRolesApi.md#update_a_role) | **PATCH** /roles/{role_id} | Update a role |
17
21
 
18
22
 
23
+ ## `add_role_permissions()`
24
+
25
+ ```ruby
26
+ add_role_permissions(opts): Object # Add permissions to a role
27
+ ```
28
+
29
+ Add permissions to a role.
30
+
31
+ ### Examples
32
+
33
+ ```ruby
34
+ api_instance = Fastly::IamRolesApi.new
35
+ opts = {
36
+ role_id: 'role_id_example', # String | Alphanumeric string identifying the role.
37
+ request_body: { key: 3.56}, # Hash<String, Object> |
38
+ }
39
+
40
+ begin
41
+ # Add permissions to a role
42
+ result = api_instance.add_role_permissions(opts)
43
+ p result
44
+ rescue Fastly::ApiError => e
45
+ puts "Error when calling IamRolesApi->add_role_permissions: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Options
50
+
51
+ | Name | Type | Description | Notes |
52
+ | ---- | ---- | ----------- | ----- |
53
+ | **role_id** | **String** | Alphanumeric string identifying the role. | |
54
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
55
+
56
+ ### Return type
57
+
58
+ **Object**
59
+
60
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
61
+ [[Back to README]](../../README.md)
62
+ ## `create_a_role()`
63
+
64
+ ```ruby
65
+ create_a_role(opts): Object # Create a role
66
+ ```
67
+
68
+ Create a role.
69
+
70
+ ### Examples
71
+
72
+ ```ruby
73
+ api_instance = Fastly::IamRolesApi.new
74
+ opts = {
75
+ request_body: { key: 3.56}, # Hash<String, Object> |
76
+ }
77
+
78
+ begin
79
+ # Create a role
80
+ result = api_instance.create_a_role(opts)
81
+ p result
82
+ rescue Fastly::ApiError => e
83
+ puts "Error when calling IamRolesApi->create_a_role: #{e}"
84
+ end
85
+ ```
86
+
87
+ ### Options
88
+
89
+ | Name | Type | Description | Notes |
90
+ | ---- | ---- | ----------- | ----- |
91
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
92
+
93
+ ### Return type
94
+
95
+ **Object**
96
+
97
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
98
+ [[Back to README]](../../README.md)
19
99
  ## `delete_a_role()`
20
100
 
21
101
  ```ruby
@@ -165,3 +245,80 @@ end
165
245
 
166
246
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
167
247
  [[Back to README]](../../README.md)
248
+ ## `remove_role_permissions()`
249
+
250
+ ```ruby
251
+ remove_role_permissions(opts) # Remove permissions from a role
252
+ ```
253
+
254
+ Remove permissions from a role.
255
+
256
+ ### Examples
257
+
258
+ ```ruby
259
+ api_instance = Fastly::IamRolesApi.new
260
+ opts = {
261
+ role_id: 'role_id_example', # String | Alphanumeric string identifying the role.
262
+ request_body: { key: 3.56}, # Hash<String, Object> |
263
+ }
264
+
265
+ begin
266
+ # Remove permissions from a role
267
+ api_instance.remove_role_permissions(opts)
268
+ rescue Fastly::ApiError => e
269
+ puts "Error when calling IamRolesApi->remove_role_permissions: #{e}"
270
+ end
271
+ ```
272
+
273
+ ### Options
274
+
275
+ | Name | Type | Description | Notes |
276
+ | ---- | ---- | ----------- | ----- |
277
+ | **role_id** | **String** | Alphanumeric string identifying the role. | |
278
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
279
+
280
+ ### Return type
281
+
282
+ nil (empty response body)
283
+
284
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
285
+ [[Back to README]](../../README.md)
286
+ ## `update_a_role()`
287
+
288
+ ```ruby
289
+ update_a_role(opts): Object # Update a role
290
+ ```
291
+
292
+ Update a role.
293
+
294
+ ### Examples
295
+
296
+ ```ruby
297
+ api_instance = Fastly::IamRolesApi.new
298
+ opts = {
299
+ role_id: 'role_id_example', # String | Alphanumeric string identifying the role.
300
+ request_body: { key: 3.56}, # Hash<String, Object> |
301
+ }
302
+
303
+ begin
304
+ # Update a role
305
+ result = api_instance.update_a_role(opts)
306
+ p result
307
+ rescue Fastly::ApiError => e
308
+ puts "Error when calling IamRolesApi->update_a_role: #{e}"
309
+ end
310
+ ```
311
+
312
+ ### Options
313
+
314
+ | Name | Type | Description | Notes |
315
+ | ---- | ---- | ----------- | ----- |
316
+ | **role_id** | **String** | Alphanumeric string identifying the role. | |
317
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
318
+
319
+ ### Return type
320
+
321
+ **Object**
322
+
323
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
324
+ [[Back to README]](../../README.md)
@@ -10,12 +10,92 @@ api_instance = Fastly::IamServiceGroupsApi.new
10
10
 
11
11
  | Method | HTTP request | Description |
12
12
  | ------ | ------------ | ----------- |
13
+ | [**add_service_group_services**](IamServiceGroupsApi.md#add_service_group_services) | **POST** /service-groups/{service_group_id}/services | Add services in a service group |
14
+ | [**create_a_service_group**](IamServiceGroupsApi.md#create_a_service_group) | **POST** /service-groups | Create a service group |
13
15
  | [**delete_a_service_group**](IamServiceGroupsApi.md#delete_a_service_group) | **DELETE** /service-groups/{service_group_id} | Delete a service group |
14
16
  | [**get_a_service_group**](IamServiceGroupsApi.md#get_a_service_group) | **GET** /service-groups/{service_group_id} | Get a service group |
15
17
  | [**list_service_group_services**](IamServiceGroupsApi.md#list_service_group_services) | **GET** /service-groups/{service_group_id}/services | List services to a service group |
16
18
  | [**list_service_groups**](IamServiceGroupsApi.md#list_service_groups) | **GET** /service-groups | List service groups |
19
+ | [**remove_service_group_services**](IamServiceGroupsApi.md#remove_service_group_services) | **DELETE** /service-groups/{service_group_id}/services | Remove services from a service group |
20
+ | [**update_a_service_group**](IamServiceGroupsApi.md#update_a_service_group) | **PATCH** /service-groups/{service_group_id} | Update a service group |
17
21
 
18
22
 
23
+ ## `add_service_group_services()`
24
+
25
+ ```ruby
26
+ add_service_group_services(opts): Object # Add services in a service group
27
+ ```
28
+
29
+ Add services in a service group.
30
+
31
+ ### Examples
32
+
33
+ ```ruby
34
+ api_instance = Fastly::IamServiceGroupsApi.new
35
+ opts = {
36
+ service_group_id: 'service_group_id_example', # String | Alphanumeric string identifying the service group.
37
+ request_body: { key: 3.56}, # Hash<String, Object> |
38
+ }
39
+
40
+ begin
41
+ # Add services in a service group
42
+ result = api_instance.add_service_group_services(opts)
43
+ p result
44
+ rescue Fastly::ApiError => e
45
+ puts "Error when calling IamServiceGroupsApi->add_service_group_services: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Options
50
+
51
+ | Name | Type | Description | Notes |
52
+ | ---- | ---- | ----------- | ----- |
53
+ | **service_group_id** | **String** | Alphanumeric string identifying the service group. | |
54
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
55
+
56
+ ### Return type
57
+
58
+ **Object**
59
+
60
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
61
+ [[Back to README]](../../README.md)
62
+ ## `create_a_service_group()`
63
+
64
+ ```ruby
65
+ create_a_service_group(opts): Object # Create a service group
66
+ ```
67
+
68
+ Create a service group.
69
+
70
+ ### Examples
71
+
72
+ ```ruby
73
+ api_instance = Fastly::IamServiceGroupsApi.new
74
+ opts = {
75
+ request_body: { key: 3.56}, # Hash<String, Object> |
76
+ }
77
+
78
+ begin
79
+ # Create a service group
80
+ result = api_instance.create_a_service_group(opts)
81
+ p result
82
+ rescue Fastly::ApiError => e
83
+ puts "Error when calling IamServiceGroupsApi->create_a_service_group: #{e}"
84
+ end
85
+ ```
86
+
87
+ ### Options
88
+
89
+ | Name | Type | Description | Notes |
90
+ | ---- | ---- | ----------- | ----- |
91
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
92
+
93
+ ### Return type
94
+
95
+ **Object**
96
+
97
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
98
+ [[Back to README]](../../README.md)
19
99
  ## `delete_a_service_group()`
20
100
 
21
101
  ```ruby
@@ -169,3 +249,80 @@ end
169
249
 
170
250
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
171
251
  [[Back to README]](../../README.md)
252
+ ## `remove_service_group_services()`
253
+
254
+ ```ruby
255
+ remove_service_group_services(opts) # Remove services from a service group
256
+ ```
257
+
258
+ Remove services from a service group.
259
+
260
+ ### Examples
261
+
262
+ ```ruby
263
+ api_instance = Fastly::IamServiceGroupsApi.new
264
+ opts = {
265
+ service_group_id: 'service_group_id_example', # String | Alphanumeric string identifying the service group.
266
+ request_body: { key: 3.56}, # Hash<String, Object> |
267
+ }
268
+
269
+ begin
270
+ # Remove services from a service group
271
+ api_instance.remove_service_group_services(opts)
272
+ rescue Fastly::ApiError => e
273
+ puts "Error when calling IamServiceGroupsApi->remove_service_group_services: #{e}"
274
+ end
275
+ ```
276
+
277
+ ### Options
278
+
279
+ | Name | Type | Description | Notes |
280
+ | ---- | ---- | ----------- | ----- |
281
+ | **service_group_id** | **String** | Alphanumeric string identifying the service group. | |
282
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
283
+
284
+ ### Return type
285
+
286
+ nil (empty response body)
287
+
288
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
289
+ [[Back to README]](../../README.md)
290
+ ## `update_a_service_group()`
291
+
292
+ ```ruby
293
+ update_a_service_group(opts): Object # Update a service group
294
+ ```
295
+
296
+ Update a service group.
297
+
298
+ ### Examples
299
+
300
+ ```ruby
301
+ api_instance = Fastly::IamServiceGroupsApi.new
302
+ opts = {
303
+ service_group_id: 'service_group_id_example', # String | Alphanumeric string identifying the service group.
304
+ request_body: { key: 3.56}, # Hash<String, Object> |
305
+ }
306
+
307
+ begin
308
+ # Update a service group
309
+ result = api_instance.update_a_service_group(opts)
310
+ p result
311
+ rescue Fastly::ApiError => e
312
+ puts "Error when calling IamServiceGroupsApi->update_a_service_group: #{e}"
313
+ end
314
+ ```
315
+
316
+ ### Options
317
+
318
+ | Name | Type | Description | Notes |
319
+ | ---- | ---- | ----------- | ----- |
320
+ | **service_group_id** | **String** | Alphanumeric string identifying the service group. | |
321
+ | **request_body** | [**Hash&lt;String, Object&gt;**](Object.md) | | [optional] |
322
+
323
+ ### Return type
324
+
325
+ **Object**
326
+
327
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
328
+ [[Back to README]](../../README.md)