fastly 5.3.1 → 6.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 (200) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +55 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +85 -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/BulkUpdateAclEntry.md +1 -1
  10. data/docs/ClientKey.md +12 -0
  11. data/docs/ContactApi.md +50 -0
  12. data/docs/Content.md +2 -2
  13. data/docs/ContentApi.md +52 -0
  14. data/docs/DirectorApi.md +42 -0
  15. data/docs/DomainInspector.md +12 -0
  16. data/docs/DomainInspectorEntry.md +11 -0
  17. data/docs/DomainInspectorEntryDimensions.md +12 -0
  18. data/docs/DomainInspectorHistoricalApi.md +72 -0
  19. data/docs/DomainInspectorMeasurements.md +71 -0
  20. data/docs/DomainInspectorRealtimeApi.md +132 -0
  21. data/docs/DomainInspectorRealtimeEntry.md +12 -0
  22. data/docs/EventAttributes.md +1 -1
  23. data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
  24. data/docs/HistoricalDomains.md +13 -0
  25. data/docs/HistoricalDomainsData.md +11 -0
  26. data/docs/HistoricalDomainsMeta.md +18 -0
  27. data/docs/HistoricalDomainsMetaFilters.md +12 -0
  28. data/docs/HistoricalDomainsResponse.md +13 -0
  29. data/docs/HistoricalDomainsResponseAllOf.md +10 -0
  30. data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
  31. data/docs/HistoricalOriginsResponse.md +13 -0
  32. data/docs/HistoricalOriginsResponseAllOf.md +10 -0
  33. data/docs/IamRolesApi.md +157 -0
  34. data/docs/IamServiceGroupsApi.md +157 -0
  35. data/docs/IamUserGroupsApi.md +315 -0
  36. data/docs/InlineResponse2005.md +11 -0
  37. data/docs/InlineResponse2006.md +11 -0
  38. data/docs/InlineResponse2007.md +10 -0
  39. data/docs/InlineResponse400.md +10 -0
  40. data/docs/LegacyWafConfigurationSet.md +11 -0
  41. data/docs/LegacyWafConfigurationSetsApi.md +125 -0
  42. data/docs/LegacyWafFirewall.md +18 -0
  43. data/docs/LegacyWafFirewallApi.md +352 -0
  44. data/docs/LegacyWafOwasp.md +38 -0
  45. data/docs/LegacyWafOwaspApi.md +138 -0
  46. data/docs/LegacyWafRule.md +14 -0
  47. data/docs/LegacyWafRuleApi.md +184 -0
  48. data/docs/LegacyWafRuleStatus.md +12 -0
  49. data/docs/LegacyWafRuleStatusApi.md +202 -0
  50. data/docs/LegacyWafRuleset.md +11 -0
  51. data/docs/LegacyWafRulesetApi.md +136 -0
  52. data/docs/LegacyWafTag.md +10 -0
  53. data/docs/LegacyWafTagApi.md +58 -0
  54. data/docs/LegacyWafUpdateStatus.md +15 -0
  55. data/docs/LegacyWafUpdateStatusApi.md +102 -0
  56. data/docs/LoggingKafkaApi.md +42 -0
  57. data/docs/LoggingKinesisApi.md +42 -0
  58. data/docs/OriginInspector.md +12 -0
  59. data/docs/OriginInspectorDimensions.md +12 -0
  60. data/docs/OriginInspectorEntry.md +11 -0
  61. data/docs/OriginInspectorHistorical.md +13 -0
  62. data/docs/OriginInspectorHistoricalApi.md +72 -0
  63. data/docs/OriginInspectorHistoricalData.md +11 -0
  64. data/docs/OriginInspectorHistoricalMeta.md +18 -0
  65. data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
  66. data/docs/OriginInspectorMeasurements.md +161 -0
  67. data/docs/OriginInspectorRealtimeApi.md +132 -0
  68. data/docs/OriginInspectorRealtimeEntry.md +12 -0
  69. data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
  70. data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
  71. data/docs/OriginInspectorValues.md +161 -0
  72. data/docs/PaginationCursorMeta.md +11 -0
  73. data/docs/ReadOnlyServiceId.md +9 -0
  74. data/docs/ReadOnlyVersion.md +9 -0
  75. data/docs/RealtimeEntry.md +2 -2
  76. data/docs/RealtimeEntryAggregated.md +227 -0
  77. data/docs/RealtimeEntryRecorded.md +9 -0
  78. data/docs/RealtimeMeasurements.md +1 -1
  79. data/docs/RecordedTimestamp.md +9 -0
  80. data/docs/RequestSettingsApi.md +40 -0
  81. data/docs/ResponseObjectApi.md +82 -0
  82. data/docs/Secret.md +12 -0
  83. data/docs/SecretResponse.md +13 -0
  84. data/docs/SecretStore.md +10 -0
  85. data/docs/SecretStoreApi.md +233 -0
  86. data/docs/SecretStoreItemApi.md +255 -0
  87. data/docs/SecretStoreResponse.md +12 -0
  88. data/docs/ServiceAuthorizationsApi.md +76 -0
  89. data/docs/SigningKey.md +10 -0
  90. data/docs/SnippetApi.md +42 -0
  91. data/docs/SubsequentRequestTimestamp.md +9 -0
  92. data/docs/SudoApi.md +52 -0
  93. data/docs/SudoGenericTokenError.md +10 -0
  94. data/docs/SudoRequest.md +12 -0
  95. data/docs/SudoResponse.md +10 -0
  96. data/docs/TokensApi.md +70 -0
  97. data/docs/Values.md +71 -0
  98. data/docs/WafActiveRulesApi.md +41 -0
  99. data/lib/fastly/api/acl_entry_api.rb +332 -0
  100. data/lib/fastly/api/apex_redirect_api.rb +111 -0
  101. data/lib/fastly/api/contact_api.rb +90 -0
  102. data/lib/fastly/api/content_api.rb +79 -0
  103. data/lib/fastly/api/director_api.rb +82 -0
  104. data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
  105. data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
  106. data/lib/fastly/api/iam_roles_api.rb +271 -0
  107. data/lib/fastly/api/iam_service_groups_api.rb +271 -0
  108. data/lib/fastly/api/iam_user_groups_api.rb +547 -0
  109. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
  110. data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
  111. data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
  112. data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
  113. data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
  114. data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
  115. data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
  116. data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
  117. data/lib/fastly/api/logging_kafka_api.rb +82 -0
  118. data/lib/fastly/api/logging_kinesis_api.rb +82 -0
  119. data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
  120. data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
  121. data/lib/fastly/api/request_settings_api.rb +75 -0
  122. data/lib/fastly/api/response_object_api.rb +157 -0
  123. data/lib/fastly/api/secret_store_api.rb +381 -0
  124. data/lib/fastly/api/secret_store_item_api.rb +437 -0
  125. data/lib/fastly/api/service_authorizations_api.rb +126 -0
  126. data/lib/fastly/api/snippet_api.rb +82 -0
  127. data/lib/fastly/api/sudo_api.rb +83 -0
  128. data/lib/fastly/api/tokens_api.rb +122 -0
  129. data/lib/fastly/api/waf_active_rules_api.rb +75 -0
  130. data/lib/fastly/configuration.rb +504 -0
  131. data/lib/fastly/models/acl_entry.rb +1 -1
  132. data/lib/fastly/models/acl_entry_response.rb +1 -1
  133. data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
  134. data/lib/fastly/models/client_key.rb +239 -0
  135. data/lib/fastly/models/content.rb +8 -4
  136. data/lib/fastly/models/domain.rb +1 -0
  137. data/lib/fastly/models/domain_inspector.rb +238 -0
  138. data/lib/fastly/models/domain_inspector_entry.rb +228 -0
  139. data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
  140. data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
  141. data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
  142. data/lib/fastly/models/event_attributes.rb +4 -2
  143. data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
  144. data/lib/fastly/models/events_response.rb +1 -1
  145. data/lib/fastly/models/historical_domains.rb +249 -0
  146. data/lib/fastly/models/historical_domains_data.rb +228 -0
  147. data/lib/fastly/models/historical_domains_meta.rb +297 -0
  148. data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
  149. data/lib/fastly/models/historical_domains_response.rb +257 -0
  150. data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
  151. data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
  152. data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
  153. data/lib/fastly/models/historical_origins_response.rb +257 -0
  154. data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
  155. data/lib/fastly/models/inline_response2005.rb +227 -0
  156. data/lib/fastly/models/inline_response2006.rb +227 -0
  157. data/lib/fastly/models/inline_response2007.rb +218 -0
  158. data/lib/fastly/models/inline_response400.rb +250 -0
  159. data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
  160. data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
  161. data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
  162. data/lib/fastly/models/legacy_waf_rule.rb +257 -0
  163. data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
  164. data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
  165. data/lib/fastly/models/legacy_waf_tag.rb +217 -0
  166. data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
  167. data/lib/fastly/models/origin_inspector.rb +238 -0
  168. data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
  169. data/lib/fastly/models/origin_inspector_entry.rb +228 -0
  170. data/lib/fastly/models/origin_inspector_historical.rb +249 -0
  171. data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
  172. data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
  173. data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
  174. data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
  175. data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
  176. data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
  177. data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
  178. data/lib/fastly/models/origin_inspector_values.rb +1728 -0
  179. data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
  180. data/lib/fastly/models/read_only_service_id.rb +207 -0
  181. data/lib/fastly/models/read_only_version.rb +207 -0
  182. data/lib/fastly/models/realtime_entry.rb +2 -7
  183. data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
  184. data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
  185. data/lib/fastly/models/realtime_measurements.rb +4 -2
  186. data/lib/fastly/models/recorded_timestamp.rb +208 -0
  187. data/lib/fastly/models/secret.rb +238 -0
  188. data/lib/fastly/models/secret_response.rb +249 -0
  189. data/lib/fastly/models/secret_store.rb +217 -0
  190. data/lib/fastly/models/secret_store_response.rb +238 -0
  191. data/lib/fastly/models/signing_key.rb +218 -0
  192. data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
  193. data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
  194. data/lib/fastly/models/sudo_request.rb +244 -0
  195. data/lib/fastly/models/sudo_response.rb +217 -0
  196. data/lib/fastly/models/values.rb +828 -0
  197. data/lib/fastly/version.rb +1 -1
  198. data/lib/fastly.rb +72 -2
  199. data/sig.json +1 -1
  200. metadata +146 -6
@@ -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)