oci 2.5.11 → 2.6.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 (188) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/lib/oci.rb +1 -0
  4. data/lib/oci/auth/federation_client.rb +2 -1
  5. data/lib/oci/auth/signers/instance_principals_security_token_signer.rb +6 -1
  6. data/lib/oci/auth/url_based_certificate_retriever.rb +6 -2
  7. data/lib/oci/auth/util.rb +18 -0
  8. data/lib/oci/core/compute_client.rb +730 -48
  9. data/lib/oci/core/compute_client_composite_operations.rb +119 -0
  10. data/lib/oci/core/compute_management_client.rb +11 -4
  11. data/lib/oci/core/core.rb +13 -0
  12. data/lib/oci/core/models/add_security_rule_details.rb +4 -2
  13. data/lib/oci/core/models/attach_vnic_details.rb +1 -0
  14. data/lib/oci/core/models/capture_console_history_details.rb +1 -0
  15. data/lib/oci/core/models/change_dedicated_vm_host_compartment_details.rb +155 -0
  16. data/lib/oci/core/models/change_dhcp_options_compartment_details.rb +155 -0
  17. data/lib/oci/core/models/change_internet_gateway_compartment_details.rb +155 -0
  18. data/lib/oci/core/models/change_local_peering_gateway_compartment_details.rb +155 -0
  19. data/lib/oci/core/models/change_network_security_group_compartment_details.rb +155 -0
  20. data/lib/oci/core/models/change_public_ip_compartment_details.rb +155 -0
  21. data/lib/oci/core/models/create_dedicated_vm_host_details.rb +262 -0
  22. data/lib/oci/core/models/create_drg_attachment_details.rb +4 -2
  23. data/lib/oci/core/models/create_image_details.rb +1 -1
  24. data/lib/oci/core/models/create_instance_configuration_base.rb +16 -6
  25. data/lib/oci/core/models/create_instance_configuration_details.rb +1 -1
  26. data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +3 -2
  27. data/lib/oci/core/models/create_instance_pool_details.rb +3 -1
  28. data/lib/oci/core/models/create_local_peering_gateway_details.rb +1 -1
  29. data/lib/oci/core/models/create_service_gateway_details.rb +1 -1
  30. data/lib/oci/core/models/create_volume_group_backup_details.rb +3 -1
  31. data/lib/oci/core/models/create_volume_group_details.rb +1 -1
  32. data/lib/oci/core/models/cross_connect_mapping.rb +4 -0
  33. data/lib/oci/core/models/dedicated_vm_host.rb +359 -0
  34. data/lib/oci/core/models/dedicated_vm_host_instance_shape_summary.rb +170 -0
  35. data/lib/oci/core/models/dedicated_vm_host_instance_summary.rb +215 -0
  36. data/lib/oci/core/models/dedicated_vm_host_shape_summary.rb +171 -0
  37. data/lib/oci/core/models/dedicated_vm_host_summary.rb +325 -0
  38. data/lib/oci/core/models/drg_attachment.rb +6 -3
  39. data/lib/oci/core/models/egress_security_rule.rb +1 -0
  40. data/lib/oci/core/models/image.rb +2 -0
  41. data/lib/oci/core/models/ingress_security_rule.rb +2 -1
  42. data/lib/oci/core/models/instance.rb +16 -1
  43. data/lib/oci/core/models/instance_configuration.rb +10 -7
  44. data/lib/oci/core/models/ipv6.rb +2 -0
  45. data/lib/oci/core/models/launch_instance_details.rb +16 -1
  46. data/lib/oci/core/models/launch_options.rb +3 -2
  47. data/lib/oci/core/models/local_peering_gateway.rb +4 -3
  48. data/lib/oci/core/models/route_rule.rb +2 -1
  49. data/lib/oci/core/models/security_rule.rb +3 -1
  50. data/lib/oci/core/models/service_gateway.rb +4 -3
  51. data/lib/oci/core/models/subnet.rb +2 -1
  52. data/lib/oci/core/models/update_console_history_details.rb +1 -0
  53. data/lib/oci/core/models/update_dedicated_vm_host_details.rb +194 -0
  54. data/lib/oci/core/models/update_drg_attachment_details.rb +6 -3
  55. data/lib/oci/core/models/update_instance_pool_details.rb +3 -1
  56. data/lib/oci/core/models/update_local_peering_gateway_details.rb +4 -3
  57. data/lib/oci/core/models/update_network_security_group_details.rb +2 -0
  58. data/lib/oci/core/models/update_security_rule_details.rb +4 -2
  59. data/lib/oci/core/models/update_service_gateway_details.rb +4 -3
  60. data/lib/oci/core/models/update_vnic_details.rb +2 -0
  61. data/lib/oci/core/models/update_volume_backup_details.rb +1 -1
  62. data/lib/oci/core/models/update_volume_group_backup_details.rb +2 -1
  63. data/lib/oci/core/models/update_volume_group_details.rb +2 -1
  64. data/lib/oci/core/models/vcn.rb +2 -1
  65. data/lib/oci/core/models/volume_backup_schedule.rb +1 -1
  66. data/lib/oci/core/virtual_network_client.rb +396 -59
  67. data/lib/oci/dts/dts.rb +57 -0
  68. data/lib/oci/dts/models/attach_devices_details.rb +153 -0
  69. data/lib/oci/dts/models/change_transfer_job_compartment_details.rb +154 -0
  70. data/lib/oci/dts/models/create_transfer_appliance_details.rb +152 -0
  71. data/lib/oci/dts/models/create_transfer_appliance_entitlement_details.rb +178 -0
  72. data/lib/oci/dts/models/create_transfer_device_details.rb +165 -0
  73. data/lib/oci/dts/models/create_transfer_job_details.rb +238 -0
  74. data/lib/oci/dts/models/create_transfer_package_details.rb +178 -0
  75. data/lib/oci/dts/models/detach_devices_details.rb +153 -0
  76. data/lib/oci/dts/models/multiple_transfer_appliances.rb +153 -0
  77. data/lib/oci/dts/models/multiple_transfer_devices.rb +153 -0
  78. data/lib/oci/dts/models/multiple_transfer_packages.rb +153 -0
  79. data/lib/oci/dts/models/new_transfer_device.rb +246 -0
  80. data/lib/oci/dts/models/shipping_address.rb +263 -0
  81. data/lib/oci/dts/models/shipping_vendors.rb +149 -0
  82. data/lib/oci/dts/models/transfer_appliance.rb +367 -0
  83. data/lib/oci/dts/models/transfer_appliance_certificate.rb +148 -0
  84. data/lib/oci/dts/models/transfer_appliance_encryption_passphrase.rb +152 -0
  85. data/lib/oci/dts/models/transfer_appliance_entitlement.rb +240 -0
  86. data/lib/oci/dts/models/transfer_appliance_public_key.rb +152 -0
  87. data/lib/oci/dts/models/transfer_appliance_summary.rb +223 -0
  88. data/lib/oci/dts/models/transfer_device.rb +268 -0
  89. data/lib/oci/dts/models/transfer_device_summary.rb +254 -0
  90. data/lib/oci/dts/models/transfer_job.rb +356 -0
  91. data/lib/oci/dts/models/transfer_job_summary.rb +296 -0
  92. data/lib/oci/dts/models/transfer_package.rb +281 -0
  93. data/lib/oci/dts/models/transfer_package_summary.rb +201 -0
  94. data/lib/oci/dts/models/update_transfer_appliance_details.rb +180 -0
  95. data/lib/oci/dts/models/update_transfer_device_details.rb +166 -0
  96. data/lib/oci/dts/models/update_transfer_job_details.rb +237 -0
  97. data/lib/oci/dts/models/update_transfer_package_details.rb +204 -0
  98. data/lib/oci/dts/shipping_vendors_client.rb +165 -0
  99. data/lib/oci/dts/shipping_vendors_client_composite_operations.rb +24 -0
  100. data/lib/oci/dts/transfer_appliance_client.rb +569 -0
  101. data/lib/oci/dts/transfer_appliance_client_composite_operations.rb +104 -0
  102. data/lib/oci/dts/transfer_appliance_entitlement_client.rb +223 -0
  103. data/lib/oci/dts/transfer_appliance_entitlement_client_composite_operations.rb +24 -0
  104. data/lib/oci/dts/transfer_device_client.rb +402 -0
  105. data/lib/oci/dts/transfer_device_client_composite_operations.rb +65 -0
  106. data/lib/oci/dts/transfer_job_client.rb +458 -0
  107. data/lib/oci/dts/transfer_job_client_composite_operations.rb +143 -0
  108. data/lib/oci/dts/transfer_package_client.rb +515 -0
  109. data/lib/oci/dts/transfer_package_client_composite_operations.rb +104 -0
  110. data/lib/oci/dts/util.rb +2 -0
  111. data/lib/oci/file_storage/models/create_file_system_details.rb +19 -4
  112. data/lib/oci/file_storage/models/file_system.rb +19 -4
  113. data/lib/oci/file_storage/models/file_system_summary.rb +19 -4
  114. data/lib/oci/file_storage/models/update_file_system_details.rb +22 -4
  115. data/lib/oci/limits/limits.rb +5 -0
  116. data/lib/oci/limits/limits_client.rb +444 -0
  117. data/lib/oci/limits/limits_client_composite_operations.rb +24 -0
  118. data/lib/oci/limits/models/create_quota_details.rb +1 -1
  119. data/lib/oci/limits/models/limit_definition_summary.rb +241 -0
  120. data/lib/oci/limits/models/limit_value_summary.rb +210 -0
  121. data/lib/oci/limits/models/quota.rb +1 -1
  122. data/lib/oci/limits/models/resource_availability.rb +163 -0
  123. data/lib/oci/limits/models/service_summary.rb +159 -0
  124. data/lib/oci/limits/models/update_quota_details.rb +1 -1
  125. data/lib/oci/limits/quotas_client.rb +12 -11
  126. data/lib/oci/monitoring/models/alarm.rb +20 -1
  127. data/lib/oci/monitoring/models/create_alarm_details.rb +20 -1
  128. data/lib/oci/monitoring/models/list_metrics_details.rb +23 -3
  129. data/lib/oci/monitoring/models/metric.rb +20 -1
  130. data/lib/oci/monitoring/models/metric_data.rb +20 -1
  131. data/lib/oci/monitoring/models/metric_data_details.rb +20 -1
  132. data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +20 -1
  133. data/lib/oci/monitoring/models/update_alarm_details.rb +20 -1
  134. data/lib/oci/regions.rb +14 -8
  135. data/lib/oci/streaming/models/archiver.rb +291 -0
  136. data/lib/oci/streaming/models/archiver_error.rb +159 -0
  137. data/lib/oci/streaming/models/archiver_lifecycle_state.rb +14 -0
  138. data/lib/oci/streaming/models/archiver_start_position.rb +10 -0
  139. data/lib/oci/streaming/models/create_archiver_details.rb +223 -0
  140. data/lib/oci/streaming/models/update_archiver_details.rb +222 -0
  141. data/lib/oci/streaming/stream_admin_client.rb +304 -0
  142. data/lib/oci/streaming/stream_admin_client_composite_operations.rb +162 -0
  143. data/lib/oci/streaming/streaming.rb +6 -0
  144. data/lib/oci/version.rb +1 -1
  145. data/lib/oci/waas/models/access_rule.rb +121 -4
  146. data/lib/oci/waas/models/access_rule_criteria.rb +12 -0
  147. data/lib/oci/waas/models/address_list.rb +289 -0
  148. data/lib/oci/waas/models/address_list_summary.rb +279 -0
  149. data/lib/oci/waas/models/caching_rule.rb +243 -0
  150. data/lib/oci/waas/models/caching_rule_criteria.rb +194 -0
  151. data/lib/oci/waas/models/caching_rule_summary.rb +246 -0
  152. data/lib/oci/waas/models/certificate.rb +22 -9
  153. data/lib/oci/waas/models/certificate_extensions.rb +3 -0
  154. data/lib/oci/waas/models/certificate_issuer_name.rb +225 -0
  155. data/lib/oci/waas/models/certificate_public_key_info.rb +4 -1
  156. data/lib/oci/waas/models/certificate_subject_name.rb +8 -1
  157. data/lib/oci/waas/models/certificate_summary.rb +10 -2
  158. data/lib/oci/waas/models/change_address_list_compartment_details.rb +154 -0
  159. data/lib/oci/waas/models/change_custom_protection_rule_compartment_details.rb +154 -0
  160. data/lib/oci/waas/models/create_address_list_details.rb +213 -0
  161. data/lib/oci/waas/models/create_certificate_details.rb +22 -3
  162. data/lib/oci/waas/models/create_custom_protection_rule_details.rb +251 -0
  163. data/lib/oci/waas/models/create_waas_policy_details.rb +26 -4
  164. data/lib/oci/waas/models/custom_protection_rule.rb +326 -0
  165. data/lib/oci/waas/models/custom_protection_rule_setting.rb +180 -0
  166. data/lib/oci/waas/models/custom_protection_rule_summary.rb +279 -0
  167. data/lib/oci/waas/models/origin_group.rb +149 -0
  168. data/lib/oci/waas/models/origin_group_origins.rb +159 -0
  169. data/lib/oci/waas/models/policy_config.rb +201 -4
  170. data/lib/oci/waas/models/protection_rule_exclusion.rb +2 -2
  171. data/lib/oci/waas/models/purge_cache.rb +149 -0
  172. data/lib/oci/waas/models/update_address_list_details.rb +199 -0
  173. data/lib/oci/waas/models/update_certificate_details.rb +10 -2
  174. data/lib/oci/waas/models/update_custom_protection_rule_details.rb +237 -0
  175. data/lib/oci/waas/models/update_waas_policy_details.rb +26 -4
  176. data/lib/oci/waas/models/waas_policy.rb +25 -3
  177. data/lib/oci/waas/models/waas_policy_custom_protection_rule_summary.rb +207 -0
  178. data/lib/oci/waas/models/waas_policy_summary.rb +10 -2
  179. data/lib/oci/waas/models/waf_config.rb +43 -1
  180. data/lib/oci/waas/models/waf_config_details.rb +43 -1
  181. data/lib/oci/waas/models/waf_log.rb +3 -3
  182. data/lib/oci/waas/models/work_request.rb +4 -1
  183. data/lib/oci/waas/models/work_request_operation_types.rb +4 -1
  184. data/lib/oci/waas/models/work_request_summary.rb +4 -1
  185. data/lib/oci/waas/waas.rb +19 -0
  186. data/lib/oci/waas/waas_client.rb +1147 -61
  187. data/lib/oci/waas/waas_client_composite_operations.rb +386 -0
  188. metadata +90 -2
