pulumi-oci 2.7.0a1723456529__py3-none-any.whl → 2.7.0a1723624751__py3-none-any.whl

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 (29) hide show
  1. pulumi_oci/__init__.py +16 -0
  2. pulumi_oci/database/autonomous_database.py +7 -7
  3. pulumi_oci/database/get_autonomous_database.py +1 -1
  4. pulumi_oci/database/outputs.py +4 -4
  5. pulumi_oci/datasafe/__init__.py +2 -0
  6. pulumi_oci/datasafe/_inputs.py +120 -0
  7. pulumi_oci/datasafe/calculate_audit_volume_available.py +391 -0
  8. pulumi_oci/datasafe/calculate_audit_volume_collected.py +343 -0
  9. pulumi_oci/datasafe/outputs.py +132 -0
  10. pulumi_oci/disasterrecovery/get_dr_plan_executions.py +1 -42
  11. pulumi_oci/integration/get_integration_instance.py +14 -1
  12. pulumi_oci/integration/integration_instance.py +28 -0
  13. pulumi_oci/integration/outputs.py +11 -0
  14. pulumi_oci/limits/get_limit_definitions.py +24 -7
  15. pulumi_oci/limits/get_limit_values.py +24 -7
  16. pulumi_oci/limits/get_resource_availability.py +24 -5
  17. pulumi_oci/limits/get_services.py +24 -7
  18. pulumi_oci/limits/outputs.py +35 -2
  19. pulumi_oci/networkloadbalancer/backend_set.py +2 -2
  20. pulumi_oci/networkloadbalancer/get_listener.py +29 -3
  21. pulumi_oci/networkloadbalancer/listener.py +122 -24
  22. pulumi_oci/networkloadbalancer/network_load_balancer.py +7 -7
  23. pulumi_oci/networkloadbalancer/network_load_balancers_backend_sets_unified.py +2 -2
  24. pulumi_oci/networkloadbalancer/outputs.py +27 -5
  25. pulumi_oci/pulumi-plugin.json +1 -1
  26. {pulumi_oci-2.7.0a1723456529.dist-info → pulumi_oci-2.7.0a1723624751.dist-info}/METADATA +1 -1
  27. {pulumi_oci-2.7.0a1723456529.dist-info → pulumi_oci-2.7.0a1723624751.dist-info}/RECORD +29 -27
  28. {pulumi_oci-2.7.0a1723456529.dist-info → pulumi_oci-2.7.0a1723624751.dist-info}/WHEEL +1 -1
  29. {pulumi_oci-2.7.0a1723456529.dist-info → pulumi_oci-2.7.0a1723624751.dist-info}/top_level.txt +0 -0
@@ -334,6 +334,7 @@ class _IntegrationInstanceState:
334
334
  shape: Optional[pulumi.Input[str]] = None,
335
335
  state: Optional[pulumi.Input[str]] = None,
336
336
  state_message: Optional[pulumi.Input[str]] = None,
337
+ system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
337
338
  time_created: Optional[pulumi.Input[str]] = None,
338
339
  time_updated: Optional[pulumi.Input[str]] = None):
339
340
  """
@@ -364,6 +365,7 @@ class _IntegrationInstanceState:
364
365
  ** IMPORTANT **
365
366
  Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
366
367
  :param pulumi.Input[str] state_message: An message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
368
+ :param pulumi.Input[Mapping[str, Any]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
367
369
  :param pulumi.Input[str] time_created: The time the the Integration Instance was created. An RFC3339 formatted datetime string.
368
370
  :param pulumi.Input[str] time_updated: The time the IntegrationInstance was updated. An RFC3339 formatted datetime string.
369
371
  """
@@ -413,6 +415,8 @@ class _IntegrationInstanceState:
413
415
  pulumi.set(__self__, "state", state)
414
416
  if state_message is not None:
415
417
  pulumi.set(__self__, "state_message", state_message)
418
+ if system_tags is not None:
419
+ pulumi.set(__self__, "system_tags", system_tags)
416
420
  if time_created is not None:
417
421
  pulumi.set(__self__, "time_created", time_created)
418
422
  if time_updated is not None:
@@ -695,6 +699,18 @@ class _IntegrationInstanceState:
695
699
  def state_message(self, value: Optional[pulumi.Input[str]]):
696
700
  pulumi.set(self, "state_message", value)
697
701
 
702
+ @property
703
+ @pulumi.getter(name="systemTags")
704
+ def system_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
705
+ """
706
+ Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
707
+ """
708
+ return pulumi.get(self, "system_tags")
709
+
710
+ @system_tags.setter
711
+ def system_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
712
+ pulumi.set(self, "system_tags", value)
713
+
698
714
  @property
699
715
  @pulumi.getter(name="timeCreated")
700
716
  def time_created(self) -> Optional[pulumi.Input[str]]:
@@ -963,6 +979,7 @@ class IntegrationInstance(pulumi.CustomResource):
963
979
  __props__.__dict__["instance_url"] = None
964
980
  __props__.__dict__["private_endpoint_outbound_connections"] = None
965
981
  __props__.__dict__["state_message"] = None
982
+ __props__.__dict__["system_tags"] = None
966
983
  __props__.__dict__["time_created"] = None
967
984
  __props__.__dict__["time_updated"] = None
968
985
  secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["idcsAt"])
@@ -1000,6 +1017,7 @@ class IntegrationInstance(pulumi.CustomResource):
1000
1017
  shape: Optional[pulumi.Input[str]] = None,
1001
1018
  state: Optional[pulumi.Input[str]] = None,
1002
1019
  state_message: Optional[pulumi.Input[str]] = None,
1020
+ system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1003
1021
  time_created: Optional[pulumi.Input[str]] = None,
1004
1022
  time_updated: Optional[pulumi.Input[str]] = None) -> 'IntegrationInstance':
1005
1023
  """
@@ -1035,6 +1053,7 @@ class IntegrationInstance(pulumi.CustomResource):
1035
1053
  ** IMPORTANT **
1036
1054
  Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
1037
1055
  :param pulumi.Input[str] state_message: An message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
1056
+ :param pulumi.Input[Mapping[str, Any]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
1038
1057
  :param pulumi.Input[str] time_created: The time the the Integration Instance was created. An RFC3339 formatted datetime string.
1039
1058
  :param pulumi.Input[str] time_updated: The time the IntegrationInstance was updated. An RFC3339 formatted datetime string.
1040
1059
  """
@@ -1065,6 +1084,7 @@ class IntegrationInstance(pulumi.CustomResource):
1065
1084
  __props__.__dict__["shape"] = shape
1066
1085
  __props__.__dict__["state"] = state
1067
1086
  __props__.__dict__["state_message"] = state_message
1087
+ __props__.__dict__["system_tags"] = system_tags
1068
1088
  __props__.__dict__["time_created"] = time_created
1069
1089
  __props__.__dict__["time_updated"] = time_updated
1070
1090
  return IntegrationInstance(resource_name, opts=opts, __props__=__props__)
@@ -1254,6 +1274,14 @@ class IntegrationInstance(pulumi.CustomResource):
1254
1274
  """
1255
1275
  return pulumi.get(self, "state_message")
1256
1276
 
1277
+ @property
1278
+ @pulumi.getter(name="systemTags")
1279
+ def system_tags(self) -> pulumi.Output[Mapping[str, Any]]:
1280
+ """
1281
+ Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
1282
+ """
1283
+ return pulumi.get(self, "system_tags")
1284
+
1257
1285
  @property
1258
1286
  @pulumi.getter(name="timeCreated")
1259
1287
  def time_created(self) -> pulumi.Output[str]:
@@ -966,6 +966,7 @@ class GetIntegrationInstancesIntegrationInstanceResult(dict):
966
966
  shape: str,
967
967
  state: str,
968
968
  state_message: str,
969
+ system_tags: Mapping[str, Any],
969
970
  time_created: str,
970
971
  time_updated: str):
971
972
  """
@@ -990,6 +991,7 @@ class GetIntegrationInstancesIntegrationInstanceResult(dict):
990
991
  :param str shape: Shape
991
992
  :param str state: Life cycle state to query on.
992
993
  :param str state_message: An message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
994
+ :param Mapping[str, Any] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
993
995
  :param str time_created: The time the the Integration Instance was created. An RFC3339 formatted datetime string.
994
996
  :param str time_updated: The time the IntegrationInstance was updated. An RFC3339 formatted datetime string.
995
997
  """
@@ -1017,6 +1019,7 @@ class GetIntegrationInstancesIntegrationInstanceResult(dict):
1017
1019
  pulumi.set(__self__, "shape", shape)
1018
1020
  pulumi.set(__self__, "state", state)
1019
1021
  pulumi.set(__self__, "state_message", state_message)
1022
+ pulumi.set(__self__, "system_tags", system_tags)
1020
1023
  pulumi.set(__self__, "time_created", time_created)
1021
1024
  pulumi.set(__self__, "time_updated", time_updated)
1022
1025
 
@@ -1203,6 +1206,14 @@ class GetIntegrationInstancesIntegrationInstanceResult(dict):
1203
1206
  """