@@ -48,6 +48,15 @@ module OCI
48
48
  # @return [String]
49
49
  attr_accessor :namespace
50
50
 
51
+ # Resource group that you want to use as a filter. The alarm retrieves metric data associated with the specified resource group only. Only one resource group can be applied per metric.
52
+ # A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
53
+ # Avoid entering confidential information.
54
+ #
55
+ # Example: `frontend-fleet`
56
+ #
57
+ # @return [String]
58
+ attr_accessor :resource_group
59
+
51
60
  # **[Required]** The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of
52
61
  # the Monitoring service interprets results for each returned time series as Boolean values,
53
62
  # where zero represents false and a non-zero value represents true. A true value means that the trigger
@@ -168,6 +177,7 @@ module OCI
168
177
  'metric_compartment_id': :'metricCompartmentId',
169
178
  'metric_compartment_id_in_subtree': :'metricCompartmentIdInSubtree',
170
179
  'namespace': :'namespace',
180
+ 'resource_group': :'resourceGroup',
171
181
  'query': :'query',
172
182
  'resolution': :'resolution',
173
183
  'pending_duration': :'pendingDuration',
@@ -192,6 +202,7 @@ module OCI
192
202
  'metric_compartment_id': :'String',
193
203
  'metric_compartment_id_in_subtree': :'BOOLEAN',
194
204
  'namespace': :'String',
205
+ 'resource_group': :'String',
195
206
  'query': :'String',
196
207
  'resolution': :'String',
197
208
  'pending_duration': :'String',
@@ -218,6 +229,7 @@ module OCI
218
229
  # @option attributes [String] :metric_compartment_id The value to assign to the {#metric_compartment_id} property
219
230
  # @option attributes [BOOLEAN] :metric_compartment_id_in_subtree The value to assign to the {#metric_compartment_id_in_subtree} property
220
231
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
232
+ # @option attributes [String] :resource_group The value to assign to the {#resource_group} property
221
233
  # @option attributes [String] :query The value to assign to the {#query} property
222
234
  # @option attributes [String] :resolution The value to assign to the {#resolution} property
223
235
  # @option attributes [String] :pending_duration The value to assign to the {#pending_duration} property
@@ -261,6 +273,12 @@ module OCI
261
273
 
262
274
  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
263
275
 
276
+ self.resource_group = attributes[:'resourceGroup'] if attributes[:'resourceGroup']
277
+
278
+ raise 'You cannot provide both :resourceGroup and :resource_group' if attributes.key?(:'resourceGroup') && attributes.key?(:'resource_group')
279
+
280
+ self.resource_group = attributes[:'resource_group'] if attributes[:'resource_group']
281
+
264
282
  self.query = attributes[:'query'] if attributes[:'query']