1204
1207
  return pulumi.get(self, "state_message")
1205
1208
 
1209
+ @property
1210
+ @pulumi.getter(name="systemTags")
1211
+ def system_tags(self) -> Mapping[str, Any]:
1212
+ """
1213
+ Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
1214
+ """
1215
+ return pulumi.get(self, "system_tags")
1216
+
1206
1217
  @property
1207
1218
  @pulumi.getter(name="timeCreated")
1208
1219
  def time_created(self) -> str:
@@ -23,7 +23,7 @@ class GetLimitDefinitionsResult:
23
23
  """
24
24
  A collection of values returned by getLimitDefinitions.
25
25
  """
26
- def __init__(__self__, compartment_id=None, filters=None, id=None, limit_definitions=None, name=None, service_name=None):
26
+ def __init__(__self__, compartment_id=None, filters=None, id=None, limit_definitions=None, name=None, service_name=None, subscription_id=None):
27
27
  if compartment_id and not isinstance(compartment_id, str):
28
28
  raise TypeError("Expected argument 'compartment_id' to be a str")
29
29
  pulumi.set(__self__, "compartment_id", compartment_id)
@@ -42,6 +42,9 @@ class GetLimitDefinitionsResult:
42
42
  if service_name and not isinstance(service_name, str):
43
43
  raise TypeError("Expected argument 'service_name' to be a str")
44
44
  pulumi.set(__self__, "service_name", service_name)
45
+ if subscription_id and not isinstance(subscription_id, str):
46
+ raise TypeError("Expected argument 'subscription_id' to be a str")
47
+ pulumi.set(__self__, "subscription_id", subscription_id)
45
48
 
46
49
  @property
47
50
  @pulumi.getter(name="compartmentId")
@@ -85,6 +88,11 @@ class GetLimitDefinitionsResult:
85
88
  """
86
89
  return pulumi.get(self, "service_name")
87
90
 
91
+ @property
92
+ @pulumi.getter(name="subscriptionId")
93
+ def subscription_id(self) -> Optional[str]:
94
+ return pulumi.get(self, "subscription_id")
95
+
88
96
 
89
97
  class AwaitableGetLimitDefinitionsResult(GetLimitDefinitionsResult):
90
98
  # pylint: disable=using-constant-test
@@ -97,18 +105,20 @@ class AwaitableGetLimitDefinitionsResult(GetLimitDefinitionsResult):
97
105
  id=self.id,
98
106
  limit_definitions=self.limit_definitions,
99
107
  name=self.name,
100
- service_name=self.service_name)
108
+ service_name=self.service_name,
109
+ subscription_id=self.subscription_id)
101
110
 
102
111
 
103
112
  def get_limit_definitions(compartment_id: Optional[str] = None,
104
113
  filters: Optional[Sequence[Union['GetLimitDefinitionsFilterArgs', 'GetLimitDefinitionsFilterArgsDict']]] = None,
105
114
  name: Optional[str] = None,
106
115
  service_name: Optional[str] = None,
116
+ subscription_id: Optional[str] = None,
107
117
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLimitDefinitionsResult:
108
118
  """
109
119
  This data source provides the list of Limit Definitions in Oracle Cloud Infrastructure Limits service.
110
120
 
111
- Includes a list of resource limits that are currently supported.
121
+ Includes a list of resource limits that are currently supported. If subscription Id is provided, then only resource limits supported by subscription will be returned
112
122
  If the 'areQuotasSupported' property is true, you can create quota policies on top of this limit at the
113
123
  compartment level.
114
124
 
@@ -120,19 +130,22 @@ def get_limit_definitions(compartment_id: Optional[str] = None,
120
130
 
121
131
  test_limit_definitions = oci.Limits.get_limit_definitions(compartment_id=tenancy_ocid,
122
132
  name=limit_definition_name,
123
- service_name=test_service["name"])
133
+ service_name=test_service["name"],
134
+ subscription_id=subscription_ocid)
124
135
  ```
125
136
 
126
137
 
127
138
  :param str compartment_id: The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
128
139
  :param str name: Optional field, filter for a specific resource limit.
129
140
  :param str service_name: The target service name.
141
+ :param str subscription_id: The OCID of the subscription assigned to tenant
130
142
  """
131
143
  __args__ = dict()
132
144
  __args__['compartmentId'] = compartment_id
133
145
  __args__['filters'] = filters
134
146
  __args__['name'] = name
135
147
  __args__['serviceName'] = service_name
148
+ __args__['subscriptionId'] = subscription_id
136
149
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
137
150
  __ret__ = pulumi.runtime.invoke('oci:Limits/getLimitDefinitions:getLimitDefinitions', __args__, opts=opts, typ=GetLimitDefinitionsResult).value
138
151
 
@@ -142,7 +155,8 @@ def get_limit_definitions(compartment_id: Optional[str] = None,
142
155
  id=pulumi.get(__ret__, 'id'),
143
156
  limit_definitions=pulumi.get(__ret__, 'limit_definitions'),
144
157
  name=pulumi.get(__ret__, 'name'),
145
- service_name=pulumi.get(__ret__, 'service_name'))
158
+ service_name=pulumi.get(__ret__, 'service_name'),
159
+ subscription_id=pulumi.get(__ret__, 'subscription_id'))
146
160
 
147
161
 
148
162
  @_utilities.lift_output_func(get_limit_definitions)
@@ -150,11 +164,12 @@ def get_limit_definitions_output(compartment_id: Optional[pulumi.Input[str]] = N
150
164
  filters: Optional[pulumi.Input[Optional[Sequence[Union['GetLimitDefinitionsFilterArgs', 'GetLimitDefinitionsFilterArgsDict']]]]] = None,
151
165
  name: Optional[pulumi.Input[Optional[str]]] = None,
152
166
  service_name: Optional[pulumi.Input[Optional[str]]] = None,
167
+ subscription_id: Optional[pulumi.Input[Optional[str]]] = None,
153
168
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLimitDefinitionsResult]:
154
169
  """
155
170
  This data source provides the list of Limit Definitions in Oracle Cloud Infrastructure Limits service.
156
171
 
157
- Includes a list of resource limits that are currently supported.
172
+ Includes a list of resource limits that are currently supported. If subscription Id is provided, then only resource limits supported by subscription will be returned
158
173
  If the 'areQuotasSupported' property is true, you can create quota policies on top of this limit at the
159
174
  compartment level.
160
175
 
@@ -166,12 +181,14 @@ def get_limit_definitions_output(compartment_id: Optional[pulumi.Input[str]] = N
166
181
 
167
182
  test_limit_definitions = oci.Limits.get_limit_definitions(compartment_id=tenancy_ocid,
168
183
  name=limit_definition_name,
169
- service_name=test_service["name"])
184
+ service_name=test_service["name"],
185
+ subscription_id=subscription_ocid)
170
186
  ```
171
187
 
172
188
 
173
189
  :param str compartment_id: The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
174
190
  :param str name: Optional field, filter for a specific resource limit.
175
191
  :param str service_name: The target service name.
192
+ :param str subscription_id: The OCID of the subscription assigned to tenant
176
193
  """
177
194
  ...
@@ -23,7 +23,7 @@ class GetLimitValuesResult:
23
23
  """
24
24
  A collection of values returned by getLimitValues.
25
25
  """
26
- def __init__(__self__, availability_domain=None, compartment_id=None, filters=None, id=None, limit_values=None, name=None, scope_type=None, service_name=None):
26
+ def __init__(__self__, availability_domain=None, compartment_id=None, filters=None, id=None, limit_values=None, name=None, scope_type=None, service_name=None, subscription_id=None):
27
27
  if availability_domain and not isinstance(availability_domain, str):
28
28
  raise TypeError("Expected argument 'availability_domain' to be a str")
29
29
  pulumi.set(__self__, "availability_domain", availability_domain)
@@ -48,6 +48,9 @@ class GetLimitValuesResult:
48
48
  if service_name and not isinstance(service_name, str):
49
49
  raise TypeError("Expected argument 'service_name' to be a str")
50
50
  pulumi.set(__self__, "service_name", service_name)
51
+ if subscription_id and not isinstance(subscription_id, str):
52
+ raise TypeError("Expected argument 'subscription_id' to be a str")
53
+ pulumi.set(__self__, "subscription_id", subscription_id)
51
54
 
52
55
  @property
53
56
  @pulumi.getter(name="availabilityDomain")
@@ -104,6 +107,11 @@ class GetLimitValuesResult:
104
107
  def service_name(self) -> str:
105
108
  return pulumi.get(self, "service_name")
106
109
 
110
+ @property
111
+ @pulumi.getter(name="subscriptionId")
112
+ def subscription_id(self) -> Optional[str]:
113
+ return pulumi.get(self, "subscription_id")
114
+
107
115
 
108
116
  class AwaitableGetLimitValuesResult(GetLimitValuesResult):
109
117
  # pylint: disable=using-constant-test
@@ -118,7 +126,8 @@ class AwaitableGetLimitValuesResult(GetLimitValuesResult):
118
126
  limit_values=self.limit_values,
119
127
  name=self.name,
120
128
  scope_type=self.scope_type,
121
- service_name=self.service_name)
129
+ service_name=self.service_name,
130
+ subscription_id=self.subscription_id)
122
131
 
123
132
 
124
133
  def get_limit_values(availability_domain: Optional[str] = None,
@@ -127,11 +136,12 @@ def get_limit_values(availability_domain: Optional[str] = None,
127
136
  name: Optional[str] = None,
128
137
  scope_type: Optional[str] = None,
129
138
  service_name: Optional[str] = None,
139
+ subscription_id: Optional[str] = None,
130
140
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLimitValuesResult:
131
141
  """