265
283
 
266
284
  self.resolution = attributes[:'resolution'] if attributes[:'resolution']
@@ -320,6 +338,7 @@ module OCI
320
338
  metric_compartment_id == other.metric_compartment_id &&
321
339
  metric_compartment_id_in_subtree == other.metric_compartment_id_in_subtree &&
322
340
  namespace == other.namespace &&
341
+ resource_group == other.resource_group &&
323
342
  query == other.query &&
324
343
  resolution == other.resolution &&
325
344
  pending_duration == other.pending_duration &&
@@ -346,7 +365,7 @@ module OCI
346
365
  # Calculates hash code according to all attributes.
347
366
  # @return [Fixnum] Hash code
348
367
  def hash
349
- [display_name, compartment_id, metric_compartment_id, metric_compartment_id_in_subtree, namespace, query, resolution, pending_duration, severity, body, destinations, repeat_notification_duration, suppression, is_enabled, freeform_tags, defined_tags].hash
368
+ [display_name, compartment_id, metric_compartment_id, metric_compartment_id_in_subtree, namespace, resource_group, query, resolution, pending_duration, severity, body, destinations, repeat_notification_duration, suppression, is_enabled, freeform_tags, defined_tags].hash
350
369
  end
351
370
  # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
352
371
 
@@ -12,7 +12,8 @@ module OCI
12
12
  class Monitoring::Models::ListMetricsDetails
13
13
  SORT_BY_ENUM = [
14
14
  SORT_BY_NAMESPACE = 'NAMESPACE'.freeze,
15
- SORT_BY_NAME = 'NAME'.freeze
15
+ SORT_BY_NAME = 'NAME'.freeze,
16
+ SORT_BY_RESOURCEGROUP = 'RESOURCEGROUP'.freeze
16
17
  ].freeze
17
18
 