132
142
  This data source provides the list of Limit Values in Oracle Cloud Infrastructure Limits service.
133
143
 
134
- Includes a full list of resource limits belonging to a given service.
144
+ Includes a full list of resource limits belonging to a given service. If subscription Id is provided, limit value for subscription will be returned.
135
145
 
136
146
  ## Example Usage
137
147
 
@@ -143,7 +153,8 @@ def get_limit_values(availability_domain: Optional[str] = None,
143
153
  service_name=test_service["name"],
144
154
  availability_domain=limit_value_availability_domain,
145
155
  name=limit_value_name,
146
- scope_type=limit_value_scope_type)
156
+ scope_type=limit_value_scope_type,
157
+ subscription_id=subscription_ocid)
147
158
  ```
148
159
 
149
160
 
@@ -152,6 +163,7 @@ def get_limit_values(availability_domain: Optional[str] = None,
152
163
  :param str name: Optional field, can be used to see a specific resource limit value.
153
164
  :param str scope_type: Filter entries by scope type.
154
165
  :param str service_name: The target service name.
166
+ :param str subscription_id: The OCID of the subscription assigned to tenant
155
167
  """
156
168
  __args__ = dict()
157
169
  __args__['availabilityDomain'] = availability_domain
@@ -160,6 +172,7 @@ def get_limit_values(availability_domain: Optional[str] = None,
160
172
  __args__['name'] = name
161
173
  __args__['scopeType'] = scope_type
162
174
  __args__['serviceName'] = service_name
175
+ __args__['subscriptionId'] = subscription_id
163
176
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
164
177
  __ret__ = pulumi.runtime.invoke('oci:Limits/getLimitValues:getLimitValues', __args__, opts=opts, typ=GetLimitValuesResult).value
165
178
 
@@ -171,7 +184,8 @@ def get_limit_values(availability_domain: Optional[str] = None,
171
184
  limit_values=pulumi.get(__ret__, 'limit_values'),
172
185
  name=pulumi.get(__ret__, 'name'),
173
186
  scope_type=pulumi.get(__ret__, 'scope_type'),
174
- service_name=pulumi.get(__ret__, 'service_name'))
187
+ service_name=pulumi.get(__ret__, 'service_name'),
188
+ subscription_id=pulumi.get(__ret__, 'subscription_id'))
175
189
 
176
190
 
177
191
  @_utilities.lift_output_func(get_limit_values)
@@ -181,11 +195,12 @@ def get_limit_values_output(availability_domain: Optional[pulumi.Input[Optional[
181
195
  name: Optional[pulumi.Input[Optional[str]]] = None,
182
196
  scope_type: Optional[pulumi.Input[Optional[str]]] = None,
183
197
  service_name: Optional[pulumi.Input[str]] = None,
198
+ subscription_id: Optional[pulumi.Input[Optional[str]]] = None,
184
199
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLimitValuesResult]:
185
200
  """
186
201
  This data source provides the list of Limit Values in Oracle Cloud Infrastructure Limits service.
187
202
 
188
- Includes a full list of resource limits belonging to a given service.
203
+ Includes a full list of resource limits belonging to a given service. If subscription Id is provided, limit value for subscription will be returned.
189
204
 
190
205
  ## Example Usage
191
206
 
@@ -197,7 +212,8 @@ def get_limit_values_output(availability_domain: Optional[pulumi.Input[Optional[
197
212
  service_name=test_service["name"],
198
213
  availability_domain=limit_value_availability_domain,
199
214
  name=limit_value_name,
200
- scope_type=limit_value_scope_type)
215
+ scope_type=limit_value_scope_type,
216
+ subscription_id=subscription_ocid)
201
217
  ```