18
19
  SORT_ORDER_ENUM = [
@@ -34,6 +35,15 @@ module OCI
34
35
  # @return [String]
35
36
  attr_accessor :namespace
36
37
 
38
+ # Resource group that you want to use as a filter. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric.
39
+ # A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
40
+ # Avoid entering confidential information.
41
+ #
42
+ # Example: `frontend-fleet`
43
+ #
44
+ # @return [String]
45
+ attr_accessor :resource_group
46
+
37
47
  # Qualifiers that you want to use when searching for metric definitions.
38
48
  # Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair.
39
49
  #
@@ -43,7 +53,7 @@ module OCI
43
53
  attr_accessor :dimension_filters
44
54
 
45
55
  # Group metrics by these fields in the response. For example, to list all metric namespaces available
46
- # in a compartment, groupBy the \"namespace\" field.
56
+ # in a compartment, groupBy the \"namespace\" field. Supported fields: namespace, name, resourceGroup.
47
57
  #
48
58
  # Example - group by namespace:
49
59
  # `[ \"namespace\" ]`
@@ -72,6 +82,7 @@ module OCI
72
82
  # rubocop:disable Style/SymbolLiteral
73
83
  'name': :'name',
74
84
  'namespace': :'namespace',
85
+ 'resource_group': :'resourceGroup',
75
86
  'dimension_filters': :'dimensionFilters',
76
87
  'group_by': :'groupBy',
77
88
  'sort_by': :'sortBy',
@@ -86,6 +97,7 @@ module OCI
86
97
  # rubocop:disable Style/SymbolLiteral
87
98
  'name': :'String',
88
99
  'namespace': :'String',
100
+ 'resource_group': :'String',
89
101
  'dimension_filters': :'Hash<String, String>',
90
102
  'group_by': :'Array<String>',
91
103
  'sort_by': :'String',
@@ -102,6 +114,7 @@ module OCI
102
114
  # @param [Hash] attributes Model attributes in the form of hash
103
115
  # @option attributes [String] :name The value to assign to the {#name} property
104
116
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
117
+ # @option attributes [String] :resource_group The value to assign to the {#resource_group} property
105
118
  # @option attributes [Hash<String, String>] :dimension_filters The value to assign to the {#dimension_filters} property
106
119
  # @option attributes [Array<String>] :group_by The value to assign to the {#group_by} property
107
120
  # @option attributes [String] :sort_by The value to assign to the {#sort_by} property
@@ -116,6 +129,12 @@ module OCI
116
129
 
117
130
  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
118
131
 
132
+ self.resource_group = attributes[:'resourceGroup'] if attributes[:'resourceGroup']
133
+
134
+ raise 'You cannot provide both :resourceGroup and :resource_group' if attributes.key?(:'resourceGroup') && attributes.key?(:'resource_group')
135
+
136
+ self.resource_group = attributes[:'resource_group'] if attributes[:'resource_group']
137
+
119
138
  self.dimension_filters = attributes[:'dimensionFilters'] if attributes[:'dimensionFilters']
120
139
 
121
140
  raise 'You cannot provide both :dimensionFilters and :dimension_filters' if attributes.key?(:'dimensionFilters') && attributes.key?(:'dimension_filters')
@@ -170,6 +189,7 @@ module OCI
170
189
  self.class == other.class &&
171
190
  name == other.name &&
172
191
  namespace == other.namespace &&
192
+ resource_group == other.resource_group &&
173
193
  dimension_filters == other.dimension_filters &&
174
194
  group_by == other.group_by &&
175
195
  sort_by == other.sort_by &&
@@ -189,7 +209,7 @@ module OCI
189
209
  # Calculates hash code according to all attributes.
190
210
  # @return [Fixnum] Hash code
191
211
  def hash
192
- [name, namespace, dimension_filters, group_by, sort_by, sort_order].hash
212
+ [name, namespace, resource_group, dimension_filters, group_by, sort_by, sort_order].hash
193
213
  end
194
214
  # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
195
215
 
@@ -23,6 +23,15 @@ module OCI
23
23
  # @return [String]
24
24
  attr_accessor :namespace
25
25
 
26
+ # Resource group provided with the posted metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric.
27
+ # A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
28
+ # Avoid entering confidential information.
29
+ #
30
+ # Example: `frontend-fleet`
31
+ #
32
+ # @return [String]
33
+ attr_accessor :resource_group
34
+
26
35
  # The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing
27
36
  # the resources monitored by the metric.
28
37
  #
@@ -43,6 +52,7 @@ module OCI
43
52
  # rubocop:disable Style/SymbolLiteral
44
53
  'name': :'name',
45
54
  'namespace': :'namespace',
55
+ 'resource_group': :'resourceGroup',
46
56
  'compartment_id': :'compartmentId',
47
57
  'dimensions': :'dimensions'
48
58
  # rubocop:enable Style/SymbolLiteral
@@ -55,6 +65,7 @@ module OCI
55
65
  # rubocop:disable Style/SymbolLiteral
56
66
  'name': :'String',
57
67
  'namespace': :'String',
68
+ 'resource_group': :'String',
58
69
  'compartment_id': :'String',
59
70
  'dimensions': :'Hash<String, String>'
60
71
  # rubocop:enable Style/SymbolLiteral
@@ -69,6 +80,7 @@ module OCI
69
80
  # @param [Hash] attributes Model attributes in the form of hash
70
81
  # @option attributes [String] :name The value to assign to the {#name} property
71
82
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
83
+ # @option attributes [String] :resource_group The value to assign to the {#resource_group} property
72
84
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
73
85
  # @option attributes [Hash<String, String>] :dimensions The value to assign to the {#dimensions} property
74
86
  def initialize(attributes = {})
@@ -81,6 +93,12 @@ module OCI
81
93
 
82
94
  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
83
95
 
96
+ self.resource_group = attributes[:'resourceGroup'] if attributes[:'resourceGroup']
97
+
98
+ raise 'You cannot provide both :resourceGroup and :resource_group' if attributes.key?(:'resourceGroup') && attributes.key?(:'resource_group')
99
+
100
+ self.resource_group = attributes[:'resource_group'] if attributes[:'resource_group']
101
+
84
102
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
85
103
 
86
104
  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
@@ -103,6 +121,7 @@ module OCI
103
121
  self.class == other.class &&
104
122
  name == other.name &&
105
123
  namespace == other.namespace &&
124
+ resource_group == other.resource_group &&
106
125
  compartment_id == other.compartment_id &&
107
126
  dimensions == other.dimensions
108
127
  end
@@ -120,7 +139,7 @@ module OCI
120
139
  # Calculates hash code according to all attributes.
121
140
  # @return [Fixnum] Hash code
122
141
  def hash
123
- [name, namespace, compartment_id, dimensions].hash
142
+ [name, namespace, resource_group, compartment_id, dimensions].hash
124
143
  end
125
144
  # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
126
145
 
@@ -29,6 +29,15 @@ module OCI
29
29
  # @return [String]
30
30
  attr_accessor :namespace
31
31
 
32
+ # Resource group provided with the posted metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric.
33
+ # A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
34
+ # Avoid entering confidential information.
35
+ #
36
+ # Example: `frontend-fleet`
37
+ #
38
+ # @return [String]
39
+ attr_accessor :resource_group
40
+
32
41
  # **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the
33
42
  # resources from which the aggregated data was returned.
34
43
  #
@@ -79,6 +88,7 @@ module OCI
79
88
  {
80
89
  # rubocop:disable Style/SymbolLiteral
81
90
  'namespace': :'namespace',
91
+ 'resource_group': :'resourceGroup',
82
92
  'compartment_id': :'compartmentId',
83
93
  'name': :'name',
84
94
  'dimensions': :'dimensions',
@@ -94,6 +104,7 @@ module OCI
94
104
  {
95
105
  # rubocop:disable Style/SymbolLiteral
96
106
  'namespace': :'String',
107
+ 'resource_group': :'String',
97
108
  'compartment_id': :'String',
98
109
  'name': :'String',
99
110
  'dimensions': :'Hash<String, String>',
@@ -111,6 +122,7 @@ module OCI
111
122
  # Initializes the object
112
123
  # @param [Hash] attributes Model attributes in the form of hash
113
124
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
125
+ # @option attributes [String] :resource_group The value to assign to the {#resource_group} property
114
126
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
115
127
  # @option attributes [String] :name The value to assign to the {#name} property
116
128
  # @option attributes [Hash<String, String>] :dimensions The value to assign to the {#dimensions} property
@@ -125,6 +137,12 @@ module OCI
125
137
 
126
138
  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
127
139
 
140
+ self.resource_group = attributes[:'resourceGroup'] if attributes[:'resourceGroup']
141
+
142
+ raise 'You cannot provide both :resourceGroup and :resource_group' if attributes.key?(:'resourceGroup') && attributes.key?(:'resource_group')
143
+
144
+ self.resource_group = attributes[:'resource_group'] if attributes[:'resource_group']
145
+
128
146
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
129
147
 
130
148
  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
@@ -158,6 +176,7 @@ module OCI
158
176
 
159
177
  self.class == other.class &&
160
178
  namespace == other.namespace &&
179
+ resource_group == other.resource_group &&
161
180
  compartment_id == other.compartment_id &&
162
181
  name == other.name &&
163
182
  dimensions == other.dimensions &&
@@ -179,7 +198,7 @@ module OCI
179
198
  # Calculates hash code according to all attributes.
180
199
  # @return [Fixnum] Hash code
181
200
  def hash
182
- [namespace, compartment_id, name, dimensions, metadata, resolution, aggregated_datapoints].hash
201
+ [namespace, resource_group, compartment_id, name, dimensions, metadata, resolution, aggregated_datapoints].hash
183
202
  end
184
203
  # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
185
204
 
@@ -17,6 +17,15 @@ module OCI
17
17
  # @return [String]
18
18
  attr_accessor :namespace
19
19
 
20
+ # Resource group to assign to the metric. A resource group is a custom string that can be used as a filter. Only one resource group can be applied per metric.
21
+ # A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
22
+ # Avoid entering confidential information.
23
+ #
24
+ # Example: `frontend-fleet`
25
+ #
26
+ # @return [String]
27
+ attr_accessor :resource_group
28
+
20
29
  # **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to use for metrics.
21
30
  #
22
31
  # @return [String]
@@ -61,6 +70,7 @@ module OCI
61
70
  {
62
71
  # rubocop:disable Style/SymbolLiteral
63
72
  'namespace': :'namespace',
73
+ 'resource_group': :'resourceGroup',
64
74
  'compartment_id': :'compartmentId',
65
75
  'name': :'name',
66
76
  'dimensions': :'dimensions',
@@ -75,6 +85,7 @@ module OCI
75
85
  {
76
86
  # rubocop:disable Style/SymbolLiteral
77
87
  'namespace': :'String',
88
+ 'resource_group': :'String',
78
89
  'compartment_id': :'String',
79
90
  'name': :'String',
80
91
  'dimensions': :'Hash<String, String>',
@@ -91,6 +102,7 @@ module OCI
91
102
  # Initializes the object
92
103
  # @param [Hash] attributes Model attributes in the form of hash
93
104
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
105
+ # @option attributes [String] :resource_group The value to assign to the {#resource_group} property
94
106
  # @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
95
107
  # @option attributes [String] :name The value to assign to the {#name} property
96
108
  # @option attributes [Hash<String, String>] :dimensions The value to assign to the {#dimensions} property
@@ -104,6 +116,12 @@ module OCI
104
116
 
105
117
  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
106
118
 
119
+ self.resource_group = attributes[:'resourceGroup'] if attributes[:'resourceGroup']
120
+
121
+ raise 'You cannot provide both :resourceGroup and :resource_group' if attributes.key?(:'resourceGroup') && attributes.key?(:'resource_group')
122
+
123
+ self.resource_group = attributes[:'resource_group'] if attributes[:'resource_group']
124
+
107
125
  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
108
126
 
109
127
  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
@@ -131,6 +149,7 @@ module OCI
131
149
 
132
150
  self.class == other.class &&
133
151
  namespace == other.namespace &&
152
+ resource_group == other.resource_group &&
134
153
  compartment_id == other.compartment_id &&
135
154
  name == other.name &&
136
155
  dimensions == other.dimensions &&
@@ -151,7 +170,7 @@ module OCI
151
170
  # Calculates hash code according to all attributes.
152
171
  # @return [Fixnum] Hash code
153
172
  def hash
154
- [namespace, compartment_id, name, dimensions, metadata, datapoints].hash
173
+ [namespace, resource_group, compartment_id, name, dimensions, metadata, datapoints].hash
155
174
  end
156
175
  # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
157
176
 
@@ -15,6 +15,15 @@ module OCI
15
15
  # @return [String]
16
16
  attr_accessor :namespace
17
17
 
18
+ # Resource group that you want to use as a filter. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric.
19
+ # A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
20
+ # Avoid entering confidential information.
21
+ #
22
+ # Example: `frontend-fleet`
23
+ #
24
+ # @return [String]
25
+ attr_accessor :resource_group
26
+
18
27
  # **[Required]** The Monitoring Query Language (MQL) expression to use when searching for metric data points to
19
28
  # aggregate. The query must specify a metric, statistic, and interval. Supported values for
20
29
  # interval: `1m`-`60m` (also `1h`). You can optionally specify dimensions and grouping functions.
@@ -66,6 +75,7 @@ module OCI
66
75
  {
67
76
  # rubocop:disable Style/SymbolLiteral
68
77
  'namespace': :'namespace',
78
+ 'resource_group': :'resourceGroup',
69
79
  'query': :'query',
70
80
  'start_time': :'startTime',
71
81
  'end_time': :'endTime',
@@ -79,6 +89,7 @@ module OCI
79
89
  {
80
90
  # rubocop:disable Style/SymbolLiteral
81
91
  'namespace': :'String',
92
+ 'resource_group': :'String',
82
93
  'query': :'String',
83
94
  'start_time': :'DateTime',
84
95
  'end_time': :'DateTime',
@@ -94,6 +105,7 @@ module OCI
94
105
  # Initializes the object
95
106
  # @param [Hash] attributes Model attributes in the form of hash
96
107
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
108
+ # @option attributes [String] :resource_group The value to assign to the {#resource_group} property
97
109
  # @option attributes [String] :query The value to assign to the {#query} property
98
110
  # @option attributes [DateTime] :start_time The value to assign to the {#start_time} property
99
111
  # @option attributes [DateTime] :end_time The value to assign to the {#end_time} property
@@ -106,6 +118,12 @@ module OCI
106
118
 
107
119
  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
108
120
 
121
+ self.resource_group = attributes[:'resourceGroup'] if attributes[:'resourceGroup']
122
+
123
+ raise 'You cannot provide both :resourceGroup and :resource_group' if attributes.key?(:'resourceGroup') && attributes.key?(:'resource_group')
124
+
125
+ self.resource_group = attributes[:'resource_group'] if attributes[:'resource_group']
126
+
109
127
  self.query = attributes[:'query'] if attributes[:'query']
110
128
 
111
129
  self.start_time = attributes[:'startTime'] if attributes[:'startTime']
@@ -135,6 +153,7 @@ module OCI
135
153
 
136
154
  self.class == other.class &&
137
155
  namespace == other.namespace &&
156
+ resource_group == other.resource_group &&
138
157
  query == other.query &&
139
158
  start_time == other.start_time &&
140
159
  end_time == other.end_time &&
@@ -154,7 +173,7 @@ module OCI
154
173
  # Calculates hash code according to all attributes.
155
174
  # @return [Fixnum] Hash code
156
175
  def hash
157
- [namespace, query, start_time, end_time, resolution].hash
176
+ [namespace, resource_group, query, start_time, end_time, resolution].hash
158
177
  end
159
178
  # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
160
179
 
@@ -48,6 +48,15 @@ module OCI
48
48
  # @return [String]
49
49
  attr_accessor :namespace
50
50
 
51
+ # Resource group that you want to use as a filter. The alarm retrieves metric data associated with the specified resource group only. Only one resource group can be applied per metric.
52
+ # A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
53
+ # Avoid entering confidential information.
54
+ #
55
+ # Example: `frontend-fleet`
56
+ #
57
+ # @return [String]
58
+ attr_accessor :resource_group
59
+
51
60
  # The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of
52
61
  # the Monitoring service interprets results for each returned time series as Boolean values,
53
62
  # where zero represents false and a non-zero value represents true. A true value means that the trigger
@@ -168,6 +177,7 @@ module OCI
168
177
  'metric_compartment_id': :'metricCompartmentId',
169
178
  'metric_compartment_id_in_subtree': :'metricCompartmentIdInSubtree',
170
179
  'namespace': :'namespace',
180
+ 'resource_group': :'resourceGroup',
171
181
  'query': :'query',
172
182
  'resolution': :'resolution',
173
183
  'pending_duration': :'pendingDuration',
@@ -192,6 +202,7 @@ module OCI
192
202
  'metric_compartment_id': :'String',
193
203
  'metric_compartment_id_in_subtree': :'BOOLEAN',
194
204
  'namespace': :'String',
205
+ 'resource_group': :'String',
195
206
  'query': :'String',
196
207
  'resolution': :'String',
197
208
  'pending_duration': :'String',
@@ -218,6 +229,7 @@ module OCI
218
229
  # @option attributes [String] :metric_compartment_id The value to assign to the {#metric_compartment_id} property
219
230
  # @option attributes [BOOLEAN] :metric_compartment_id_in_subtree The value to assign to the {#metric_compartment_id_in_subtree} property
220
231
  # @option attributes [String] :namespace The value to assign to the {#namespace} property
232
+ # @option attributes [String] :resource_group The value to assign to the {#resource_group} property
221
233
  # @option attributes [String] :query The value to assign to the {#query} property
222
234
  # @option attributes [String] :resolution The value to assign to the {#resolution} property
223
235
  # @option attributes [String] :pending_duration The value to assign to the {#pending_duration} property
@@ -261,6 +273,12 @@ module OCI
261
273
 
262
274
  self.namespace = attributes[:'namespace'] if attributes[:'namespace']
263
275
 
276
+ self.resource_group = attributes[:'resourceGroup'] if attributes[:'resourceGroup']
277
+
278
+ raise 'You cannot provide both :resourceGroup and :resource_group' if attributes.key?(:'resourceGroup') && attributes.key?(:'resource_group')
279
+
280
+ self.resource_group = attributes[:'resource_group'] if attributes[:'resource_group']
281
+
264
282
  self.query = attributes[:'query'] if attributes[:'query']
265
283
 
266
284
  self.resolution = attributes[:'resolution'] if attributes[:'resolution']
@@ -320,6 +338,7 @@ module OCI
320
338
  metric_compartment_id == other.metric_compartment_id &&
321
339
  metric_compartment_id_in_subtree == other.metric_compartment_id_in_subtree &&
322
340
  namespace == other.namespace &&
341
+ resource_group == other.resource_group &&
323
342
  query == other.query &&
324
343
  resolution == other.resolution &&
325
344
  pending_duration == other.pending_duration &&
@@ -346,7 +365,7 @@ module OCI
346
365
  # Calculates hash code according to all attributes.
347
366
  # @return [Fixnum] Hash code
348
367
  def hash
349
- [display_name, compartment_id, metric_compartment_id, metric_compartment_id_in_subtree, namespace, query, resolution, pending_duration, severity, body, destinations, repeat_notification_duration, suppression, is_enabled, freeform_tags, defined_tags].hash
368
+ [display_name, compartment_id, metric_compartment_id, metric_compartment_id_in_subtree, namespace, resource_group, query, resolution, pending_duration, severity, body, destinations, repeat_notification_duration, suppression, is_enabled, freeform_tags, defined_tags].hash
350
369
  end
351
370
  # rubocop:enable Metrics/AbcSize, Layout/EmptyLines
352
371