202
218
 
203
219
 
@@ -206,5 +222,6 @@ def get_limit_values_output(availability_domain: Optional[pulumi.Input[Optional[
206
222
  :param str name: Optional field, can be used to see a specific resource limit value.
207
223
  :param str scope_type: Filter entries by scope type.
208
224
  :param str service_name: The target service name.
225
+ :param str subscription_id: The OCID of the subscription assigned to tenant
209
226
  """
210
227
  ...
@@ -21,7 +21,7 @@ class GetResourceAvailabilityResult:
21
21
  """
22
22
  A collection of values returned by getResourceAvailability.
23
23
  """
24
- def __init__(__self__, availability_domain=None, available=None, compartment_id=None, effective_quota_value=None, fractional_availability=None, fractional_usage=None, id=None, limit_name=None, service_name=None, used=None):
24
+ def __init__(__self__, availability_domain=None, available=None, compartment_id=None, effective_quota_value=None, fractional_availability=None, fractional_usage=None, id=None, limit_name=None, service_name=None, subscription_id=None, used=None):
25
25
  if availability_domain and not isinstance(availability_domain, str):
26
26
  raise TypeError("Expected argument 'availability_domain' to be a str")
27
27
  pulumi.set(__self__, "availability_domain", availability_domain)
@@ -49,6 +49,9 @@ class GetResourceAvailabilityResult:
49
49
  if service_name and not isinstance(service_name, str):
50
50
  raise TypeError("Expected argument 'service_name' to be a str")
51
51
  pulumi.set(__self__, "service_name", service_name)
52
+ if subscription_id and not isinstance(subscription_id, str):
53
+ raise TypeError("Expected argument 'subscription_id' to be a str")
54
+ pulumi.set(__self__, "subscription_id", subscription_id)
52
55
  if used and not isinstance(used, str):
53
56
  raise TypeError("Expected argument 'used' to be a str")
54
57
  pulumi.set(__self__, "used", used)
@@ -113,6 +116,11 @@ class GetResourceAvailabilityResult:
113
116
  def service_name(self) -> str:
114
117
  return pulumi.get(self, "service_name")
115
118
 
119
+ @property
120
+ @pulumi.getter(name="subscriptionId")
121
+ def subscription_id(self) -> Optional[str]:
122
+ return pulumi.get(self, "subscription_id")
123
+
116
124
  @property
117
125
  @pulumi.getter
118
126
  def used(self) -> str:
@@ -137,6 +145,7 @@ class AwaitableGetResourceAvailabilityResult(GetResourceAvailabilityResult):
137
145
  id=self.id,
138
146
  limit_name=self.limit_name,
139
147
  service_name=self.service_name,
148
+ subscription_id=self.subscription_id,
140
149
  used=self.used)
141
150
 
142
151
 
@@ -144,6 +153,7 @@ def get_resource_availability(availability_domain: Optional[str] = None,
144
153
  compartment_id: Optional[str] = None,
145
154
  limit_name: Optional[str] = None,
146
155
  service_name: Optional[str] = None,
156
+ subscription_id: Optional[str] = None,
147
157
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourceAvailabilityResult:
148
158
  """
149
159
  This data source provides details about a specific Resource Availability resource in Oracle Cloud Infrastructure Limits service.
@@ -151,7 +161,8 @@ def get_resource_availability(availability_domain: Optional[str] = None,
151
161
  For a given compartmentId, resource limit name, and scope, returns the following:
152
162
  * The number of available resources associated with the given limit.
153
163
  * The usage in the selected compartment for the given limit.
154
- Note that not all resource limits support this API. If the value is not available, the API returns a 404 response.
164
+ If Subscription Id is provided, then usage for resource created in that subscription will be returned
165
+ Note that not all resource limits support this API. If the value is not available, the API returns a 404 response.
155
166
 
156
167
  ## Example Usage
157
168
 
@@ -162,7 +173,8 @@ def get_resource_availability(availability_domain: Optional[str] = None,
162
173
  test_resource_availability = oci.Limits.get_resource_availability(compartment_id=tenancy_ocid,
163
174
  limit_name=resource_availability_limit_name,
164
175
  service_name=test_service["name"],
165
- availability_domain=resource_availability_availability_domain)
176
+ availability_domain=resource_availability_availability_domain,
177
+ subscription_id=subscription_ocid)
166
178
  ```
167
179
 
168
180
 
@@ -170,12 +182,14 @@ def get_resource_availability(availability_domain: Optional[str] = None,
170
182
  :param str compartment_id: The OCID of the compartment for which data is being fetched.
171
183
  :param str limit_name: The limit name for which to fetch the data.
172
184
  :param str service_name: The service name of the target quota.
185
+ :param str subscription_id: The OCID of the subscription assigned to tenant
173
186
  """
174
187
  __args__ = dict()
175
188
  __args__['availabilityDomain'] = availability_domain
176
189
  __args__['compartmentId'] = compartment_id
177
190
  __args__['limitName'] = limit_name
178
191
  __args__['serviceName'] = service_name
192
+ __args__['subscriptionId'] = subscription_id
179
193
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
180
194
  __ret__ = pulumi.runtime.invoke('oci:Limits/getResourceAvailability:getResourceAvailability', __args__, opts=opts, typ=GetResourceAvailabilityResult).value
181
195
 
@@ -189,6 +203,7 @@ def get_resource_availability(availability_domain: Optional[str] = None,
189
203
  id=pulumi.get(__ret__, 'id'),
190
204
  limit_name=pulumi.get(__ret__, 'limit_name'),
191
205
  service_name=pulumi.get(__ret__, 'service_name'),
206
+ subscription_id=pulumi.get(__ret__, 'subscription_id'),
192
207
  used=pulumi.get(__ret__, 'used'))
193
208
 
194
209
 
@@ -197,6 +212,7 @@ def get_resource_availability_output(availability_domain: Optional[pulumi.Input[
197
212
  compartment_id: Optional[pulumi.Input[str]] = None,
198
213
  limit_name: Optional[pulumi.Input[str]] = None,
199
214
  service_name: Optional[pulumi.Input[str]] = None,
215
+ subscription_id: Optional[pulumi.Input[Optional[str]]] = None,
200
216
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourceAvailabilityResult]:
201
217
  """
202
218
  This data source provides details about a specific Resource Availability resource in Oracle Cloud Infrastructure Limits service.
@@ -204,7 +220,8 @@ def get_resource_availability_output(availability_domain: Optional[pulumi.Input[
204
220
  For a given compartmentId, resource limit name, and scope, returns the following:
205
221
  * The number of available resources associated with the given limit.
206
222
  * The usage in the selected compartment for the given limit.
207
- Note that not all resource limits support this API. If the value is not available, the API returns a 404 response.
223
+ If Subscription Id is provided, then usage for resource created in that subscription will be returned
224
+ Note that not all resource limits support this API. If the value is not available, the API returns a 404 response.
208
225
 
209
226
  ## Example Usage
210
227
 
@@ -215,7 +232,8 @@ def get_resource_availability_output(availability_domain: Optional[pulumi.Input[
215
232
  test_resource_availability = oci.Limits.get_resource_availability(compartment_id=tenancy_ocid,
216
233
  limit_name=resource_availability_limit_name,
217
234
  service_name=test_service["name"],
218
- availability_domain=resource_availability_availability_domain)
235
+ availability_domain=resource_availability_availability_domain,
236
+ subscription_id=subscription_ocid)
219
237
  ```
220
238
 
221
239
 
@@ -223,5 +241,6 @@ def get_resource_availability_output(availability_domain: Optional[pulumi.Input[
223
241
  :param str compartment_id: The OCID of the compartment for which data is being fetched.
224
242
  :param str limit_name: The limit name for which to fetch the data.
225
243
  :param str service_name: The service name of the target quota.
244
+ :param str subscription_id: The OCID of the subscription assigned to tenant
226
245
  """
227
246
  ...
@@ -23,7 +23,7 @@ class GetServicesResult:
23
23
  """
24
24
  A collection of values returned by getServices.
25
25
  """
26
- def __init__(__self__, compartment_id=None, filters=None, id=None, services=None):
26
+ def __init__(__self__, compartment_id=None, filters=None, id=None, services=None, subscription_id=None):
27
27
  if compartment_id and not isinstance(compartment_id, str):
28
28
  raise TypeError("Expected argument 'compartment_id' to be a str")
29
29
  pulumi.set(__self__, "compartment_id", compartment_id)
@@ -36,6 +36,9 @@ class GetServicesResult:
36
36
  if services and not isinstance(services, list):
37
37
  raise TypeError("Expected argument 'services' to be a list")
38
38
  pulumi.set(__self__, "services", services)
39
+ if subscription_id and not isinstance(subscription_id, str):
40
+ raise TypeError("Expected argument 'subscription_id' to be a str")
41
+ pulumi.set(__self__, "subscription_id", subscription_id)
39
42
 
40
43
  @property
41
44
  @pulumi.getter(name="compartmentId")
@@ -63,6 +66,11 @@ class GetServicesResult:
63
66
  """
64
67
  return pulumi.get(self, "services")
65
68
 
69
+ @property
70
+ @pulumi.getter(name="subscriptionId")
71
+ def subscription_id(self) -> Optional[str]:
72
+ return pulumi.get(self, "subscription_id")
73
+
66
74
 
67
75
  class AwaitableGetServicesResult(GetServicesResult):
68
76
  # pylint: disable=using-constant-test
@@ -73,16 +81,18 @@ class AwaitableGetServicesResult(GetServicesResult):
73
81
  compartment_id=self.compartment_id,
74
82
  filters=self.filters,
75
83
  id=self.id,
76
- services=self.services)
84
+ services=self.services,
85
+ subscription_id=self.subscription_id)
77
86
 
78
87
 
79
88
  def get_services(compartment_id: Optional[str] = None,
80
89
  filters: Optional[Sequence[Union['GetServicesFilterArgs', 'GetServicesFilterArgsDict']]] = None,
90
+ subscription_id: Optional[str] = None,
81
91
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServicesResult:
82
92
  """
83
93
  This data source provides the list of Services in Oracle Cloud Infrastructure Limits service.
84
94
 
85
- Returns the list of supported services.
95
+ Returns the list of supported services. If subscription ID is provided then only services supported by subscription will be returned.
86
96
  This includes the programmatic service name, along with the friendly service name.
87
97
 
88
98
  ## Example Usage
@@ -91,15 +101,18 @@ def get_services(compartment_id: Optional[str] = None,
91
101
  import pulumi
92
102
  import pulumi_oci as oci
93
103
 
94
- test_services = oci.Limits.get_services(compartment_id=tenancy_ocid)
104
+ test_services = oci.Limits.get_services(compartment_id=tenancy_ocid,
105
+ subscription_id=subscription_ocid)
95
106
  ```
96
107
 
97
108
 
98
109
  :param str compartment_id: The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
110
+ :param str subscription_id: The OCID of the subscription assigned to tenant
99
111
  """
100
112
  __args__ = dict()
101
113
  __args__['compartmentId'] = compartment_id
102
114
  __args__['filters'] = filters
115
+ __args__['subscriptionId'] = subscription_id
103
116
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
104
117
  __ret__ = pulumi.runtime.invoke('oci:Limits/getServices:getServices', __args__, opts=opts, typ=GetServicesResult).value
105
118
 
@@ -107,17 +120,19 @@ def get_services(compartment_id: Optional[str] = None,
107
120
  compartment_id=pulumi.get(__ret__, 'compartment_id'),
108
121
  filters=pulumi.get(__ret__, 'filters'),
109
122
  id=pulumi.get(__ret__, 'id'),
110
- services=pulumi.get(__ret__, 'services'))
123
+ services=pulumi.get(__ret__, 'services'),
124
+ subscription_id=pulumi.get(__ret__, 'subscription_id'))
111
125
 
112
126
 
113
127
  @_utilities.lift_output_func(get_services)
114
128
  def get_services_output(compartment_id: Optional[pulumi.Input[str]] = None,
115
129
  filters: Optional[pulumi.Input[Optional[Sequence[Union['GetServicesFilterArgs', 'GetServicesFilterArgsDict']]]]] = None,
130
+ subscription_id: Optional[pulumi.Input[Optional[str]]] = None,
116
131
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetServicesResult]:
117
132
  """
118
133
  This data source provides the list of Services in Oracle Cloud Infrastructure Limits service.
119
134
 
120
- Returns the list of supported services.
135
+ Returns the list of supported services. If subscription ID is provided then only services supported by subscription will be returned.
121
136
  This includes the programmatic service name, along with the friendly service name.
122
137
 
123
138
  ## Example Usage
@@ -126,10 +141,12 @@ def get_services_output(compartment_id: Optional[pulumi.Input[str]] = None,
126
141
  import pulumi
127
142
  import pulumi_oci as oci
128
143
 
129
- test_services = oci.Limits.get_services(compartment_id=tenancy_ocid)
144
+ test_services = oci.Limits.get_services(compartment_id=tenancy_ocid,
145
+ subscription_id=subscription_ocid)
130
146
  ```
131
147
 
132
148
 
133
149
  :param str compartment_id: The OCID of the parent compartment (remember that the tenancy is simply the root compartment).
150
+ :param str subscription_id: The OCID of the subscription assigned to tenant
134
151
  """
135
152
  ...