diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 8b17ae5f05..4ab8e410a1 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,6 +3,56 @@ Change Log
All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog `_.
+====================
+2.36.0 - 2020-04-13
+====================
+
+Added
+-----
+* Support for the Database Migration service
+* Support for the Networking Topology service
+* Support for getting the id of peered VCNs on local peering gateways in the Networking service
+* Support for burstable instances in the Compute service
+* Support for preemptible instances in the Compute service
+* Support for fractional resource usage and availability in the Limits service
+* Support for streaming analytics in the Service Connector Hub service
+* Support for flexible routing inside DRGs to enable packet flow between any two attachments in the Networking service
+* Support for routing policy to customize dynamic import/export of routes in the Networking service
+* Support for IPv6, including on FastConnect and IPsec resources, in the Networking service
+* Support for request validation policies in the API Gateway service
+* Support for RESP-compliant (e.g. REDIS) response caches, and for configuring response caching per-route in the API Gateway service
+* Support for flexible billing in the VMWare Solution service
+* Support for new DNS format for the Web Application Acceleration and Security service
+* Support for configuring APM tracing on applications and functions in the Functions service
+* Support for Enterprise Manager external databases and Management Agent Service managed external databases and hosts in the Operations Insights service
+* Support for getting cluster cache metrics for RAC CDB managed databases in the Database Management service
+
+Breaking changes
+----
+* Removed response codes `200`, `201`, `202`, `204`, `206`, `300`, `301`, `302`, `303`, `304`, `307` and `444` from attribute `block_response_code` in model `AddressRateLimiting` in the Web Application Acceleration and Security Service
+* `VcnId` was made optional in CreateDrgAttachmentDetails model under Core services.
+* The property `IsInternetAccessAllowed` was removed from CreateIpv6Details model under Core services.
+* The property `Ipv6CidrBlock` was removed from CreateVcnDetails model under Core services.
+* The property `PublicIpAddress` and `IsInternetAccessAllowed` were removed from Ipv6 model under Core services.
+* Required property `PeerId` was added to LocalPeeringGateway model under Core services.
+* The property `Ipv6PublicCidrBlock` was removed from Subnet model under Core services.
+* The property `Ipv6PublicCidrBlock` was replaced by `Ipv6CidrBlocks` in Vcn model in Core services.
+* Required property `CurrentSku` was added under CreateEsxiHostDetails under Ocvp service.
+* Required property `InitialSku` was added under CreateSddcDetails under Ocvp service.
+* Required properties `BillingContractEndDate`, `NextSku` & `CurrentSku` were added under EsxiHost under Ocvp service.
+* Required properties `BillingContractEndDate`, `NextSku` & `CurrentSku` were added under EsxiHostSummary under Ocvp service.
+* Required property `InitialSku` was added under Sddc under Ocvp service.
+* Required property `Id` was added under DatabaseDetails under Opsi service.
+* `compartment_id` and `database_id` are now optional in operation `ingest_sql_bucket` under Opsi service.
+* `compartment_id` and `database_id` are now optional in operation `ingest_sql_plan_lines` under Opsi service.
+* `compartment_id` and `database_id` are now optional in operation `ingest_sql_text` under Opsi service.
+* `compartment_id` is now optional in operation `list_database_insights` under Opsi service.
+* `database_id` is now optional in operation `list_sql_plans` under Opsi service.
+* `database_id` is now optional in operation `summarize_sql_response_time_distributions` under Opsi service.
+* `database_id` is now optional in operation `summarize_sql_statistics_time_series_by_plan` under Opsi service.
+* `database_id` is now optional in operation `summarize_sql_plan_insights` under Opsi service.
+* Value of attribute `model_type` in model `ConnectionDetails` in Data Integration service defaults to UNKNOWN_ENUM_VALUE when it receives an invalid value. In the earlier versions, this raises a ValueError
+
====================
2.35.1 - 2020-04-06
====================
diff --git a/docs/api/apigateway.rst b/docs/api/apigateway.rst
index 78f31597a3..f99ef18b45 100644
--- a/docs/api/apigateway.rst
+++ b/docs/api/apigateway.rst
@@ -43,6 +43,7 @@ Apigateway
oci.apigateway.models.ApiValidations
oci.apigateway.models.AuthenticationOnlyRouteAuthorizationPolicy
oci.apigateway.models.AuthenticationPolicy
+ oci.apigateway.models.BodyValidationRequestPolicy
oci.apigateway.models.Certificate
oci.apigateway.models.CertificateCollection
oci.apigateway.models.CertificateSummary
@@ -50,6 +51,7 @@ Apigateway
oci.apigateway.models.ChangeCertificateCompartmentDetails
oci.apigateway.models.ChangeDeploymentCompartmentDetails
oci.apigateway.models.ChangeGatewayCompartmentDetails
+ oci.apigateway.models.ContentValidation
oci.apigateway.models.CorsPolicy
oci.apigateway.models.CreateApiDetails
oci.apigateway.models.CreateCertificateDetails
@@ -61,30 +63,43 @@ Apigateway
oci.apigateway.models.DeploymentCollection
oci.apigateway.models.DeploymentSummary
oci.apigateway.models.ExecutionLogPolicy
+ oci.apigateway.models.ExternalRespCache
oci.apigateway.models.FilterHeaderPolicy
oci.apigateway.models.FilterHeaderPolicyItem
oci.apigateway.models.FilterQueryParameterPolicy
oci.apigateway.models.FilterQueryParameterPolicyItem
+ oci.apigateway.models.FixedTTLResponseCacheStorePolicy
oci.apigateway.models.Gateway
oci.apigateway.models.GatewayCollection
oci.apigateway.models.GatewaySummary
oci.apigateway.models.HTTPBackend
oci.apigateway.models.HeaderFieldSpecification
oci.apigateway.models.HeaderTransformationPolicy
+ oci.apigateway.models.HeaderValidationItem
+ oci.apigateway.models.HeaderValidationRequestPolicy
oci.apigateway.models.IpAddress
oci.apigateway.models.JsonWebKey
oci.apigateway.models.JsonWebTokenClaim
oci.apigateway.models.JwtAuthenticationPolicy
+ oci.apigateway.models.NoCache
+ oci.apigateway.models.NoContentValidation
oci.apigateway.models.OracleFunctionBackend
oci.apigateway.models.PemEncodedPublicKey
oci.apigateway.models.PublicKeySet
oci.apigateway.models.QueryParameterTransformationPolicy
+ oci.apigateway.models.QueryParameterValidationItem
+ oci.apigateway.models.QueryParameterValidationRequestPolicy
oci.apigateway.models.RateLimitingPolicy
oci.apigateway.models.RemoteJsonWebKeySet
oci.apigateway.models.RenameHeaderPolicy
oci.apigateway.models.RenameHeaderPolicyItem
oci.apigateway.models.RenameQueryParameterPolicy
oci.apigateway.models.RenameQueryParameterPolicyItem
+ oci.apigateway.models.RequestParameterValidation
+ oci.apigateway.models.ResponseCacheDetails
+ oci.apigateway.models.ResponseCacheLookupPolicy
+ oci.apigateway.models.ResponseCacheRespServer
+ oci.apigateway.models.ResponseCacheStorePolicy
oci.apigateway.models.RouteAuthorizationPolicy
oci.apigateway.models.Sdk
oci.apigateway.models.SdkCollection
@@ -98,6 +113,7 @@ Apigateway
oci.apigateway.models.SetHeaderPolicyItem
oci.apigateway.models.SetQueryParameterPolicy
oci.apigateway.models.SetQueryParameterPolicyItem
+ oci.apigateway.models.SimpleLookupPolicy
oci.apigateway.models.StaticPublicKey
oci.apigateway.models.StaticPublicKeySet
oci.apigateway.models.StockResponseBackend
@@ -106,6 +122,7 @@ Apigateway
oci.apigateway.models.UpdateDeploymentDetails
oci.apigateway.models.UpdateGatewayDetails
oci.apigateway.models.UpdateSdkDetails
+ oci.apigateway.models.ValidationRequestPolicy
oci.apigateway.models.WorkRequest
oci.apigateway.models.WorkRequestCollection
oci.apigateway.models.WorkRequestError
diff --git a/docs/api/apigateway/models/oci.apigateway.models.BodyValidationRequestPolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.BodyValidationRequestPolicy.rst
new file mode 100644
index 0000000000..4e635de977
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.BodyValidationRequestPolicy.rst
@@ -0,0 +1,11 @@
+BodyValidationRequestPolicy
+===========================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: BodyValidationRequestPolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.ContentValidation.rst b/docs/api/apigateway/models/oci.apigateway.models.ContentValidation.rst
new file mode 100644
index 0000000000..ee20deff55
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.ContentValidation.rst
@@ -0,0 +1,11 @@
+ContentValidation
+=================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: ContentValidation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.ExternalRespCache.rst b/docs/api/apigateway/models/oci.apigateway.models.ExternalRespCache.rst
new file mode 100644
index 0000000000..f76ec91064
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.ExternalRespCache.rst
@@ -0,0 +1,11 @@
+ExternalRespCache
+=================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: ExternalRespCache
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.FixedTTLResponseCacheStorePolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.FixedTTLResponseCacheStorePolicy.rst
new file mode 100644
index 0000000000..1d55d26341
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.FixedTTLResponseCacheStorePolicy.rst
@@ -0,0 +1,11 @@
+FixedTTLResponseCacheStorePolicy
+================================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: FixedTTLResponseCacheStorePolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.HeaderValidationItem.rst b/docs/api/apigateway/models/oci.apigateway.models.HeaderValidationItem.rst
new file mode 100644
index 0000000000..59e8554d97
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.HeaderValidationItem.rst
@@ -0,0 +1,11 @@
+HeaderValidationItem
+====================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: HeaderValidationItem
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.HeaderValidationRequestPolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.HeaderValidationRequestPolicy.rst
new file mode 100644
index 0000000000..eccf5a2331
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.HeaderValidationRequestPolicy.rst
@@ -0,0 +1,11 @@
+HeaderValidationRequestPolicy
+=============================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: HeaderValidationRequestPolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.NoCache.rst b/docs/api/apigateway/models/oci.apigateway.models.NoCache.rst
new file mode 100644
index 0000000000..a1bcefb184
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.NoCache.rst
@@ -0,0 +1,11 @@
+NoCache
+=======
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: NoCache
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.NoContentValidation.rst b/docs/api/apigateway/models/oci.apigateway.models.NoContentValidation.rst
new file mode 100644
index 0000000000..ca0d170f94
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.NoContentValidation.rst
@@ -0,0 +1,11 @@
+NoContentValidation
+===================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: NoContentValidation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.QueryParameterValidationItem.rst b/docs/api/apigateway/models/oci.apigateway.models.QueryParameterValidationItem.rst
new file mode 100644
index 0000000000..86c5f88b9d
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.QueryParameterValidationItem.rst
@@ -0,0 +1,11 @@
+QueryParameterValidationItem
+============================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: QueryParameterValidationItem
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.QueryParameterValidationRequestPolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.QueryParameterValidationRequestPolicy.rst
new file mode 100644
index 0000000000..ac01ad0ae3
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.QueryParameterValidationRequestPolicy.rst
@@ -0,0 +1,11 @@
+QueryParameterValidationRequestPolicy
+=====================================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: QueryParameterValidationRequestPolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.RequestParameterValidation.rst b/docs/api/apigateway/models/oci.apigateway.models.RequestParameterValidation.rst
new file mode 100644
index 0000000000..ff7fd6168d
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.RequestParameterValidation.rst
@@ -0,0 +1,11 @@
+RequestParameterValidation
+==========================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: RequestParameterValidation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheDetails.rst b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheDetails.rst
new file mode 100644
index 0000000000..0d15ba26f1
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheDetails.rst
@@ -0,0 +1,11 @@
+ResponseCacheDetails
+====================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: ResponseCacheDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheLookupPolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheLookupPolicy.rst
new file mode 100644
index 0000000000..8897439306
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheLookupPolicy.rst
@@ -0,0 +1,11 @@
+ResponseCacheLookupPolicy
+=========================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: ResponseCacheLookupPolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheRespServer.rst b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheRespServer.rst
new file mode 100644
index 0000000000..e205df9e20
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheRespServer.rst
@@ -0,0 +1,11 @@
+ResponseCacheRespServer
+=======================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: ResponseCacheRespServer
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheStorePolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheStorePolicy.rst
new file mode 100644
index 0000000000..18861c1cc2
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.ResponseCacheStorePolicy.rst
@@ -0,0 +1,11 @@
+ResponseCacheStorePolicy
+========================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: ResponseCacheStorePolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.SimpleLookupPolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.SimpleLookupPolicy.rst
new file mode 100644
index 0000000000..86d65b518e
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.SimpleLookupPolicy.rst
@@ -0,0 +1,11 @@
+SimpleLookupPolicy
+==================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: SimpleLookupPolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/apigateway/models/oci.apigateway.models.ValidationRequestPolicy.rst b/docs/api/apigateway/models/oci.apigateway.models.ValidationRequestPolicy.rst
new file mode 100644
index 0000000000..8a21c8fb37
--- /dev/null
+++ b/docs/api/apigateway/models/oci.apigateway.models.ValidationRequestPolicy.rst
@@ -0,0 +1,11 @@
+ValidationRequestPolicy
+=======================
+
+.. currentmodule:: oci.apigateway.models
+
+.. autoclass:: ValidationRequestPolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core.rst b/docs/api/core.rst
index aefa6e88ad..41bd323b92 100644
--- a/docs/api/core.rst
+++ b/docs/api/core.rst
@@ -24,6 +24,10 @@ Core Services
:nosignatures:
:template: autosummary/model_class.rst
+ oci.core.models.AddDrgRouteDistributionStatementDetails
+ oci.core.models.AddDrgRouteDistributionStatementsDetails
+ oci.core.models.AddDrgRouteRuleDetails
+ oci.core.models.AddDrgRouteRulesDetails
oci.core.models.AddImageShapeCompatibilityEntryDetails
oci.core.models.AddNetworkSecurityGroupSecurityRulesDetails
oci.core.models.AddPublicIpPoolCapacityDetails
@@ -147,6 +151,8 @@ Core Services
oci.core.models.CreateDhcpDetails
oci.core.models.CreateDrgAttachmentDetails
oci.core.models.CreateDrgDetails
+ oci.core.models.CreateDrgRouteDistributionDetails
+ oci.core.models.CreateDrgRouteTableDetails
oci.core.models.CreateIPSecConnectionDetails
oci.core.models.CreateIPSecConnectionTunnelDetails
oci.core.models.CreateIPSecTunnelBgpSessionDetails
@@ -186,6 +192,8 @@ Core Services
oci.core.models.CrossConnectGroup
oci.core.models.CrossConnectLocation
oci.core.models.CrossConnectMapping
+ oci.core.models.CrossConnectMappingDetails
+ oci.core.models.CrossConnectMappingDetailsCollection
oci.core.models.CrossConnectPortSpeedShape
oci.core.models.CrossConnectStatus
oci.core.models.DedicatedVmHost
@@ -193,6 +201,7 @@ Core Services
oci.core.models.DedicatedVmHostInstanceSummary
oci.core.models.DedicatedVmHostShapeSummary
oci.core.models.DedicatedVmHostSummary
+ oci.core.models.DefaultDrgRouteTables
oci.core.models.DeleteVirtualCircuitPublicPrefixDetails
oci.core.models.DetachInstancePoolInstanceDetails
oci.core.models.DetachLoadBalancerDetails
@@ -203,7 +212,18 @@ Core Services
oci.core.models.DhcpSearchDomainOption
oci.core.models.Drg
oci.core.models.DrgAttachment
+ oci.core.models.DrgAttachmentIdDrgRouteDistributionMatchCriteria
+ oci.core.models.DrgAttachmentInfo
+ oci.core.models.DrgAttachmentNetworkCreateDetails
+ oci.core.models.DrgAttachmentNetworkDetails
+ oci.core.models.DrgAttachmentNetworkUpdateDetails
+ oci.core.models.DrgAttachmentTypeDrgRouteDistributionMatchCriteria
oci.core.models.DrgRedundancyStatus
+ oci.core.models.DrgRouteDistribution
+ oci.core.models.DrgRouteDistributionMatchCriteria
+ oci.core.models.DrgRouteDistributionStatement
+ oci.core.models.DrgRouteRule
+ oci.core.models.DrgRouteTable
oci.core.models.EgressSecurityRule
oci.core.models.EmulatedVolumeAttachment
oci.core.models.EncryptionDomainConfig
@@ -281,6 +301,7 @@ Core Services
oci.core.models.InstanceSourceViaImageDetails
oci.core.models.InstanceSummary
oci.core.models.InternetGateway
+ oci.core.models.IpsecTunnelDrgAttachmentNetworkDetails
oci.core.models.Ipv6
oci.core.models.LaunchInstanceAgentConfigDetails
oci.core.models.LaunchInstanceAvailabilityConfigDetails
@@ -294,16 +315,22 @@ Core Services
oci.core.models.NatGateway
oci.core.models.NetworkSecurityGroup
oci.core.models.NetworkSecurityGroupVnic
+ oci.core.models.NetworkingTopology
oci.core.models.ParavirtualizedVolumeAttachment
oci.core.models.PeerRegionForRemotePeering
oci.core.models.PlatformConfig
oci.core.models.PortRange
+ oci.core.models.PreemptibleInstanceConfigDetails
+ oci.core.models.PreemptionAction
oci.core.models.PrivateIp
oci.core.models.PublicIp
oci.core.models.PublicIpPool
oci.core.models.PublicIpPoolCollection
oci.core.models.PublicIpPoolSummary
oci.core.models.RemotePeeringConnection
+ oci.core.models.RemotePeeringConnectionDrgAttachmentNetworkDetails
+ oci.core.models.RemoveDrgRouteDistributionStatementsDetails
+ oci.core.models.RemoveDrgRouteRulesDetails
oci.core.models.RemoveNetworkSecurityGroupSecurityRulesDetails
oci.core.models.RemovePublicIpPoolCapacityDetails
oci.core.models.RemoveVcnCidrDetails
@@ -322,6 +349,13 @@ Core Services
oci.core.models.ShapeOcpuOptions
oci.core.models.Subnet
oci.core.models.TcpOptions
+ oci.core.models.TerminatePreemptionAction
+ oci.core.models.Topology
+ oci.core.models.TopologyAssociatedWithEntityRelationship
+ oci.core.models.TopologyContainsEntityRelationship
+ oci.core.models.TopologyEntityRelationship
+ oci.core.models.TopologyRoutesToEntityRelationship
+ oci.core.models.TopologyRoutesToRelationshipDetails
oci.core.models.TunnelConfig
oci.core.models.TunnelCpeDeviceConfig
oci.core.models.TunnelStatus
@@ -341,6 +375,12 @@ Core Services
oci.core.models.UpdateDhcpDetails
oci.core.models.UpdateDrgAttachmentDetails
oci.core.models.UpdateDrgDetails
+ oci.core.models.UpdateDrgRouteDistributionDetails
+ oci.core.models.UpdateDrgRouteDistributionStatementDetails
+ oci.core.models.UpdateDrgRouteDistributionStatementsDetails
+ oci.core.models.UpdateDrgRouteRuleDetails
+ oci.core.models.UpdateDrgRouteRulesDetails
+ oci.core.models.UpdateDrgRouteTableDetails
oci.core.models.UpdateIPSecConnectionDetails
oci.core.models.UpdateIPSecConnectionTunnelDetails
oci.core.models.UpdateIPSecConnectionTunnelSharedSecretDetails
@@ -383,10 +423,16 @@ Core Services
oci.core.models.UpdateVolumeGroupDetails
oci.core.models.UpdateVolumeKmsKeyDetails
oci.core.models.UpdatedNetworkSecurityGroupSecurityRules
+ oci.core.models.UpgradeStatus
oci.core.models.Vcn
oci.core.models.VcnDnsResolverAssociation
+ oci.core.models.VcnDrgAttachmentNetworkCreateDetails
+ oci.core.models.VcnDrgAttachmentNetworkDetails
+ oci.core.models.VcnDrgAttachmentNetworkUpdateDetails
+ oci.core.models.VcnTopology
oci.core.models.VirtualCircuit
oci.core.models.VirtualCircuitBandwidthShape
+ oci.core.models.VirtualCircuitDrgAttachmentNetworkDetails
oci.core.models.VirtualCircuitPublicPrefix
oci.core.models.Vlan
oci.core.models.Vnic
diff --git a/docs/api/core/models/oci.core.models.AddDrgRouteDistributionStatementDetails.rst b/docs/api/core/models/oci.core.models.AddDrgRouteDistributionStatementDetails.rst
new file mode 100644
index 0000000000..cdeec738d2
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.AddDrgRouteDistributionStatementDetails.rst
@@ -0,0 +1,11 @@
+AddDrgRouteDistributionStatementDetails
+=======================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: AddDrgRouteDistributionStatementDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.AddDrgRouteDistributionStatementsDetails.rst b/docs/api/core/models/oci.core.models.AddDrgRouteDistributionStatementsDetails.rst
new file mode 100644
index 0000000000..37213dbd5f
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.AddDrgRouteDistributionStatementsDetails.rst
@@ -0,0 +1,11 @@
+AddDrgRouteDistributionStatementsDetails
+========================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: AddDrgRouteDistributionStatementsDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.AddDrgRouteRuleDetails.rst b/docs/api/core/models/oci.core.models.AddDrgRouteRuleDetails.rst
new file mode 100644
index 0000000000..8f9d5a5f23
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.AddDrgRouteRuleDetails.rst
@@ -0,0 +1,11 @@
+AddDrgRouteRuleDetails
+======================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: AddDrgRouteRuleDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.AddDrgRouteRulesDetails.rst b/docs/api/core/models/oci.core.models.AddDrgRouteRulesDetails.rst
new file mode 100644
index 0000000000..9ed16977be
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.AddDrgRouteRulesDetails.rst
@@ -0,0 +1,11 @@
+AddDrgRouteRulesDetails
+=======================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: AddDrgRouteRulesDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.CreateDrgRouteDistributionDetails.rst b/docs/api/core/models/oci.core.models.CreateDrgRouteDistributionDetails.rst
new file mode 100644
index 0000000000..5b32e9d626
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.CreateDrgRouteDistributionDetails.rst
@@ -0,0 +1,11 @@
+CreateDrgRouteDistributionDetails
+=================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: CreateDrgRouteDistributionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.CreateDrgRouteTableDetails.rst b/docs/api/core/models/oci.core.models.CreateDrgRouteTableDetails.rst
new file mode 100644
index 0000000000..f888c02418
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.CreateDrgRouteTableDetails.rst
@@ -0,0 +1,11 @@
+CreateDrgRouteTableDetails
+==========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: CreateDrgRouteTableDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.CrossConnectMappingDetails.rst b/docs/api/core/models/oci.core.models.CrossConnectMappingDetails.rst
new file mode 100644
index 0000000000..b923cbbbbb
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.CrossConnectMappingDetails.rst
@@ -0,0 +1,11 @@
+CrossConnectMappingDetails
+==========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: CrossConnectMappingDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.CrossConnectMappingDetailsCollection.rst b/docs/api/core/models/oci.core.models.CrossConnectMappingDetailsCollection.rst
new file mode 100644
index 0000000000..f10ef4ac38
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.CrossConnectMappingDetailsCollection.rst
@@ -0,0 +1,11 @@
+CrossConnectMappingDetailsCollection
+====================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: CrossConnectMappingDetailsCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DefaultDrgRouteTables.rst b/docs/api/core/models/oci.core.models.DefaultDrgRouteTables.rst
new file mode 100644
index 0000000000..f20512dc35
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DefaultDrgRouteTables.rst
@@ -0,0 +1,11 @@
+DefaultDrgRouteTables
+=====================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DefaultDrgRouteTables
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgAttachmentIdDrgRouteDistributionMatchCriteria.rst b/docs/api/core/models/oci.core.models.DrgAttachmentIdDrgRouteDistributionMatchCriteria.rst
new file mode 100644
index 0000000000..6db68b1351
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgAttachmentIdDrgRouteDistributionMatchCriteria.rst
@@ -0,0 +1,11 @@
+DrgAttachmentIdDrgRouteDistributionMatchCriteria
+================================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgAttachmentIdDrgRouteDistributionMatchCriteria
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgAttachmentInfo.rst b/docs/api/core/models/oci.core.models.DrgAttachmentInfo.rst
new file mode 100644
index 0000000000..942c3415c3
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgAttachmentInfo.rst
@@ -0,0 +1,11 @@
+DrgAttachmentInfo
+=================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgAttachmentInfo
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgAttachmentNetworkCreateDetails.rst b/docs/api/core/models/oci.core.models.DrgAttachmentNetworkCreateDetails.rst
new file mode 100644
index 0000000000..fd764e6fdf
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgAttachmentNetworkCreateDetails.rst
@@ -0,0 +1,11 @@
+DrgAttachmentNetworkCreateDetails
+=================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgAttachmentNetworkCreateDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgAttachmentNetworkDetails.rst b/docs/api/core/models/oci.core.models.DrgAttachmentNetworkDetails.rst
new file mode 100644
index 0000000000..061d0f5754
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgAttachmentNetworkDetails.rst
@@ -0,0 +1,11 @@
+DrgAttachmentNetworkDetails
+===========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgAttachmentNetworkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgAttachmentNetworkUpdateDetails.rst b/docs/api/core/models/oci.core.models.DrgAttachmentNetworkUpdateDetails.rst
new file mode 100644
index 0000000000..9f827407eb
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgAttachmentNetworkUpdateDetails.rst
@@ -0,0 +1,11 @@
+DrgAttachmentNetworkUpdateDetails
+=================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgAttachmentNetworkUpdateDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgAttachmentTypeDrgRouteDistributionMatchCriteria.rst b/docs/api/core/models/oci.core.models.DrgAttachmentTypeDrgRouteDistributionMatchCriteria.rst
new file mode 100644
index 0000000000..b9e845f5e8
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgAttachmentTypeDrgRouteDistributionMatchCriteria.rst
@@ -0,0 +1,11 @@
+DrgAttachmentTypeDrgRouteDistributionMatchCriteria
+==================================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgAttachmentTypeDrgRouteDistributionMatchCriteria
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgRouteDistribution.rst b/docs/api/core/models/oci.core.models.DrgRouteDistribution.rst
new file mode 100644
index 0000000000..ae443a7779
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgRouteDistribution.rst
@@ -0,0 +1,11 @@
+DrgRouteDistribution
+====================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgRouteDistribution
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgRouteDistributionMatchCriteria.rst b/docs/api/core/models/oci.core.models.DrgRouteDistributionMatchCriteria.rst
new file mode 100644
index 0000000000..7562d3f89a
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgRouteDistributionMatchCriteria.rst
@@ -0,0 +1,11 @@
+DrgRouteDistributionMatchCriteria
+=================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgRouteDistributionMatchCriteria
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgRouteDistributionStatement.rst b/docs/api/core/models/oci.core.models.DrgRouteDistributionStatement.rst
new file mode 100644
index 0000000000..3a590d6275
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgRouteDistributionStatement.rst
@@ -0,0 +1,11 @@
+DrgRouteDistributionStatement
+=============================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgRouteDistributionStatement
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgRouteRule.rst b/docs/api/core/models/oci.core.models.DrgRouteRule.rst
new file mode 100644
index 0000000000..e0e803b75c
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgRouteRule.rst
@@ -0,0 +1,11 @@
+DrgRouteRule
+============
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgRouteRule
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.DrgRouteTable.rst b/docs/api/core/models/oci.core.models.DrgRouteTable.rst
new file mode 100644
index 0000000000..a934a1861b
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.DrgRouteTable.rst
@@ -0,0 +1,11 @@
+DrgRouteTable
+=============
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: DrgRouteTable
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.IpsecTunnelDrgAttachmentNetworkDetails.rst b/docs/api/core/models/oci.core.models.IpsecTunnelDrgAttachmentNetworkDetails.rst
new file mode 100644
index 0000000000..b0fb6e473f
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.IpsecTunnelDrgAttachmentNetworkDetails.rst
@@ -0,0 +1,11 @@
+IpsecTunnelDrgAttachmentNetworkDetails
+======================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: IpsecTunnelDrgAttachmentNetworkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.NetworkingTopology.rst b/docs/api/core/models/oci.core.models.NetworkingTopology.rst
new file mode 100644
index 0000000000..2508ef761f
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.NetworkingTopology.rst
@@ -0,0 +1,11 @@
+NetworkingTopology
+==================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: NetworkingTopology
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.PreemptibleInstanceConfigDetails.rst b/docs/api/core/models/oci.core.models.PreemptibleInstanceConfigDetails.rst
new file mode 100644
index 0000000000..e7e15aac63
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.PreemptibleInstanceConfigDetails.rst
@@ -0,0 +1,11 @@
+PreemptibleInstanceConfigDetails
+================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: PreemptibleInstanceConfigDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.PreemptionAction.rst b/docs/api/core/models/oci.core.models.PreemptionAction.rst
new file mode 100644
index 0000000000..82dff41016
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.PreemptionAction.rst
@@ -0,0 +1,11 @@
+PreemptionAction
+================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: PreemptionAction
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.RemotePeeringConnectionDrgAttachmentNetworkDetails.rst b/docs/api/core/models/oci.core.models.RemotePeeringConnectionDrgAttachmentNetworkDetails.rst
new file mode 100644
index 0000000000..c28f264148
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.RemotePeeringConnectionDrgAttachmentNetworkDetails.rst
@@ -0,0 +1,11 @@
+RemotePeeringConnectionDrgAttachmentNetworkDetails
+==================================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: RemotePeeringConnectionDrgAttachmentNetworkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.RemoveDrgRouteDistributionStatementsDetails.rst b/docs/api/core/models/oci.core.models.RemoveDrgRouteDistributionStatementsDetails.rst
new file mode 100644
index 0000000000..729b5b213c
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.RemoveDrgRouteDistributionStatementsDetails.rst
@@ -0,0 +1,11 @@
+RemoveDrgRouteDistributionStatementsDetails
+===========================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: RemoveDrgRouteDistributionStatementsDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.RemoveDrgRouteRulesDetails.rst b/docs/api/core/models/oci.core.models.RemoveDrgRouteRulesDetails.rst
new file mode 100644
index 0000000000..f18fa11d70
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.RemoveDrgRouteRulesDetails.rst
@@ -0,0 +1,11 @@
+RemoveDrgRouteRulesDetails
+==========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: RemoveDrgRouteRulesDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.TerminatePreemptionAction.rst b/docs/api/core/models/oci.core.models.TerminatePreemptionAction.rst
new file mode 100644
index 0000000000..4217bdc058
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.TerminatePreemptionAction.rst
@@ -0,0 +1,11 @@
+TerminatePreemptionAction
+=========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: TerminatePreemptionAction
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.Topology.rst b/docs/api/core/models/oci.core.models.Topology.rst
new file mode 100644
index 0000000000..c8d6af01d4
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.Topology.rst
@@ -0,0 +1,11 @@
+Topology
+========
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: Topology
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.TopologyAssociatedWithEntityRelationship.rst b/docs/api/core/models/oci.core.models.TopologyAssociatedWithEntityRelationship.rst
new file mode 100644
index 0000000000..09d0296ff9
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.TopologyAssociatedWithEntityRelationship.rst
@@ -0,0 +1,11 @@
+TopologyAssociatedWithEntityRelationship
+========================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: TopologyAssociatedWithEntityRelationship
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.TopologyContainsEntityRelationship.rst b/docs/api/core/models/oci.core.models.TopologyContainsEntityRelationship.rst
new file mode 100644
index 0000000000..8adc278f17
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.TopologyContainsEntityRelationship.rst
@@ -0,0 +1,11 @@
+TopologyContainsEntityRelationship
+==================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: TopologyContainsEntityRelationship
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.TopologyEntityRelationship.rst b/docs/api/core/models/oci.core.models.TopologyEntityRelationship.rst
new file mode 100644
index 0000000000..55489c2a38
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.TopologyEntityRelationship.rst
@@ -0,0 +1,11 @@
+TopologyEntityRelationship
+==========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: TopologyEntityRelationship
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.TopologyRoutesToEntityRelationship.rst b/docs/api/core/models/oci.core.models.TopologyRoutesToEntityRelationship.rst
new file mode 100644
index 0000000000..4abcf177cf
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.TopologyRoutesToEntityRelationship.rst
@@ -0,0 +1,11 @@
+TopologyRoutesToEntityRelationship
+==================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: TopologyRoutesToEntityRelationship
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.TopologyRoutesToRelationshipDetails.rst b/docs/api/core/models/oci.core.models.TopologyRoutesToRelationshipDetails.rst
new file mode 100644
index 0000000000..38caf10630
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.TopologyRoutesToRelationshipDetails.rst
@@ -0,0 +1,11 @@
+TopologyRoutesToRelationshipDetails
+===================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: TopologyRoutesToRelationshipDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionDetails.rst
new file mode 100644
index 0000000000..cc2f44cac8
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionDetails.rst
@@ -0,0 +1,11 @@
+UpdateDrgRouteDistributionDetails
+=================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: UpdateDrgRouteDistributionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionStatementDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionStatementDetails.rst
new file mode 100644
index 0000000000..10d22cd53a
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionStatementDetails.rst
@@ -0,0 +1,11 @@
+UpdateDrgRouteDistributionStatementDetails
+==========================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: UpdateDrgRouteDistributionStatementDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionStatementsDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionStatementsDetails.rst
new file mode 100644
index 0000000000..d901b434a1
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.UpdateDrgRouteDistributionStatementsDetails.rst
@@ -0,0 +1,11 @@
+UpdateDrgRouteDistributionStatementsDetails
+===========================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: UpdateDrgRouteDistributionStatementsDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.UpdateDrgRouteRuleDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgRouteRuleDetails.rst
new file mode 100644
index 0000000000..89dc8f3c4a
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.UpdateDrgRouteRuleDetails.rst
@@ -0,0 +1,11 @@
+UpdateDrgRouteRuleDetails
+=========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: UpdateDrgRouteRuleDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.UpdateDrgRouteRulesDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgRouteRulesDetails.rst
new file mode 100644
index 0000000000..4d4f5e886d
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.UpdateDrgRouteRulesDetails.rst
@@ -0,0 +1,11 @@
+UpdateDrgRouteRulesDetails
+==========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: UpdateDrgRouteRulesDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.UpdateDrgRouteTableDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgRouteTableDetails.rst
new file mode 100644
index 0000000000..f21406f027
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.UpdateDrgRouteTableDetails.rst
@@ -0,0 +1,11 @@
+UpdateDrgRouteTableDetails
+==========================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: UpdateDrgRouteTableDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.UpgradeStatus.rst b/docs/api/core/models/oci.core.models.UpgradeStatus.rst
new file mode 100644
index 0000000000..69037d08ea
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.UpgradeStatus.rst
@@ -0,0 +1,11 @@
+UpgradeStatus
+=============
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: UpgradeStatus
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkCreateDetails.rst b/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkCreateDetails.rst
new file mode 100644
index 0000000000..a3b7d36b89
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkCreateDetails.rst
@@ -0,0 +1,11 @@
+VcnDrgAttachmentNetworkCreateDetails
+====================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: VcnDrgAttachmentNetworkCreateDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkDetails.rst b/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkDetails.rst
new file mode 100644
index 0000000000..2ccef494f6
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkDetails.rst
@@ -0,0 +1,11 @@
+VcnDrgAttachmentNetworkDetails
+==============================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: VcnDrgAttachmentNetworkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkUpdateDetails.rst b/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkUpdateDetails.rst
new file mode 100644
index 0000000000..ef8b7f6a54
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.VcnDrgAttachmentNetworkUpdateDetails.rst
@@ -0,0 +1,11 @@
+VcnDrgAttachmentNetworkUpdateDetails
+====================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: VcnDrgAttachmentNetworkUpdateDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.VcnTopology.rst b/docs/api/core/models/oci.core.models.VcnTopology.rst
new file mode 100644
index 0000000000..a2012c77c9
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.VcnTopology.rst
@@ -0,0 +1,11 @@
+VcnTopology
+===========
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: VcnTopology
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/core/models/oci.core.models.VirtualCircuitDrgAttachmentNetworkDetails.rst b/docs/api/core/models/oci.core.models.VirtualCircuitDrgAttachmentNetworkDetails.rst
new file mode 100644
index 0000000000..ceb80b7b7e
--- /dev/null
+++ b/docs/api/core/models/oci.core.models.VirtualCircuitDrgAttachmentNetworkDetails.rst
@@ -0,0 +1,11 @@
+VirtualCircuitDrgAttachmentNetworkDetails
+=========================================
+
+.. currentmodule:: oci.core.models
+
+.. autoclass:: VirtualCircuitDrgAttachmentNetworkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_management.rst b/docs/api/database_management.rst
index 281a11d9b6..c306fbf8a2 100644
--- a/docs/api/database_management.rst
+++ b/docs/api/database_management.rst
@@ -26,6 +26,7 @@ Database Management
oci.database_management.models.ChangeJobCompartmentDetails
oci.database_management.models.ChangeManagedDatabaseGroupCompartmentDetails
oci.database_management.models.ChildDatabase
+ oci.database_management.models.ClusterCacheMetric
oci.database_management.models.CreateJobDetails
oci.database_management.models.CreateManagedDatabaseGroupDetails
oci.database_management.models.CreateSqlJobDetails
@@ -34,6 +35,7 @@ Database Management
oci.database_management.models.DatabaseHomeMetricDefinition
oci.database_management.models.DatabaseHomeMetrics
oci.database_management.models.DatabaseIOAggregateMetrics
+ oci.database_management.models.DatabaseInstanceHomeMetricsDefinition
oci.database_management.models.DatabaseParameterSummary
oci.database_management.models.DatabaseParameterUpdateStatus
oci.database_management.models.DatabaseParametersCollection
@@ -45,6 +47,7 @@ Database Management
oci.database_management.models.FleetMetricSummaryDefinition
oci.database_management.models.FleetStatusByCategory
oci.database_management.models.FleetSummary
+ oci.database_management.models.InstanceDetails
oci.database_management.models.Job
oci.database_management.models.JobCollection
oci.database_management.models.JobDatabase
@@ -69,11 +72,14 @@ Database Management
oci.database_management.models.ObjectStorageJobExecutionResultDetails
oci.database_management.models.ObjectStorageJobExecutionResultLocation
oci.database_management.models.ParentGroup
+ oci.database_management.models.PdbStatusDetails
oci.database_management.models.RemoveManagedDatabaseFromManagedDatabaseGroupDetails
oci.database_management.models.ResetDatabaseParametersDetails
oci.database_management.models.SqlJob
oci.database_management.models.Tablespace
oci.database_management.models.TablespaceCollection
oci.database_management.models.TablespaceSummary
+ oci.database_management.models.TimeSeriesMetricDataPoint
+ oci.database_management.models.TimeSeriesMetricDefinition
oci.database_management.models.UpdateDatabaseParametersResult
oci.database_management.models.UpdateManagedDatabaseGroupDetails
diff --git a/docs/api/database_management/models/oci.database_management.models.ClusterCacheMetric.rst b/docs/api/database_management/models/oci.database_management.models.ClusterCacheMetric.rst
new file mode 100644
index 0000000000..62a920c461
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.ClusterCacheMetric.rst
@@ -0,0 +1,11 @@
+ClusterCacheMetric
+==================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: ClusterCacheMetric
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseInstanceHomeMetricsDefinition.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseInstanceHomeMetricsDefinition.rst
new file mode 100644
index 0000000000..be9e62842d
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.DatabaseInstanceHomeMetricsDefinition.rst
@@ -0,0 +1,11 @@
+DatabaseInstanceHomeMetricsDefinition
+=====================================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: DatabaseInstanceHomeMetricsDefinition
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_management/models/oci.database_management.models.InstanceDetails.rst b/docs/api/database_management/models/oci.database_management.models.InstanceDetails.rst
new file mode 100644
index 0000000000..9b2b3cada6
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.InstanceDetails.rst
@@ -0,0 +1,11 @@
+InstanceDetails
+===============
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: InstanceDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_management/models/oci.database_management.models.PdbStatusDetails.rst b/docs/api/database_management/models/oci.database_management.models.PdbStatusDetails.rst
new file mode 100644
index 0000000000..f31dfb3a39
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.PdbStatusDetails.rst
@@ -0,0 +1,11 @@
+PdbStatusDetails
+================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: PdbStatusDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_management/models/oci.database_management.models.TimeSeriesMetricDataPoint.rst b/docs/api/database_management/models/oci.database_management.models.TimeSeriesMetricDataPoint.rst
new file mode 100644
index 0000000000..a054b3d517
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.TimeSeriesMetricDataPoint.rst
@@ -0,0 +1,11 @@
+TimeSeriesMetricDataPoint
+=========================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: TimeSeriesMetricDataPoint
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_management/models/oci.database_management.models.TimeSeriesMetricDefinition.rst b/docs/api/database_management/models/oci.database_management.models.TimeSeriesMetricDefinition.rst
new file mode 100644
index 0000000000..029c4f303f
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.TimeSeriesMetricDefinition.rst
@@ -0,0 +1,11 @@
+TimeSeriesMetricDefinition
+==========================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: TimeSeriesMetricDefinition
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration.rst b/docs/api/database_migration.rst
new file mode 100644
index 0000000000..abae85e332
--- /dev/null
+++ b/docs/api/database_migration.rst
@@ -0,0 +1,115 @@
+Database Migration
+==================
+
+.. autosummary::
+ :toctree: database_migration/client
+ :nosignatures:
+ :template: autosummary/service_client.rst
+
+ oci.database_migration.DatabaseMigrationClient
+ oci.database_migration.DatabaseMigrationClientCompositeOperations
+
+--------
+ Models
+--------
+
+.. autosummary::
+ :toctree: database_migration/models
+ :nosignatures:
+ :template: autosummary/model_class.rst
+
+ oci.database_migration.models.AdminCredentials
+ oci.database_migration.models.Agent
+ oci.database_migration.models.AgentCollection
+ oci.database_migration.models.AgentImageCollection
+ oci.database_migration.models.AgentImageSummary
+ oci.database_migration.models.AgentSummary
+ oci.database_migration.models.ChangeAgentCompartmentDetails
+ oci.database_migration.models.ChangeConnectionCompartmentDetails
+ oci.database_migration.models.ChangeMigrationCompartmentDetails
+ oci.database_migration.models.CloneMigrationDetails
+ oci.database_migration.models.ConnectDescriptor
+ oci.database_migration.models.Connection
+ oci.database_migration.models.ConnectionCollection
+ oci.database_migration.models.ConnectionSummary
+ oci.database_migration.models.CreateAdminCredentials
+ oci.database_migration.models.CreateAgentDetails
+ oci.database_migration.models.CreateConnectDescriptor
+ oci.database_migration.models.CreateConnectionDetails
+ oci.database_migration.models.CreateDataPumpParameters
+ oci.database_migration.models.CreateDataPumpSettings
+ oci.database_migration.models.CreateDataTransferMediumDetails
+ oci.database_migration.models.CreateDatabaseLinkDetails
+ oci.database_migration.models.CreateDirectoryObject
+ oci.database_migration.models.CreateExtract
+ oci.database_migration.models.CreateGoldenGateDetails
+ oci.database_migration.models.CreateGoldenGateHub
+ oci.database_migration.models.CreateGoldenGateSettings
+ oci.database_migration.models.CreateMigrationDetails
+ oci.database_migration.models.CreateObjectStoreBucket
+ oci.database_migration.models.CreatePrivateEndpoint
+ oci.database_migration.models.CreateReplicat
+ oci.database_migration.models.CreateSshDetails
+ oci.database_migration.models.CreateVaultDetails
+ oci.database_migration.models.DataPumpParameters
+ oci.database_migration.models.DataPumpSettings
+ oci.database_migration.models.DataTransferMediumDetails
+ oci.database_migration.models.DatabaseLinkDetails
+ oci.database_migration.models.DatabaseObject
+ oci.database_migration.models.DirectoryObject
+ oci.database_migration.models.Extract
+ oci.database_migration.models.GenerateToken
+ oci.database_migration.models.GoldenGateDetails
+ oci.database_migration.models.GoldenGateHub
+ oci.database_migration.models.GoldenGateSettings
+ oci.database_migration.models.Job
+ oci.database_migration.models.JobCollection
+ oci.database_migration.models.JobOutputSummary
+ oci.database_migration.models.JobOutputSummaryCollection
+ oci.database_migration.models.JobSummary
+ oci.database_migration.models.MetadataRemap
+ oci.database_migration.models.Migration
+ oci.database_migration.models.MigrationCollection
+ oci.database_migration.models.MigrationJobProgressResource
+ oci.database_migration.models.MigrationJobProgressSummary
+ oci.database_migration.models.MigrationPhaseCollection
+ oci.database_migration.models.MigrationPhaseSummary
+ oci.database_migration.models.MigrationSummary
+ oci.database_migration.models.ObjectStoreBucket
+ oci.database_migration.models.ParLink
+ oci.database_migration.models.PhaseStatus
+ oci.database_migration.models.PrivateEndpointDetails
+ oci.database_migration.models.Replicat
+ oci.database_migration.models.ResumeJobDetails
+ oci.database_migration.models.SshDetails
+ oci.database_migration.models.StartMigrationDetails
+ oci.database_migration.models.UnsupportedDatabaseObject
+ oci.database_migration.models.UpdateAdminCredentials
+ oci.database_migration.models.UpdateAgentDetails
+ oci.database_migration.models.UpdateConnectDescriptor
+ oci.database_migration.models.UpdateConnectionDetails
+ oci.database_migration.models.UpdateDataPumpParameters
+ oci.database_migration.models.UpdateDataPumpSettings
+ oci.database_migration.models.UpdateDataTransferMediumDetails
+ oci.database_migration.models.UpdateDatabaseLinkDetails
+ oci.database_migration.models.UpdateDirectoryObject
+ oci.database_migration.models.UpdateExtract
+ oci.database_migration.models.UpdateGoldenGateDetails
+ oci.database_migration.models.UpdateGoldenGateHub
+ oci.database_migration.models.UpdateGoldenGateSettings
+ oci.database_migration.models.UpdateJobDetails
+ oci.database_migration.models.UpdateMigrationDetails
+ oci.database_migration.models.UpdateObjectStoreBucket
+ oci.database_migration.models.UpdatePrivateEndpoint
+ oci.database_migration.models.UpdateReplicat
+ oci.database_migration.models.UpdateSshDetails
+ oci.database_migration.models.UpdateVaultDetails
+ oci.database_migration.models.VaultDetails
+ oci.database_migration.models.WorkRequest
+ oci.database_migration.models.WorkRequestCollection
+ oci.database_migration.models.WorkRequestError
+ oci.database_migration.models.WorkRequestErrorCollection
+ oci.database_migration.models.WorkRequestLogEntry
+ oci.database_migration.models.WorkRequestLogEntryCollection
+ oci.database_migration.models.WorkRequestResource
+ oci.database_migration.models.WorkRequestSummary
diff --git a/docs/api/database_migration/client/oci.database_migration.DatabaseMigrationClient.rst b/docs/api/database_migration/client/oci.database_migration.DatabaseMigrationClient.rst
new file mode 100644
index 0000000000..15a719cf16
--- /dev/null
+++ b/docs/api/database_migration/client/oci.database_migration.DatabaseMigrationClient.rst
@@ -0,0 +1,8 @@
+DatabaseMigrationClient
+=======================
+
+.. currentmodule:: oci.database_migration
+
+.. autoclass:: DatabaseMigrationClient
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/database_migration/client/oci.database_migration.DatabaseMigrationClientCompositeOperations.rst b/docs/api/database_migration/client/oci.database_migration.DatabaseMigrationClientCompositeOperations.rst
new file mode 100644
index 0000000000..74d9dbfacd
--- /dev/null
+++ b/docs/api/database_migration/client/oci.database_migration.DatabaseMigrationClientCompositeOperations.rst
@@ -0,0 +1,8 @@
+DatabaseMigrationClientCompositeOperations
+==========================================
+
+.. currentmodule:: oci.database_migration
+
+.. autoclass:: DatabaseMigrationClientCompositeOperations
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.AdminCredentials.rst b/docs/api/database_migration/models/oci.database_migration.models.AdminCredentials.rst
new file mode 100644
index 0000000000..156be87c46
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.AdminCredentials.rst
@@ -0,0 +1,11 @@
+AdminCredentials
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: AdminCredentials
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.Agent.rst b/docs/api/database_migration/models/oci.database_migration.models.Agent.rst
new file mode 100644
index 0000000000..b8c9259b35
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.Agent.rst
@@ -0,0 +1,11 @@
+Agent
+=====
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: Agent
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.AgentCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.AgentCollection.rst
new file mode 100644
index 0000000000..0996be7a13
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.AgentCollection.rst
@@ -0,0 +1,11 @@
+AgentCollection
+===============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: AgentCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.AgentImageCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.AgentImageCollection.rst
new file mode 100644
index 0000000000..a5a36936b3
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.AgentImageCollection.rst
@@ -0,0 +1,11 @@
+AgentImageCollection
+====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: AgentImageCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.AgentImageSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.AgentImageSummary.rst
new file mode 100644
index 0000000000..0c930dd078
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.AgentImageSummary.rst
@@ -0,0 +1,11 @@
+AgentImageSummary
+=================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: AgentImageSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.AgentSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.AgentSummary.rst
new file mode 100644
index 0000000000..cd63a7ee8d
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.AgentSummary.rst
@@ -0,0 +1,11 @@
+AgentSummary
+============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: AgentSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ChangeAgentCompartmentDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.ChangeAgentCompartmentDetails.rst
new file mode 100644
index 0000000000..57f2b22536
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ChangeAgentCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeAgentCompartmentDetails
+=============================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ChangeAgentCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ChangeConnectionCompartmentDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.ChangeConnectionCompartmentDetails.rst
new file mode 100644
index 0000000000..cb61a582a7
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ChangeConnectionCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeConnectionCompartmentDetails
+==================================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ChangeConnectionCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ChangeMigrationCompartmentDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.ChangeMigrationCompartmentDetails.rst
new file mode 100644
index 0000000000..de5dd94a91
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ChangeMigrationCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeMigrationCompartmentDetails
+=================================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ChangeMigrationCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CloneMigrationDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CloneMigrationDetails.rst
new file mode 100644
index 0000000000..7ea25d402b
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CloneMigrationDetails.rst
@@ -0,0 +1,11 @@
+CloneMigrationDetails
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CloneMigrationDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ConnectDescriptor.rst b/docs/api/database_migration/models/oci.database_migration.models.ConnectDescriptor.rst
new file mode 100644
index 0000000000..982e6574b2
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ConnectDescriptor.rst
@@ -0,0 +1,11 @@
+ConnectDescriptor
+=================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ConnectDescriptor
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.Connection.rst b/docs/api/database_migration/models/oci.database_migration.models.Connection.rst
new file mode 100644
index 0000000000..9cd9e43ad4
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.Connection.rst
@@ -0,0 +1,11 @@
+Connection
+==========
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: Connection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ConnectionCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.ConnectionCollection.rst
new file mode 100644
index 0000000000..2d10c0ea97
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ConnectionCollection.rst
@@ -0,0 +1,11 @@
+ConnectionCollection
+====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ConnectionCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ConnectionSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.ConnectionSummary.rst
new file mode 100644
index 0000000000..74c7c45500
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ConnectionSummary.rst
@@ -0,0 +1,11 @@
+ConnectionSummary
+=================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ConnectionSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateAdminCredentials.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateAdminCredentials.rst
new file mode 100644
index 0000000000..ba4f83d427
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateAdminCredentials.rst
@@ -0,0 +1,11 @@
+CreateAdminCredentials
+======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateAdminCredentials
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateAgentDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateAgentDetails.rst
new file mode 100644
index 0000000000..b516939aee
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateAgentDetails.rst
@@ -0,0 +1,11 @@
+CreateAgentDetails
+==================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateAgentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateConnectDescriptor.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateConnectDescriptor.rst
new file mode 100644
index 0000000000..41cc43d6cd
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateConnectDescriptor.rst
@@ -0,0 +1,11 @@
+CreateConnectDescriptor
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateConnectDescriptor
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateConnectionDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateConnectionDetails.rst
new file mode 100644
index 0000000000..11a1e96842
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateConnectionDetails.rst
@@ -0,0 +1,11 @@
+CreateConnectionDetails
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateConnectionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateDataPumpParameters.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateDataPumpParameters.rst
new file mode 100644
index 0000000000..351188239d
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateDataPumpParameters.rst
@@ -0,0 +1,11 @@
+CreateDataPumpParameters
+========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateDataPumpParameters
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateDataPumpSettings.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateDataPumpSettings.rst
new file mode 100644
index 0000000000..2c3dff6e9d
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateDataPumpSettings.rst
@@ -0,0 +1,11 @@
+CreateDataPumpSettings
+======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateDataPumpSettings
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateDataTransferMediumDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateDataTransferMediumDetails.rst
new file mode 100644
index 0000000000..0cbd996566
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateDataTransferMediumDetails.rst
@@ -0,0 +1,11 @@
+CreateDataTransferMediumDetails
+===============================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateDataTransferMediumDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateDatabaseLinkDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateDatabaseLinkDetails.rst
new file mode 100644
index 0000000000..ff4896c462
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateDatabaseLinkDetails.rst
@@ -0,0 +1,11 @@
+CreateDatabaseLinkDetails
+=========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateDatabaseLinkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateDirectoryObject.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateDirectoryObject.rst
new file mode 100644
index 0000000000..681f4e9231
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateDirectoryObject.rst
@@ -0,0 +1,11 @@
+CreateDirectoryObject
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateDirectoryObject
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateExtract.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateExtract.rst
new file mode 100644
index 0000000000..ff792f3773
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateExtract.rst
@@ -0,0 +1,11 @@
+CreateExtract
+=============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateExtract
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateDetails.rst
new file mode 100644
index 0000000000..98566dd483
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateDetails.rst
@@ -0,0 +1,11 @@
+CreateGoldenGateDetails
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateGoldenGateDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateHub.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateHub.rst
new file mode 100644
index 0000000000..1a05def368
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateHub.rst
@@ -0,0 +1,11 @@
+CreateGoldenGateHub
+===================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateGoldenGateHub
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateSettings.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateSettings.rst
new file mode 100644
index 0000000000..03f36ca323
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateGoldenGateSettings.rst
@@ -0,0 +1,11 @@
+CreateGoldenGateSettings
+========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateGoldenGateSettings
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateMigrationDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateMigrationDetails.rst
new file mode 100644
index 0000000000..d30dd41e99
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateMigrationDetails.rst
@@ -0,0 +1,11 @@
+CreateMigrationDetails
+======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateMigrationDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateObjectStoreBucket.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateObjectStoreBucket.rst
new file mode 100644
index 0000000000..7a23e0f979
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateObjectStoreBucket.rst
@@ -0,0 +1,11 @@
+CreateObjectStoreBucket
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateObjectStoreBucket
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreatePrivateEndpoint.rst b/docs/api/database_migration/models/oci.database_migration.models.CreatePrivateEndpoint.rst
new file mode 100644
index 0000000000..b26ed3b222
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreatePrivateEndpoint.rst
@@ -0,0 +1,11 @@
+CreatePrivateEndpoint
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreatePrivateEndpoint
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateReplicat.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateReplicat.rst
new file mode 100644
index 0000000000..bced0daf58
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateReplicat.rst
@@ -0,0 +1,11 @@
+CreateReplicat
+==============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateReplicat
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateSshDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateSshDetails.rst
new file mode 100644
index 0000000000..2fc93dce8e
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateSshDetails.rst
@@ -0,0 +1,11 @@
+CreateSshDetails
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateSshDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.CreateVaultDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.CreateVaultDetails.rst
new file mode 100644
index 0000000000..1cbf8567f0
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.CreateVaultDetails.rst
@@ -0,0 +1,11 @@
+CreateVaultDetails
+==================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: CreateVaultDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.DataPumpParameters.rst b/docs/api/database_migration/models/oci.database_migration.models.DataPumpParameters.rst
new file mode 100644
index 0000000000..9ad6f96931
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.DataPumpParameters.rst
@@ -0,0 +1,11 @@
+DataPumpParameters
+==================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: DataPumpParameters
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.DataPumpSettings.rst b/docs/api/database_migration/models/oci.database_migration.models.DataPumpSettings.rst
new file mode 100644
index 0000000000..ea30e23802
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.DataPumpSettings.rst
@@ -0,0 +1,11 @@
+DataPumpSettings
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: DataPumpSettings
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.DataTransferMediumDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.DataTransferMediumDetails.rst
new file mode 100644
index 0000000000..5ce55cf758
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.DataTransferMediumDetails.rst
@@ -0,0 +1,11 @@
+DataTransferMediumDetails
+=========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: DataTransferMediumDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.DatabaseLinkDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.DatabaseLinkDetails.rst
new file mode 100644
index 0000000000..2ff55db41f
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.DatabaseLinkDetails.rst
@@ -0,0 +1,11 @@
+DatabaseLinkDetails
+===================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: DatabaseLinkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.DatabaseObject.rst b/docs/api/database_migration/models/oci.database_migration.models.DatabaseObject.rst
new file mode 100644
index 0000000000..ae4193f5ab
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.DatabaseObject.rst
@@ -0,0 +1,11 @@
+DatabaseObject
+==============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: DatabaseObject
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.DirectoryObject.rst b/docs/api/database_migration/models/oci.database_migration.models.DirectoryObject.rst
new file mode 100644
index 0000000000..1221ffc774
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.DirectoryObject.rst
@@ -0,0 +1,11 @@
+DirectoryObject
+===============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: DirectoryObject
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.Extract.rst b/docs/api/database_migration/models/oci.database_migration.models.Extract.rst
new file mode 100644
index 0000000000..ffa3eb6910
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.Extract.rst
@@ -0,0 +1,11 @@
+Extract
+=======
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: Extract
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.GenerateToken.rst b/docs/api/database_migration/models/oci.database_migration.models.GenerateToken.rst
new file mode 100644
index 0000000000..89f6e0b80f
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.GenerateToken.rst
@@ -0,0 +1,11 @@
+GenerateToken
+=============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: GenerateToken
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.GoldenGateDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.GoldenGateDetails.rst
new file mode 100644
index 0000000000..a3c4300159
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.GoldenGateDetails.rst
@@ -0,0 +1,11 @@
+GoldenGateDetails
+=================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: GoldenGateDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.GoldenGateHub.rst b/docs/api/database_migration/models/oci.database_migration.models.GoldenGateHub.rst
new file mode 100644
index 0000000000..50a4abe3e4
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.GoldenGateHub.rst
@@ -0,0 +1,11 @@
+GoldenGateHub
+=============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: GoldenGateHub
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.GoldenGateSettings.rst b/docs/api/database_migration/models/oci.database_migration.models.GoldenGateSettings.rst
new file mode 100644
index 0000000000..83ec2c80e7
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.GoldenGateSettings.rst
@@ -0,0 +1,11 @@
+GoldenGateSettings
+==================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: GoldenGateSettings
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.Job.rst b/docs/api/database_migration/models/oci.database_migration.models.Job.rst
new file mode 100644
index 0000000000..fe76dc70ce
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.Job.rst
@@ -0,0 +1,11 @@
+Job
+===
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: Job
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.JobCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.JobCollection.rst
new file mode 100644
index 0000000000..41f7c64b2f
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.JobCollection.rst
@@ -0,0 +1,11 @@
+JobCollection
+=============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: JobCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.JobOutputSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.JobOutputSummary.rst
new file mode 100644
index 0000000000..23d470bd20
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.JobOutputSummary.rst
@@ -0,0 +1,11 @@
+JobOutputSummary
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: JobOutputSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.JobOutputSummaryCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.JobOutputSummaryCollection.rst
new file mode 100644
index 0000000000..8ff9003f92
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.JobOutputSummaryCollection.rst
@@ -0,0 +1,11 @@
+JobOutputSummaryCollection
+==========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: JobOutputSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.JobSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.JobSummary.rst
new file mode 100644
index 0000000000..0652b65649
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.JobSummary.rst
@@ -0,0 +1,11 @@
+JobSummary
+==========
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: JobSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.MetadataRemap.rst b/docs/api/database_migration/models/oci.database_migration.models.MetadataRemap.rst
new file mode 100644
index 0000000000..db95409098
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.MetadataRemap.rst
@@ -0,0 +1,11 @@
+MetadataRemap
+=============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: MetadataRemap
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.Migration.rst b/docs/api/database_migration/models/oci.database_migration.models.Migration.rst
new file mode 100644
index 0000000000..867c931bea
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.Migration.rst
@@ -0,0 +1,11 @@
+Migration
+=========
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: Migration
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.MigrationCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.MigrationCollection.rst
new file mode 100644
index 0000000000..16b2e1e615
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.MigrationCollection.rst
@@ -0,0 +1,11 @@
+MigrationCollection
+===================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: MigrationCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.MigrationJobProgressResource.rst b/docs/api/database_migration/models/oci.database_migration.models.MigrationJobProgressResource.rst
new file mode 100644
index 0000000000..1fa785d135
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.MigrationJobProgressResource.rst
@@ -0,0 +1,11 @@
+MigrationJobProgressResource
+============================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: MigrationJobProgressResource
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.MigrationJobProgressSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.MigrationJobProgressSummary.rst
new file mode 100644
index 0000000000..dd869e8e26
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.MigrationJobProgressSummary.rst
@@ -0,0 +1,11 @@
+MigrationJobProgressSummary
+===========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: MigrationJobProgressSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.MigrationPhaseCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.MigrationPhaseCollection.rst
new file mode 100644
index 0000000000..668083e15b
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.MigrationPhaseCollection.rst
@@ -0,0 +1,11 @@
+MigrationPhaseCollection
+========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: MigrationPhaseCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.MigrationPhaseSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.MigrationPhaseSummary.rst
new file mode 100644
index 0000000000..302e3df584
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.MigrationPhaseSummary.rst
@@ -0,0 +1,11 @@
+MigrationPhaseSummary
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: MigrationPhaseSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.MigrationSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.MigrationSummary.rst
new file mode 100644
index 0000000000..fa5f3853ca
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.MigrationSummary.rst
@@ -0,0 +1,11 @@
+MigrationSummary
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: MigrationSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ObjectStoreBucket.rst b/docs/api/database_migration/models/oci.database_migration.models.ObjectStoreBucket.rst
new file mode 100644
index 0000000000..4a48ce6ee8
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ObjectStoreBucket.rst
@@ -0,0 +1,11 @@
+ObjectStoreBucket
+=================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ObjectStoreBucket
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ParLink.rst b/docs/api/database_migration/models/oci.database_migration.models.ParLink.rst
new file mode 100644
index 0000000000..e2ffc1cb92
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ParLink.rst
@@ -0,0 +1,11 @@
+ParLink
+=======
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ParLink
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.PhaseStatus.rst b/docs/api/database_migration/models/oci.database_migration.models.PhaseStatus.rst
new file mode 100644
index 0000000000..4dd824631b
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.PhaseStatus.rst
@@ -0,0 +1,11 @@
+PhaseStatus
+===========
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: PhaseStatus
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.PrivateEndpointDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.PrivateEndpointDetails.rst
new file mode 100644
index 0000000000..37dd6f6929
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.PrivateEndpointDetails.rst
@@ -0,0 +1,11 @@
+PrivateEndpointDetails
+======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: PrivateEndpointDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.Replicat.rst b/docs/api/database_migration/models/oci.database_migration.models.Replicat.rst
new file mode 100644
index 0000000000..bba4503c28
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.Replicat.rst
@@ -0,0 +1,11 @@
+Replicat
+========
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: Replicat
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.ResumeJobDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.ResumeJobDetails.rst
new file mode 100644
index 0000000000..6badce916b
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.ResumeJobDetails.rst
@@ -0,0 +1,11 @@
+ResumeJobDetails
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: ResumeJobDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.SshDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.SshDetails.rst
new file mode 100644
index 0000000000..9686f83d95
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.SshDetails.rst
@@ -0,0 +1,11 @@
+SshDetails
+==========
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: SshDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.StartMigrationDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.StartMigrationDetails.rst
new file mode 100644
index 0000000000..ffd77e0d98
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.StartMigrationDetails.rst
@@ -0,0 +1,11 @@
+StartMigrationDetails
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: StartMigrationDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UnsupportedDatabaseObject.rst b/docs/api/database_migration/models/oci.database_migration.models.UnsupportedDatabaseObject.rst
new file mode 100644
index 0000000000..703d1c3be4
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UnsupportedDatabaseObject.rst
@@ -0,0 +1,11 @@
+UnsupportedDatabaseObject
+=========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UnsupportedDatabaseObject
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateAdminCredentials.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateAdminCredentials.rst
new file mode 100644
index 0000000000..52765a3fb9
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateAdminCredentials.rst
@@ -0,0 +1,11 @@
+UpdateAdminCredentials
+======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateAdminCredentials
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateAgentDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateAgentDetails.rst
new file mode 100644
index 0000000000..ea91d20581
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateAgentDetails.rst
@@ -0,0 +1,11 @@
+UpdateAgentDetails
+==================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateAgentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateConnectDescriptor.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateConnectDescriptor.rst
new file mode 100644
index 0000000000..3c7dead958
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateConnectDescriptor.rst
@@ -0,0 +1,11 @@
+UpdateConnectDescriptor
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateConnectDescriptor
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateConnectionDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateConnectionDetails.rst
new file mode 100644
index 0000000000..ed6efe9e37
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateConnectionDetails.rst
@@ -0,0 +1,11 @@
+UpdateConnectionDetails
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateConnectionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateDataPumpParameters.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateDataPumpParameters.rst
new file mode 100644
index 0000000000..e90645684b
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateDataPumpParameters.rst
@@ -0,0 +1,11 @@
+UpdateDataPumpParameters
+========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateDataPumpParameters
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateDataPumpSettings.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateDataPumpSettings.rst
new file mode 100644
index 0000000000..62a08070d7
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateDataPumpSettings.rst
@@ -0,0 +1,11 @@
+UpdateDataPumpSettings
+======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateDataPumpSettings
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateDataTransferMediumDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateDataTransferMediumDetails.rst
new file mode 100644
index 0000000000..6aa9758ae1
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateDataTransferMediumDetails.rst
@@ -0,0 +1,11 @@
+UpdateDataTransferMediumDetails
+===============================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateDataTransferMediumDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateDatabaseLinkDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateDatabaseLinkDetails.rst
new file mode 100644
index 0000000000..568c1471f5
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateDatabaseLinkDetails.rst
@@ -0,0 +1,11 @@
+UpdateDatabaseLinkDetails
+=========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateDatabaseLinkDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateDirectoryObject.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateDirectoryObject.rst
new file mode 100644
index 0000000000..e1c4196bee
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateDirectoryObject.rst
@@ -0,0 +1,11 @@
+UpdateDirectoryObject
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateDirectoryObject
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateExtract.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateExtract.rst
new file mode 100644
index 0000000000..ee2de4fda4
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateExtract.rst
@@ -0,0 +1,11 @@
+UpdateExtract
+=============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateExtract
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateDetails.rst
new file mode 100644
index 0000000000..4857225bb4
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateDetails.rst
@@ -0,0 +1,11 @@
+UpdateGoldenGateDetails
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateGoldenGateDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateHub.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateHub.rst
new file mode 100644
index 0000000000..75c24964c3
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateHub.rst
@@ -0,0 +1,11 @@
+UpdateGoldenGateHub
+===================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateGoldenGateHub
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateSettings.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateSettings.rst
new file mode 100644
index 0000000000..96d7c35283
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateGoldenGateSettings.rst
@@ -0,0 +1,11 @@
+UpdateGoldenGateSettings
+========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateGoldenGateSettings
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateJobDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateJobDetails.rst
new file mode 100644
index 0000000000..3fd508a905
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateJobDetails.rst
@@ -0,0 +1,11 @@
+UpdateJobDetails
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateJobDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateMigrationDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateMigrationDetails.rst
new file mode 100644
index 0000000000..a38a770692
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateMigrationDetails.rst
@@ -0,0 +1,11 @@
+UpdateMigrationDetails
+======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateMigrationDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateObjectStoreBucket.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateObjectStoreBucket.rst
new file mode 100644
index 0000000000..0ab146af3c
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateObjectStoreBucket.rst
@@ -0,0 +1,11 @@
+UpdateObjectStoreBucket
+=======================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateObjectStoreBucket
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdatePrivateEndpoint.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdatePrivateEndpoint.rst
new file mode 100644
index 0000000000..9d497532c1
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdatePrivateEndpoint.rst
@@ -0,0 +1,11 @@
+UpdatePrivateEndpoint
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdatePrivateEndpoint
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateReplicat.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateReplicat.rst
new file mode 100644
index 0000000000..a4e3f1e5da
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateReplicat.rst
@@ -0,0 +1,11 @@
+UpdateReplicat
+==============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateReplicat
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateSshDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateSshDetails.rst
new file mode 100644
index 0000000000..22f29d46b0
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateSshDetails.rst
@@ -0,0 +1,11 @@
+UpdateSshDetails
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateSshDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.UpdateVaultDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.UpdateVaultDetails.rst
new file mode 100644
index 0000000000..ef0c340fdc
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.UpdateVaultDetails.rst
@@ -0,0 +1,11 @@
+UpdateVaultDetails
+==================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: UpdateVaultDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.VaultDetails.rst b/docs/api/database_migration/models/oci.database_migration.models.VaultDetails.rst
new file mode 100644
index 0000000000..a0489b88fa
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.VaultDetails.rst
@@ -0,0 +1,11 @@
+VaultDetails
+============
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: VaultDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequest.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequest.rst
new file mode 100644
index 0000000000..00cefbb03b
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequest.rst
@@ -0,0 +1,11 @@
+WorkRequest
+===========
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequest
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequestCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestCollection.rst
new file mode 100644
index 0000000000..18ff6deb7d
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestCollection
+=====================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequestCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequestError.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestError.rst
new file mode 100644
index 0000000000..d6b7cfa1b5
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestError.rst
@@ -0,0 +1,11 @@
+WorkRequestError
+================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequestError
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequestErrorCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestErrorCollection.rst
new file mode 100644
index 0000000000..f1e9716e0e
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestErrorCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestErrorCollection
+==========================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequestErrorCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequestLogEntry.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestLogEntry.rst
new file mode 100644
index 0000000000..9819c37b05
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestLogEntry.rst
@@ -0,0 +1,11 @@
+WorkRequestLogEntry
+===================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequestLogEntry
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequestLogEntryCollection.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestLogEntryCollection.rst
new file mode 100644
index 0000000000..65bc43090e
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestLogEntryCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestLogEntryCollection
+=============================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequestLogEntryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequestResource.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestResource.rst
new file mode 100644
index 0000000000..f87e889f38
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestResource.rst
@@ -0,0 +1,11 @@
+WorkRequestResource
+===================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequestResource
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database_migration/models/oci.database_migration.models.WorkRequestSummary.rst b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestSummary.rst
new file mode 100644
index 0000000000..9f6a2d216d
--- /dev/null
+++ b/docs/api/database_migration/models/oci.database_migration.models.WorkRequestSummary.rst
@@ -0,0 +1,11 @@
+WorkRequestSummary
+==================
+
+.. currentmodule:: oci.database_migration.models
+
+.. autoclass:: WorkRequestSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/functions.rst b/docs/api/functions.rst
index d8b9427119..27f5c95d60 100644
--- a/docs/api/functions.rst
+++ b/docs/api/functions.rst
@@ -22,10 +22,12 @@ Functions
oci.functions.models.Application
oci.functions.models.ApplicationSummary
+ oci.functions.models.ApplicationTraceConfig
oci.functions.models.ChangeApplicationCompartmentDetails
oci.functions.models.CreateApplicationDetails
oci.functions.models.CreateFunctionDetails
oci.functions.models.Function
oci.functions.models.FunctionSummary
+ oci.functions.models.FunctionTraceConfig
oci.functions.models.UpdateApplicationDetails
oci.functions.models.UpdateFunctionDetails
diff --git a/docs/api/functions/models/oci.functions.models.ApplicationTraceConfig.rst b/docs/api/functions/models/oci.functions.models.ApplicationTraceConfig.rst
new file mode 100644
index 0000000000..dab9141c4a
--- /dev/null
+++ b/docs/api/functions/models/oci.functions.models.ApplicationTraceConfig.rst
@@ -0,0 +1,11 @@
+ApplicationTraceConfig
+======================
+
+.. currentmodule:: oci.functions.models
+
+.. autoclass:: ApplicationTraceConfig
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/functions/models/oci.functions.models.FunctionTraceConfig.rst b/docs/api/functions/models/oci.functions.models.FunctionTraceConfig.rst
new file mode 100644
index 0000000000..63cd4e7ca5
--- /dev/null
+++ b/docs/api/functions/models/oci.functions.models.FunctionTraceConfig.rst
@@ -0,0 +1,11 @@
+FunctionTraceConfig
+===================
+
+.. currentmodule:: oci.functions.models
+
+.. autoclass:: FunctionTraceConfig
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/landing.rst b/docs/api/landing.rst
index 95fb3f7f03..004abb40ef 100644
--- a/docs/api/landing.rst
+++ b/docs/api/landing.rst
@@ -39,6 +39,7 @@ API Reference
* :doc:`Data Science `
* :doc:`Database `
* :doc:`Db Management `
+* :doc:`Database Migration `
* :doc:`DNS `
* :doc:`Appliance Export Job `
* :doc:`Shipping Vendors `
@@ -152,6 +153,7 @@ API Reference
data_science
database
database_management
+ database_migration
dns
dts
email
diff --git a/docs/api/ocvp.rst b/docs/api/ocvp.rst
index dadeb30de8..07ea3255e9 100644
--- a/docs/api/ocvp.rst
+++ b/docs/api/ocvp.rst
@@ -31,6 +31,8 @@ Ocvp
oci.ocvp.models.Sddc
oci.ocvp.models.SddcCollection
oci.ocvp.models.SddcSummary
+ oci.ocvp.models.SupportedSkuSummary
+ oci.ocvp.models.SupportedSkuSummaryCollection
oci.ocvp.models.SupportedVmwareSoftwareVersionCollection
oci.ocvp.models.SupportedVmwareSoftwareVersionSummary
oci.ocvp.models.UpdateEsxiHostDetails
diff --git a/docs/api/ocvp/models/oci.ocvp.models.SupportedSkuSummary.rst b/docs/api/ocvp/models/oci.ocvp.models.SupportedSkuSummary.rst
new file mode 100644
index 0000000000..f5ca3ca063
--- /dev/null
+++ b/docs/api/ocvp/models/oci.ocvp.models.SupportedSkuSummary.rst
@@ -0,0 +1,11 @@
+SupportedSkuSummary
+===================
+
+.. currentmodule:: oci.ocvp.models
+
+.. autoclass:: SupportedSkuSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/ocvp/models/oci.ocvp.models.SupportedSkuSummaryCollection.rst b/docs/api/ocvp/models/oci.ocvp.models.SupportedSkuSummaryCollection.rst
new file mode 100644
index 0000000000..612ea69ac6
--- /dev/null
+++ b/docs/api/ocvp/models/oci.ocvp.models.SupportedSkuSummaryCollection.rst
@@ -0,0 +1,11 @@
+SupportedSkuSummaryCollection
+=============================
+
+.. currentmodule:: oci.ocvp.models
+
+.. autoclass:: SupportedSkuSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi.rst b/docs/api/opsi.rst
index 9e54f3048c..de11393bbf 100644
--- a/docs/api/opsi.rst
+++ b/docs/api/opsi.rst
@@ -18,17 +18,82 @@ Opsi
:nosignatures:
:template: autosummary/model_class.rst
+ oci.opsi.models.AutonomousDatabaseInsight
+ oci.opsi.models.AutonomousDatabaseInsightSummary
+ oci.opsi.models.ChangeDatabaseInsightCompartmentDetails
+ oci.opsi.models.ChangeEnterpriseManagerBridgeCompartmentDetails
+ oci.opsi.models.ChangeHostInsightCompartmentDetails
+ oci.opsi.models.ConnectionDetails
+ oci.opsi.models.CreateDatabaseInsightDetails
+ oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails
+ oci.opsi.models.CreateEnterpriseManagerBridgeDetails
+ oci.opsi.models.CreateHostInsightDetails
+ oci.opsi.models.CreateMacsManagedExternalHostInsightDetails
+ oci.opsi.models.CredentialDetails
+ oci.opsi.models.CredentialsBySource
+ oci.opsi.models.DBExternalInstance
+ oci.opsi.models.DBExternalProperties
+ oci.opsi.models.DBOSConfigInstance
+ oci.opsi.models.DatabaseConfigurationMetricGroup
oci.opsi.models.DatabaseDetails
+ oci.opsi.models.DatabaseInsight
oci.opsi.models.DatabaseInsightSummary
oci.opsi.models.DatabaseInsights
oci.opsi.models.DatabaseInsightsCollection
+ oci.opsi.models.EmManagedExternalDatabaseInsight
+ oci.opsi.models.EmManagedExternalDatabaseInsightSummary
+ oci.opsi.models.EnableDatabaseInsightDetails
+ oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails
+ oci.opsi.models.EnableHostInsightDetails
+ oci.opsi.models.EnableMacsManagedExternalHostInsightDetails
+ oci.opsi.models.EnterpriseManagerBridge
+ oci.opsi.models.EnterpriseManagerBridgeCollection
+ oci.opsi.models.EnterpriseManagerBridgeSummary
+ oci.opsi.models.EnterpriseManagerBridges
oci.opsi.models.HistoricalDataItem
+ oci.opsi.models.HostConfigurationMetricGroup
+ oci.opsi.models.HostCpuHardwareConfiguration
+ oci.opsi.models.HostCpuStatistics
+ oci.opsi.models.HostCpuUsage
+ oci.opsi.models.HostDetails
+ oci.opsi.models.HostEntities
+ oci.opsi.models.HostHardwareConfiguration
+ oci.opsi.models.HostInsight
+ oci.opsi.models.HostInsightResourceStatisticsAggregation
+ oci.opsi.models.HostInsightSummary
+ oci.opsi.models.HostInsightSummaryCollection
+ oci.opsi.models.HostInsights
+ oci.opsi.models.HostInstanceMap
+ oci.opsi.models.HostMemoryConfiguration
+ oci.opsi.models.HostMemoryStatistics
+ oci.opsi.models.HostMemoryUsage
+ oci.opsi.models.HostNetworkActivitySummary
+ oci.opsi.models.HostNetworkConfiguration
+ oci.opsi.models.HostPerformanceMetricGroup
+ oci.opsi.models.HostProduct
+ oci.opsi.models.HostResourceAllocation
+ oci.opsi.models.HostResourceCapacityTrendAggregation
+ oci.opsi.models.HostResourceStatistics
+ oci.opsi.models.HostedEntityCollection
+ oci.opsi.models.HostedEntitySummary
+ oci.opsi.models.ImportableEnterpriseManagerEntity
+ oci.opsi.models.ImportableEnterpriseManagerEntityCollection
+ oci.opsi.models.IngestDatabaseConfigurationDetails
+ oci.opsi.models.IngestDatabaseConfigurationResponseDetails
+ oci.opsi.models.IngestHostConfigurationDetails
+ oci.opsi.models.IngestHostConfigurationResponseDetails
+ oci.opsi.models.IngestHostMetricsDetails
+ oci.opsi.models.IngestHostMetricsResponseDetails
oci.opsi.models.IngestSqlBucketDetails
oci.opsi.models.IngestSqlBucketResponseDetails
oci.opsi.models.IngestSqlPlanLinesDetails
oci.opsi.models.IngestSqlPlanLinesResponseDetails
oci.opsi.models.IngestSqlTextDetails
oci.opsi.models.IngestSqlTextResponseDetails
+ oci.opsi.models.MacsManagedExternalDatabaseInsight
+ oci.opsi.models.MacsManagedExternalDatabaseInsightSummary
+ oci.opsi.models.MacsManagedExternalHostInsight
+ oci.opsi.models.MacsManagedExternalHostInsightSummary
oci.opsi.models.ProjectedDataItem
oci.opsi.models.ResourceCapacityTrendAggregation
oci.opsi.models.ResourceInsightCurrentUtilization
@@ -69,3 +134,28 @@ Opsi
oci.opsi.models.SummarizeDatabaseInsightResourceUsageAggregation
oci.opsi.models.SummarizeDatabaseInsightResourceUsageTrendAggregationCollection
oci.opsi.models.SummarizeDatabaseInsightResourceUtilizationInsightAggregation
+ oci.opsi.models.SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection
+ oci.opsi.models.SummarizeHostInsightResourceCapacityTrendAggregationCollection
+ oci.opsi.models.SummarizeHostInsightResourceForecastTrendAggregation
+ oci.opsi.models.SummarizeHostInsightResourceStatisticsAggregationCollection
+ oci.opsi.models.SummarizeHostInsightResourceUsageAggregation
+ oci.opsi.models.SummarizeHostInsightResourceUsageTrendAggregationCollection
+ oci.opsi.models.SummarizeHostInsightResourceUtilizationInsightAggregation
+ oci.opsi.models.SummaryStatistics
+ oci.opsi.models.TablespaceUsageTrend
+ oci.opsi.models.TablespaceUsageTrendAggregation
+ oci.opsi.models.UpdateAutonomousDatabaseInsightDetails
+ oci.opsi.models.UpdateDatabaseInsightDetails
+ oci.opsi.models.UpdateEmManagedExternalDatabaseInsightDetails
+ oci.opsi.models.UpdateEnterpriseManagerBridgeDetails
+ oci.opsi.models.UpdateHostInsightDetails
+ oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails
+ oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails
+ oci.opsi.models.WorkRequest
+ oci.opsi.models.WorkRequestCollection
+ oci.opsi.models.WorkRequestError
+ oci.opsi.models.WorkRequestErrorCollection
+ oci.opsi.models.WorkRequestLogEntry
+ oci.opsi.models.WorkRequestLogEntryCollection
+ oci.opsi.models.WorkRequestResource
+ oci.opsi.models.WorkRequests
diff --git a/docs/api/opsi/models/oci.opsi.models.AutonomousDatabaseInsight.rst b/docs/api/opsi/models/oci.opsi.models.AutonomousDatabaseInsight.rst
new file mode 100644
index 0000000000..37597e02b3
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.AutonomousDatabaseInsight.rst
@@ -0,0 +1,11 @@
+AutonomousDatabaseInsight
+=========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: AutonomousDatabaseInsight
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.AutonomousDatabaseInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.AutonomousDatabaseInsightSummary.rst
new file mode 100644
index 0000000000..9e245297ce
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.AutonomousDatabaseInsightSummary.rst
@@ -0,0 +1,11 @@
+AutonomousDatabaseInsightSummary
+================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: AutonomousDatabaseInsightSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.ChangeDatabaseInsightCompartmentDetails.rst b/docs/api/opsi/models/oci.opsi.models.ChangeDatabaseInsightCompartmentDetails.rst
new file mode 100644
index 0000000000..9d724a125c
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ChangeDatabaseInsightCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeDatabaseInsightCompartmentDetails
+=======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ChangeDatabaseInsightCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.ChangeEnterpriseManagerBridgeCompartmentDetails.rst b/docs/api/opsi/models/oci.opsi.models.ChangeEnterpriseManagerBridgeCompartmentDetails.rst
new file mode 100644
index 0000000000..c676314470
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ChangeEnterpriseManagerBridgeCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeEnterpriseManagerBridgeCompartmentDetails
+===============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ChangeEnterpriseManagerBridgeCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.ChangeHostInsightCompartmentDetails.rst b/docs/api/opsi/models/oci.opsi.models.ChangeHostInsightCompartmentDetails.rst
new file mode 100644
index 0000000000..996c2c836e
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ChangeHostInsightCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeHostInsightCompartmentDetails
+===================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ChangeHostInsightCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.ConnectionDetails.rst b/docs/api/opsi/models/oci.opsi.models.ConnectionDetails.rst
new file mode 100644
index 0000000000..03e0e677f7
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ConnectionDetails.rst
@@ -0,0 +1,11 @@
+ConnectionDetails
+=================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ConnectionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CreateDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..285009d2f6
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CreateDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+CreateDatabaseInsightDetails
+============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CreateDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..c752a2d905
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+CreateEmManagedExternalDatabaseInsightDetails
+=============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CreateEmManagedExternalDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CreateEnterpriseManagerBridgeDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateEnterpriseManagerBridgeDetails.rst
new file mode 100644
index 0000000000..813ad7f0d1
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CreateEnterpriseManagerBridgeDetails.rst
@@ -0,0 +1,11 @@
+CreateEnterpriseManagerBridgeDetails
+====================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CreateEnterpriseManagerBridgeDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CreateHostInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateHostInsightDetails.rst
new file mode 100644
index 0000000000..af5023e5ab
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CreateHostInsightDetails.rst
@@ -0,0 +1,11 @@
+CreateHostInsightDetails
+========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CreateHostInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedExternalHostInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedExternalHostInsightDetails.rst
new file mode 100644
index 0000000000..57c1a61132
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedExternalHostInsightDetails.rst
@@ -0,0 +1,11 @@
+CreateMacsManagedExternalHostInsightDetails
+===========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CreateMacsManagedExternalHostInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CredentialDetails.rst b/docs/api/opsi/models/oci.opsi.models.CredentialDetails.rst
new file mode 100644
index 0000000000..a0428f43de
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CredentialDetails.rst
@@ -0,0 +1,11 @@
+CredentialDetails
+=================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CredentialDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CredentialsBySource.rst b/docs/api/opsi/models/oci.opsi.models.CredentialsBySource.rst
new file mode 100644
index 0000000000..cb658563cb
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CredentialsBySource.rst
@@ -0,0 +1,11 @@
+CredentialsBySource
+===================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CredentialsBySource
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.DBExternalInstance.rst b/docs/api/opsi/models/oci.opsi.models.DBExternalInstance.rst
new file mode 100644
index 0000000000..15bbf18602
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.DBExternalInstance.rst
@@ -0,0 +1,11 @@
+DBExternalInstance
+==================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: DBExternalInstance
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.DBExternalProperties.rst b/docs/api/opsi/models/oci.opsi.models.DBExternalProperties.rst
new file mode 100644
index 0000000000..651ab31657
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.DBExternalProperties.rst
@@ -0,0 +1,11 @@
+DBExternalProperties
+====================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: DBExternalProperties
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.DBOSConfigInstance.rst b/docs/api/opsi/models/oci.opsi.models.DBOSConfigInstance.rst
new file mode 100644
index 0000000000..b8edeb3dc6
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.DBOSConfigInstance.rst
@@ -0,0 +1,11 @@
+DBOSConfigInstance
+==================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: DBOSConfigInstance
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.DatabaseConfigurationMetricGroup.rst b/docs/api/opsi/models/oci.opsi.models.DatabaseConfigurationMetricGroup.rst
new file mode 100644
index 0000000000..4676205880
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.DatabaseConfigurationMetricGroup.rst
@@ -0,0 +1,11 @@
+DatabaseConfigurationMetricGroup
+================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: DatabaseConfigurationMetricGroup
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.DatabaseInsight.rst b/docs/api/opsi/models/oci.opsi.models.DatabaseInsight.rst
new file mode 100644
index 0000000000..0bac4fc3f6
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.DatabaseInsight.rst
@@ -0,0 +1,11 @@
+DatabaseInsight
+===============
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: DatabaseInsight
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EmManagedExternalDatabaseInsight.rst b/docs/api/opsi/models/oci.opsi.models.EmManagedExternalDatabaseInsight.rst
new file mode 100644
index 0000000000..ecaa9d0764
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EmManagedExternalDatabaseInsight.rst
@@ -0,0 +1,11 @@
+EmManagedExternalDatabaseInsight
+================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EmManagedExternalDatabaseInsight
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EmManagedExternalDatabaseInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.EmManagedExternalDatabaseInsightSummary.rst
new file mode 100644
index 0000000000..4088600bae
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EmManagedExternalDatabaseInsightSummary.rst
@@ -0,0 +1,11 @@
+EmManagedExternalDatabaseInsightSummary
+=======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EmManagedExternalDatabaseInsightSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnableDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnableDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..febd330c5c
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnableDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+EnableDatabaseInsightDetails
+============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnableDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..6bcf1c645e
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+EnableEmManagedExternalDatabaseInsightDetails
+=============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnableEmManagedExternalDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnableHostInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnableHostInsightDetails.rst
new file mode 100644
index 0000000000..75087c6213
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnableHostInsightDetails.rst
@@ -0,0 +1,11 @@
+EnableHostInsightDetails
+========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnableHostInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnableMacsManagedExternalHostInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnableMacsManagedExternalHostInsightDetails.rst
new file mode 100644
index 0000000000..2576e4942e
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnableMacsManagedExternalHostInsightDetails.rst
@@ -0,0 +1,11 @@
+EnableMacsManagedExternalHostInsightDetails
+===========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnableMacsManagedExternalHostInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridge.rst b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridge.rst
new file mode 100644
index 0000000000..85c6808a2d
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridge.rst
@@ -0,0 +1,11 @@
+EnterpriseManagerBridge
+=======================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnterpriseManagerBridge
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridgeCollection.rst b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridgeCollection.rst
new file mode 100644
index 0000000000..4521f355f4
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridgeCollection.rst
@@ -0,0 +1,11 @@
+EnterpriseManagerBridgeCollection
+=================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnterpriseManagerBridgeCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridgeSummary.rst b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridgeSummary.rst
new file mode 100644
index 0000000000..2fb5ead24c
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridgeSummary.rst
@@ -0,0 +1,11 @@
+EnterpriseManagerBridgeSummary
+==============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnterpriseManagerBridgeSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridges.rst b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridges.rst
new file mode 100644
index 0000000000..2d282b8b2a
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnterpriseManagerBridges.rst
@@ -0,0 +1,11 @@
+EnterpriseManagerBridges
+========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnterpriseManagerBridges
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostConfigurationMetricGroup.rst b/docs/api/opsi/models/oci.opsi.models.HostConfigurationMetricGroup.rst
new file mode 100644
index 0000000000..841f1738d7
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostConfigurationMetricGroup.rst
@@ -0,0 +1,11 @@
+HostConfigurationMetricGroup
+============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostConfigurationMetricGroup
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostCpuHardwareConfiguration.rst b/docs/api/opsi/models/oci.opsi.models.HostCpuHardwareConfiguration.rst
new file mode 100644
index 0000000000..eb6a29d15d
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostCpuHardwareConfiguration.rst
@@ -0,0 +1,11 @@
+HostCpuHardwareConfiguration
+============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostCpuHardwareConfiguration
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostCpuStatistics.rst b/docs/api/opsi/models/oci.opsi.models.HostCpuStatistics.rst
new file mode 100644
index 0000000000..66d52823ac
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostCpuStatistics.rst
@@ -0,0 +1,11 @@
+HostCpuStatistics
+=================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostCpuStatistics
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostCpuUsage.rst b/docs/api/opsi/models/oci.opsi.models.HostCpuUsage.rst
new file mode 100644
index 0000000000..2db3dc6a5f
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostCpuUsage.rst
@@ -0,0 +1,11 @@
+HostCpuUsage
+============
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostCpuUsage
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostDetails.rst b/docs/api/opsi/models/oci.opsi.models.HostDetails.rst
new file mode 100644
index 0000000000..66eac36719
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostDetails.rst
@@ -0,0 +1,11 @@
+HostDetails
+===========
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostEntities.rst b/docs/api/opsi/models/oci.opsi.models.HostEntities.rst
new file mode 100644
index 0000000000..7102a2bb4c
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostEntities.rst
@@ -0,0 +1,11 @@
+HostEntities
+============
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostEntities
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostHardwareConfiguration.rst b/docs/api/opsi/models/oci.opsi.models.HostHardwareConfiguration.rst
new file mode 100644
index 0000000000..45eaccbda9
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostHardwareConfiguration.rst
@@ -0,0 +1,11 @@
+HostHardwareConfiguration
+=========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostHardwareConfiguration
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostInsight.rst b/docs/api/opsi/models/oci.opsi.models.HostInsight.rst
new file mode 100644
index 0000000000..43beee05e0
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostInsight.rst
@@ -0,0 +1,11 @@
+HostInsight
+===========
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostInsight
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostInsightResourceStatisticsAggregation.rst b/docs/api/opsi/models/oci.opsi.models.HostInsightResourceStatisticsAggregation.rst
new file mode 100644
index 0000000000..28178106df
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostInsightResourceStatisticsAggregation.rst
@@ -0,0 +1,11 @@
+HostInsightResourceStatisticsAggregation
+========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostInsightResourceStatisticsAggregation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.HostInsightSummary.rst
new file mode 100644
index 0000000000..a79186f035
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostInsightSummary.rst
@@ -0,0 +1,11 @@
+HostInsightSummary
+==================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostInsightSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostInsightSummaryCollection.rst b/docs/api/opsi/models/oci.opsi.models.HostInsightSummaryCollection.rst
new file mode 100644
index 0000000000..25b6d9382e
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostInsightSummaryCollection.rst
@@ -0,0 +1,11 @@
+HostInsightSummaryCollection
+============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostInsightSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostInsights.rst b/docs/api/opsi/models/oci.opsi.models.HostInsights.rst
new file mode 100644
index 0000000000..78c4b7a045
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostInsights.rst
@@ -0,0 +1,11 @@
+HostInsights
+============
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostInsights
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostInstanceMap.rst b/docs/api/opsi/models/oci.opsi.models.HostInstanceMap.rst
new file mode 100644
index 0000000000..b87b38142f
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostInstanceMap.rst
@@ -0,0 +1,11 @@
+HostInstanceMap
+===============
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostInstanceMap
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostMemoryConfiguration.rst b/docs/api/opsi/models/oci.opsi.models.HostMemoryConfiguration.rst
new file mode 100644
index 0000000000..fdb3182158
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostMemoryConfiguration.rst
@@ -0,0 +1,11 @@
+HostMemoryConfiguration
+=======================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostMemoryConfiguration
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostMemoryStatistics.rst b/docs/api/opsi/models/oci.opsi.models.HostMemoryStatistics.rst
new file mode 100644
index 0000000000..bc216ead9f
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostMemoryStatistics.rst
@@ -0,0 +1,11 @@
+HostMemoryStatistics
+====================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostMemoryStatistics
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostMemoryUsage.rst b/docs/api/opsi/models/oci.opsi.models.HostMemoryUsage.rst
new file mode 100644
index 0000000000..e32b199277
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostMemoryUsage.rst
@@ -0,0 +1,11 @@
+HostMemoryUsage
+===============
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostMemoryUsage
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostNetworkActivitySummary.rst b/docs/api/opsi/models/oci.opsi.models.HostNetworkActivitySummary.rst
new file mode 100644
index 0000000000..1a9cda9d52
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostNetworkActivitySummary.rst
@@ -0,0 +1,11 @@
+HostNetworkActivitySummary
+==========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostNetworkActivitySummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostNetworkConfiguration.rst b/docs/api/opsi/models/oci.opsi.models.HostNetworkConfiguration.rst
new file mode 100644
index 0000000000..f1f18eb0fd
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostNetworkConfiguration.rst
@@ -0,0 +1,11 @@
+HostNetworkConfiguration
+========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostNetworkConfiguration
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostPerformanceMetricGroup.rst b/docs/api/opsi/models/oci.opsi.models.HostPerformanceMetricGroup.rst
new file mode 100644
index 0000000000..b92e38db02
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostPerformanceMetricGroup.rst
@@ -0,0 +1,11 @@
+HostPerformanceMetricGroup
+==========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostPerformanceMetricGroup
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostProduct.rst b/docs/api/opsi/models/oci.opsi.models.HostProduct.rst
new file mode 100644
index 0000000000..d6e9e3327f
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostProduct.rst
@@ -0,0 +1,11 @@
+HostProduct
+===========
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostProduct
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostResourceAllocation.rst b/docs/api/opsi/models/oci.opsi.models.HostResourceAllocation.rst
new file mode 100644
index 0000000000..1024230c07
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostResourceAllocation.rst
@@ -0,0 +1,11 @@
+HostResourceAllocation
+======================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostResourceAllocation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostResourceCapacityTrendAggregation.rst b/docs/api/opsi/models/oci.opsi.models.HostResourceCapacityTrendAggregation.rst
new file mode 100644
index 0000000000..5787fd41b3
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostResourceCapacityTrendAggregation.rst
@@ -0,0 +1,11 @@
+HostResourceCapacityTrendAggregation
+====================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostResourceCapacityTrendAggregation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostResourceStatistics.rst b/docs/api/opsi/models/oci.opsi.models.HostResourceStatistics.rst
new file mode 100644
index 0000000000..94c169e959
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostResourceStatistics.rst
@@ -0,0 +1,11 @@
+HostResourceStatistics
+======================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostResourceStatistics
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostedEntityCollection.rst b/docs/api/opsi/models/oci.opsi.models.HostedEntityCollection.rst
new file mode 100644
index 0000000000..0cfb718ebb
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostedEntityCollection.rst
@@ -0,0 +1,11 @@
+HostedEntityCollection
+======================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostedEntityCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.HostedEntitySummary.rst b/docs/api/opsi/models/oci.opsi.models.HostedEntitySummary.rst
new file mode 100644
index 0000000000..8d7cdc874f
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.HostedEntitySummary.rst
@@ -0,0 +1,11 @@
+HostedEntitySummary
+===================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: HostedEntitySummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.ImportableEnterpriseManagerEntity.rst b/docs/api/opsi/models/oci.opsi.models.ImportableEnterpriseManagerEntity.rst
new file mode 100644
index 0000000000..d7bb61521b
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ImportableEnterpriseManagerEntity.rst
@@ -0,0 +1,11 @@
+ImportableEnterpriseManagerEntity
+=================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ImportableEnterpriseManagerEntity
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.ImportableEnterpriseManagerEntityCollection.rst b/docs/api/opsi/models/oci.opsi.models.ImportableEnterpriseManagerEntityCollection.rst
new file mode 100644
index 0000000000..e4b5771378
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ImportableEnterpriseManagerEntityCollection.rst
@@ -0,0 +1,11 @@
+ImportableEnterpriseManagerEntityCollection
+===========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ImportableEnterpriseManagerEntityCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.IngestDatabaseConfigurationDetails.rst b/docs/api/opsi/models/oci.opsi.models.IngestDatabaseConfigurationDetails.rst
new file mode 100644
index 0000000000..5c348c75f0
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.IngestDatabaseConfigurationDetails.rst
@@ -0,0 +1,11 @@
+IngestDatabaseConfigurationDetails
+==================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: IngestDatabaseConfigurationDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.IngestDatabaseConfigurationResponseDetails.rst b/docs/api/opsi/models/oci.opsi.models.IngestDatabaseConfigurationResponseDetails.rst
new file mode 100644
index 0000000000..b852f8ae3d
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.IngestDatabaseConfigurationResponseDetails.rst
@@ -0,0 +1,11 @@
+IngestDatabaseConfigurationResponseDetails
+==========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: IngestDatabaseConfigurationResponseDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.IngestHostConfigurationDetails.rst b/docs/api/opsi/models/oci.opsi.models.IngestHostConfigurationDetails.rst
new file mode 100644
index 0000000000..b1f64eaad0
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.IngestHostConfigurationDetails.rst
@@ -0,0 +1,11 @@
+IngestHostConfigurationDetails
+==============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: IngestHostConfigurationDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.IngestHostConfigurationResponseDetails.rst b/docs/api/opsi/models/oci.opsi.models.IngestHostConfigurationResponseDetails.rst
new file mode 100644
index 0000000000..9035dd5e65
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.IngestHostConfigurationResponseDetails.rst
@@ -0,0 +1,11 @@
+IngestHostConfigurationResponseDetails
+======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: IngestHostConfigurationResponseDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.IngestHostMetricsDetails.rst b/docs/api/opsi/models/oci.opsi.models.IngestHostMetricsDetails.rst
new file mode 100644
index 0000000000..736d923c58
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.IngestHostMetricsDetails.rst
@@ -0,0 +1,11 @@
+IngestHostMetricsDetails
+========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: IngestHostMetricsDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.IngestHostMetricsResponseDetails.rst b/docs/api/opsi/models/oci.opsi.models.IngestHostMetricsResponseDetails.rst
new file mode 100644
index 0000000000..26f21114c2
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.IngestHostMetricsResponseDetails.rst
@@ -0,0 +1,11 @@
+IngestHostMetricsResponseDetails
+================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: IngestHostMetricsResponseDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalDatabaseInsight.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalDatabaseInsight.rst
new file mode 100644
index 0000000000..7a9a6f029c
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalDatabaseInsight.rst
@@ -0,0 +1,11 @@
+MacsManagedExternalDatabaseInsight
+==================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: MacsManagedExternalDatabaseInsight
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalDatabaseInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalDatabaseInsightSummary.rst
new file mode 100644
index 0000000000..5629f123f5
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalDatabaseInsightSummary.rst
@@ -0,0 +1,11 @@
+MacsManagedExternalDatabaseInsightSummary
+=========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: MacsManagedExternalDatabaseInsightSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalHostInsight.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalHostInsight.rst
new file mode 100644
index 0000000000..b67ca284d3
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalHostInsight.rst
@@ -0,0 +1,11 @@
+MacsManagedExternalHostInsight
+==============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: MacsManagedExternalHostInsight
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalHostInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalHostInsightSummary.rst
new file mode 100644
index 0000000000..debe65a9fa
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedExternalHostInsightSummary.rst
@@ -0,0 +1,11 @@
+MacsManagedExternalHostInsightSummary
+=====================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: MacsManagedExternalHostInsightSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.rst b/docs/api/opsi/models/oci.opsi.models.SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.rst
new file mode 100644
index 0000000000..c202126dc4
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.rst
@@ -0,0 +1,11 @@
+SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection
+=================================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceCapacityTrendAggregationCollection.rst b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceCapacityTrendAggregationCollection.rst
new file mode 100644
index 0000000000..810204d648
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceCapacityTrendAggregationCollection.rst
@@ -0,0 +1,11 @@
+SummarizeHostInsightResourceCapacityTrendAggregationCollection
+==============================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummarizeHostInsightResourceCapacityTrendAggregationCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceForecastTrendAggregation.rst b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceForecastTrendAggregation.rst
new file mode 100644
index 0000000000..f690d2b51b
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceForecastTrendAggregation.rst
@@ -0,0 +1,11 @@
+SummarizeHostInsightResourceForecastTrendAggregation
+====================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummarizeHostInsightResourceForecastTrendAggregation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceStatisticsAggregationCollection.rst b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceStatisticsAggregationCollection.rst
new file mode 100644
index 0000000000..a22c736d99
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceStatisticsAggregationCollection.rst
@@ -0,0 +1,11 @@
+SummarizeHostInsightResourceStatisticsAggregationCollection
+===========================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummarizeHostInsightResourceStatisticsAggregationCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUsageAggregation.rst b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUsageAggregation.rst
new file mode 100644
index 0000000000..97fef54763
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUsageAggregation.rst
@@ -0,0 +1,11 @@
+SummarizeHostInsightResourceUsageAggregation
+============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummarizeHostInsightResourceUsageAggregation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUsageTrendAggregationCollection.rst b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUsageTrendAggregationCollection.rst
new file mode 100644
index 0000000000..83f72662a2
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUsageTrendAggregationCollection.rst
@@ -0,0 +1,11 @@
+SummarizeHostInsightResourceUsageTrendAggregationCollection
+===========================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummarizeHostInsightResourceUsageTrendAggregationCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUtilizationInsightAggregation.rst b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUtilizationInsightAggregation.rst
new file mode 100644
index 0000000000..9dc29b57c6
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummarizeHostInsightResourceUtilizationInsightAggregation.rst
@@ -0,0 +1,11 @@
+SummarizeHostInsightResourceUtilizationInsightAggregation
+=========================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummarizeHostInsightResourceUtilizationInsightAggregation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.SummaryStatistics.rst b/docs/api/opsi/models/oci.opsi.models.SummaryStatistics.rst
new file mode 100644
index 0000000000..2f3936c27b
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.SummaryStatistics.rst
@@ -0,0 +1,11 @@
+SummaryStatistics
+=================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: SummaryStatistics
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.TablespaceUsageTrend.rst b/docs/api/opsi/models/oci.opsi.models.TablespaceUsageTrend.rst
new file mode 100644
index 0000000000..214f8c742c
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.TablespaceUsageTrend.rst
@@ -0,0 +1,11 @@
+TablespaceUsageTrend
+====================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: TablespaceUsageTrend
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.TablespaceUsageTrendAggregation.rst b/docs/api/opsi/models/oci.opsi.models.TablespaceUsageTrendAggregation.rst
new file mode 100644
index 0000000000..792d1d9455
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.TablespaceUsageTrendAggregation.rst
@@ -0,0 +1,11 @@
+TablespaceUsageTrendAggregation
+===============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: TablespaceUsageTrendAggregation
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateAutonomousDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateAutonomousDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..013683e378
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateAutonomousDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+UpdateAutonomousDatabaseInsightDetails
+======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateAutonomousDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..9e7c9ef673
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+UpdateDatabaseInsightDetails
+============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateEmManagedExternalDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateEmManagedExternalDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..8fa98dba04
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateEmManagedExternalDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+UpdateEmManagedExternalDatabaseInsightDetails
+=============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateEmManagedExternalDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateEnterpriseManagerBridgeDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateEnterpriseManagerBridgeDetails.rst
new file mode 100644
index 0000000000..603b3e36cb
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateEnterpriseManagerBridgeDetails.rst
@@ -0,0 +1,11 @@
+UpdateEnterpriseManagerBridgeDetails
+====================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateEnterpriseManagerBridgeDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateHostInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateHostInsightDetails.rst
new file mode 100644
index 0000000000..b9751da699
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateHostInsightDetails.rst
@@ -0,0 +1,11 @@
+UpdateHostInsightDetails
+========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateHostInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..a873bd49b2
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+UpdateMacsManagedExternalDatabaseInsightDetails
+===============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateMacsManagedExternalDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails.rst
new file mode 100644
index 0000000000..cc6e6a4645
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails.rst
@@ -0,0 +1,11 @@
+UpdateMacsManagedExternalHostInsightDetails
+===========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateMacsManagedExternalHostInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequest.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequest.rst
new file mode 100644
index 0000000000..f8c18cc220
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequest.rst
@@ -0,0 +1,11 @@
+WorkRequest
+===========
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequest
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequestCollection.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequestCollection.rst
new file mode 100644
index 0000000000..17019be590
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequestCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestCollection
+=====================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequestCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequestError.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequestError.rst
new file mode 100644
index 0000000000..755f4d5f25
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequestError.rst
@@ -0,0 +1,11 @@
+WorkRequestError
+================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequestError
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequestErrorCollection.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequestErrorCollection.rst
new file mode 100644
index 0000000000..40047884f6
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequestErrorCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestErrorCollection
+==========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequestErrorCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequestLogEntry.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequestLogEntry.rst
new file mode 100644
index 0000000000..ce3a8abdd0
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequestLogEntry.rst
@@ -0,0 +1,11 @@
+WorkRequestLogEntry
+===================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequestLogEntry
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequestLogEntryCollection.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequestLogEntryCollection.rst
new file mode 100644
index 0000000000..a8980f27d8
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequestLogEntryCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestLogEntryCollection
+=============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequestLogEntryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequestResource.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequestResource.rst
new file mode 100644
index 0000000000..4cfb6f7916
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequestResource.rst
@@ -0,0 +1,11 @@
+WorkRequestResource
+===================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequestResource
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.WorkRequests.rst b/docs/api/opsi/models/oci.opsi.models.WorkRequests.rst
new file mode 100644
index 0000000000..89de94525a
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.WorkRequests.rst
@@ -0,0 +1,11 @@
+WorkRequests
+============
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: WorkRequests
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/sch.rst b/docs/api/sch.rst
index 4144d95079..2b3d0c63a4 100644
--- a/docs/api/sch.rst
+++ b/docs/api/sch.rst
@@ -20,7 +20,9 @@ Sch
oci.sch.models.ChangeServiceConnectorCompartmentDetails
oci.sch.models.CreateServiceConnectorDetails
+ oci.sch.models.FunctionTaskDetails
oci.sch.models.FunctionsTargetDetails
+ oci.sch.models.LatestStreamingCursor
oci.sch.models.LogRuleTaskDetails
oci.sch.models.LogSource
oci.sch.models.LoggingAnalyticsTargetDetails
@@ -32,9 +34,12 @@ Sch
oci.sch.models.ServiceConnectorCollection
oci.sch.models.ServiceConnectorSummary
oci.sch.models.SourceDetails
+ oci.sch.models.StreamingCursorDetails
+ oci.sch.models.StreamingSourceDetails
oci.sch.models.StreamingTargetDetails
oci.sch.models.TargetDetails
oci.sch.models.TaskDetails
+ oci.sch.models.TrimHorizonStreamingCursor
oci.sch.models.UpdateServiceConnectorDetails
oci.sch.models.WorkRequest
oci.sch.models.WorkRequestCollection
diff --git a/docs/api/sch/models/oci.sch.models.FunctionTaskDetails.rst b/docs/api/sch/models/oci.sch.models.FunctionTaskDetails.rst
new file mode 100644
index 0000000000..39c84af641
--- /dev/null
+++ b/docs/api/sch/models/oci.sch.models.FunctionTaskDetails.rst
@@ -0,0 +1,11 @@
+FunctionTaskDetails
+===================
+
+.. currentmodule:: oci.sch.models
+
+.. autoclass:: FunctionTaskDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/sch/models/oci.sch.models.LatestStreamingCursor.rst b/docs/api/sch/models/oci.sch.models.LatestStreamingCursor.rst
new file mode 100644
index 0000000000..b435ef1b76
--- /dev/null
+++ b/docs/api/sch/models/oci.sch.models.LatestStreamingCursor.rst
@@ -0,0 +1,11 @@
+LatestStreamingCursor
+=====================
+
+.. currentmodule:: oci.sch.models
+
+.. autoclass:: LatestStreamingCursor
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/sch/models/oci.sch.models.StreamingCursorDetails.rst b/docs/api/sch/models/oci.sch.models.StreamingCursorDetails.rst
new file mode 100644
index 0000000000..19ef44b329
--- /dev/null
+++ b/docs/api/sch/models/oci.sch.models.StreamingCursorDetails.rst
@@ -0,0 +1,11 @@
+StreamingCursorDetails
+======================
+
+.. currentmodule:: oci.sch.models
+
+.. autoclass:: StreamingCursorDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/sch/models/oci.sch.models.StreamingSourceDetails.rst b/docs/api/sch/models/oci.sch.models.StreamingSourceDetails.rst
new file mode 100644
index 0000000000..bb7b22b48a
--- /dev/null
+++ b/docs/api/sch/models/oci.sch.models.StreamingSourceDetails.rst
@@ -0,0 +1,11 @@
+StreamingSourceDetails
+======================
+
+.. currentmodule:: oci.sch.models
+
+.. autoclass:: StreamingSourceDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/sch/models/oci.sch.models.TrimHorizonStreamingCursor.rst b/docs/api/sch/models/oci.sch.models.TrimHorizonStreamingCursor.rst
new file mode 100644
index 0000000000..24dcd5699d
--- /dev/null
+++ b/docs/api/sch/models/oci.sch.models.TrimHorizonStreamingCursor.rst
@@ -0,0 +1,11 @@
+TrimHorizonStreamingCursor
+==========================
+
+.. currentmodule:: oci.sch.models
+
+.. autoclass:: TrimHorizonStreamingCursor
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/examples/container_image_signing/example.py b/examples/container_image_signing/example.py
index 866ff1e1e4..500360fe03 100644
--- a/examples/container_image_signing/example.py
+++ b/examples/container_image_signing/example.py
@@ -1,3 +1,7 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
import logging
from examples.container_image_signing.utils import sign_and_upload_container_image_signature_metadata
diff --git a/examples/container_image_signing/utils.py b/examples/container_image_signing/utils.py
index ca5d930031..d081b5c161 100644
--- a/examples/container_image_signing/utils.py
+++ b/examples/container_image_signing/utils.py
@@ -1,5 +1,6 @@
# coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
from __future__ import absolute_import
diff --git a/src/oci/__init__.py b/src/oci/__init__.py
index 9f93fa3a8a..d926464f86 100644
--- a/src/oci/__init__.py
+++ b/src/oci/__init__.py
@@ -2,7 +2,7 @@
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
-from . import analytics, announcements_service, apigateway, apm_control_plane, apm_synthetics, apm_traces, application_migration, artifacts, audit, autoscaling, bds, blockchain, budget, cims, cloud_guard, compute_instance_agent, container_engine, core, data_catalog, data_flow, data_integration, data_safe, data_science, database, database_management, dns, dts, email, events, file_storage, functions, golden_gate, healthchecks, identity, integration, key_management, limits, load_balancer, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, monitoring, mysql, network_load_balancer, nosql, object_storage, oce, ocvp, oda, ons, opsi, optimizer, os_management, resource_manager, resource_search, rover, sch, secrets, streaming, tenant_manager_control_plane, usage_api, vault, vulnerability_scanning, waas, work_requests
+from . import analytics, announcements_service, apigateway, apm_control_plane, apm_synthetics, apm_traces, application_migration, artifacts, audit, autoscaling, bds, blockchain, budget, cims, cloud_guard, compute_instance_agent, container_engine, core, data_catalog, data_flow, data_integration, data_safe, data_science, database, database_management, database_migration, dns, dts, email, events, file_storage, functions, golden_gate, healthchecks, identity, integration, key_management, limits, load_balancer, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, monitoring, mysql, network_load_balancer, nosql, object_storage, oce, ocvp, oda, ons, opsi, optimizer, os_management, resource_manager, resource_search, rover, sch, secrets, streaming, tenant_manager_control_plane, usage_api, vault, vulnerability_scanning, waas, work_requests
from . import auth, config, constants, decorators, exceptions, regions, pagination, retry, fips
from .base_client import BaseClient
from .request import Request
@@ -15,5 +15,5 @@
__all__ = [
"BaseClient", "Error", "Request", "Response", "Signer", "config", "constants", "decorators", "exceptions", "regions", "wait_until", "pagination", "auth", "retry", "fips",
- "analytics", "announcements_service", "apigateway", "apm_control_plane", "apm_synthetics", "apm_traces", "application_migration", "artifacts", "audit", "autoscaling", "bds", "blockchain", "budget", "cims", "cloud_guard", "compute_instance_agent", "container_engine", "core", "data_catalog", "data_flow", "data_integration", "data_safe", "data_science", "database", "database_management", "dns", "dts", "email", "events", "file_storage", "functions", "golden_gate", "healthchecks", "identity", "integration", "key_management", "limits", "load_balancer", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "monitoring", "mysql", "network_load_balancer", "nosql", "object_storage", "oce", "ocvp", "oda", "ons", "opsi", "optimizer", "os_management", "resource_manager", "resource_search", "rover", "sch", "secrets", "streaming", "tenant_manager_control_plane", "usage_api", "vault", "vulnerability_scanning", "waas", "work_requests"
+ "analytics", "announcements_service", "apigateway", "apm_control_plane", "apm_synthetics", "apm_traces", "application_migration", "artifacts", "audit", "autoscaling", "bds", "blockchain", "budget", "cims", "cloud_guard", "compute_instance_agent", "container_engine", "core", "data_catalog", "data_flow", "data_integration", "data_safe", "data_science", "database", "database_management", "database_migration", "dns", "dts", "email", "events", "file_storage", "functions", "golden_gate", "healthchecks", "identity", "integration", "key_management", "limits", "load_balancer", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "monitoring", "mysql", "network_load_balancer", "nosql", "object_storage", "oce", "ocvp", "oda", "ons", "opsi", "optimizer", "os_management", "resource_manager", "resource_search", "rover", "sch", "secrets", "streaming", "tenant_manager_control_plane", "usage_api", "vault", "vulnerability_scanning", "waas", "work_requests"
]
diff --git a/src/oci/apigateway/models/__init__.py b/src/oci/apigateway/models/__init__.py
index f76bcc9a3b..e15233af28 100644
--- a/src/oci/apigateway/models/__init__.py
+++ b/src/oci/apigateway/models/__init__.py
@@ -23,6 +23,7 @@
from .api_validations import ApiValidations
from .authentication_only_route_authorization_policy import AuthenticationOnlyRouteAuthorizationPolicy
from .authentication_policy import AuthenticationPolicy
+from .body_validation_request_policy import BodyValidationRequestPolicy
from .certificate import Certificate
from .certificate_collection import CertificateCollection
from .certificate_summary import CertificateSummary
@@ -30,6 +31,7 @@
from .change_certificate_compartment_details import ChangeCertificateCompartmentDetails
from .change_deployment_compartment_details import ChangeDeploymentCompartmentDetails
from .change_gateway_compartment_details import ChangeGatewayCompartmentDetails
+from .content_validation import ContentValidation
from .cors_policy import CorsPolicy
from .create_api_details import CreateApiDetails
from .create_certificate_details import CreateCertificateDetails
@@ -41,30 +43,43 @@
from .deployment_collection import DeploymentCollection
from .deployment_summary import DeploymentSummary
from .execution_log_policy import ExecutionLogPolicy
+from .external_resp_cache import ExternalRespCache
from .filter_header_policy import FilterHeaderPolicy
from .filter_header_policy_item import FilterHeaderPolicyItem
from .filter_query_parameter_policy import FilterQueryParameterPolicy
from .filter_query_parameter_policy_item import FilterQueryParameterPolicyItem
+from .fixed_ttl_response_cache_store_policy import FixedTTLResponseCacheStorePolicy
from .gateway import Gateway
from .gateway_collection import GatewayCollection
from .gateway_summary import GatewaySummary
from .http_backend import HTTPBackend
from .header_field_specification import HeaderFieldSpecification
from .header_transformation_policy import HeaderTransformationPolicy
+from .header_validation_item import HeaderValidationItem
+from .header_validation_request_policy import HeaderValidationRequestPolicy
from .ip_address import IpAddress
from .json_web_key import JsonWebKey
from .json_web_token_claim import JsonWebTokenClaim
from .jwt_authentication_policy import JwtAuthenticationPolicy
+from .no_cache import NoCache
+from .no_content_validation import NoContentValidation
from .oracle_function_backend import OracleFunctionBackend
from .pem_encoded_public_key import PemEncodedPublicKey
from .public_key_set import PublicKeySet
from .query_parameter_transformation_policy import QueryParameterTransformationPolicy
+from .query_parameter_validation_item import QueryParameterValidationItem
+from .query_parameter_validation_request_policy import QueryParameterValidationRequestPolicy
from .rate_limiting_policy import RateLimitingPolicy
from .remote_json_web_key_set import RemoteJsonWebKeySet
from .rename_header_policy import RenameHeaderPolicy
from .rename_header_policy_item import RenameHeaderPolicyItem
from .rename_query_parameter_policy import RenameQueryParameterPolicy
from .rename_query_parameter_policy_item import RenameQueryParameterPolicyItem
+from .request_parameter_validation import RequestParameterValidation
+from .response_cache_details import ResponseCacheDetails
+from .response_cache_lookup_policy import ResponseCacheLookupPolicy
+from .response_cache_resp_server import ResponseCacheRespServer
+from .response_cache_store_policy import ResponseCacheStorePolicy
from .route_authorization_policy import RouteAuthorizationPolicy
from .sdk import Sdk
from .sdk_collection import SdkCollection
@@ -78,6 +93,7 @@
from .set_header_policy_item import SetHeaderPolicyItem
from .set_query_parameter_policy import SetQueryParameterPolicy
from .set_query_parameter_policy_item import SetQueryParameterPolicyItem
+from .simple_lookup_policy import SimpleLookupPolicy
from .static_public_key import StaticPublicKey
from .static_public_key_set import StaticPublicKeySet
from .stock_response_backend import StockResponseBackend
@@ -86,6 +102,7 @@
from .update_deployment_details import UpdateDeploymentDetails
from .update_gateway_details import UpdateGatewayDetails
from .update_sdk_details import UpdateSdkDetails
+from .validation_request_policy import ValidationRequestPolicy
from .work_request import WorkRequest
from .work_request_collection import WorkRequestCollection
from .work_request_error import WorkRequestError
@@ -116,6 +133,7 @@
"ApiValidations": ApiValidations,
"AuthenticationOnlyRouteAuthorizationPolicy": AuthenticationOnlyRouteAuthorizationPolicy,
"AuthenticationPolicy": AuthenticationPolicy,
+ "BodyValidationRequestPolicy": BodyValidationRequestPolicy,
"Certificate": Certificate,
"CertificateCollection": CertificateCollection,
"CertificateSummary": CertificateSummary,
@@ -123,6 +141,7 @@
"ChangeCertificateCompartmentDetails": ChangeCertificateCompartmentDetails,
"ChangeDeploymentCompartmentDetails": ChangeDeploymentCompartmentDetails,
"ChangeGatewayCompartmentDetails": ChangeGatewayCompartmentDetails,
+ "ContentValidation": ContentValidation,
"CorsPolicy": CorsPolicy,
"CreateApiDetails": CreateApiDetails,
"CreateCertificateDetails": CreateCertificateDetails,
@@ -134,30 +153,43 @@
"DeploymentCollection": DeploymentCollection,
"DeploymentSummary": DeploymentSummary,
"ExecutionLogPolicy": ExecutionLogPolicy,
+ "ExternalRespCache": ExternalRespCache,
"FilterHeaderPolicy": FilterHeaderPolicy,
"FilterHeaderPolicyItem": FilterHeaderPolicyItem,
"FilterQueryParameterPolicy": FilterQueryParameterPolicy,
"FilterQueryParameterPolicyItem": FilterQueryParameterPolicyItem,
+ "FixedTTLResponseCacheStorePolicy": FixedTTLResponseCacheStorePolicy,
"Gateway": Gateway,
"GatewayCollection": GatewayCollection,
"GatewaySummary": GatewaySummary,
"HTTPBackend": HTTPBackend,
"HeaderFieldSpecification": HeaderFieldSpecification,
"HeaderTransformationPolicy": HeaderTransformationPolicy,
+ "HeaderValidationItem": HeaderValidationItem,
+ "HeaderValidationRequestPolicy": HeaderValidationRequestPolicy,
"IpAddress": IpAddress,
"JsonWebKey": JsonWebKey,
"JsonWebTokenClaim": JsonWebTokenClaim,
"JwtAuthenticationPolicy": JwtAuthenticationPolicy,
+ "NoCache": NoCache,
+ "NoContentValidation": NoContentValidation,
"OracleFunctionBackend": OracleFunctionBackend,
"PemEncodedPublicKey": PemEncodedPublicKey,
"PublicKeySet": PublicKeySet,
"QueryParameterTransformationPolicy": QueryParameterTransformationPolicy,
+ "QueryParameterValidationItem": QueryParameterValidationItem,
+ "QueryParameterValidationRequestPolicy": QueryParameterValidationRequestPolicy,
"RateLimitingPolicy": RateLimitingPolicy,
"RemoteJsonWebKeySet": RemoteJsonWebKeySet,
"RenameHeaderPolicy": RenameHeaderPolicy,
"RenameHeaderPolicyItem": RenameHeaderPolicyItem,
"RenameQueryParameterPolicy": RenameQueryParameterPolicy,
"RenameQueryParameterPolicyItem": RenameQueryParameterPolicyItem,
+ "RequestParameterValidation": RequestParameterValidation,
+ "ResponseCacheDetails": ResponseCacheDetails,
+ "ResponseCacheLookupPolicy": ResponseCacheLookupPolicy,
+ "ResponseCacheRespServer": ResponseCacheRespServer,
+ "ResponseCacheStorePolicy": ResponseCacheStorePolicy,
"RouteAuthorizationPolicy": RouteAuthorizationPolicy,
"Sdk": Sdk,
"SdkCollection": SdkCollection,
@@ -171,6 +203,7 @@
"SetHeaderPolicyItem": SetHeaderPolicyItem,
"SetQueryParameterPolicy": SetQueryParameterPolicy,
"SetQueryParameterPolicyItem": SetQueryParameterPolicyItem,
+ "SimpleLookupPolicy": SimpleLookupPolicy,
"StaticPublicKey": StaticPublicKey,
"StaticPublicKeySet": StaticPublicKeySet,
"StockResponseBackend": StockResponseBackend,
@@ -179,6 +212,7 @@
"UpdateDeploymentDetails": UpdateDeploymentDetails,
"UpdateGatewayDetails": UpdateGatewayDetails,
"UpdateSdkDetails": UpdateSdkDetails,
+ "ValidationRequestPolicy": ValidationRequestPolicy,
"WorkRequest": WorkRequest,
"WorkRequestCollection": WorkRequestCollection,
"WorkRequestError": WorkRequestError,
diff --git a/src/oci/apigateway/models/api_specification_route_request_policies.py b/src/oci/apigateway/models/api_specification_route_request_policies.py
index 40fecd3e1e..fc4151906f 100644
--- a/src/oci/apigateway/models/api_specification_route_request_policies.py
+++ b/src/oci/apigateway/models/api_specification_route_request_policies.py
@@ -26,6 +26,18 @@ def __init__(self, **kwargs):
The value to assign to the cors property of this ApiSpecificationRouteRequestPolicies.
:type cors: oci.apigateway.models.CorsPolicy
+ :param query_parameter_validations:
+ The value to assign to the query_parameter_validations property of this ApiSpecificationRouteRequestPolicies.
+ :type query_parameter_validations: oci.apigateway.models.QueryParameterValidationRequestPolicy
+
+ :param header_validations:
+ The value to assign to the header_validations property of this ApiSpecificationRouteRequestPolicies.
+ :type header_validations: oci.apigateway.models.HeaderValidationRequestPolicy
+
+ :param body_validation:
+ The value to assign to the body_validation property of this ApiSpecificationRouteRequestPolicies.
+ :type body_validation: oci.apigateway.models.BodyValidationRequestPolicy
+
:param header_transformations:
The value to assign to the header_transformations property of this ApiSpecificationRouteRequestPolicies.
:type header_transformations: oci.apigateway.models.HeaderTransformationPolicy
@@ -34,25 +46,41 @@ def __init__(self, **kwargs):
The value to assign to the query_parameter_transformations property of this ApiSpecificationRouteRequestPolicies.
:type query_parameter_transformations: oci.apigateway.models.QueryParameterTransformationPolicy
+ :param response_cache_lookup:
+ The value to assign to the response_cache_lookup property of this ApiSpecificationRouteRequestPolicies.
+ :type response_cache_lookup: oci.apigateway.models.ResponseCacheLookupPolicy
+
"""
self.swagger_types = {
'authorization': 'RouteAuthorizationPolicy',
'cors': 'CorsPolicy',
+ 'query_parameter_validations': 'QueryParameterValidationRequestPolicy',
+ 'header_validations': 'HeaderValidationRequestPolicy',
+ 'body_validation': 'BodyValidationRequestPolicy',
'header_transformations': 'HeaderTransformationPolicy',
- 'query_parameter_transformations': 'QueryParameterTransformationPolicy'
+ 'query_parameter_transformations': 'QueryParameterTransformationPolicy',
+ 'response_cache_lookup': 'ResponseCacheLookupPolicy'
}
self.attribute_map = {
'authorization': 'authorization',
'cors': 'cors',
+ 'query_parameter_validations': 'queryParameterValidations',
+ 'header_validations': 'headerValidations',
+ 'body_validation': 'bodyValidation',
'header_transformations': 'headerTransformations',
- 'query_parameter_transformations': 'queryParameterTransformations'
+ 'query_parameter_transformations': 'queryParameterTransformations',
+ 'response_cache_lookup': 'responseCacheLookup'
}
self._authorization = None
self._cors = None
+ self._query_parameter_validations = None
+ self._header_validations = None
+ self._body_validation = None
self._header_transformations = None
self._query_parameter_transformations = None
+ self._response_cache_lookup = None
@property
def authorization(self):
@@ -94,6 +122,66 @@ def cors(self, cors):
"""
self._cors = cors
+ @property
+ def query_parameter_validations(self):
+ """
+ Gets the query_parameter_validations of this ApiSpecificationRouteRequestPolicies.
+
+ :return: The query_parameter_validations of this ApiSpecificationRouteRequestPolicies.
+ :rtype: oci.apigateway.models.QueryParameterValidationRequestPolicy
+ """
+ return self._query_parameter_validations
+
+ @query_parameter_validations.setter
+ def query_parameter_validations(self, query_parameter_validations):
+ """
+ Sets the query_parameter_validations of this ApiSpecificationRouteRequestPolicies.
+
+ :param query_parameter_validations: The query_parameter_validations of this ApiSpecificationRouteRequestPolicies.
+ :type: oci.apigateway.models.QueryParameterValidationRequestPolicy
+ """
+ self._query_parameter_validations = query_parameter_validations
+
+ @property
+ def header_validations(self):
+ """
+ Gets the header_validations of this ApiSpecificationRouteRequestPolicies.
+
+ :return: The header_validations of this ApiSpecificationRouteRequestPolicies.
+ :rtype: oci.apigateway.models.HeaderValidationRequestPolicy
+ """
+ return self._header_validations
+
+ @header_validations.setter
+ def header_validations(self, header_validations):
+ """
+ Sets the header_validations of this ApiSpecificationRouteRequestPolicies.
+
+ :param header_validations: The header_validations of this ApiSpecificationRouteRequestPolicies.
+ :type: oci.apigateway.models.HeaderValidationRequestPolicy
+ """
+ self._header_validations = header_validations
+
+ @property
+ def body_validation(self):
+ """
+ Gets the body_validation of this ApiSpecificationRouteRequestPolicies.
+
+ :return: The body_validation of this ApiSpecificationRouteRequestPolicies.
+ :rtype: oci.apigateway.models.BodyValidationRequestPolicy
+ """
+ return self._body_validation
+
+ @body_validation.setter
+ def body_validation(self, body_validation):
+ """
+ Sets the body_validation of this ApiSpecificationRouteRequestPolicies.
+
+ :param body_validation: The body_validation of this ApiSpecificationRouteRequestPolicies.
+ :type: oci.apigateway.models.BodyValidationRequestPolicy
+ """
+ self._body_validation = body_validation
+
@property
def header_transformations(self):
"""
@@ -134,6 +222,26 @@ def query_parameter_transformations(self, query_parameter_transformations):
"""
self._query_parameter_transformations = query_parameter_transformations
+ @property
+ def response_cache_lookup(self):
+ """
+ Gets the response_cache_lookup of this ApiSpecificationRouteRequestPolicies.
+
+ :return: The response_cache_lookup of this ApiSpecificationRouteRequestPolicies.
+ :rtype: oci.apigateway.models.ResponseCacheLookupPolicy
+ """
+ return self._response_cache_lookup
+
+ @response_cache_lookup.setter
+ def response_cache_lookup(self, response_cache_lookup):
+ """
+ Sets the response_cache_lookup of this ApiSpecificationRouteRequestPolicies.
+
+ :param response_cache_lookup: The response_cache_lookup of this ApiSpecificationRouteRequestPolicies.
+ :type: oci.apigateway.models.ResponseCacheLookupPolicy
+ """
+ self._response_cache_lookup = response_cache_lookup
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/apigateway/models/api_specification_route_response_policies.py b/src/oci/apigateway/models/api_specification_route_response_policies.py
index 930884879a..4b38b7a8a6 100644
--- a/src/oci/apigateway/models/api_specification_route_response_policies.py
+++ b/src/oci/apigateway/models/api_specification_route_response_policies.py
@@ -22,16 +22,23 @@ def __init__(self, **kwargs):
The value to assign to the header_transformations property of this ApiSpecificationRouteResponsePolicies.
:type header_transformations: oci.apigateway.models.HeaderTransformationPolicy
+ :param response_cache_store:
+ The value to assign to the response_cache_store property of this ApiSpecificationRouteResponsePolicies.
+ :type response_cache_store: oci.apigateway.models.ResponseCacheStorePolicy
+
"""
self.swagger_types = {
- 'header_transformations': 'HeaderTransformationPolicy'
+ 'header_transformations': 'HeaderTransformationPolicy',
+ 'response_cache_store': 'ResponseCacheStorePolicy'
}
self.attribute_map = {
- 'header_transformations': 'headerTransformations'
+ 'header_transformations': 'headerTransformations',
+ 'response_cache_store': 'responseCacheStore'
}
self._header_transformations = None
+ self._response_cache_store = None
@property
def header_transformations(self):
@@ -53,6 +60,26 @@ def header_transformations(self, header_transformations):
"""
self._header_transformations = header_transformations
+ @property
+ def response_cache_store(self):
+ """
+ Gets the response_cache_store of this ApiSpecificationRouteResponsePolicies.
+
+ :return: The response_cache_store of this ApiSpecificationRouteResponsePolicies.
+ :rtype: oci.apigateway.models.ResponseCacheStorePolicy
+ """
+ return self._response_cache_store
+
+ @response_cache_store.setter
+ def response_cache_store(self, response_cache_store):
+ """
+ Sets the response_cache_store of this ApiSpecificationRouteResponsePolicies.
+
+ :param response_cache_store: The response_cache_store of this ApiSpecificationRouteResponsePolicies.
+ :type: oci.apigateway.models.ResponseCacheStorePolicy
+ """
+ self._response_cache_store = response_cache_store
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/apigateway/models/body_validation_request_policy.py b/src/oci/apigateway/models/body_validation_request_policy.py
new file mode 100644
index 0000000000..6473d103eb
--- /dev/null
+++ b/src/oci/apigateway/models/body_validation_request_policy.py
@@ -0,0 +1,193 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class BodyValidationRequestPolicy(object):
+ """
+ Validate the payload body of the incoming API requests on a specific route.
+ """
+
+ #: A constant which can be used with the validation_mode property of a BodyValidationRequestPolicy.
+ #: This constant has a value of "ENFORCING"
+ VALIDATION_MODE_ENFORCING = "ENFORCING"
+
+ #: A constant which can be used with the validation_mode property of a BodyValidationRequestPolicy.
+ #: This constant has a value of "PERMISSIVE"
+ VALIDATION_MODE_PERMISSIVE = "PERMISSIVE"
+
+ #: A constant which can be used with the validation_mode property of a BodyValidationRequestPolicy.
+ #: This constant has a value of "DISABLED"
+ VALIDATION_MODE_DISABLED = "DISABLED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new BodyValidationRequestPolicy object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param required:
+ The value to assign to the required property of this BodyValidationRequestPolicy.
+ :type required: bool
+
+ :param content:
+ The value to assign to the content property of this BodyValidationRequestPolicy.
+ :type content: dict(str, ContentValidation)
+
+ :param validation_mode:
+ The value to assign to the validation_mode property of this BodyValidationRequestPolicy.
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED"
+ :type validation_mode: str
+
+ """
+ self.swagger_types = {
+ 'required': 'bool',
+ 'content': 'dict(str, ContentValidation)',
+ 'validation_mode': 'str'
+ }
+
+ self.attribute_map = {
+ 'required': 'required',
+ 'content': 'content',
+ 'validation_mode': 'validationMode'
+ }
+
+ self._required = None
+ self._content = None
+ self._validation_mode = None
+
+ @property
+ def required(self):
+ """
+ Gets the required of this BodyValidationRequestPolicy.
+ Determines if the request body is required in the request.
+
+
+ :return: The required of this BodyValidationRequestPolicy.
+ :rtype: bool
+ """
+ return self._required
+
+ @required.setter
+ def required(self, required):
+ """
+ Sets the required of this BodyValidationRequestPolicy.
+ Determines if the request body is required in the request.
+
+
+ :param required: The required of this BodyValidationRequestPolicy.
+ :type: bool
+ """
+ self._required = required
+
+ @property
+ def content(self):
+ """
+ **[Required]** Gets the content of this BodyValidationRequestPolicy.
+ The content of the request body. The key is a `media type range`__
+ subset restricted to the following schema
+
+ key ::= (
+ / ( \"*\" \"/\" \"*\" )
+ / ( type \"/\" \"*\" )
+ / ( type \"/\" subtype )
+ )
+
+ For requests that match multiple keys, only the most specific key is applicable.
+ e.g. `text/plain` overrides `text/*`
+
+ __ https://tools.ietf.org/html/rfc7231#appendix-D
+
+
+ :return: The content of this BodyValidationRequestPolicy.
+ :rtype: dict(str, ContentValidation)
+ """
+ return self._content
+
+ @content.setter
+ def content(self, content):
+ """
+ Sets the content of this BodyValidationRequestPolicy.
+ The content of the request body. The key is a `media type range`__
+ subset restricted to the following schema
+
+ key ::= (
+ / ( \"*\" \"/\" \"*\" )
+ / ( type \"/\" \"*\" )
+ / ( type \"/\" subtype )
+ )
+
+ For requests that match multiple keys, only the most specific key is applicable.
+ e.g. `text/plain` overrides `text/*`
+
+ __ https://tools.ietf.org/html/rfc7231#appendix-D
+
+
+ :param content: The content of this BodyValidationRequestPolicy.
+ :type: dict(str, ContentValidation)
+ """
+ self._content = content
+
+ @property
+ def validation_mode(self):
+ """
+ Gets the validation_mode of this BodyValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED"
+
+
+ :return: The validation_mode of this BodyValidationRequestPolicy.
+ :rtype: str
+ """
+ return self._validation_mode
+
+ @validation_mode.setter
+ def validation_mode(self, validation_mode):
+ """
+ Sets the validation_mode of this BodyValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+
+ :param validation_mode: The validation_mode of this BodyValidationRequestPolicy.
+ :type: str
+ """
+ allowed_values = ["ENFORCING", "PERMISSIVE", "DISABLED"]
+ if not value_allowed_none_or_none_sentinel(validation_mode, allowed_values):
+ raise ValueError(
+ "Invalid value for `validation_mode`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._validation_mode = validation_mode
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/content_validation.py b/src/oci/apigateway/models/content_validation.py
new file mode 100644
index 0000000000..46f9843eb1
--- /dev/null
+++ b/src/oci/apigateway/models/content_validation.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ContentValidation(object):
+ """
+ Content validation properties.
+ """
+
+ #: A constant which can be used with the validation_type property of a ContentValidation.
+ #: This constant has a value of "NONE"
+ VALIDATION_TYPE_NONE = "NONE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ContentValidation object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.apigateway.models.NoContentValidation`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param validation_type:
+ The value to assign to the validation_type property of this ContentValidation.
+ Allowed values for this property are: "NONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type validation_type: str
+
+ """
+ self.swagger_types = {
+ 'validation_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'validation_type': 'validationType'
+ }
+
+ self._validation_type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['validationType']
+
+ if type == 'NONE':
+ return 'NoContentValidation'
+ else:
+ return 'ContentValidation'
+
+ @property
+ def validation_type(self):
+ """
+ **[Required]** Gets the validation_type of this ContentValidation.
+ Validation type defines the content validation method.
+
+ Make the validation to first parse the body as the respective format.
+
+ Allowed values for this property are: "NONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The validation_type of this ContentValidation.
+ :rtype: str
+ """
+ return self._validation_type
+
+ @validation_type.setter
+ def validation_type(self, validation_type):
+ """
+ Sets the validation_type of this ContentValidation.
+ Validation type defines the content validation method.
+
+ Make the validation to first parse the body as the respective format.
+
+
+ :param validation_type: The validation_type of this ContentValidation.
+ :type: str
+ """
+ allowed_values = ["NONE"]
+ if not value_allowed_none_or_none_sentinel(validation_type, allowed_values):
+ validation_type = 'UNKNOWN_ENUM_VALUE'
+ self._validation_type = validation_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/create_gateway_details.py b/src/oci/apigateway/models/create_gateway_details.py
index d8ccbbadaf..781220c56e 100644
--- a/src/oci/apigateway/models/create_gateway_details.py
+++ b/src/oci/apigateway/models/create_gateway_details.py
@@ -38,6 +38,10 @@ def __init__(self, **kwargs):
The value to assign to the certificate_id property of this CreateGatewayDetails.
:type certificate_id: str
+ :param response_cache_details:
+ The value to assign to the response_cache_details property of this CreateGatewayDetails.
+ :type response_cache_details: oci.apigateway.models.ResponseCacheDetails
+
:param freeform_tags:
The value to assign to the freeform_tags property of this CreateGatewayDetails.
:type freeform_tags: dict(str, str)
@@ -53,6 +57,7 @@ def __init__(self, **kwargs):
'endpoint_type': 'str',
'subnet_id': 'str',
'certificate_id': 'str',
+ 'response_cache_details': 'ResponseCacheDetails',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -63,6 +68,7 @@ def __init__(self, **kwargs):
'endpoint_type': 'endpointType',
'subnet_id': 'subnetId',
'certificate_id': 'certificateId',
+ 'response_cache_details': 'responseCacheDetails',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
@@ -72,6 +78,7 @@ def __init__(self, **kwargs):
self._endpoint_type = None
self._subnet_id = None
self._certificate_id = None
+ self._response_cache_details = None
self._freeform_tags = None
self._defined_tags = None
@@ -223,6 +230,26 @@ def certificate_id(self, certificate_id):
"""
self._certificate_id = certificate_id
+ @property
+ def response_cache_details(self):
+ """
+ Gets the response_cache_details of this CreateGatewayDetails.
+
+ :return: The response_cache_details of this CreateGatewayDetails.
+ :rtype: oci.apigateway.models.ResponseCacheDetails
+ """
+ return self._response_cache_details
+
+ @response_cache_details.setter
+ def response_cache_details(self, response_cache_details):
+ """
+ Sets the response_cache_details of this CreateGatewayDetails.
+
+ :param response_cache_details: The response_cache_details of this CreateGatewayDetails.
+ :type: oci.apigateway.models.ResponseCacheDetails
+ """
+ self._response_cache_details = response_cache_details
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/apigateway/models/external_resp_cache.py b/src/oci/apigateway/models/external_resp_cache.py
new file mode 100644
index 0000000000..f383c845f3
--- /dev/null
+++ b/src/oci/apigateway/models/external_resp_cache.py
@@ -0,0 +1,301 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .response_cache_details import ResponseCacheDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ExternalRespCache(ResponseCacheDetails):
+ """
+ Connection details for an external RESP based cache store for Response Caching.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ExternalRespCache object with values from keyword arguments. The default value of the :py:attr:`~oci.apigateway.models.ExternalRespCache.type` attribute
+ of this class is ``EXTERNAL_RESP_CACHE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this ExternalRespCache.
+ Allowed values for this property are: "EXTERNAL_RESP_CACHE", "NONE"
+ :type type: str
+
+ :param servers:
+ The value to assign to the servers property of this ExternalRespCache.
+ :type servers: list[oci.apigateway.models.ResponseCacheRespServer]
+
+ :param authentication_secret_id:
+ The value to assign to the authentication_secret_id property of this ExternalRespCache.
+ :type authentication_secret_id: str
+
+ :param authentication_secret_version_number:
+ The value to assign to the authentication_secret_version_number property of this ExternalRespCache.
+ :type authentication_secret_version_number: int
+
+ :param is_ssl_enabled:
+ The value to assign to the is_ssl_enabled property of this ExternalRespCache.
+ :type is_ssl_enabled: bool
+
+ :param is_ssl_verify_disabled:
+ The value to assign to the is_ssl_verify_disabled property of this ExternalRespCache.
+ :type is_ssl_verify_disabled: bool
+
+ :param connect_timeout_in_ms:
+ The value to assign to the connect_timeout_in_ms property of this ExternalRespCache.
+ :type connect_timeout_in_ms: int
+
+ :param read_timeout_in_ms:
+ The value to assign to the read_timeout_in_ms property of this ExternalRespCache.
+ :type read_timeout_in_ms: int
+
+ :param send_timeout_in_ms:
+ The value to assign to the send_timeout_in_ms property of this ExternalRespCache.
+ :type send_timeout_in_ms: int
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'servers': 'list[ResponseCacheRespServer]',
+ 'authentication_secret_id': 'str',
+ 'authentication_secret_version_number': 'int',
+ 'is_ssl_enabled': 'bool',
+ 'is_ssl_verify_disabled': 'bool',
+ 'connect_timeout_in_ms': 'int',
+ 'read_timeout_in_ms': 'int',
+ 'send_timeout_in_ms': 'int'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'servers': 'servers',
+ 'authentication_secret_id': 'authenticationSecretId',
+ 'authentication_secret_version_number': 'authenticationSecretVersionNumber',
+ 'is_ssl_enabled': 'isSslEnabled',
+ 'is_ssl_verify_disabled': 'isSslVerifyDisabled',
+ 'connect_timeout_in_ms': 'connectTimeoutInMs',
+ 'read_timeout_in_ms': 'readTimeoutInMs',
+ 'send_timeout_in_ms': 'sendTimeoutInMs'
+ }
+
+ self._type = None
+ self._servers = None
+ self._authentication_secret_id = None
+ self._authentication_secret_version_number = None
+ self._is_ssl_enabled = None
+ self._is_ssl_verify_disabled = None
+ self._connect_timeout_in_ms = None
+ self._read_timeout_in_ms = None
+ self._send_timeout_in_ms = None
+ self._type = 'EXTERNAL_RESP_CACHE'
+
+ @property
+ def servers(self):
+ """
+ **[Required]** Gets the servers of this ExternalRespCache.
+ The set of cache store members to connect to. At present only a single server is supported.
+
+
+ :return: The servers of this ExternalRespCache.
+ :rtype: list[oci.apigateway.models.ResponseCacheRespServer]
+ """
+ return self._servers
+
+ @servers.setter
+ def servers(self, servers):
+ """
+ Sets the servers of this ExternalRespCache.
+ The set of cache store members to connect to. At present only a single server is supported.
+
+
+ :param servers: The servers of this ExternalRespCache.
+ :type: list[oci.apigateway.models.ResponseCacheRespServer]
+ """
+ self._servers = servers
+
+ @property
+ def authentication_secret_id(self):
+ """
+ **[Required]** Gets the authentication_secret_id of this ExternalRespCache.
+ The `OCID`__ of the Oracle Vault Service secret resource.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The authentication_secret_id of this ExternalRespCache.
+ :rtype: str
+ """
+ return self._authentication_secret_id
+
+ @authentication_secret_id.setter
+ def authentication_secret_id(self, authentication_secret_id):
+ """
+ Sets the authentication_secret_id of this ExternalRespCache.
+ The `OCID`__ of the Oracle Vault Service secret resource.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param authentication_secret_id: The authentication_secret_id of this ExternalRespCache.
+ :type: str
+ """
+ self._authentication_secret_id = authentication_secret_id
+
+ @property
+ def authentication_secret_version_number(self):
+ """
+ **[Required]** Gets the authentication_secret_version_number of this ExternalRespCache.
+ The version number of the authentication secret to use.
+
+
+ :return: The authentication_secret_version_number of this ExternalRespCache.
+ :rtype: int
+ """
+ return self._authentication_secret_version_number
+
+ @authentication_secret_version_number.setter
+ def authentication_secret_version_number(self, authentication_secret_version_number):
+ """
+ Sets the authentication_secret_version_number of this ExternalRespCache.
+ The version number of the authentication secret to use.
+
+
+ :param authentication_secret_version_number: The authentication_secret_version_number of this ExternalRespCache.
+ :type: int
+ """
+ self._authentication_secret_version_number = authentication_secret_version_number
+
+ @property
+ def is_ssl_enabled(self):
+ """
+ Gets the is_ssl_enabled of this ExternalRespCache.
+ Defines if the connection should be over SSL.
+
+
+ :return: The is_ssl_enabled of this ExternalRespCache.
+ :rtype: bool
+ """
+ return self._is_ssl_enabled
+
+ @is_ssl_enabled.setter
+ def is_ssl_enabled(self, is_ssl_enabled):
+ """
+ Sets the is_ssl_enabled of this ExternalRespCache.
+ Defines if the connection should be over SSL.
+
+
+ :param is_ssl_enabled: The is_ssl_enabled of this ExternalRespCache.
+ :type: bool
+ """
+ self._is_ssl_enabled = is_ssl_enabled
+
+ @property
+ def is_ssl_verify_disabled(self):
+ """
+ Gets the is_ssl_verify_disabled of this ExternalRespCache.
+ Defines whether or not to uphold SSL verification.
+
+
+ :return: The is_ssl_verify_disabled of this ExternalRespCache.
+ :rtype: bool
+ """
+ return self._is_ssl_verify_disabled
+
+ @is_ssl_verify_disabled.setter
+ def is_ssl_verify_disabled(self, is_ssl_verify_disabled):
+ """
+ Sets the is_ssl_verify_disabled of this ExternalRespCache.
+ Defines whether or not to uphold SSL verification.
+
+
+ :param is_ssl_verify_disabled: The is_ssl_verify_disabled of this ExternalRespCache.
+ :type: bool
+ """
+ self._is_ssl_verify_disabled = is_ssl_verify_disabled
+
+ @property
+ def connect_timeout_in_ms(self):
+ """
+ Gets the connect_timeout_in_ms of this ExternalRespCache.
+ Defines the timeout for establishing a connection with the Response Cache.
+
+
+ :return: The connect_timeout_in_ms of this ExternalRespCache.
+ :rtype: int
+ """
+ return self._connect_timeout_in_ms
+
+ @connect_timeout_in_ms.setter
+ def connect_timeout_in_ms(self, connect_timeout_in_ms):
+ """
+ Sets the connect_timeout_in_ms of this ExternalRespCache.
+ Defines the timeout for establishing a connection with the Response Cache.
+
+
+ :param connect_timeout_in_ms: The connect_timeout_in_ms of this ExternalRespCache.
+ :type: int
+ """
+ self._connect_timeout_in_ms = connect_timeout_in_ms
+
+ @property
+ def read_timeout_in_ms(self):
+ """
+ Gets the read_timeout_in_ms of this ExternalRespCache.
+ Defines the timeout for reading data from the Response Cache.
+
+
+ :return: The read_timeout_in_ms of this ExternalRespCache.
+ :rtype: int
+ """
+ return self._read_timeout_in_ms
+
+ @read_timeout_in_ms.setter
+ def read_timeout_in_ms(self, read_timeout_in_ms):
+ """
+ Sets the read_timeout_in_ms of this ExternalRespCache.
+ Defines the timeout for reading data from the Response Cache.
+
+
+ :param read_timeout_in_ms: The read_timeout_in_ms of this ExternalRespCache.
+ :type: int
+ """
+ self._read_timeout_in_ms = read_timeout_in_ms
+
+ @property
+ def send_timeout_in_ms(self):
+ """
+ Gets the send_timeout_in_ms of this ExternalRespCache.
+ Defines the timeout for transmitting data to the Response Cache.
+
+
+ :return: The send_timeout_in_ms of this ExternalRespCache.
+ :rtype: int
+ """
+ return self._send_timeout_in_ms
+
+ @send_timeout_in_ms.setter
+ def send_timeout_in_ms(self, send_timeout_in_ms):
+ """
+ Sets the send_timeout_in_ms of this ExternalRespCache.
+ Defines the timeout for transmitting data to the Response Cache.
+
+
+ :param send_timeout_in_ms: The send_timeout_in_ms of this ExternalRespCache.
+ :type: int
+ """
+ self._send_timeout_in_ms = send_timeout_in_ms
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/fixed_ttl_response_cache_store_policy.py b/src/oci/apigateway/models/fixed_ttl_response_cache_store_policy.py
new file mode 100644
index 0000000000..01f308e94d
--- /dev/null
+++ b/src/oci/apigateway/models/fixed_ttl_response_cache_store_policy.py
@@ -0,0 +1,80 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .response_cache_store_policy import ResponseCacheStorePolicy
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class FixedTTLResponseCacheStorePolicy(ResponseCacheStorePolicy):
+ """
+ How a response from a backend is cached in the Response Cache.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new FixedTTLResponseCacheStorePolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.apigateway.models.FixedTTLResponseCacheStorePolicy.type` attribute
+ of this class is ``FIXED_TTL_STORE_POLICY`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this FixedTTLResponseCacheStorePolicy.
+ Allowed values for this property are: "FIXED_TTL_STORE_POLICY"
+ :type type: str
+
+ :param time_to_live_in_seconds:
+ The value to assign to the time_to_live_in_seconds property of this FixedTTLResponseCacheStorePolicy.
+ :type time_to_live_in_seconds: int
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'time_to_live_in_seconds': 'int'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'time_to_live_in_seconds': 'timeToLiveInSeconds'
+ }
+
+ self._type = None
+ self._time_to_live_in_seconds = None
+ self._type = 'FIXED_TTL_STORE_POLICY'
+
+ @property
+ def time_to_live_in_seconds(self):
+ """
+ **[Required]** Gets the time_to_live_in_seconds of this FixedTTLResponseCacheStorePolicy.
+ Sets the number of seconds for a response from a backend being stored in the Response Cache before it expires.
+
+
+ :return: The time_to_live_in_seconds of this FixedTTLResponseCacheStorePolicy.
+ :rtype: int
+ """
+ return self._time_to_live_in_seconds
+
+ @time_to_live_in_seconds.setter
+ def time_to_live_in_seconds(self, time_to_live_in_seconds):
+ """
+ Sets the time_to_live_in_seconds of this FixedTTLResponseCacheStorePolicy.
+ Sets the number of seconds for a response from a backend being stored in the Response Cache before it expires.
+
+
+ :param time_to_live_in_seconds: The time_to_live_in_seconds of this FixedTTLResponseCacheStorePolicy.
+ :type: int
+ """
+ self._time_to_live_in_seconds = time_to_live_in_seconds
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/gateway.py b/src/oci/apigateway/models/gateway.py
index 0ce93834fb..3c4ed1d5ff 100644
--- a/src/oci/apigateway/models/gateway.py
+++ b/src/oci/apigateway/models/gateway.py
@@ -105,6 +105,10 @@ def __init__(self, **kwargs):
The value to assign to the ip_addresses property of this Gateway.
:type ip_addresses: list[oci.apigateway.models.IpAddress]
+ :param response_cache_details:
+ The value to assign to the response_cache_details property of this Gateway.
+ :type response_cache_details: oci.apigateway.models.ResponseCacheDetails
+
:param freeform_tags:
The value to assign to the freeform_tags property of this Gateway.
:type freeform_tags: dict(str, str)
@@ -127,6 +131,7 @@ def __init__(self, **kwargs):
'hostname': 'str',
'certificate_id': 'str',
'ip_addresses': 'list[IpAddress]',
+ 'response_cache_details': 'ResponseCacheDetails',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -144,6 +149,7 @@ def __init__(self, **kwargs):
'hostname': 'hostname',
'certificate_id': 'certificateId',
'ip_addresses': 'ipAddresses',
+ 'response_cache_details': 'responseCacheDetails',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
@@ -160,6 +166,7 @@ def __init__(self, **kwargs):
self._hostname = None
self._certificate_id = None
self._ip_addresses = None
+ self._response_cache_details = None
self._freeform_tags = None
self._defined_tags = None
@@ -499,6 +506,26 @@ def ip_addresses(self, ip_addresses):
"""
self._ip_addresses = ip_addresses
+ @property
+ def response_cache_details(self):
+ """
+ Gets the response_cache_details of this Gateway.
+
+ :return: The response_cache_details of this Gateway.
+ :rtype: oci.apigateway.models.ResponseCacheDetails
+ """
+ return self._response_cache_details
+
+ @response_cache_details.setter
+ def response_cache_details(self, response_cache_details):
+ """
+ Sets the response_cache_details of this Gateway.
+
+ :param response_cache_details: The response_cache_details of this Gateway.
+ :type: oci.apigateway.models.ResponseCacheDetails
+ """
+ self._response_cache_details = response_cache_details
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/apigateway/models/header_validation_item.py b/src/oci/apigateway/models/header_validation_item.py
new file mode 100644
index 0000000000..04cc840224
--- /dev/null
+++ b/src/oci/apigateway/models/header_validation_item.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HeaderValidationItem(object):
+ """
+ Header validation properties.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HeaderValidationItem object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param required:
+ The value to assign to the required property of this HeaderValidationItem.
+ :type required: bool
+
+ :param name:
+ The value to assign to the name property of this HeaderValidationItem.
+ :type name: str
+
+ """
+ self.swagger_types = {
+ 'required': 'bool',
+ 'name': 'str'
+ }
+
+ self.attribute_map = {
+ 'required': 'required',
+ 'name': 'name'
+ }
+
+ self._required = None
+ self._name = None
+
+ @property
+ def required(self):
+ """
+ Gets the required of this HeaderValidationItem.
+ Determines if the header is required in the request.
+
+
+ :return: The required of this HeaderValidationItem.
+ :rtype: bool
+ """
+ return self._required
+
+ @required.setter
+ def required(self, required):
+ """
+ Sets the required of this HeaderValidationItem.
+ Determines if the header is required in the request.
+
+
+ :param required: The required of this HeaderValidationItem.
+ :type: bool
+ """
+ self._required = required
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this HeaderValidationItem.
+ Parameter name.
+
+
+ :return: The name of this HeaderValidationItem.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this HeaderValidationItem.
+ Parameter name.
+
+
+ :param name: The name of this HeaderValidationItem.
+ :type: str
+ """
+ self._name = name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/header_validation_request_policy.py b/src/oci/apigateway/models/header_validation_request_policy.py
new file mode 100644
index 0000000000..1c30ccfd8f
--- /dev/null
+++ b/src/oci/apigateway/models/header_validation_request_policy.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HeaderValidationRequestPolicy(object):
+ """
+ Validate the HTTP headers on the incoming API requests on a specific route.
+ """
+
+ #: A constant which can be used with the validation_mode property of a HeaderValidationRequestPolicy.
+ #: This constant has a value of "ENFORCING"
+ VALIDATION_MODE_ENFORCING = "ENFORCING"
+
+ #: A constant which can be used with the validation_mode property of a HeaderValidationRequestPolicy.
+ #: This constant has a value of "PERMISSIVE"
+ VALIDATION_MODE_PERMISSIVE = "PERMISSIVE"
+
+ #: A constant which can be used with the validation_mode property of a HeaderValidationRequestPolicy.
+ #: This constant has a value of "DISABLED"
+ VALIDATION_MODE_DISABLED = "DISABLED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HeaderValidationRequestPolicy object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param headers:
+ The value to assign to the headers property of this HeaderValidationRequestPolicy.
+ :type headers: list[oci.apigateway.models.HeaderValidationItem]
+
+ :param validation_mode:
+ The value to assign to the validation_mode property of this HeaderValidationRequestPolicy.
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED"
+ :type validation_mode: str
+
+ """
+ self.swagger_types = {
+ 'headers': 'list[HeaderValidationItem]',
+ 'validation_mode': 'str'
+ }
+
+ self.attribute_map = {
+ 'headers': 'headers',
+ 'validation_mode': 'validationMode'
+ }
+
+ self._headers = None
+ self._validation_mode = None
+
+ @property
+ def headers(self):
+ """
+ Gets the headers of this HeaderValidationRequestPolicy.
+
+ :return: The headers of this HeaderValidationRequestPolicy.
+ :rtype: list[oci.apigateway.models.HeaderValidationItem]
+ """
+ return self._headers
+
+ @headers.setter
+ def headers(self, headers):
+ """
+ Sets the headers of this HeaderValidationRequestPolicy.
+
+ :param headers: The headers of this HeaderValidationRequestPolicy.
+ :type: list[oci.apigateway.models.HeaderValidationItem]
+ """
+ self._headers = headers
+
+ @property
+ def validation_mode(self):
+ """
+ Gets the validation_mode of this HeaderValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED"
+
+
+ :return: The validation_mode of this HeaderValidationRequestPolicy.
+ :rtype: str
+ """
+ return self._validation_mode
+
+ @validation_mode.setter
+ def validation_mode(self, validation_mode):
+ """
+ Sets the validation_mode of this HeaderValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+
+ :param validation_mode: The validation_mode of this HeaderValidationRequestPolicy.
+ :type: str
+ """
+ allowed_values = ["ENFORCING", "PERMISSIVE", "DISABLED"]
+ if not value_allowed_none_or_none_sentinel(validation_mode, allowed_values):
+ raise ValueError(
+ "Invalid value for `validation_mode`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._validation_mode = validation_mode
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/no_cache.py b/src/oci/apigateway/models/no_cache.py
new file mode 100644
index 0000000000..938c50f4d4
--- /dev/null
+++ b/src/oci/apigateway/models/no_cache.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .response_cache_details import ResponseCacheDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class NoCache(ResponseCacheDetails):
+ """
+ Configures the gateway with no caching. Cache lookup and store policies will not be supported.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new NoCache object with values from keyword arguments. The default value of the :py:attr:`~oci.apigateway.models.NoCache.type` attribute
+ of this class is ``NONE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this NoCache.
+ Allowed values for this property are: "EXTERNAL_RESP_CACHE", "NONE"
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type'
+ }
+
+ self._type = None
+ self._type = 'NONE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/no_content_validation.py b/src/oci/apigateway/models/no_content_validation.py
new file mode 100644
index 0000000000..60fc99a286
--- /dev/null
+++ b/src/oci/apigateway/models/no_content_validation.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .content_validation import ContentValidation
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class NoContentValidation(ContentValidation):
+ """
+ No content validation properties.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new NoContentValidation object with values from keyword arguments. The default value of the :py:attr:`~oci.apigateway.models.NoContentValidation.validation_type` attribute
+ of this class is ``NONE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param validation_type:
+ The value to assign to the validation_type property of this NoContentValidation.
+ Allowed values for this property are: "NONE"
+ :type validation_type: str
+
+ """
+ self.swagger_types = {
+ 'validation_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'validation_type': 'validationType'
+ }
+
+ self._validation_type = None
+ self._validation_type = 'NONE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/query_parameter_validation_item.py b/src/oci/apigateway/models/query_parameter_validation_item.py
new file mode 100644
index 0000000000..cd8cdbe725
--- /dev/null
+++ b/src/oci/apigateway/models/query_parameter_validation_item.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class QueryParameterValidationItem(object):
+ """
+ Query parameter validation properties.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new QueryParameterValidationItem object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param required:
+ The value to assign to the required property of this QueryParameterValidationItem.
+ :type required: bool
+
+ :param name:
+ The value to assign to the name property of this QueryParameterValidationItem.
+ :type name: str
+
+ """
+ self.swagger_types = {
+ 'required': 'bool',
+ 'name': 'str'
+ }
+
+ self.attribute_map = {
+ 'required': 'required',
+ 'name': 'name'
+ }
+
+ self._required = None
+ self._name = None
+
+ @property
+ def required(self):
+ """
+ Gets the required of this QueryParameterValidationItem.
+ Determines if the parameter is required in the request.
+
+
+ :return: The required of this QueryParameterValidationItem.
+ :rtype: bool
+ """
+ return self._required
+
+ @required.setter
+ def required(self, required):
+ """
+ Sets the required of this QueryParameterValidationItem.
+ Determines if the parameter is required in the request.
+
+
+ :param required: The required of this QueryParameterValidationItem.
+ :type: bool
+ """
+ self._required = required
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this QueryParameterValidationItem.
+ Parameter name.
+
+
+ :return: The name of this QueryParameterValidationItem.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this QueryParameterValidationItem.
+ Parameter name.
+
+
+ :param name: The name of this QueryParameterValidationItem.
+ :type: str
+ """
+ self._name = name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/query_parameter_validation_request_policy.py b/src/oci/apigateway/models/query_parameter_validation_request_policy.py
new file mode 100644
index 0000000000..bee6f5a310
--- /dev/null
+++ b/src/oci/apigateway/models/query_parameter_validation_request_policy.py
@@ -0,0 +1,133 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class QueryParameterValidationRequestPolicy(object):
+ """
+ Validate the URL query parameters on the incoming API requests on a specific route.
+ """
+
+ #: A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy.
+ #: This constant has a value of "ENFORCING"
+ VALIDATION_MODE_ENFORCING = "ENFORCING"
+
+ #: A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy.
+ #: This constant has a value of "PERMISSIVE"
+ VALIDATION_MODE_PERMISSIVE = "PERMISSIVE"
+
+ #: A constant which can be used with the validation_mode property of a QueryParameterValidationRequestPolicy.
+ #: This constant has a value of "DISABLED"
+ VALIDATION_MODE_DISABLED = "DISABLED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new QueryParameterValidationRequestPolicy object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param parameters:
+ The value to assign to the parameters property of this QueryParameterValidationRequestPolicy.
+ :type parameters: list[oci.apigateway.models.QueryParameterValidationItem]
+
+ :param validation_mode:
+ The value to assign to the validation_mode property of this QueryParameterValidationRequestPolicy.
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type validation_mode: str
+
+ """
+ self.swagger_types = {
+ 'parameters': 'list[QueryParameterValidationItem]',
+ 'validation_mode': 'str'
+ }
+
+ self.attribute_map = {
+ 'parameters': 'parameters',
+ 'validation_mode': 'validationMode'
+ }
+
+ self._parameters = None
+ self._validation_mode = None
+
+ @property
+ def parameters(self):
+ """
+ Gets the parameters of this QueryParameterValidationRequestPolicy.
+
+ :return: The parameters of this QueryParameterValidationRequestPolicy.
+ :rtype: list[oci.apigateway.models.QueryParameterValidationItem]
+ """
+ return self._parameters
+
+ @parameters.setter
+ def parameters(self, parameters):
+ """
+ Sets the parameters of this QueryParameterValidationRequestPolicy.
+
+ :param parameters: The parameters of this QueryParameterValidationRequestPolicy.
+ :type: list[oci.apigateway.models.QueryParameterValidationItem]
+ """
+ self._parameters = parameters
+
+ @property
+ def validation_mode(self):
+ """
+ Gets the validation_mode of this QueryParameterValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The validation_mode of this QueryParameterValidationRequestPolicy.
+ :rtype: str
+ """
+ return self._validation_mode
+
+ @validation_mode.setter
+ def validation_mode(self, validation_mode):
+ """
+ Sets the validation_mode of this QueryParameterValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+
+ :param validation_mode: The validation_mode of this QueryParameterValidationRequestPolicy.
+ :type: str
+ """
+ allowed_values = ["ENFORCING", "PERMISSIVE", "DISABLED"]
+ if not value_allowed_none_or_none_sentinel(validation_mode, allowed_values):
+ validation_mode = 'UNKNOWN_ENUM_VALUE'
+ self._validation_mode = validation_mode
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/request_parameter_validation.py b/src/oci/apigateway/models/request_parameter_validation.py
new file mode 100644
index 0000000000..8875406c7e
--- /dev/null
+++ b/src/oci/apigateway/models/request_parameter_validation.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class RequestParameterValidation(object):
+ """
+ Common parameter validation properties.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new RequestParameterValidation object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this RequestParameterValidation.
+ :type name: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name'
+ }
+
+ self._name = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this RequestParameterValidation.
+ Parameter name.
+
+
+ :return: The name of this RequestParameterValidation.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this RequestParameterValidation.
+ Parameter name.
+
+
+ :param name: The name of this RequestParameterValidation.
+ :type: str
+ """
+ self._name = name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/response_cache_details.py b/src/oci/apigateway/models/response_cache_details.py
new file mode 100644
index 0000000000..b7d21f07c4
--- /dev/null
+++ b/src/oci/apigateway/models/response_cache_details.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ResponseCacheDetails(object):
+ """
+ Base Gateway response cache.
+ """
+
+ #: A constant which can be used with the type property of a ResponseCacheDetails.
+ #: This constant has a value of "EXTERNAL_RESP_CACHE"
+ TYPE_EXTERNAL_RESP_CACHE = "EXTERNAL_RESP_CACHE"
+
+ #: A constant which can be used with the type property of a ResponseCacheDetails.
+ #: This constant has a value of "NONE"
+ TYPE_NONE = "NONE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ResponseCacheDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.apigateway.models.ExternalRespCache`
+ * :class:`~oci.apigateway.models.NoCache`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this ResponseCacheDetails.
+ Allowed values for this property are: "EXTERNAL_RESP_CACHE", "NONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type'
+ }
+
+ self._type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'EXTERNAL_RESP_CACHE':
+ return 'ExternalRespCache'
+
+ if type == 'NONE':
+ return 'NoCache'
+ else:
+ return 'ResponseCacheDetails'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this ResponseCacheDetails.
+ Type of the Response Cache.
+
+ Allowed values for this property are: "EXTERNAL_RESP_CACHE", "NONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this ResponseCacheDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this ResponseCacheDetails.
+ Type of the Response Cache.
+
+
+ :param type: The type of this ResponseCacheDetails.
+ :type: str
+ """
+ allowed_values = ["EXTERNAL_RESP_CACHE", "NONE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/response_cache_lookup_policy.py b/src/oci/apigateway/models/response_cache_lookup_policy.py
new file mode 100644
index 0000000000..486ff1df72
--- /dev/null
+++ b/src/oci/apigateway/models/response_cache_lookup_policy.py
@@ -0,0 +1,171 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ResponseCacheLookupPolicy(object):
+ """
+ Base policy for Response Cache lookup.
+ """
+
+ #: A constant which can be used with the type property of a ResponseCacheLookupPolicy.
+ #: This constant has a value of "SIMPLE_LOOKUP_POLICY"
+ TYPE_SIMPLE_LOOKUP_POLICY = "SIMPLE_LOOKUP_POLICY"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ResponseCacheLookupPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.apigateway.models.SimpleLookupPolicy`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this ResponseCacheLookupPolicy.
+ Allowed values for this property are: "SIMPLE_LOOKUP_POLICY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param is_enabled:
+ The value to assign to the is_enabled property of this ResponseCacheLookupPolicy.
+ :type is_enabled: bool
+
+ :param is_private_caching_enabled:
+ The value to assign to the is_private_caching_enabled property of this ResponseCacheLookupPolicy.
+ :type is_private_caching_enabled: bool
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'is_enabled': 'bool',
+ 'is_private_caching_enabled': 'bool'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'is_enabled': 'isEnabled',
+ 'is_private_caching_enabled': 'isPrivateCachingEnabled'
+ }
+
+ self._type = None
+ self._is_enabled = None
+ self._is_private_caching_enabled = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'SIMPLE_LOOKUP_POLICY':
+ return 'SimpleLookupPolicy'
+ else:
+ return 'ResponseCacheLookupPolicy'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this ResponseCacheLookupPolicy.
+ Type of the Response Cache Store Policy.
+
+ Allowed values for this property are: "SIMPLE_LOOKUP_POLICY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this ResponseCacheLookupPolicy.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this ResponseCacheLookupPolicy.
+ Type of the Response Cache Store Policy.
+
+
+ :param type: The type of this ResponseCacheLookupPolicy.
+ :type: str
+ """
+ allowed_values = ["SIMPLE_LOOKUP_POLICY"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def is_enabled(self):
+ """
+ Gets the is_enabled of this ResponseCacheLookupPolicy.
+ Whether this policy is currently enabled.
+
+
+ :return: The is_enabled of this ResponseCacheLookupPolicy.
+ :rtype: bool
+ """
+ return self._is_enabled
+
+ @is_enabled.setter
+ def is_enabled(self, is_enabled):
+ """
+ Sets the is_enabled of this ResponseCacheLookupPolicy.
+ Whether this policy is currently enabled.
+
+
+ :param is_enabled: The is_enabled of this ResponseCacheLookupPolicy.
+ :type: bool
+ """
+ self._is_enabled = is_enabled
+
+ @property
+ def is_private_caching_enabled(self):
+ """
+ Gets the is_private_caching_enabled of this ResponseCacheLookupPolicy.
+ Set true to allow caching responses where the request has an Authorization header. Ensure you have configured your
+ cache key additions to get the level of isolation across authenticated requests that you require.
+
+ When false, any request with an Authorization header will not be stored in the Response Cache.
+
+ If using the CustomAuthenticationPolicy then the tokenHeader/tokenQueryParam are also subject to this check.
+
+
+ :return: The is_private_caching_enabled of this ResponseCacheLookupPolicy.
+ :rtype: bool
+ """
+ return self._is_private_caching_enabled
+
+ @is_private_caching_enabled.setter
+ def is_private_caching_enabled(self, is_private_caching_enabled):
+ """
+ Sets the is_private_caching_enabled of this ResponseCacheLookupPolicy.
+ Set true to allow caching responses where the request has an Authorization header. Ensure you have configured your
+ cache key additions to get the level of isolation across authenticated requests that you require.
+
+ When false, any request with an Authorization header will not be stored in the Response Cache.
+
+ If using the CustomAuthenticationPolicy then the tokenHeader/tokenQueryParam are also subject to this check.
+
+
+ :param is_private_caching_enabled: The is_private_caching_enabled of this ResponseCacheLookupPolicy.
+ :type: bool
+ """
+ self._is_private_caching_enabled = is_private_caching_enabled
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/response_cache_resp_server.py b/src/oci/apigateway/models/response_cache_resp_server.py
new file mode 100644
index 0000000000..d3f544bc6c
--- /dev/null
+++ b/src/oci/apigateway/models/response_cache_resp_server.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ResponseCacheRespServer(object):
+ """
+ Details of a RESP based cache store server
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ResponseCacheRespServer object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host:
+ The value to assign to the host property of this ResponseCacheRespServer.
+ :type host: str
+
+ :param port:
+ The value to assign to the port property of this ResponseCacheRespServer.
+ :type port: int
+
+ """
+ self.swagger_types = {
+ 'host': 'str',
+ 'port': 'int'
+ }
+
+ self.attribute_map = {
+ 'host': 'host',
+ 'port': 'port'
+ }
+
+ self._host = None
+ self._port = None
+
+ @property
+ def host(self):
+ """
+ **[Required]** Gets the host of this ResponseCacheRespServer.
+ Hostname or IP address (IPv4 only) where the cache store is running.
+
+
+ :return: The host of this ResponseCacheRespServer.
+ :rtype: str
+ """
+ return self._host
+
+ @host.setter
+ def host(self, host):
+ """
+ Sets the host of this ResponseCacheRespServer.
+ Hostname or IP address (IPv4 only) where the cache store is running.
+
+
+ :param host: The host of this ResponseCacheRespServer.
+ :type: str
+ """
+ self._host = host
+
+ @property
+ def port(self):
+ """
+ **[Required]** Gets the port of this ResponseCacheRespServer.
+ The port the cache store is exposed on.
+
+
+ :return: The port of this ResponseCacheRespServer.
+ :rtype: int
+ """
+ return self._port
+
+ @port.setter
+ def port(self, port):
+ """
+ Sets the port of this ResponseCacheRespServer.
+ The port the cache store is exposed on.
+
+
+ :param port: The port of this ResponseCacheRespServer.
+ :type: int
+ """
+ self._port = port
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/response_cache_store_policy.py b/src/oci/apigateway/models/response_cache_store_policy.py
new file mode 100644
index 0000000000..7fb0e73eff
--- /dev/null
+++ b/src/oci/apigateway/models/response_cache_store_policy.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ResponseCacheStorePolicy(object):
+ """
+ Base policy for how a response from a backend is cached in the Response Cache.
+ """
+
+ #: A constant which can be used with the type property of a ResponseCacheStorePolicy.
+ #: This constant has a value of "FIXED_TTL_STORE_POLICY"
+ TYPE_FIXED_TTL_STORE_POLICY = "FIXED_TTL_STORE_POLICY"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ResponseCacheStorePolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.apigateway.models.FixedTTLResponseCacheStorePolicy`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this ResponseCacheStorePolicy.
+ Allowed values for this property are: "FIXED_TTL_STORE_POLICY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type'
+ }
+
+ self._type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'FIXED_TTL_STORE_POLICY':
+ return 'FixedTTLResponseCacheStorePolicy'
+ else:
+ return 'ResponseCacheStorePolicy'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this ResponseCacheStorePolicy.
+ Type of the Response Cache Store Policy.
+
+ Allowed values for this property are: "FIXED_TTL_STORE_POLICY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this ResponseCacheStorePolicy.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this ResponseCacheStorePolicy.
+ Type of the Response Cache Store Policy.
+
+
+ :param type: The type of this ResponseCacheStorePolicy.
+ :type: str
+ """
+ allowed_values = ["FIXED_TTL_STORE_POLICY"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/simple_lookup_policy.py b/src/oci/apigateway/models/simple_lookup_policy.py
new file mode 100644
index 0000000000..1cdb41ad91
--- /dev/null
+++ b/src/oci/apigateway/models/simple_lookup_policy.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .response_cache_lookup_policy import ResponseCacheLookupPolicy
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SimpleLookupPolicy(ResponseCacheLookupPolicy):
+ """
+ Provides ability to vary the cache key using context expressions.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SimpleLookupPolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.apigateway.models.SimpleLookupPolicy.type` attribute
+ of this class is ``SIMPLE_LOOKUP_POLICY`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this SimpleLookupPolicy.
+ Allowed values for this property are: "SIMPLE_LOOKUP_POLICY"
+ :type type: str
+
+ :param is_enabled:
+ The value to assign to the is_enabled property of this SimpleLookupPolicy.
+ :type is_enabled: bool
+
+ :param is_private_caching_enabled:
+ The value to assign to the is_private_caching_enabled property of this SimpleLookupPolicy.
+ :type is_private_caching_enabled: bool
+
+ :param cache_key_additions:
+ The value to assign to the cache_key_additions property of this SimpleLookupPolicy.
+ :type cache_key_additions: list[str]
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'is_enabled': 'bool',
+ 'is_private_caching_enabled': 'bool',
+ 'cache_key_additions': 'list[str]'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'is_enabled': 'isEnabled',
+ 'is_private_caching_enabled': 'isPrivateCachingEnabled',
+ 'cache_key_additions': 'cacheKeyAdditions'
+ }
+
+ self._type = None
+ self._is_enabled = None
+ self._is_private_caching_enabled = None
+ self._cache_key_additions = None
+ self._type = 'SIMPLE_LOOKUP_POLICY'
+
+ @property
+ def cache_key_additions(self):
+ """
+ Gets the cache_key_additions of this SimpleLookupPolicy.
+ A list of context expressions whose values will be added to the base cache key. Values should contain an expression enclosed within
+ ${} delimiters. Only the request context is available.
+
+
+ :return: The cache_key_additions of this SimpleLookupPolicy.
+ :rtype: list[str]
+ """
+ return self._cache_key_additions
+
+ @cache_key_additions.setter
+ def cache_key_additions(self, cache_key_additions):
+ """
+ Sets the cache_key_additions of this SimpleLookupPolicy.
+ A list of context expressions whose values will be added to the base cache key. Values should contain an expression enclosed within
+ ${} delimiters. Only the request context is available.
+
+
+ :param cache_key_additions: The cache_key_additions of this SimpleLookupPolicy.
+ :type: list[str]
+ """
+ self._cache_key_additions = cache_key_additions
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/apigateway/models/update_gateway_details.py b/src/oci/apigateway/models/update_gateway_details.py
index 5f37d707e1..0ee42e6421 100644
--- a/src/oci/apigateway/models/update_gateway_details.py
+++ b/src/oci/apigateway/models/update_gateway_details.py
@@ -26,6 +26,10 @@ def __init__(self, **kwargs):
The value to assign to the certificate_id property of this UpdateGatewayDetails.
:type certificate_id: str
+ :param response_cache_details:
+ The value to assign to the response_cache_details property of this UpdateGatewayDetails.
+ :type response_cache_details: oci.apigateway.models.ResponseCacheDetails
+
:param freeform_tags:
The value to assign to the freeform_tags property of this UpdateGatewayDetails.
:type freeform_tags: dict(str, str)
@@ -38,6 +42,7 @@ def __init__(self, **kwargs):
self.swagger_types = {
'display_name': 'str',
'certificate_id': 'str',
+ 'response_cache_details': 'ResponseCacheDetails',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -45,12 +50,14 @@ def __init__(self, **kwargs):
self.attribute_map = {
'display_name': 'displayName',
'certificate_id': 'certificateId',
+ 'response_cache_details': 'responseCacheDetails',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
self._display_name = None
self._certificate_id = None
+ self._response_cache_details = None
self._freeform_tags = None
self._defined_tags = None
@@ -112,6 +119,26 @@ def certificate_id(self, certificate_id):
"""
self._certificate_id = certificate_id
+ @property
+ def response_cache_details(self):
+ """
+ Gets the response_cache_details of this UpdateGatewayDetails.
+
+ :return: The response_cache_details of this UpdateGatewayDetails.
+ :rtype: oci.apigateway.models.ResponseCacheDetails
+ """
+ return self._response_cache_details
+
+ @response_cache_details.setter
+ def response_cache_details(self, response_cache_details):
+ """
+ Sets the response_cache_details of this UpdateGatewayDetails.
+
+ :param response_cache_details: The response_cache_details of this UpdateGatewayDetails.
+ :type: oci.apigateway.models.ResponseCacheDetails
+ """
+ self._response_cache_details = response_cache_details
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/apigateway/models/validation_request_policy.py b/src/oci/apigateway/models/validation_request_policy.py
new file mode 100644
index 0000000000..021fbe21ee
--- /dev/null
+++ b/src/oci/apigateway/models/validation_request_policy.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ValidationRequestPolicy(object):
+ """
+ Top-level validation policy mixin (not directly used).
+ """
+
+ #: A constant which can be used with the validation_mode property of a ValidationRequestPolicy.
+ #: This constant has a value of "ENFORCING"
+ VALIDATION_MODE_ENFORCING = "ENFORCING"
+
+ #: A constant which can be used with the validation_mode property of a ValidationRequestPolicy.
+ #: This constant has a value of "PERMISSIVE"
+ VALIDATION_MODE_PERMISSIVE = "PERMISSIVE"
+
+ #: A constant which can be used with the validation_mode property of a ValidationRequestPolicy.
+ #: This constant has a value of "DISABLED"
+ VALIDATION_MODE_DISABLED = "DISABLED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ValidationRequestPolicy object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param validation_mode:
+ The value to assign to the validation_mode property of this ValidationRequestPolicy.
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED"
+ :type validation_mode: str
+
+ """
+ self.swagger_types = {
+ 'validation_mode': 'str'
+ }
+
+ self.attribute_map = {
+ 'validation_mode': 'validationMode'
+ }
+
+ self._validation_mode = None
+
+ @property
+ def validation_mode(self):
+ """
+ Gets the validation_mode of this ValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+ Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED"
+
+
+ :return: The validation_mode of this ValidationRequestPolicy.
+ :rtype: str
+ """
+ return self._validation_mode
+
+ @validation_mode.setter
+ def validation_mode(self, validation_mode):
+ """
+ Sets the validation_mode of this ValidationRequestPolicy.
+ Validation behavior mode.
+
+ In `ENFORCING` mode, upon a validation failure, the request will be rejected with a 4xx response
+ and not sent to the backend.
+
+ In `PERMISSIVE` mode, the result of the validation will be exposed as metrics while the request
+ will follow the normal path.
+
+ `DISABLED` type turns the validation off.
+
+
+ :param validation_mode: The validation_mode of this ValidationRequestPolicy.
+ :type: str
+ """
+ allowed_values = ["ENFORCING", "PERMISSIVE", "DISABLED"]
+ if not value_allowed_none_or_none_sentinel(validation_mode, allowed_values):
+ raise ValueError(
+ "Invalid value for `validation_mode`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._validation_mode = validation_mode
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/compute_client.py b/src/oci/core/compute_client.py
index 6ca7ab3319..8a686218dc 100644
--- a/src/oci/core/compute_client.py
+++ b/src/oci/core/compute_client.py
@@ -5966,13 +5966,14 @@ def list_image_shape_compatibility_entries(self, image_id, **kwargs):
def list_images(self, compartment_id, **kwargs):
"""
- Lists the available images in the specified compartment, including both
- `Oracle-provided images`__ and
+ Lists the available images in the specified compartment, including
+ `platform images`__ and
`custom images`__ that have
- been created. The list of images returned is ordered to first show all
- Oracle-provided images, then all custom images.
+ been created.
- The order of images returned may change when new images are released.
+ The list of images that's returned is ordered to first show all
+ platform images, then all custom images. The order of images might
+ change when new images are released.
__ https://docs.cloud.oracle.com/iaas/Content/Compute/References/images.htm
__ https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingcustomimages.htm
diff --git a/src/oci/core/models/__init__.py b/src/oci/core/models/__init__.py
index b28579fbdc..291608a8fe 100644
--- a/src/oci/core/models/__init__.py
+++ b/src/oci/core/models/__init__.py
@@ -4,6 +4,10 @@
from __future__ import absolute_import
+from .add_drg_route_distribution_statement_details import AddDrgRouteDistributionStatementDetails
+from .add_drg_route_distribution_statements_details import AddDrgRouteDistributionStatementsDetails
+from .add_drg_route_rule_details import AddDrgRouteRuleDetails
+from .add_drg_route_rules_details import AddDrgRouteRulesDetails
from .add_image_shape_compatibility_entry_details import AddImageShapeCompatibilityEntryDetails
from .add_network_security_group_security_rules_details import AddNetworkSecurityGroupSecurityRulesDetails
from .add_public_ip_pool_capacity_details import AddPublicIpPoolCapacityDetails
@@ -127,6 +131,8 @@
from .create_dhcp_details import CreateDhcpDetails
from .create_drg_attachment_details import CreateDrgAttachmentDetails
from .create_drg_details import CreateDrgDetails
+from .create_drg_route_distribution_details import CreateDrgRouteDistributionDetails
+from .create_drg_route_table_details import CreateDrgRouteTableDetails
from .create_ip_sec_connection_details import CreateIPSecConnectionDetails
from .create_ip_sec_connection_tunnel_details import CreateIPSecConnectionTunnelDetails
from .create_ip_sec_tunnel_bgp_session_details import CreateIPSecTunnelBgpSessionDetails
@@ -166,6 +172,8 @@
from .cross_connect_group import CrossConnectGroup
from .cross_connect_location import CrossConnectLocation
from .cross_connect_mapping import CrossConnectMapping
+from .cross_connect_mapping_details import CrossConnectMappingDetails
+from .cross_connect_mapping_details_collection import CrossConnectMappingDetailsCollection
from .cross_connect_port_speed_shape import CrossConnectPortSpeedShape
from .cross_connect_status import CrossConnectStatus
from .dedicated_vm_host import DedicatedVmHost
@@ -173,6 +181,7 @@
from .dedicated_vm_host_instance_summary import DedicatedVmHostInstanceSummary
from .dedicated_vm_host_shape_summary import DedicatedVmHostShapeSummary
from .dedicated_vm_host_summary import DedicatedVmHostSummary
+from .default_drg_route_tables import DefaultDrgRouteTables
from .delete_virtual_circuit_public_prefix_details import DeleteVirtualCircuitPublicPrefixDetails
from .detach_instance_pool_instance_details import DetachInstancePoolInstanceDetails
from .detach_load_balancer_details import DetachLoadBalancerDetails
@@ -183,7 +192,18 @@
from .dhcp_search_domain_option import DhcpSearchDomainOption
from .drg import Drg
from .drg_attachment import DrgAttachment
+from .drg_attachment_id_drg_route_distribution_match_criteria import DrgAttachmentIdDrgRouteDistributionMatchCriteria
+from .drg_attachment_info import DrgAttachmentInfo
+from .drg_attachment_network_create_details import DrgAttachmentNetworkCreateDetails
+from .drg_attachment_network_details import DrgAttachmentNetworkDetails
+from .drg_attachment_network_update_details import DrgAttachmentNetworkUpdateDetails
+from .drg_attachment_type_drg_route_distribution_match_criteria import DrgAttachmentTypeDrgRouteDistributionMatchCriteria
from .drg_redundancy_status import DrgRedundancyStatus
+from .drg_route_distribution import DrgRouteDistribution
+from .drg_route_distribution_match_criteria import DrgRouteDistributionMatchCriteria
+from .drg_route_distribution_statement import DrgRouteDistributionStatement
+from .drg_route_rule import DrgRouteRule
+from .drg_route_table import DrgRouteTable
from .egress_security_rule import EgressSecurityRule
from .emulated_volume_attachment import EmulatedVolumeAttachment
from .encryption_domain_config import EncryptionDomainConfig
@@ -261,6 +281,7 @@
from .instance_source_via_image_details import InstanceSourceViaImageDetails
from .instance_summary import InstanceSummary
from .internet_gateway import InternetGateway
+from .ipsec_tunnel_drg_attachment_network_details import IpsecTunnelDrgAttachmentNetworkDetails
from .ipv6 import Ipv6
from .launch_instance_agent_config_details import LaunchInstanceAgentConfigDetails
from .launch_instance_availability_config_details import LaunchInstanceAvailabilityConfigDetails
@@ -274,16 +295,22 @@
from .nat_gateway import NatGateway
from .network_security_group import NetworkSecurityGroup
from .network_security_group_vnic import NetworkSecurityGroupVnic
+from .networking_topology import NetworkingTopology
from .paravirtualized_volume_attachment import ParavirtualizedVolumeAttachment
from .peer_region_for_remote_peering import PeerRegionForRemotePeering
from .platform_config import PlatformConfig
from .port_range import PortRange
+from .preemptible_instance_config_details import PreemptibleInstanceConfigDetails
+from .preemption_action import PreemptionAction
from .private_ip import PrivateIp
from .public_ip import PublicIp
from .public_ip_pool import PublicIpPool
from .public_ip_pool_collection import PublicIpPoolCollection
from .public_ip_pool_summary import PublicIpPoolSummary
from .remote_peering_connection import RemotePeeringConnection
+from .remote_peering_connection_drg_attachment_network_details import RemotePeeringConnectionDrgAttachmentNetworkDetails
+from .remove_drg_route_distribution_statements_details import RemoveDrgRouteDistributionStatementsDetails
+from .remove_drg_route_rules_details import RemoveDrgRouteRulesDetails
from .remove_network_security_group_security_rules_details import RemoveNetworkSecurityGroupSecurityRulesDetails
from .remove_public_ip_pool_capacity_details import RemovePublicIpPoolCapacityDetails
from .remove_vcn_cidr_details import RemoveVcnCidrDetails
@@ -302,6 +329,13 @@
from .shape_ocpu_options import ShapeOcpuOptions
from .subnet import Subnet
from .tcp_options import TcpOptions
+from .terminate_preemption_action import TerminatePreemptionAction
+from .topology import Topology
+from .topology_associated_with_entity_relationship import TopologyAssociatedWithEntityRelationship
+from .topology_contains_entity_relationship import TopologyContainsEntityRelationship
+from .topology_entity_relationship import TopologyEntityRelationship
+from .topology_routes_to_entity_relationship import TopologyRoutesToEntityRelationship
+from .topology_routes_to_relationship_details import TopologyRoutesToRelationshipDetails
from .tunnel_config import TunnelConfig
from .tunnel_cpe_device_config import TunnelCpeDeviceConfig
from .tunnel_status import TunnelStatus
@@ -321,6 +355,12 @@
from .update_dhcp_details import UpdateDhcpDetails
from .update_drg_attachment_details import UpdateDrgAttachmentDetails
from .update_drg_details import UpdateDrgDetails
+from .update_drg_route_distribution_details import UpdateDrgRouteDistributionDetails
+from .update_drg_route_distribution_statement_details import UpdateDrgRouteDistributionStatementDetails
+from .update_drg_route_distribution_statements_details import UpdateDrgRouteDistributionStatementsDetails
+from .update_drg_route_rule_details import UpdateDrgRouteRuleDetails
+from .update_drg_route_rules_details import UpdateDrgRouteRulesDetails
+from .update_drg_route_table_details import UpdateDrgRouteTableDetails
from .update_ip_sec_connection_details import UpdateIPSecConnectionDetails
from .update_ip_sec_connection_tunnel_details import UpdateIPSecConnectionTunnelDetails
from .update_ip_sec_connection_tunnel_shared_secret_details import UpdateIPSecConnectionTunnelSharedSecretDetails
@@ -363,10 +403,16 @@
from .update_volume_group_details import UpdateVolumeGroupDetails
from .update_volume_kms_key_details import UpdateVolumeKmsKeyDetails
from .updated_network_security_group_security_rules import UpdatedNetworkSecurityGroupSecurityRules
+from .upgrade_status import UpgradeStatus
from .vcn import Vcn
from .vcn_dns_resolver_association import VcnDnsResolverAssociation
+from .vcn_drg_attachment_network_create_details import VcnDrgAttachmentNetworkCreateDetails
+from .vcn_drg_attachment_network_details import VcnDrgAttachmentNetworkDetails
+from .vcn_drg_attachment_network_update_details import VcnDrgAttachmentNetworkUpdateDetails
+from .vcn_topology import VcnTopology
from .virtual_circuit import VirtualCircuit
from .virtual_circuit_bandwidth_shape import VirtualCircuitBandwidthShape
+from .virtual_circuit_drg_attachment_network_details import VirtualCircuitDrgAttachmentNetworkDetails
from .virtual_circuit_public_prefix import VirtualCircuitPublicPrefix
from .vlan import Vlan
from .vnic import Vnic
@@ -391,6 +437,10 @@
# Maps type names to classes for core services.
core_type_mapping = {
+ "AddDrgRouteDistributionStatementDetails": AddDrgRouteDistributionStatementDetails,
+ "AddDrgRouteDistributionStatementsDetails": AddDrgRouteDistributionStatementsDetails,
+ "AddDrgRouteRuleDetails": AddDrgRouteRuleDetails,
+ "AddDrgRouteRulesDetails": AddDrgRouteRulesDetails,
"AddImageShapeCompatibilityEntryDetails": AddImageShapeCompatibilityEntryDetails,
"AddNetworkSecurityGroupSecurityRulesDetails": AddNetworkSecurityGroupSecurityRulesDetails,
"AddPublicIpPoolCapacityDetails": AddPublicIpPoolCapacityDetails,
@@ -514,6 +564,8 @@
"CreateDhcpDetails": CreateDhcpDetails,
"CreateDrgAttachmentDetails": CreateDrgAttachmentDetails,
"CreateDrgDetails": CreateDrgDetails,
+ "CreateDrgRouteDistributionDetails": CreateDrgRouteDistributionDetails,
+ "CreateDrgRouteTableDetails": CreateDrgRouteTableDetails,
"CreateIPSecConnectionDetails": CreateIPSecConnectionDetails,
"CreateIPSecConnectionTunnelDetails": CreateIPSecConnectionTunnelDetails,
"CreateIPSecTunnelBgpSessionDetails": CreateIPSecTunnelBgpSessionDetails,
@@ -553,6 +605,8 @@
"CrossConnectGroup": CrossConnectGroup,
"CrossConnectLocation": CrossConnectLocation,
"CrossConnectMapping": CrossConnectMapping,
+ "CrossConnectMappingDetails": CrossConnectMappingDetails,
+ "CrossConnectMappingDetailsCollection": CrossConnectMappingDetailsCollection,
"CrossConnectPortSpeedShape": CrossConnectPortSpeedShape,
"CrossConnectStatus": CrossConnectStatus,
"DedicatedVmHost": DedicatedVmHost,
@@ -560,6 +614,7 @@
"DedicatedVmHostInstanceSummary": DedicatedVmHostInstanceSummary,
"DedicatedVmHostShapeSummary": DedicatedVmHostShapeSummary,
"DedicatedVmHostSummary": DedicatedVmHostSummary,
+ "DefaultDrgRouteTables": DefaultDrgRouteTables,
"DeleteVirtualCircuitPublicPrefixDetails": DeleteVirtualCircuitPublicPrefixDetails,
"DetachInstancePoolInstanceDetails": DetachInstancePoolInstanceDetails,
"DetachLoadBalancerDetails": DetachLoadBalancerDetails,
@@ -570,7 +625,18 @@
"DhcpSearchDomainOption": DhcpSearchDomainOption,
"Drg": Drg,
"DrgAttachment": DrgAttachment,
+ "DrgAttachmentIdDrgRouteDistributionMatchCriteria": DrgAttachmentIdDrgRouteDistributionMatchCriteria,
+ "DrgAttachmentInfo": DrgAttachmentInfo,
+ "DrgAttachmentNetworkCreateDetails": DrgAttachmentNetworkCreateDetails,
+ "DrgAttachmentNetworkDetails": DrgAttachmentNetworkDetails,
+ "DrgAttachmentNetworkUpdateDetails": DrgAttachmentNetworkUpdateDetails,
+ "DrgAttachmentTypeDrgRouteDistributionMatchCriteria": DrgAttachmentTypeDrgRouteDistributionMatchCriteria,
"DrgRedundancyStatus": DrgRedundancyStatus,
+ "DrgRouteDistribution": DrgRouteDistribution,
+ "DrgRouteDistributionMatchCriteria": DrgRouteDistributionMatchCriteria,
+ "DrgRouteDistributionStatement": DrgRouteDistributionStatement,
+ "DrgRouteRule": DrgRouteRule,
+ "DrgRouteTable": DrgRouteTable,
"EgressSecurityRule": EgressSecurityRule,
"EmulatedVolumeAttachment": EmulatedVolumeAttachment,
"EncryptionDomainConfig": EncryptionDomainConfig,
@@ -648,6 +714,7 @@
"InstanceSourceViaImageDetails": InstanceSourceViaImageDetails,
"InstanceSummary": InstanceSummary,
"InternetGateway": InternetGateway,
+ "IpsecTunnelDrgAttachmentNetworkDetails": IpsecTunnelDrgAttachmentNetworkDetails,
"Ipv6": Ipv6,
"LaunchInstanceAgentConfigDetails": LaunchInstanceAgentConfigDetails,
"LaunchInstanceAvailabilityConfigDetails": LaunchInstanceAvailabilityConfigDetails,
@@ -661,16 +728,22 @@
"NatGateway": NatGateway,
"NetworkSecurityGroup": NetworkSecurityGroup,
"NetworkSecurityGroupVnic": NetworkSecurityGroupVnic,
+ "NetworkingTopology": NetworkingTopology,
"ParavirtualizedVolumeAttachment": ParavirtualizedVolumeAttachment,
"PeerRegionForRemotePeering": PeerRegionForRemotePeering,
"PlatformConfig": PlatformConfig,
"PortRange": PortRange,
+ "PreemptibleInstanceConfigDetails": PreemptibleInstanceConfigDetails,
+ "PreemptionAction": PreemptionAction,
"PrivateIp": PrivateIp,
"PublicIp": PublicIp,
"PublicIpPool": PublicIpPool,
"PublicIpPoolCollection": PublicIpPoolCollection,
"PublicIpPoolSummary": PublicIpPoolSummary,
"RemotePeeringConnection": RemotePeeringConnection,
+ "RemotePeeringConnectionDrgAttachmentNetworkDetails": RemotePeeringConnectionDrgAttachmentNetworkDetails,
+ "RemoveDrgRouteDistributionStatementsDetails": RemoveDrgRouteDistributionStatementsDetails,
+ "RemoveDrgRouteRulesDetails": RemoveDrgRouteRulesDetails,
"RemoveNetworkSecurityGroupSecurityRulesDetails": RemoveNetworkSecurityGroupSecurityRulesDetails,
"RemovePublicIpPoolCapacityDetails": RemovePublicIpPoolCapacityDetails,
"RemoveVcnCidrDetails": RemoveVcnCidrDetails,
@@ -689,6 +762,13 @@
"ShapeOcpuOptions": ShapeOcpuOptions,
"Subnet": Subnet,
"TcpOptions": TcpOptions,
+ "TerminatePreemptionAction": TerminatePreemptionAction,
+ "Topology": Topology,
+ "TopologyAssociatedWithEntityRelationship": TopologyAssociatedWithEntityRelationship,
+ "TopologyContainsEntityRelationship": TopologyContainsEntityRelationship,
+ "TopologyEntityRelationship": TopologyEntityRelationship,
+ "TopologyRoutesToEntityRelationship": TopologyRoutesToEntityRelationship,
+ "TopologyRoutesToRelationshipDetails": TopologyRoutesToRelationshipDetails,
"TunnelConfig": TunnelConfig,
"TunnelCpeDeviceConfig": TunnelCpeDeviceConfig,
"TunnelStatus": TunnelStatus,
@@ -708,6 +788,12 @@
"UpdateDhcpDetails": UpdateDhcpDetails,
"UpdateDrgAttachmentDetails": UpdateDrgAttachmentDetails,
"UpdateDrgDetails": UpdateDrgDetails,
+ "UpdateDrgRouteDistributionDetails": UpdateDrgRouteDistributionDetails,
+ "UpdateDrgRouteDistributionStatementDetails": UpdateDrgRouteDistributionStatementDetails,
+ "UpdateDrgRouteDistributionStatementsDetails": UpdateDrgRouteDistributionStatementsDetails,
+ "UpdateDrgRouteRuleDetails": UpdateDrgRouteRuleDetails,
+ "UpdateDrgRouteRulesDetails": UpdateDrgRouteRulesDetails,
+ "UpdateDrgRouteTableDetails": UpdateDrgRouteTableDetails,
"UpdateIPSecConnectionDetails": UpdateIPSecConnectionDetails,
"UpdateIPSecConnectionTunnelDetails": UpdateIPSecConnectionTunnelDetails,
"UpdateIPSecConnectionTunnelSharedSecretDetails": UpdateIPSecConnectionTunnelSharedSecretDetails,
@@ -750,10 +836,16 @@
"UpdateVolumeGroupDetails": UpdateVolumeGroupDetails,
"UpdateVolumeKmsKeyDetails": UpdateVolumeKmsKeyDetails,
"UpdatedNetworkSecurityGroupSecurityRules": UpdatedNetworkSecurityGroupSecurityRules,
+ "UpgradeStatus": UpgradeStatus,
"Vcn": Vcn,
"VcnDnsResolverAssociation": VcnDnsResolverAssociation,
+ "VcnDrgAttachmentNetworkCreateDetails": VcnDrgAttachmentNetworkCreateDetails,
+ "VcnDrgAttachmentNetworkDetails": VcnDrgAttachmentNetworkDetails,
+ "VcnDrgAttachmentNetworkUpdateDetails": VcnDrgAttachmentNetworkUpdateDetails,
+ "VcnTopology": VcnTopology,
"VirtualCircuit": VirtualCircuit,
"VirtualCircuitBandwidthShape": VirtualCircuitBandwidthShape,
+ "VirtualCircuitDrgAttachmentNetworkDetails": VirtualCircuitDrgAttachmentNetworkDetails,
"VirtualCircuitPublicPrefix": VirtualCircuitPublicPrefix,
"Vlan": Vlan,
"Vnic": Vnic,
diff --git a/src/oci/core/models/add_drg_route_distribution_statement_details.py b/src/oci/core/models/add_drg_route_distribution_statement_details.py
new file mode 100644
index 0000000000..731fec1ce0
--- /dev/null
+++ b/src/oci/core/models/add_drg_route_distribution_statement_details.py
@@ -0,0 +1,155 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AddDrgRouteDistributionStatementDetails(object):
+ """
+ Details used to add a route distribution statement.
+ """
+
+ #: A constant which can be used with the action property of a AddDrgRouteDistributionStatementDetails.
+ #: This constant has a value of "ACCEPT"
+ ACTION_ACCEPT = "ACCEPT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AddDrgRouteDistributionStatementDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param match_criteria:
+ The value to assign to the match_criteria property of this AddDrgRouteDistributionStatementDetails.
+ :type match_criteria: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+
+ :param action:
+ The value to assign to the action property of this AddDrgRouteDistributionStatementDetails.
+ Allowed values for this property are: "ACCEPT"
+ :type action: str
+
+ :param priority:
+ The value to assign to the priority property of this AddDrgRouteDistributionStatementDetails.
+ :type priority: int
+
+ """
+ self.swagger_types = {
+ 'match_criteria': 'list[DrgRouteDistributionMatchCriteria]',
+ 'action': 'str',
+ 'priority': 'int'
+ }
+
+ self.attribute_map = {
+ 'match_criteria': 'matchCriteria',
+ 'action': 'action',
+ 'priority': 'priority'
+ }
+
+ self._match_criteria = None
+ self._action = None
+ self._priority = None
+
+ @property
+ def match_criteria(self):
+ """
+ **[Required]** Gets the match_criteria of this AddDrgRouteDistributionStatementDetails.
+ The action is applied only if all of the match criteria is met.
+ If there are no match criteria in a statement, match ALL is implied.
+
+
+ :return: The match_criteria of this AddDrgRouteDistributionStatementDetails.
+ :rtype: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+ """
+ return self._match_criteria
+
+ @match_criteria.setter
+ def match_criteria(self, match_criteria):
+ """
+ Sets the match_criteria of this AddDrgRouteDistributionStatementDetails.
+ The action is applied only if all of the match criteria is met.
+ If there are no match criteria in a statement, match ALL is implied.
+
+
+ :param match_criteria: The match_criteria of this AddDrgRouteDistributionStatementDetails.
+ :type: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+ """
+ self._match_criteria = match_criteria
+
+ @property
+ def action(self):
+ """
+ **[Required]** Gets the action of this AddDrgRouteDistributionStatementDetails.
+ Accept: import/export the route \"as is\"
+
+ Allowed values for this property are: "ACCEPT"
+
+
+ :return: The action of this AddDrgRouteDistributionStatementDetails.
+ :rtype: str
+ """
+ return self._action
+
+ @action.setter
+ def action(self, action):
+ """
+ Sets the action of this AddDrgRouteDistributionStatementDetails.
+ Accept: import/export the route \"as is\"
+
+
+ :param action: The action of this AddDrgRouteDistributionStatementDetails.
+ :type: str
+ """
+ allowed_values = ["ACCEPT"]
+ if not value_allowed_none_or_none_sentinel(action, allowed_values):
+ raise ValueError(
+ "Invalid value for `action`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._action = action
+
+ @property
+ def priority(self):
+ """
+ **[Required]** Gets the priority of this AddDrgRouteDistributionStatementDetails.
+ This field is used to specify the priority of each statement in a route distribution.
+ The priority will be represented as a number between 0 and 65535 where a lower number
+ indicates a higher priority. When a route is processed, statements are applied in the order
+ defined by their priority. The first matching rule dictates the action that will be taken
+ on the route.
+
+
+ :return: The priority of this AddDrgRouteDistributionStatementDetails.
+ :rtype: int
+ """
+ return self._priority
+
+ @priority.setter
+ def priority(self, priority):
+ """
+ Sets the priority of this AddDrgRouteDistributionStatementDetails.
+ This field is used to specify the priority of each statement in a route distribution.
+ The priority will be represented as a number between 0 and 65535 where a lower number
+ indicates a higher priority. When a route is processed, statements are applied in the order
+ defined by their priority. The first matching rule dictates the action that will be taken
+ on the route.
+
+
+ :param priority: The priority of this AddDrgRouteDistributionStatementDetails.
+ :type: int
+ """
+ self._priority = priority
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/add_drg_route_distribution_statements_details.py b/src/oci/core/models/add_drg_route_distribution_statements_details.py
new file mode 100644
index 0000000000..7144996583
--- /dev/null
+++ b/src/oci/core/models/add_drg_route_distribution_statements_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AddDrgRouteDistributionStatementsDetails(object):
+ """
+ Details request to add statements to a route distribution.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AddDrgRouteDistributionStatementsDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param statements:
+ The value to assign to the statements property of this AddDrgRouteDistributionStatementsDetails.
+ :type statements: list[oci.core.models.AddDrgRouteDistributionStatementDetails]
+
+ """
+ self.swagger_types = {
+ 'statements': 'list[AddDrgRouteDistributionStatementDetails]'
+ }
+
+ self.attribute_map = {
+ 'statements': 'statements'
+ }
+
+ self._statements = None
+
+ @property
+ def statements(self):
+ """
+ **[Required]** Gets the statements of this AddDrgRouteDistributionStatementsDetails.
+ The collection of route distribution statements to insert into the route distribution.
+
+
+ :return: The statements of this AddDrgRouteDistributionStatementsDetails.
+ :rtype: list[oci.core.models.AddDrgRouteDistributionStatementDetails]
+ """
+ return self._statements
+
+ @statements.setter
+ def statements(self, statements):
+ """
+ Sets the statements of this AddDrgRouteDistributionStatementsDetails.
+ The collection of route distribution statements to insert into the route distribution.
+
+
+ :param statements: The statements of this AddDrgRouteDistributionStatementsDetails.
+ :type: list[oci.core.models.AddDrgRouteDistributionStatementDetails]
+ """
+ self._statements = statements
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/add_drg_route_rule_details.py b/src/oci/core/models/add_drg_route_rule_details.py
new file mode 100644
index 0000000000..85103a601d
--- /dev/null
+++ b/src/oci/core/models/add_drg_route_rule_details.py
@@ -0,0 +1,165 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AddDrgRouteRuleDetails(object):
+ """
+ Details needed when adding a DRG route rule.
+ """
+
+ #: A constant which can be used with the destination_type property of a AddDrgRouteRuleDetails.
+ #: This constant has a value of "CIDR_BLOCK"
+ DESTINATION_TYPE_CIDR_BLOCK = "CIDR_BLOCK"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AddDrgRouteRuleDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param destination_type:
+ The value to assign to the destination_type property of this AddDrgRouteRuleDetails.
+ Allowed values for this property are: "CIDR_BLOCK"
+ :type destination_type: str
+
+ :param destination:
+ The value to assign to the destination property of this AddDrgRouteRuleDetails.
+ :type destination: str
+
+ :param next_hop_drg_attachment_id:
+ The value to assign to the next_hop_drg_attachment_id property of this AddDrgRouteRuleDetails.
+ :type next_hop_drg_attachment_id: str
+
+ """
+ self.swagger_types = {
+ 'destination_type': 'str',
+ 'destination': 'str',
+ 'next_hop_drg_attachment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'destination_type': 'destinationType',
+ 'destination': 'destination',
+ 'next_hop_drg_attachment_id': 'nextHopDrgAttachmentId'
+ }
+
+ self._destination_type = None
+ self._destination = None
+ self._next_hop_drg_attachment_id = None
+
+ @property
+ def destination_type(self):
+ """
+ **[Required]** Gets the destination_type of this AddDrgRouteRuleDetails.
+ Type of destination for the rule. Required if `direction` = `EGRESS`.
+ Allowed values:
+ * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation.
+
+ Allowed values for this property are: "CIDR_BLOCK"
+
+
+ :return: The destination_type of this AddDrgRouteRuleDetails.
+ :rtype: str
+ """
+ return self._destination_type
+
+ @destination_type.setter
+ def destination_type(self, destination_type):
+ """
+ Sets the destination_type of this AddDrgRouteRuleDetails.
+ Type of destination for the rule. Required if `direction` = `EGRESS`.
+ Allowed values:
+ * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation.
+
+
+ :param destination_type: The destination_type of this AddDrgRouteRuleDetails.
+ :type: str
+ """
+ allowed_values = ["CIDR_BLOCK"]
+ if not value_allowed_none_or_none_sentinel(destination_type, allowed_values):
+ raise ValueError(
+ "Invalid value for `destination_type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._destination_type = destination_type
+
+ @property
+ def destination(self):
+ """
+ **[Required]** Gets the destination of this AddDrgRouteRuleDetails.
+ This is the range of IP addresses used for matching when routing
+ traffic. Only CIDR_BLOCK values are allowed.
+
+ Potential values:
+ * IP address range in CIDR notation. This can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
+ or `2001:0db8:0123:45::/56`.
+
+
+ :return: The destination of this AddDrgRouteRuleDetails.
+ :rtype: str
+ """
+ return self._destination
+
+ @destination.setter
+ def destination(self, destination):
+ """
+ Sets the destination of this AddDrgRouteRuleDetails.
+ This is the range of IP addresses used for matching when routing
+ traffic. Only CIDR_BLOCK values are allowed.
+
+ Potential values:
+ * IP address range in CIDR notation. This can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
+ or `2001:0db8:0123:45::/56`.
+
+
+ :param destination: The destination of this AddDrgRouteRuleDetails.
+ :type: str
+ """
+ self._destination = destination
+
+ @property
+ def next_hop_drg_attachment_id(self):
+ """
+ **[Required]** Gets the next_hop_drg_attachment_id of this AddDrgRouteRuleDetails.
+ The `OCID`__ of the next hop DRG attachment. The next hop DRG attachment is responsible
+ for reaching the network destination.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The next_hop_drg_attachment_id of this AddDrgRouteRuleDetails.
+ :rtype: str
+ """
+ return self._next_hop_drg_attachment_id
+
+ @next_hop_drg_attachment_id.setter
+ def next_hop_drg_attachment_id(self, next_hop_drg_attachment_id):
+ """
+ Sets the next_hop_drg_attachment_id of this AddDrgRouteRuleDetails.
+ The `OCID`__ of the next hop DRG attachment. The next hop DRG attachment is responsible
+ for reaching the network destination.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param next_hop_drg_attachment_id: The next_hop_drg_attachment_id of this AddDrgRouteRuleDetails.
+ :type: str
+ """
+ self._next_hop_drg_attachment_id = next_hop_drg_attachment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/add_drg_route_rules_details.py b/src/oci/core/models/add_drg_route_rules_details.py
new file mode 100644
index 0000000000..b95cc646f6
--- /dev/null
+++ b/src/oci/core/models/add_drg_route_rules_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AddDrgRouteRulesDetails(object):
+ """
+ Details used in a request to add static routes to a DRG route table.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AddDrgRouteRulesDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param route_rules:
+ The value to assign to the route_rules property of this AddDrgRouteRulesDetails.
+ :type route_rules: list[oci.core.models.AddDrgRouteRuleDetails]
+
+ """
+ self.swagger_types = {
+ 'route_rules': 'list[AddDrgRouteRuleDetails]'
+ }
+
+ self.attribute_map = {
+ 'route_rules': 'routeRules'
+ }
+
+ self._route_rules = None
+
+ @property
+ def route_rules(self):
+ """
+ Gets the route_rules of this AddDrgRouteRulesDetails.
+ The collection of static rules used to insert routes into the DRG route table.
+
+
+ :return: The route_rules of this AddDrgRouteRulesDetails.
+ :rtype: list[oci.core.models.AddDrgRouteRuleDetails]
+ """
+ return self._route_rules
+
+ @route_rules.setter
+ def route_rules(self, route_rules):
+ """
+ Sets the route_rules of this AddDrgRouteRulesDetails.
+ The collection of static rules used to insert routes into the DRG route table.
+
+
+ :param route_rules: The route_rules of this AddDrgRouteRulesDetails.
+ :type: list[oci.core.models.AddDrgRouteRuleDetails]
+ """
+ self._route_rules = route_rules
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/add_security_rule_details.py b/src/oci/core/models/add_security_rule_details.py
index 8434607a58..41a8651662 100644
--- a/src/oci/core/models/add_security_rule_details.py
+++ b/src/oci/core/models/add_security_rule_details.py
@@ -172,7 +172,7 @@ def destination(self):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
@@ -201,7 +201,7 @@ def destination(self, destination):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
@@ -404,7 +404,7 @@ def source(self):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
@@ -433,7 +433,7 @@ def source(self, source):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
diff --git a/src/oci/core/models/bgp_session_info.py b/src/oci/core/models/bgp_session_info.py
index 4512183387..95833ee819 100644
--- a/src/oci/core/models/bgp_session_info.py
+++ b/src/oci/core/models/bgp_session_info.py
@@ -21,6 +21,14 @@ class BgpSessionInfo(object):
#: This constant has a value of "DOWN"
BGP_STATE_DOWN = "DOWN"
+ #: A constant which can be used with the bgp_ipv6_state property of a BgpSessionInfo.
+ #: This constant has a value of "UP"
+ BGP_IPV6_STATE_UP = "UP"
+
+ #: A constant which can be used with the bgp_ipv6_state property of a BgpSessionInfo.
+ #: This constant has a value of "DOWN"
+ BGP_IPV6_STATE_DOWN = "DOWN"
+
def __init__(self, **kwargs):
"""
Initializes a new BgpSessionInfo object with values from keyword arguments.
@@ -34,6 +42,14 @@ def __init__(self, **kwargs):
The value to assign to the customer_interface_ip property of this BgpSessionInfo.
:type customer_interface_ip: str
+ :param oracle_interface_ipv6:
+ The value to assign to the oracle_interface_ipv6 property of this BgpSessionInfo.
+ :type oracle_interface_ipv6: str
+
+ :param customer_interface_ipv6:
+ The value to assign to the customer_interface_ipv6 property of this BgpSessionInfo.
+ :type customer_interface_ipv6: str
+
:param oracle_bgp_asn:
The value to assign to the oracle_bgp_asn property of this BgpSessionInfo.
:type oracle_bgp_asn: str
@@ -48,28 +64,43 @@ def __init__(self, **kwargs):
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type bgp_state: str
+ :param bgp_ipv6_state:
+ The value to assign to the bgp_ipv6_state property of this BgpSessionInfo.
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type bgp_ipv6_state: str
+
"""
self.swagger_types = {
'oracle_interface_ip': 'str',
'customer_interface_ip': 'str',
+ 'oracle_interface_ipv6': 'str',
+ 'customer_interface_ipv6': 'str',
'oracle_bgp_asn': 'str',
'customer_bgp_asn': 'str',
- 'bgp_state': 'str'
+ 'bgp_state': 'str',
+ 'bgp_ipv6_state': 'str'
}
self.attribute_map = {
'oracle_interface_ip': 'oracleInterfaceIp',
'customer_interface_ip': 'customerInterfaceIp',
+ 'oracle_interface_ipv6': 'oracleInterfaceIpv6',
+ 'customer_interface_ipv6': 'customerInterfaceIpv6',
'oracle_bgp_asn': 'oracleBgpAsn',
'customer_bgp_asn': 'customerBgpAsn',
- 'bgp_state': 'bgpState'
+ 'bgp_state': 'bgpState',
+ 'bgp_ipv6_state': 'bgpIpv6State'
}
self._oracle_interface_ip = None
self._customer_interface_ip = None
+ self._oracle_interface_ipv6 = None
+ self._customer_interface_ipv6 = None
self._oracle_bgp_asn = None
self._customer_bgp_asn = None
self._bgp_state = None
+ self._bgp_ipv6_state = None
@property
def oracle_interface_ip(self):
@@ -163,6 +194,98 @@ def customer_interface_ip(self, customer_interface_ip):
"""
self._customer_interface_ip = customer_interface_ip
+ @property
+ def oracle_interface_ipv6(self):
+ """
+ Gets the oracle_interface_ipv6 of this BgpSessionInfo.
+ The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :return: The oracle_interface_ipv6 of this BgpSessionInfo.
+ :rtype: str
+ """
+ return self._oracle_interface_ipv6
+
+ @oracle_interface_ipv6.setter
+ def oracle_interface_ipv6(self, oracle_interface_ipv6):
+ """
+ Sets the oracle_interface_ipv6 of this BgpSessionInfo.
+ The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :param oracle_interface_ipv6: The oracle_interface_ipv6 of this BgpSessionInfo.
+ :type: str
+ """
+ self._oracle_interface_ipv6 = oracle_interface_ipv6
+
+ @property
+ def customer_interface_ipv6(self):
+ """
+ Gets the customer_interface_ipv6 of this BgpSessionInfo.
+ The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :return: The customer_interface_ipv6 of this BgpSessionInfo.
+ :rtype: str
+ """
+ return self._customer_interface_ipv6
+
+ @customer_interface_ipv6.setter
+ def customer_interface_ipv6(self, customer_interface_ipv6):
+ """
+ Sets the customer_interface_ipv6 of this BgpSessionInfo.
+ The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :param customer_interface_ipv6: The customer_interface_ipv6 of this BgpSessionInfo.
+ :type: str
+ """
+ self._customer_interface_ipv6 = customer_interface_ipv6
+
@property
def oracle_bgp_asn(self):
"""
@@ -255,6 +378,36 @@ def bgp_state(self, bgp_state):
bgp_state = 'UNKNOWN_ENUM_VALUE'
self._bgp_state = bgp_state
+ @property
+ def bgp_ipv6_state(self):
+ """
+ Gets the bgp_ipv6_state of this BgpSessionInfo.
+ The state of the BGP IPv6 session.
+
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The bgp_ipv6_state of this BgpSessionInfo.
+ :rtype: str
+ """
+ return self._bgp_ipv6_state
+
+ @bgp_ipv6_state.setter
+ def bgp_ipv6_state(self, bgp_ipv6_state):
+ """
+ Sets the bgp_ipv6_state of this BgpSessionInfo.
+ The state of the BGP IPv6 session.
+
+
+ :param bgp_ipv6_state: The bgp_ipv6_state of this BgpSessionInfo.
+ :type: str
+ """
+ allowed_values = ["UP", "DOWN"]
+ if not value_allowed_none_or_none_sentinel(bgp_ipv6_state, allowed_values):
+ bgp_ipv6_state = 'UNKNOWN_ENUM_VALUE'
+ self._bgp_ipv6_state = bgp_ipv6_state
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/block_volume_replica.py b/src/oci/core/models/block_volume_replica.py
index 810dab4824..415761e9a3 100644
--- a/src/oci/core/models/block_volume_replica.py
+++ b/src/oci/core/models/block_volume_replica.py
@@ -100,6 +100,10 @@ def __init__(self, **kwargs):
The value to assign to the block_volume_id property of this BlockVolumeReplica.
:type block_volume_id: str
+ :param total_data_transferred_in_gbs:
+ The value to assign to the total_data_transferred_in_gbs property of this BlockVolumeReplica.
+ :type total_data_transferred_in_gbs: int
+
"""
self.swagger_types = {
'availability_domain': 'str',
@@ -112,7 +116,8 @@ def __init__(self, **kwargs):
'size_in_gbs': 'int',
'time_created': 'datetime',
'time_last_synced': 'datetime',
- 'block_volume_id': 'str'
+ 'block_volume_id': 'str',
+ 'total_data_transferred_in_gbs': 'int'
}
self.attribute_map = {
@@ -126,7 +131,8 @@ def __init__(self, **kwargs):
'size_in_gbs': 'sizeInGBs',
'time_created': 'timeCreated',
'time_last_synced': 'timeLastSynced',
- 'block_volume_id': 'blockVolumeId'
+ 'block_volume_id': 'blockVolumeId',
+ 'total_data_transferred_in_gbs': 'totalDataTransferredInGBs'
}
self._availability_domain = None
@@ -140,6 +146,7 @@ def __init__(self, **kwargs):
self._time_created = None
self._time_last_synced = None
self._block_volume_id = None
+ self._total_data_transferred_in_gbs = None
@property
def availability_domain(self):
@@ -449,6 +456,30 @@ def block_volume_id(self, block_volume_id):
"""
self._block_volume_id = block_volume_id
+ @property
+ def total_data_transferred_in_gbs(self):
+ """
+ Gets the total_data_transferred_in_gbs of this BlockVolumeReplica.
+ The total size of the data transferred from the source block volume to the block volume replica, in GBs.
+
+
+ :return: The total_data_transferred_in_gbs of this BlockVolumeReplica.
+ :rtype: int
+ """
+ return self._total_data_transferred_in_gbs
+
+ @total_data_transferred_in_gbs.setter
+ def total_data_transferred_in_gbs(self, total_data_transferred_in_gbs):
+ """
+ Sets the total_data_transferred_in_gbs of this BlockVolumeReplica.
+ The total size of the data transferred from the source block volume to the block volume replica, in GBs.
+
+
+ :param total_data_transferred_in_gbs: The total_data_transferred_in_gbs of this BlockVolumeReplica.
+ :type: int
+ """
+ self._total_data_transferred_in_gbs = total_data_transferred_in_gbs
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/boot_volume_replica.py b/src/oci/core/models/boot_volume_replica.py
index 65bd66b457..939f284c9c 100644
--- a/src/oci/core/models/boot_volume_replica.py
+++ b/src/oci/core/models/boot_volume_replica.py
@@ -104,6 +104,10 @@ def __init__(self, **kwargs):
The value to assign to the image_id property of this BootVolumeReplica.
:type image_id: str
+ :param total_data_transferred_in_gbs:
+ The value to assign to the total_data_transferred_in_gbs property of this BootVolumeReplica.
+ :type total_data_transferred_in_gbs: int
+
"""
self.swagger_types = {
'availability_domain': 'str',
@@ -117,7 +121,8 @@ def __init__(self, **kwargs):
'time_created': 'datetime',
'time_last_synced': 'datetime',
'boot_volume_id': 'str',
- 'image_id': 'str'
+ 'image_id': 'str',
+ 'total_data_transferred_in_gbs': 'int'
}
self.attribute_map = {
@@ -132,7 +137,8 @@ def __init__(self, **kwargs):
'time_created': 'timeCreated',
'time_last_synced': 'timeLastSynced',
'boot_volume_id': 'bootVolumeId',
- 'image_id': 'imageId'
+ 'image_id': 'imageId',
+ 'total_data_transferred_in_gbs': 'totalDataTransferredInGBs'
}
self._availability_domain = None
@@ -147,6 +153,7 @@ def __init__(self, **kwargs):
self._time_last_synced = None
self._boot_volume_id = None
self._image_id = None
+ self._total_data_transferred_in_gbs = None
@property
def availability_domain(self):
@@ -480,6 +487,30 @@ def image_id(self, image_id):
"""
self._image_id = image_id
+ @property
+ def total_data_transferred_in_gbs(self):
+ """
+ Gets the total_data_transferred_in_gbs of this BootVolumeReplica.
+ The total size of the data transferred from the source boot volume to the boot volume replica, in GBs.
+
+
+ :return: The total_data_transferred_in_gbs of this BootVolumeReplica.
+ :rtype: int
+ """
+ return self._total_data_transferred_in_gbs
+
+ @total_data_transferred_in_gbs.setter
+ def total_data_transferred_in_gbs(self, total_data_transferred_in_gbs):
+ """
+ Sets the total_data_transferred_in_gbs of this BootVolumeReplica.
+ The total size of the data transferred from the source boot volume to the boot volume replica, in GBs.
+
+
+ :param total_data_transferred_in_gbs: The total_data_transferred_in_gbs of this BootVolumeReplica.
+ :type: int
+ """
+ self._total_data_transferred_in_gbs = total_data_transferred_in_gbs
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/create_drg_attachment_details.py b/src/oci/core/models/create_drg_attachment_details.py
index 729f6a4579..42829fb368 100644
--- a/src/oci/core/models/create_drg_attachment_details.py
+++ b/src/oci/core/models/create_drg_attachment_details.py
@@ -26,6 +26,22 @@ def __init__(self, **kwargs):
The value to assign to the drg_id property of this CreateDrgAttachmentDetails.
:type drg_id: str
+ :param drg_route_table_id:
+ The value to assign to the drg_route_table_id property of this CreateDrgAttachmentDetails.
+ :type drg_route_table_id: str
+
+ :param network_details:
+ The value to assign to the network_details property of this CreateDrgAttachmentDetails.
+ :type network_details: oci.core.models.DrgAttachmentNetworkCreateDetails
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateDrgAttachmentDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateDrgAttachmentDetails.
+ :type freeform_tags: dict(str, str)
+
:param route_table_id:
The value to assign to the route_table_id property of this CreateDrgAttachmentDetails.
:type route_table_id: str
@@ -38,6 +54,10 @@ def __init__(self, **kwargs):
self.swagger_types = {
'display_name': 'str',
'drg_id': 'str',
+ 'drg_route_table_id': 'str',
+ 'network_details': 'DrgAttachmentNetworkCreateDetails',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'freeform_tags': 'dict(str, str)',
'route_table_id': 'str',
'vcn_id': 'str'
}
@@ -45,12 +65,20 @@ def __init__(self, **kwargs):
self.attribute_map = {
'display_name': 'displayName',
'drg_id': 'drgId',
+ 'drg_route_table_id': 'drgRouteTableId',
+ 'network_details': 'networkDetails',
+ 'defined_tags': 'definedTags',
+ 'freeform_tags': 'freeformTags',
'route_table_id': 'routeTableId',
'vcn_id': 'vcnId'
}
self._display_name = None
self._drg_id = None
+ self._drg_route_table_id = None
+ self._network_details = None
+ self._defined_tags = None
+ self._freeform_tags = None
self._route_table_id = None
self._vcn_id = None
@@ -84,7 +112,9 @@ def display_name(self, display_name):
def drg_id(self):
"""
**[Required]** Gets the drg_id of this CreateDrgAttachmentDetails.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The drg_id of this CreateDrgAttachmentDetails.
@@ -96,7 +126,9 @@ def drg_id(self):
def drg_id(self, drg_id):
"""
Sets the drg_id of this CreateDrgAttachmentDetails.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param drg_id: The drg_id of this CreateDrgAttachmentDetails.
@@ -104,11 +136,131 @@ def drg_id(self, drg_id):
"""
self._drg_id = drg_id
+ @property
+ def drg_route_table_id(self):
+ """
+ Gets the drg_route_table_id of this CreateDrgAttachmentDetails.
+ The `OCID`__ of the DRG route table that is assigned to this attachment.
+
+ The DRG route table manages traffic inside the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_route_table_id of this CreateDrgAttachmentDetails.
+ :rtype: str
+ """
+ return self._drg_route_table_id
+
+ @drg_route_table_id.setter
+ def drg_route_table_id(self, drg_route_table_id):
+ """
+ Sets the drg_route_table_id of this CreateDrgAttachmentDetails.
+ The `OCID`__ of the DRG route table that is assigned to this attachment.
+
+ The DRG route table manages traffic inside the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_route_table_id: The drg_route_table_id of this CreateDrgAttachmentDetails.
+ :type: str
+ """
+ self._drg_route_table_id = drg_route_table_id
+
+ @property
+ def network_details(self):
+ """
+ Gets the network_details of this CreateDrgAttachmentDetails.
+
+ :return: The network_details of this CreateDrgAttachmentDetails.
+ :rtype: oci.core.models.DrgAttachmentNetworkCreateDetails
+ """
+ return self._network_details
+
+ @network_details.setter
+ def network_details(self, network_details):
+ """
+ Sets the network_details of this CreateDrgAttachmentDetails.
+
+ :param network_details: The network_details of this CreateDrgAttachmentDetails.
+ :type: oci.core.models.DrgAttachmentNetworkCreateDetails
+ """
+ self._network_details = network_details
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateDrgAttachmentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this CreateDrgAttachmentDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateDrgAttachmentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this CreateDrgAttachmentDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateDrgAttachmentDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this CreateDrgAttachmentDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateDrgAttachmentDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this CreateDrgAttachmentDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
@property
def route_table_id(self):
"""
Gets the route_table_id of this CreateDrgAttachmentDetails.
- The OCID of the route table the DRG attachment will use.
+ The `OCID`__ of the route table used by the DRG attachment.
If you don't specify a route table here, the DRG attachment is created without an associated route
table. The Networking service does NOT automatically associate the attached VCN's default route table
@@ -117,7 +269,9 @@ def route_table_id(self):
* `Transit Routing: Access to Multiple VCNs in Same Region`__
* `Transit Routing: Private Access to Oracle Services`__
+ This field is deprecated. Instead, use the networkDetails field to specify the VCN route table for this attachment.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
@@ -131,7 +285,7 @@ def route_table_id(self):
def route_table_id(self, route_table_id):
"""
Sets the route_table_id of this CreateDrgAttachmentDetails.
- The OCID of the route table the DRG attachment will use.
+ The `OCID`__ of the route table used by the DRG attachment.
If you don't specify a route table here, the DRG attachment is created without an associated route
table. The Networking service does NOT automatically associate the attached VCN's default route table
@@ -140,7 +294,9 @@ def route_table_id(self, route_table_id):
* `Transit Routing: Access to Multiple VCNs in Same Region`__
* `Transit Routing: Private Access to Oracle Services`__
+ This field is deprecated. Instead, use the networkDetails field to specify the VCN route table for this attachment.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
@@ -153,8 +309,12 @@ def route_table_id(self, route_table_id):
@property
def vcn_id(self):
"""
- **[Required]** Gets the vcn_id of this CreateDrgAttachmentDetails.
- The OCID of the VCN.
+ Gets the vcn_id of this CreateDrgAttachmentDetails.
+ The `OCID`__ of the VCN.
+ This field is deprecated. Instead, use the `networkDetails` field to specify the `OCID`__ of the attached resource.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The vcn_id of this CreateDrgAttachmentDetails.
@@ -166,7 +326,11 @@ def vcn_id(self):
def vcn_id(self, vcn_id):
"""
Sets the vcn_id of this CreateDrgAttachmentDetails.
- The OCID of the VCN.
+ The `OCID`__ of the VCN.
+ This field is deprecated. Instead, use the `networkDetails` field to specify the `OCID`__ of the attached resource.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param vcn_id: The vcn_id of this CreateDrgAttachmentDetails.
diff --git a/src/oci/core/models/create_drg_details.py b/src/oci/core/models/create_drg_details.py
index 24aee12155..7ed8bd2422 100644
--- a/src/oci/core/models/create_drg_details.py
+++ b/src/oci/core/models/create_drg_details.py
@@ -58,7 +58,9 @@ def __init__(self, **kwargs):
def compartment_id(self):
"""
**[Required]** Gets the compartment_id of this CreateDrgDetails.
- The OCID of the compartment to contain the DRG.
+ The `OCID`__ of the compartment to contain the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The compartment_id of this CreateDrgDetails.
@@ -70,7 +72,9 @@ def compartment_id(self):
def compartment_id(self, compartment_id):
"""
Sets the compartment_id of this CreateDrgDetails.
- The OCID of the compartment to contain the DRG.
+ The `OCID`__ of the compartment to contain the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param compartment_id: The compartment_id of this CreateDrgDetails.
diff --git a/src/oci/core/models/create_drg_route_distribution_details.py b/src/oci/core/models/create_drg_route_distribution_details.py
new file mode 100644
index 0000000000..f6ac21b8aa
--- /dev/null
+++ b/src/oci/core/models/create_drg_route_distribution_details.py
@@ -0,0 +1,233 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDrgRouteDistributionDetails(object):
+ """
+ Details used to create a route distribution.
+ """
+
+ #: A constant which can be used with the distribution_type property of a CreateDrgRouteDistributionDetails.
+ #: This constant has a value of "IMPORT"
+ DISTRIBUTION_TYPE_IMPORT = "IMPORT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDrgRouteDistributionDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateDrgRouteDistributionDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param display_name:
+ The value to assign to the display_name property of this CreateDrgRouteDistributionDetails.
+ :type display_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateDrgRouteDistributionDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param drg_id:
+ The value to assign to the drg_id property of this CreateDrgRouteDistributionDetails.
+ :type drg_id: str
+
+ :param distribution_type:
+ The value to assign to the distribution_type property of this CreateDrgRouteDistributionDetails.
+ Allowed values for this property are: "IMPORT"
+ :type distribution_type: str
+
+ """
+ self.swagger_types = {
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'display_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'drg_id': 'str',
+ 'distribution_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'defined_tags': 'definedTags',
+ 'display_name': 'displayName',
+ 'freeform_tags': 'freeformTags',
+ 'drg_id': 'drgId',
+ 'distribution_type': 'distributionType'
+ }
+
+ self._defined_tags = None
+ self._display_name = None
+ self._freeform_tags = None
+ self._drg_id = None
+ self._distribution_type = None
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateDrgRouteDistributionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this CreateDrgRouteDistributionDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateDrgRouteDistributionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this CreateDrgRouteDistributionDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this CreateDrgRouteDistributionDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :return: The display_name of this CreateDrgRouteDistributionDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CreateDrgRouteDistributionDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :param display_name: The display_name of this CreateDrgRouteDistributionDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateDrgRouteDistributionDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this CreateDrgRouteDistributionDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateDrgRouteDistributionDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this CreateDrgRouteDistributionDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def drg_id(self):
+ """
+ **[Required]** Gets the drg_id of this CreateDrgRouteDistributionDetails.
+ The `OCID`__ of the DRG the DRG route table belongs to.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_id of this CreateDrgRouteDistributionDetails.
+ :rtype: str
+ """
+ return self._drg_id
+
+ @drg_id.setter
+ def drg_id(self, drg_id):
+ """
+ Sets the drg_id of this CreateDrgRouteDistributionDetails.
+ The `OCID`__ of the DRG the DRG route table belongs to.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_id: The drg_id of this CreateDrgRouteDistributionDetails.
+ :type: str
+ """
+ self._drg_id = drg_id
+
+ @property
+ def distribution_type(self):
+ """
+ **[Required]** Gets the distribution_type of this CreateDrgRouteDistributionDetails.
+ Whether this distribution defines how routes get imported into route tables or exported through DRG Attachments
+
+ Allowed values for this property are: "IMPORT"
+
+
+ :return: The distribution_type of this CreateDrgRouteDistributionDetails.
+ :rtype: str
+ """
+ return self._distribution_type
+
+ @distribution_type.setter
+ def distribution_type(self, distribution_type):
+ """
+ Sets the distribution_type of this CreateDrgRouteDistributionDetails.
+ Whether this distribution defines how routes get imported into route tables or exported through DRG Attachments
+
+
+ :param distribution_type: The distribution_type of this CreateDrgRouteDistributionDetails.
+ :type: str
+ """
+ allowed_values = ["IMPORT"]
+ if not value_allowed_none_or_none_sentinel(distribution_type, allowed_values):
+ raise ValueError(
+ "Invalid value for `distribution_type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._distribution_type = distribution_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/create_drg_route_table_details.py b/src/oci/core/models/create_drg_route_table_details.py
new file mode 100644
index 0000000000..7850af9b01
--- /dev/null
+++ b/src/oci/core/models/create_drg_route_table_details.py
@@ -0,0 +1,259 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDrgRouteTableDetails(object):
+ """
+ Details used in a request to create a DRG route table.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDrgRouteTableDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateDrgRouteTableDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param display_name:
+ The value to assign to the display_name property of this CreateDrgRouteTableDetails.
+ :type display_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateDrgRouteTableDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param drg_id:
+ The value to assign to the drg_id property of this CreateDrgRouteTableDetails.
+ :type drg_id: str
+
+ :param import_drg_route_distribution_id:
+ The value to assign to the import_drg_route_distribution_id property of this CreateDrgRouteTableDetails.
+ :type import_drg_route_distribution_id: str
+
+ :param is_ecmp_enabled:
+ The value to assign to the is_ecmp_enabled property of this CreateDrgRouteTableDetails.
+ :type is_ecmp_enabled: bool
+
+ """
+ self.swagger_types = {
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'display_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'drg_id': 'str',
+ 'import_drg_route_distribution_id': 'str',
+ 'is_ecmp_enabled': 'bool'
+ }
+
+ self.attribute_map = {
+ 'defined_tags': 'definedTags',
+ 'display_name': 'displayName',
+ 'freeform_tags': 'freeformTags',
+ 'drg_id': 'drgId',
+ 'import_drg_route_distribution_id': 'importDrgRouteDistributionId',
+ 'is_ecmp_enabled': 'isEcmpEnabled'
+ }
+
+ self._defined_tags = None
+ self._display_name = None
+ self._freeform_tags = None
+ self._drg_id = None
+ self._import_drg_route_distribution_id = None
+ self._is_ecmp_enabled = None
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateDrgRouteTableDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this CreateDrgRouteTableDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateDrgRouteTableDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this CreateDrgRouteTableDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this CreateDrgRouteTableDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :return: The display_name of this CreateDrgRouteTableDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CreateDrgRouteTableDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :param display_name: The display_name of this CreateDrgRouteTableDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateDrgRouteTableDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this CreateDrgRouteTableDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateDrgRouteTableDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this CreateDrgRouteTableDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def drg_id(self):
+ """
+ **[Required]** Gets the drg_id of this CreateDrgRouteTableDetails.
+ The `OCID`__ of the DRG the DRG route table belongs to.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_id of this CreateDrgRouteTableDetails.
+ :rtype: str
+ """
+ return self._drg_id
+
+ @drg_id.setter
+ def drg_id(self, drg_id):
+ """
+ Sets the drg_id of this CreateDrgRouteTableDetails.
+ The `OCID`__ of the DRG the DRG route table belongs to.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_id: The drg_id of this CreateDrgRouteTableDetails.
+ :type: str
+ """
+ self._drg_id = drg_id
+
+ @property
+ def import_drg_route_distribution_id(self):
+ """
+ Gets the import_drg_route_distribution_id of this CreateDrgRouteTableDetails.
+ The `OCID`__ of the import route distribution used to specify how incoming route advertisements through
+ referenced attachments are inserted into the DRG route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The import_drg_route_distribution_id of this CreateDrgRouteTableDetails.
+ :rtype: str
+ """
+ return self._import_drg_route_distribution_id
+
+ @import_drg_route_distribution_id.setter
+ def import_drg_route_distribution_id(self, import_drg_route_distribution_id):
+ """
+ Sets the import_drg_route_distribution_id of this CreateDrgRouteTableDetails.
+ The `OCID`__ of the import route distribution used to specify how incoming route advertisements through
+ referenced attachments are inserted into the DRG route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param import_drg_route_distribution_id: The import_drg_route_distribution_id of this CreateDrgRouteTableDetails.
+ :type: str
+ """
+ self._import_drg_route_distribution_id = import_drg_route_distribution_id
+
+ @property
+ def is_ecmp_enabled(self):
+ """
+ Gets the is_ecmp_enabled of this CreateDrgRouteTableDetails.
+ If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to
+ your on-premises networks, enable ECMP on the DRG route table.
+
+
+ :return: The is_ecmp_enabled of this CreateDrgRouteTableDetails.
+ :rtype: bool
+ """
+ return self._is_ecmp_enabled
+
+ @is_ecmp_enabled.setter
+ def is_ecmp_enabled(self, is_ecmp_enabled):
+ """
+ Sets the is_ecmp_enabled of this CreateDrgRouteTableDetails.
+ If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to
+ your on-premises networks, enable ECMP on the DRG route table.
+
+
+ :param is_ecmp_enabled: The is_ecmp_enabled of this CreateDrgRouteTableDetails.
+ :type: bool
+ """
+ self._is_ecmp_enabled = is_ecmp_enabled
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/create_image_details.py b/src/oci/core/models/create_image_details.py
index 1613c575af..a9d0c8d9be 100644
--- a/src/oci/core/models/create_image_details.py
+++ b/src/oci/core/models/create_image_details.py
@@ -157,7 +157,7 @@ def display_name(self):
A user-friendly name for the image. It does not have to be unique, and it's changeable.
Avoid entering confidential information.
- You cannot use an Oracle-provided image name as a custom image name.
+ You cannot use a platform image name as a custom image name.
Example: `My Oracle Linux image`
@@ -174,7 +174,7 @@ def display_name(self, display_name):
A user-friendly name for the image. It does not have to be unique, and it's changeable.
Avoid entering confidential information.
- You cannot use an Oracle-provided image name as a custom image name.
+ You cannot use a platform image name as a custom image name.
Example: `My Oracle Linux image`
@@ -267,7 +267,7 @@ def launch_mode(self):
"""
Gets the launch_mode of this CreateImageDetails.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with paravirtualized boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with paravirtualized boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
@@ -285,7 +285,7 @@ def launch_mode(self, launch_mode):
"""
Sets the launch_mode of this CreateImageDetails.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with paravirtualized boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with paravirtualized boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
diff --git a/src/oci/core/models/create_ip_sec_connection_details.py b/src/oci/core/models/create_ip_sec_connection_details.py
index c788599957..33f85b31db 100644
--- a/src/oci/core/models/create_ip_sec_connection_details.py
+++ b/src/oci/core/models/create_ip_sec_connection_details.py
@@ -217,7 +217,9 @@ def display_name(self, display_name):
def drg_id(self):
"""
**[Required]** Gets the drg_id of this CreateIPSecConnectionDetails.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:return: The drg_id of this CreateIPSecConnectionDetails.
@@ -229,7 +231,9 @@ def drg_id(self):
def drg_id(self, drg_id):
"""
Sets the drg_id of this CreateIPSecConnectionDetails.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param drg_id: The drg_id of this CreateIPSecConnectionDetails.
@@ -370,8 +374,8 @@ def static_routes(self):
tunnels to use BGP dynamic routing, you can provide an empty list for the static routes.
For more information, see the important note in :class:`IPSecConnection`.
- The CIDR can be either IPv4 or IPv6. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
Example: `10.0.1.0/24`
@@ -398,8 +402,8 @@ def static_routes(self, static_routes):
tunnels to use BGP dynamic routing, you can provide an empty list for the static routes.
For more information, see the important note in :class:`IPSecConnection`.
- The CIDR can be either IPv4 or IPv6. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
Example: `10.0.1.0/24`
diff --git a/src/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py b/src/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py
index 0c83374c0a..3aea34f18e 100644
--- a/src/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py
+++ b/src/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py
@@ -26,6 +26,14 @@ def __init__(self, **kwargs):
The value to assign to the customer_interface_ip property of this CreateIPSecTunnelBgpSessionDetails.
:type customer_interface_ip: str
+ :param oracle_interface_ipv6:
+ The value to assign to the oracle_interface_ipv6 property of this CreateIPSecTunnelBgpSessionDetails.
+ :type oracle_interface_ipv6: str
+
+ :param customer_interface_ipv6:
+ The value to assign to the customer_interface_ipv6 property of this CreateIPSecTunnelBgpSessionDetails.
+ :type customer_interface_ipv6: str
+
:param customer_bgp_asn:
The value to assign to the customer_bgp_asn property of this CreateIPSecTunnelBgpSessionDetails.
:type customer_bgp_asn: str
@@ -34,17 +42,23 @@ def __init__(self, **kwargs):
self.swagger_types = {
'oracle_interface_ip': 'str',
'customer_interface_ip': 'str',
+ 'oracle_interface_ipv6': 'str',
+ 'customer_interface_ipv6': 'str',
'customer_bgp_asn': 'str'
}
self.attribute_map = {
'oracle_interface_ip': 'oracleInterfaceIp',
'customer_interface_ip': 'customerInterfaceIp',
+ 'oracle_interface_ipv6': 'oracleInterfaceIpv6',
+ 'customer_interface_ipv6': 'customerInterfaceIpv6',
'customer_bgp_asn': 'customerBgpAsn'
}
self._oracle_interface_ip = None
self._customer_interface_ip = None
+ self._oracle_interface_ipv6 = None
+ self._customer_interface_ipv6 = None
self._customer_bgp_asn = None
@property
@@ -139,6 +153,98 @@ def customer_interface_ip(self, customer_interface_ip):
"""
self._customer_interface_ip = customer_interface_ip
+ @property
+ def oracle_interface_ipv6(self):
+ """
+ Gets the oracle_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :return: The oracle_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ :rtype: str
+ """
+ return self._oracle_interface_ipv6
+
+ @oracle_interface_ipv6.setter
+ def oracle_interface_ipv6(self, oracle_interface_ipv6):
+ """
+ Sets the oracle_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :param oracle_interface_ipv6: The oracle_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ :type: str
+ """
+ self._oracle_interface_ipv6 = oracle_interface_ipv6
+
+ @property
+ def customer_interface_ipv6(self):
+ """
+ Gets the customer_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :return: The customer_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ :rtype: str
+ """
+ return self._customer_interface_ipv6
+
+ @customer_interface_ipv6.setter
+ def customer_interface_ipv6(self, customer_interface_ipv6):
+ """
+ Sets the customer_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :param customer_interface_ipv6: The customer_interface_ipv6 of this CreateIPSecTunnelBgpSessionDetails.
+ :type: str
+ """
+ self._customer_interface_ipv6 = customer_interface_ipv6
+
@property
def customer_bgp_asn(self):
"""
diff --git a/src/oci/core/models/create_ipv6_details.py b/src/oci/core/models/create_ipv6_details.py
index 84cc6d532f..2cd48575b6 100644
--- a/src/oci/core/models/create_ipv6_details.py
+++ b/src/oci/core/models/create_ipv6_details.py
@@ -34,10 +34,6 @@ def __init__(self, **kwargs):
The value to assign to the ip_address property of this CreateIpv6Details.
:type ip_address: str
- :param is_internet_access_allowed:
- The value to assign to the is_internet_access_allowed property of this CreateIpv6Details.
- :type is_internet_access_allowed: bool
-
:param vnic_id:
The value to assign to the vnic_id property of this CreateIpv6Details.
:type vnic_id: str
@@ -48,7 +44,6 @@ def __init__(self, **kwargs):
'display_name': 'str',
'freeform_tags': 'dict(str, str)',
'ip_address': 'str',
- 'is_internet_access_allowed': 'bool',
'vnic_id': 'str'
}
@@ -57,7 +52,6 @@ def __init__(self, **kwargs):
'display_name': 'displayName',
'freeform_tags': 'freeformTags',
'ip_address': 'ipAddress',
- 'is_internet_access_allowed': 'isInternetAccessAllowed',
'vnic_id': 'vnicId'
}
@@ -65,7 +59,6 @@ def __init__(self, **kwargs):
self._display_name = None
self._freeform_tags = None
self._ip_address = None
- self._is_internet_access_allowed = None
self._vnic_id = None
@property
@@ -196,44 +189,6 @@ def ip_address(self, ip_address):
"""
self._ip_address = ip_address
- @property
- def is_internet_access_allowed(self):
- """
- Gets the is_internet_access_allowed of this CreateIpv6Details.
- Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in
- a public subnet. Never allowed for an IPv6 in a private subnet. If the value is `true`, the
- IPv6 uses its public IP address for internet communication.
-
- If `isInternetAccessAllowed` is set to `false`, the resulting `publicIpAddress` attribute
- for the Ipv6 is null.
-
- Example: `true`
-
-
- :return: The is_internet_access_allowed of this CreateIpv6Details.
- :rtype: bool
- """
- return self._is_internet_access_allowed
-
- @is_internet_access_allowed.setter
- def is_internet_access_allowed(self, is_internet_access_allowed):
- """
- Sets the is_internet_access_allowed of this CreateIpv6Details.
- Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in
- a public subnet. Never allowed for an IPv6 in a private subnet. If the value is `true`, the
- IPv6 uses its public IP address for internet communication.
-
- If `isInternetAccessAllowed` is set to `false`, the resulting `publicIpAddress` attribute
- for the Ipv6 is null.
-
- Example: `true`
-
-
- :param is_internet_access_allowed: The is_internet_access_allowed of this CreateIpv6Details.
- :type: bool
- """
- self._is_internet_access_allowed = is_internet_access_allowed
-
@property
def vnic_id(self):
"""
diff --git a/src/oci/core/models/create_subnet_details.py b/src/oci/core/models/create_subnet_details.py
index f7f6b5bc34..f260074f63 100644
--- a/src/oci/core/models/create_subnet_details.py
+++ b/src/oci/core/models/create_subnet_details.py
@@ -54,6 +54,10 @@ def __init__(self, **kwargs):
The value to assign to the ipv6_cidr_block property of this CreateSubnetDetails.
:type ipv6_cidr_block: str
+ :param prohibit_internet_ingress:
+ The value to assign to the prohibit_internet_ingress property of this CreateSubnetDetails.
+ :type prohibit_internet_ingress: bool
+
:param prohibit_public_ip_on_vnic:
The value to assign to the prohibit_public_ip_on_vnic property of this CreateSubnetDetails.
:type prohibit_public_ip_on_vnic: bool
@@ -81,6 +85,7 @@ def __init__(self, **kwargs):
'dns_label': 'str',
'freeform_tags': 'dict(str, str)',
'ipv6_cidr_block': 'str',
+ 'prohibit_internet_ingress': 'bool',
'prohibit_public_ip_on_vnic': 'bool',
'route_table_id': 'str',
'security_list_ids': 'list[str]',
@@ -97,6 +102,7 @@ def __init__(self, **kwargs):
'dns_label': 'dnsLabel',
'freeform_tags': 'freeformTags',
'ipv6_cidr_block': 'ipv6CidrBlock',
+ 'prohibit_internet_ingress': 'prohibitInternetIngress',
'prohibit_public_ip_on_vnic': 'prohibitPublicIpOnVnic',
'route_table_id': 'routeTableId',
'security_list_ids': 'securityListIds',
@@ -112,6 +118,7 @@ def __init__(self, **kwargs):
self._dns_label = None
self._freeform_tags = None
self._ipv6_cidr_block = None
+ self._prohibit_internet_ingress = None
self._prohibit_public_ip_on_vnic = None
self._route_table_id = None
self._security_list_ids = None
@@ -437,6 +444,46 @@ def ipv6_cidr_block(self, ipv6_cidr_block):
"""
self._ipv6_cidr_block = ipv6_cidr_block
+ @property
+ def prohibit_internet_ingress(self):
+ """
+ Gets the prohibit_internet_ingress of this CreateSubnetDetails.
+ Whether to disallow ingress internet traffic to VNICs within this subnet. Defaults to false.
+
+ For IPv6, if `prohibitInternetIngress` is set to `true`, internet access is not allowed for any
+ IPv6s assigned to VNICs in the subnet. Otherwise, ingress internet traffic is allowed by default.
+
+ `prohibitPublicIpOnVnic` will be set to the value of `prohibitInternetIngress` to dictate IPv4
+ behavior in this subnet. Only one or the other flag should be specified.
+
+ Example: `true`
+
+
+ :return: The prohibit_internet_ingress of this CreateSubnetDetails.
+ :rtype: bool
+ """
+ return self._prohibit_internet_ingress
+
+ @prohibit_internet_ingress.setter
+ def prohibit_internet_ingress(self, prohibit_internet_ingress):
+ """
+ Sets the prohibit_internet_ingress of this CreateSubnetDetails.
+ Whether to disallow ingress internet traffic to VNICs within this subnet. Defaults to false.
+
+ For IPv6, if `prohibitInternetIngress` is set to `true`, internet access is not allowed for any
+ IPv6s assigned to VNICs in the subnet. Otherwise, ingress internet traffic is allowed by default.
+
+ `prohibitPublicIpOnVnic` will be set to the value of `prohibitInternetIngress` to dictate IPv4
+ behavior in this subnet. Only one or the other flag should be specified.
+
+ Example: `true`
+
+
+ :param prohibit_internet_ingress: The prohibit_internet_ingress of this CreateSubnetDetails.
+ :type: bool
+ """
+ self._prohibit_internet_ingress = prohibit_internet_ingress
+
@property
def prohibit_public_ip_on_vnic(self):
"""
@@ -450,8 +497,8 @@ def prohibit_public_ip_on_vnic(self):
subnet cannot have public IP addresses (that is, it's a private
subnet).
- For IPv6, if `prohibitPublicIpOnVnic` is set to `true`, internet access is not allowed for any
- IPv6s assigned to VNICs in the subnet.
+ If you intend to use an IPv6 CIDR block, you should use the flag `prohibitInternetIngress` to
+ specify ingress internet traffic behavior of the subnet.
Example: `true`
@@ -474,8 +521,8 @@ def prohibit_public_ip_on_vnic(self, prohibit_public_ip_on_vnic):
subnet cannot have public IP addresses (that is, it's a private
subnet).
- For IPv6, if `prohibitPublicIpOnVnic` is set to `true`, internet access is not allowed for any
- IPv6s assigned to VNICs in the subnet.
+ If you intend to use an IPv6 CIDR block, you should use the flag `prohibitInternetIngress` to
+ specify ingress internet traffic behavior of the subnet.
Example: `true`
diff --git a/src/oci/core/models/create_vcn_details.py b/src/oci/core/models/create_vcn_details.py
index 7c07dd0ea9..68a230ad15 100644
--- a/src/oci/core/models/create_vcn_details.py
+++ b/src/oci/core/models/create_vcn_details.py
@@ -30,10 +30,6 @@ def __init__(self, **kwargs):
The value to assign to the compartment_id property of this CreateVcnDetails.
:type compartment_id: str
- :param ipv6_cidr_block:
- The value to assign to the ipv6_cidr_block property of this CreateVcnDetails.
- :type ipv6_cidr_block: str
-
:param defined_tags:
The value to assign to the defined_tags property of this CreateVcnDetails.
:type defined_tags: dict(str, dict(str, object))
@@ -59,7 +55,6 @@ def __init__(self, **kwargs):
'cidr_block': 'str',
'cidr_blocks': 'list[str]',
'compartment_id': 'str',
- 'ipv6_cidr_block': 'str',
'defined_tags': 'dict(str, dict(str, object))',
'display_name': 'str',
'dns_label': 'str',
@@ -71,7 +66,6 @@ def __init__(self, **kwargs):
'cidr_block': 'cidrBlock',
'cidr_blocks': 'cidrBlocks',
'compartment_id': 'compartmentId',
- 'ipv6_cidr_block': 'ipv6CidrBlock',
'defined_tags': 'definedTags',
'display_name': 'displayName',
'dns_label': 'dnsLabel',
@@ -82,7 +76,6 @@ def __init__(self, **kwargs):
self._cidr_block = None
self._cidr_blocks = None
self._compartment_id = None
- self._ipv6_cidr_block = None
self._defined_tags = None
self._display_name = None
self._dns_label = None
@@ -173,74 +166,6 @@ def compartment_id(self, compartment_id):
"""
self._compartment_id = compartment_id
- @property
- def ipv6_cidr_block(self):
- """
- Gets the ipv6_cidr_block of this CreateVcnDetails.
- If you enable IPv6 for the VCN (see `isIpv6Enabled`), you may optionally provide an IPv6
- /48 CIDR block from the supported ranges (see `IPv6 Addresses`__.
- The addresses in this block will be considered private and cannot be accessed
- from the internet. The documentation refers to this as a *custom CIDR* for the VCN.
-
- If you don't provide a custom CIDR for the VCN, Oracle assigns the VCN's IPv6 /48 CIDR block.
-
- Regardless of whether you or Oracle assigns the `ipv6CidrBlock`,
- Oracle *also* assigns the VCN an IPv6 CIDR block for the VCN's public IP address space
- (see the `ipv6PublicCidrBlock` of the :class:`Vcn` object). If you do
- not assign a custom CIDR, Oracle uses the *same* Oracle-assigned CIDR for both the private
- IP address space (`ipv6CidrBlock` in the `Vcn` object) and the public IP addreses space
- (`ipv6PublicCidrBlock` in the `Vcn` object). This means that a given VNIC might use the same
- IPv6 IP address for both private and public (internet) communication. You control whether
- an IPv6 address can be used for internet communication by using the `isInternetAccessAllowed`
- attribute in the :class:`Ipv6` object.
-
- For important details about IPv6 addressing in a VCN, see `IPv6 Addresses`__.
-
- Example: `2001:0db8:0123::/48`
-
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
-
-
- :return: The ipv6_cidr_block of this CreateVcnDetails.
- :rtype: str
- """
- return self._ipv6_cidr_block
-
- @ipv6_cidr_block.setter
- def ipv6_cidr_block(self, ipv6_cidr_block):
- """
- Sets the ipv6_cidr_block of this CreateVcnDetails.
- If you enable IPv6 for the VCN (see `isIpv6Enabled`), you may optionally provide an IPv6
- /48 CIDR block from the supported ranges (see `IPv6 Addresses`__.
- The addresses in this block will be considered private and cannot be accessed
- from the internet. The documentation refers to this as a *custom CIDR* for the VCN.
-
- If you don't provide a custom CIDR for the VCN, Oracle assigns the VCN's IPv6 /48 CIDR block.
-
- Regardless of whether you or Oracle assigns the `ipv6CidrBlock`,
- Oracle *also* assigns the VCN an IPv6 CIDR block for the VCN's public IP address space
- (see the `ipv6PublicCidrBlock` of the :class:`Vcn` object). If you do
- not assign a custom CIDR, Oracle uses the *same* Oracle-assigned CIDR for both the private
- IP address space (`ipv6CidrBlock` in the `Vcn` object) and the public IP addreses space
- (`ipv6PublicCidrBlock` in the `Vcn` object). This means that a given VNIC might use the same
- IPv6 IP address for both private and public (internet) communication. You control whether
- an IPv6 address can be used for internet communication by using the `isInternetAccessAllowed`
- attribute in the :class:`Ipv6` object.
-
- For important details about IPv6 addressing in a VCN, see `IPv6 Addresses`__.
-
- Example: `2001:0db8:0123::/48`
-
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
-
-
- :param ipv6_cidr_block: The ipv6_cidr_block of this CreateVcnDetails.
- :type: str
- """
- self._ipv6_cidr_block = ipv6_cidr_block
-
@property
def defined_tags(self):
"""
@@ -395,7 +320,8 @@ def freeform_tags(self, freeform_tags):
def is_ipv6_enabled(self):
"""
Gets the is_ipv6_enabled of this CreateVcnDetails.
- Whether IPv6 is enabled for the VCN. Default is `false`. You cannot change this later.
+ Whether IPv6 is enabled for the VCN. Default is `false`.
+ If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block.
For important details about IPv6 addressing in a VCN, see `IPv6 Addresses`__.
Example: `true`
@@ -412,7 +338,8 @@ def is_ipv6_enabled(self):
def is_ipv6_enabled(self, is_ipv6_enabled):
"""
Sets the is_ipv6_enabled of this CreateVcnDetails.
- Whether IPv6 is enabled for the VCN. Default is `false`. You cannot change this later.
+ Whether IPv6 is enabled for the VCN. Default is `false`.
+ If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block.
For important details about IPv6 addressing in a VCN, see `IPv6 Addresses`__.
Example: `true`
diff --git a/src/oci/core/models/cross_connect_mapping.py b/src/oci/core/models/cross_connect_mapping.py
index 6abc53647b..c158c3ac55 100644
--- a/src/oci/core/models/cross_connect_mapping.py
+++ b/src/oci/core/models/cross_connect_mapping.py
@@ -251,7 +251,7 @@ def customer_bgp_peering_ipv6(self):
There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses.
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
Example: `2001:db8::1/64`
@@ -276,7 +276,7 @@ def customer_bgp_peering_ipv6(self, customer_bgp_peering_ipv6):
There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses.
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
Example: `2001:db8::1/64`
diff --git a/src/oci/core/models/cross_connect_mapping_details.py b/src/oci/core/models/cross_connect_mapping_details.py
new file mode 100644
index 0000000000..b385837cdd
--- /dev/null
+++ b/src/oci/core/models/cross_connect_mapping_details.py
@@ -0,0 +1,437 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CrossConnectMappingDetails(object):
+ """
+ For use with Oracle Cloud Infrastructure FastConnect. Each
+ :class:`VirtualCircuit` runs on one or
+ more cross-connects or cross-connect groups. A `CrossConnectMappingDetails`
+ contains the properties for an individual cross-connect or cross-connect group
+ associated with a given virtual circuit.
+
+ The details includes information about the cross-connect or
+ cross-connect group, the VLAN, and the BGP peering session.
+ """
+
+ #: A constant which can be used with the ipv4_bgp_status property of a CrossConnectMappingDetails.
+ #: This constant has a value of "UP"
+ IPV4_BGP_STATUS_UP = "UP"
+
+ #: A constant which can be used with the ipv4_bgp_status property of a CrossConnectMappingDetails.
+ #: This constant has a value of "DOWN"
+ IPV4_BGP_STATUS_DOWN = "DOWN"
+
+ #: A constant which can be used with the ipv6_bgp_status property of a CrossConnectMappingDetails.
+ #: This constant has a value of "UP"
+ IPV6_BGP_STATUS_UP = "UP"
+
+ #: A constant which can be used with the ipv6_bgp_status property of a CrossConnectMappingDetails.
+ #: This constant has a value of "DOWN"
+ IPV6_BGP_STATUS_DOWN = "DOWN"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CrossConnectMappingDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param bgp_md5_auth_key:
+ The value to assign to the bgp_md5_auth_key property of this CrossConnectMappingDetails.
+ :type bgp_md5_auth_key: str
+
+ :param cross_connect_or_cross_connect_group_id:
+ The value to assign to the cross_connect_or_cross_connect_group_id property of this CrossConnectMappingDetails.
+ :type cross_connect_or_cross_connect_group_id: str
+
+ :param customer_bgp_peering_ip:
+ The value to assign to the customer_bgp_peering_ip property of this CrossConnectMappingDetails.
+ :type customer_bgp_peering_ip: str
+
+ :param oracle_bgp_peering_ip:
+ The value to assign to the oracle_bgp_peering_ip property of this CrossConnectMappingDetails.
+ :type oracle_bgp_peering_ip: str
+
+ :param customer_bgp_peering_ipv6:
+ The value to assign to the customer_bgp_peering_ipv6 property of this CrossConnectMappingDetails.
+ :type customer_bgp_peering_ipv6: str
+
+ :param oracle_bgp_peering_ipv6:
+ The value to assign to the oracle_bgp_peering_ipv6 property of this CrossConnectMappingDetails.
+ :type oracle_bgp_peering_ipv6: str
+
+ :param vlan:
+ The value to assign to the vlan property of this CrossConnectMappingDetails.
+ :type vlan: int
+
+ :param ipv4_bgp_status:
+ The value to assign to the ipv4_bgp_status property of this CrossConnectMappingDetails.
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type ipv4_bgp_status: str
+
+ :param ipv6_bgp_status:
+ The value to assign to the ipv6_bgp_status property of this CrossConnectMappingDetails.
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type ipv6_bgp_status: str
+
+ """
+ self.swagger_types = {
+ 'bgp_md5_auth_key': 'str',
+ 'cross_connect_or_cross_connect_group_id': 'str',
+ 'customer_bgp_peering_ip': 'str',
+ 'oracle_bgp_peering_ip': 'str',
+ 'customer_bgp_peering_ipv6': 'str',
+ 'oracle_bgp_peering_ipv6': 'str',
+ 'vlan': 'int',
+ 'ipv4_bgp_status': 'str',
+ 'ipv6_bgp_status': 'str'
+ }
+
+ self.attribute_map = {
+ 'bgp_md5_auth_key': 'bgpMd5AuthKey',
+ 'cross_connect_or_cross_connect_group_id': 'crossConnectOrCrossConnectGroupId',
+ 'customer_bgp_peering_ip': 'customerBgpPeeringIp',
+ 'oracle_bgp_peering_ip': 'oracleBgpPeeringIp',
+ 'customer_bgp_peering_ipv6': 'customerBgpPeeringIpv6',
+ 'oracle_bgp_peering_ipv6': 'oracleBgpPeeringIpv6',
+ 'vlan': 'vlan',
+ 'ipv4_bgp_status': 'ipv4BgpStatus',
+ 'ipv6_bgp_status': 'ipv6BgpStatus'
+ }
+
+ self._bgp_md5_auth_key = None
+ self._cross_connect_or_cross_connect_group_id = None
+ self._customer_bgp_peering_ip = None
+ self._oracle_bgp_peering_ip = None
+ self._customer_bgp_peering_ipv6 = None
+ self._oracle_bgp_peering_ipv6 = None
+ self._vlan = None
+ self._ipv4_bgp_status = None
+ self._ipv6_bgp_status = None
+
+ @property
+ def bgp_md5_auth_key(self):
+ """
+ Gets the bgp_md5_auth_key of this CrossConnectMappingDetails.
+ The key for BGP MD5 authentication. Only applicable if your system
+ requires MD5 authentication. If empty or not set (null), that
+ means you don't use BGP MD5 authentication.
+
+
+ :return: The bgp_md5_auth_key of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._bgp_md5_auth_key
+
+ @bgp_md5_auth_key.setter
+ def bgp_md5_auth_key(self, bgp_md5_auth_key):
+ """
+ Sets the bgp_md5_auth_key of this CrossConnectMappingDetails.
+ The key for BGP MD5 authentication. Only applicable if your system
+ requires MD5 authentication. If empty or not set (null), that
+ means you don't use BGP MD5 authentication.
+
+
+ :param bgp_md5_auth_key: The bgp_md5_auth_key of this CrossConnectMappingDetails.
+ :type: str
+ """
+ self._bgp_md5_auth_key = bgp_md5_auth_key
+
+ @property
+ def cross_connect_or_cross_connect_group_id(self):
+ """
+ Gets the cross_connect_or_cross_connect_group_id of this CrossConnectMappingDetails.
+ The OCID of the cross-connect or cross-connect group for this mapping.
+ Specified by the owner of the cross-connect or cross-connect group (the
+ customer if the customer is colocated with Oracle, or the provider if the
+ customer is connecting via provider).
+
+
+ :return: The cross_connect_or_cross_connect_group_id of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._cross_connect_or_cross_connect_group_id
+
+ @cross_connect_or_cross_connect_group_id.setter
+ def cross_connect_or_cross_connect_group_id(self, cross_connect_or_cross_connect_group_id):
+ """
+ Sets the cross_connect_or_cross_connect_group_id of this CrossConnectMappingDetails.
+ The OCID of the cross-connect or cross-connect group for this mapping.
+ Specified by the owner of the cross-connect or cross-connect group (the
+ customer if the customer is colocated with Oracle, or the provider if the
+ customer is connecting via provider).
+
+
+ :param cross_connect_or_cross_connect_group_id: The cross_connect_or_cross_connect_group_id of this CrossConnectMappingDetails.
+ :type: str
+ """
+ self._cross_connect_or_cross_connect_group_id = cross_connect_or_cross_connect_group_id
+
+ @property
+ def customer_bgp_peering_ip(self):
+ """
+ Gets the customer_bgp_peering_ip of this CrossConnectMappingDetails.
+ The BGP IPv4 address for the router on the other end of the BGP session from
+ Oracle. Specified by the owner of that router. If the session goes from Oracle
+ to a customer, this is the BGP IPv4 address of the customer's edge router. If the
+ session goes from Oracle to a provider, this is the BGP IPv4 address of the
+ provider's edge router. Must use a /30 or /31 subnet mask.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
+
+ Example: `10.0.0.18/31`
+
+
+ :return: The customer_bgp_peering_ip of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._customer_bgp_peering_ip
+
+ @customer_bgp_peering_ip.setter
+ def customer_bgp_peering_ip(self, customer_bgp_peering_ip):
+ """
+ Sets the customer_bgp_peering_ip of this CrossConnectMappingDetails.
+ The BGP IPv4 address for the router on the other end of the BGP session from
+ Oracle. Specified by the owner of that router. If the session goes from Oracle
+ to a customer, this is the BGP IPv4 address of the customer's edge router. If the
+ session goes from Oracle to a provider, this is the BGP IPv4 address of the
+ provider's edge router. Must use a /30 or /31 subnet mask.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
+
+ Example: `10.0.0.18/31`
+
+
+ :param customer_bgp_peering_ip: The customer_bgp_peering_ip of this CrossConnectMappingDetails.
+ :type: str
+ """
+ self._customer_bgp_peering_ip = customer_bgp_peering_ip
+
+ @property
+ def oracle_bgp_peering_ip(self):
+ """
+ Gets the oracle_bgp_peering_ip of this CrossConnectMappingDetails.
+ The IPv4 address for Oracle's end of the BGP session. Must use a /30 or /31
+ subnet mask. If the session goes from Oracle to a customer's edge router,
+ the customer specifies this information. If the session goes from Oracle to
+ a provider's edge router, the provider specifies this.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
+
+ Example: `10.0.0.19/31`
+
+
+ :return: The oracle_bgp_peering_ip of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._oracle_bgp_peering_ip
+
+ @oracle_bgp_peering_ip.setter
+ def oracle_bgp_peering_ip(self, oracle_bgp_peering_ip):
+ """
+ Sets the oracle_bgp_peering_ip of this CrossConnectMappingDetails.
+ The IPv4 address for Oracle's end of the BGP session. Must use a /30 or /31
+ subnet mask. If the session goes from Oracle to a customer's edge router,
+ the customer specifies this information. If the session goes from Oracle to
+ a provider's edge router, the provider specifies this.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
+
+ Example: `10.0.0.19/31`
+
+
+ :param oracle_bgp_peering_ip: The oracle_bgp_peering_ip of this CrossConnectMappingDetails.
+ :type: str
+ """
+ self._oracle_bgp_peering_ip = oracle_bgp_peering_ip
+
+ @property
+ def customer_bgp_peering_ipv6(self):
+ """
+ Gets the customer_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ The BGP IPv6 address for the router on the other end of the BGP session from
+ Oracle. Specified by the owner of that router. If the session goes from Oracle
+ to a customer, this is the BGP IPv6 address of the customer's edge router. If the
+ session goes from Oracle to a provider, this is the BGP IPv6 address of the
+ provider's edge router. Only subnet masks from /64 up to /127 are allowed.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses.
+
+ Example: `2001:db8::1/64`
+
+
+ :return: The customer_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._customer_bgp_peering_ipv6
+
+ @customer_bgp_peering_ipv6.setter
+ def customer_bgp_peering_ipv6(self, customer_bgp_peering_ipv6):
+ """
+ Sets the customer_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ The BGP IPv6 address for the router on the other end of the BGP session from
+ Oracle. Specified by the owner of that router. If the session goes from Oracle
+ to a customer, this is the BGP IPv6 address of the customer's edge router. If the
+ session goes from Oracle to a provider, this is the BGP IPv6 address of the
+ provider's edge router. Only subnet masks from /64 up to /127 are allowed.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses.
+
+ Example: `2001:db8::1/64`
+
+
+ :param customer_bgp_peering_ipv6: The customer_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ :type: str
+ """
+ self._customer_bgp_peering_ipv6 = customer_bgp_peering_ipv6
+
+ @property
+ def oracle_bgp_peering_ipv6(self):
+ """
+ Gets the oracle_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ The IPv6 address for Oracle's end of the BGP session. Only subnet masks from /64 up to /127 are allowed.
+ If the session goes from Oracle to a customer's edge router,
+ the customer specifies this information. If the session goes from Oracle to
+ a provider's edge router, the provider specifies this.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses.
+
+ Example: `2001:db8::2/64`
+
+
+ :return: The oracle_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._oracle_bgp_peering_ipv6
+
+ @oracle_bgp_peering_ipv6.setter
+ def oracle_bgp_peering_ipv6(self, oracle_bgp_peering_ipv6):
+ """
+ Sets the oracle_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ The IPv6 address for Oracle's end of the BGP session. Only subnet masks from /64 up to /127 are allowed.
+ If the session goes from Oracle to a customer's edge router,
+ the customer specifies this information. If the session goes from Oracle to
+ a provider's edge router, the provider specifies this.
+
+ There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses.
+
+ Example: `2001:db8::2/64`
+
+
+ :param oracle_bgp_peering_ipv6: The oracle_bgp_peering_ipv6 of this CrossConnectMappingDetails.
+ :type: str
+ """
+ self._oracle_bgp_peering_ipv6 = oracle_bgp_peering_ipv6
+
+ @property
+ def vlan(self):
+ """
+ Gets the vlan of this CrossConnectMappingDetails.
+ The number of the specific VLAN (on the cross-connect or cross-connect group)
+ that is assigned to this virtual circuit. Specified by the owner of the cross-connect
+ or cross-connect group (the customer if the customer is colocated with Oracle, or
+ the provider if the customer is connecting via provider).
+
+ Example: `200`
+
+
+ :return: The vlan of this CrossConnectMappingDetails.
+ :rtype: int
+ """
+ return self._vlan
+
+ @vlan.setter
+ def vlan(self, vlan):
+ """
+ Sets the vlan of this CrossConnectMappingDetails.
+ The number of the specific VLAN (on the cross-connect or cross-connect group)
+ that is assigned to this virtual circuit. Specified by the owner of the cross-connect
+ or cross-connect group (the customer if the customer is colocated with Oracle, or
+ the provider if the customer is connecting via provider).
+
+ Example: `200`
+
+
+ :param vlan: The vlan of this CrossConnectMappingDetails.
+ :type: int
+ """
+ self._vlan = vlan
+
+ @property
+ def ipv4_bgp_status(self):
+ """
+ Gets the ipv4_bgp_status of this CrossConnectMappingDetails.
+ The state of the Ipv4 BGP session.
+
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The ipv4_bgp_status of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._ipv4_bgp_status
+
+ @ipv4_bgp_status.setter
+ def ipv4_bgp_status(self, ipv4_bgp_status):
+ """
+ Sets the ipv4_bgp_status of this CrossConnectMappingDetails.
+ The state of the Ipv4 BGP session.
+
+
+ :param ipv4_bgp_status: The ipv4_bgp_status of this CrossConnectMappingDetails.
+ :type: str
+ """
+ allowed_values = ["UP", "DOWN"]
+ if not value_allowed_none_or_none_sentinel(ipv4_bgp_status, allowed_values):
+ ipv4_bgp_status = 'UNKNOWN_ENUM_VALUE'
+ self._ipv4_bgp_status = ipv4_bgp_status
+
+ @property
+ def ipv6_bgp_status(self):
+ """
+ Gets the ipv6_bgp_status of this CrossConnectMappingDetails.
+ The state of the Ipv6 BGP session.
+
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The ipv6_bgp_status of this CrossConnectMappingDetails.
+ :rtype: str
+ """
+ return self._ipv6_bgp_status
+
+ @ipv6_bgp_status.setter
+ def ipv6_bgp_status(self, ipv6_bgp_status):
+ """
+ Sets the ipv6_bgp_status of this CrossConnectMappingDetails.
+ The state of the Ipv6 BGP session.
+
+
+ :param ipv6_bgp_status: The ipv6_bgp_status of this CrossConnectMappingDetails.
+ :type: str
+ """
+ allowed_values = ["UP", "DOWN"]
+ if not value_allowed_none_or_none_sentinel(ipv6_bgp_status, allowed_values):
+ ipv6_bgp_status = 'UNKNOWN_ENUM_VALUE'
+ self._ipv6_bgp_status = ipv6_bgp_status
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/cross_connect_mapping_details_collection.py b/src/oci/core/models/cross_connect_mapping_details_collection.py
new file mode 100644
index 0000000000..43c342f0cd
--- /dev/null
+++ b/src/oci/core/models/cross_connect_mapping_details_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CrossConnectMappingDetailsCollection(object):
+ """
+ An array of CrossConnectMappingDetails
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CrossConnectMappingDetailsCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this CrossConnectMappingDetailsCollection.
+ :type items: list[oci.core.models.CrossConnectMappingDetails]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[CrossConnectMappingDetails]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this CrossConnectMappingDetailsCollection.
+ CrossConnectMappingDetails items
+
+
+ :return: The items of this CrossConnectMappingDetailsCollection.
+ :rtype: list[oci.core.models.CrossConnectMappingDetails]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this CrossConnectMappingDetailsCollection.
+ CrossConnectMappingDetails items
+
+
+ :param items: The items of this CrossConnectMappingDetailsCollection.
+ :type: list[oci.core.models.CrossConnectMappingDetails]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/default_drg_route_tables.py b/src/oci/core/models/default_drg_route_tables.py
new file mode 100644
index 0000000000..8987c3c36e
--- /dev/null
+++ b/src/oci/core/models/default_drg_route_tables.py
@@ -0,0 +1,188 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DefaultDrgRouteTables(object):
+ """
+ The default DRG route table for this DRG. Each network type
+ has a default DRG route table.
+
+ You can update a network type to use a different DRG route table, but
+ each network type must have a default DRG route table. You cannot delete
+ a default DRG route table.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DefaultDrgRouteTables object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param vcn:
+ The value to assign to the vcn property of this DefaultDrgRouteTables.
+ :type vcn: str
+
+ :param ipsec_tunnel:
+ The value to assign to the ipsec_tunnel property of this DefaultDrgRouteTables.
+ :type ipsec_tunnel: str
+
+ :param virtual_circuit:
+ The value to assign to the virtual_circuit property of this DefaultDrgRouteTables.
+ :type virtual_circuit: str
+
+ :param remote_peering_connection:
+ The value to assign to the remote_peering_connection property of this DefaultDrgRouteTables.
+ :type remote_peering_connection: str
+
+ """
+ self.swagger_types = {
+ 'vcn': 'str',
+ 'ipsec_tunnel': 'str',
+ 'virtual_circuit': 'str',
+ 'remote_peering_connection': 'str'
+ }
+
+ self.attribute_map = {
+ 'vcn': 'vcn',
+ 'ipsec_tunnel': 'ipsecTunnel',
+ 'virtual_circuit': 'virtualCircuit',
+ 'remote_peering_connection': 'remotePeeringConnection'
+ }
+
+ self._vcn = None
+ self._ipsec_tunnel = None
+ self._virtual_circuit = None
+ self._remote_peering_connection = None
+
+ @property
+ def vcn(self):
+ """
+ Gets the vcn of this DefaultDrgRouteTables.
+ The `OCID`__ of the default DRG route table to be assigned to DRG attachments
+ of type VCN on creation.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The vcn of this DefaultDrgRouteTables.
+ :rtype: str
+ """
+ return self._vcn
+
+ @vcn.setter
+ def vcn(self, vcn):
+ """
+ Sets the vcn of this DefaultDrgRouteTables.
+ The `OCID`__ of the default DRG route table to be assigned to DRG attachments
+ of type VCN on creation.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param vcn: The vcn of this DefaultDrgRouteTables.
+ :type: str
+ """
+ self._vcn = vcn
+
+ @property
+ def ipsec_tunnel(self):
+ """
+ Gets the ipsec_tunnel of this DefaultDrgRouteTables.
+ The `OCID`__ of the default DRG route table assigned to DRG attachments
+ of type IPSEC_TUNNEL on creation.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The ipsec_tunnel of this DefaultDrgRouteTables.
+ :rtype: str
+ """
+ return self._ipsec_tunnel
+
+ @ipsec_tunnel.setter
+ def ipsec_tunnel(self, ipsec_tunnel):
+ """
+ Sets the ipsec_tunnel of this DefaultDrgRouteTables.
+ The `OCID`__ of the default DRG route table assigned to DRG attachments
+ of type IPSEC_TUNNEL on creation.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param ipsec_tunnel: The ipsec_tunnel of this DefaultDrgRouteTables.
+ :type: str
+ """
+ self._ipsec_tunnel = ipsec_tunnel
+
+ @property
+ def virtual_circuit(self):
+ """
+ Gets the virtual_circuit of this DefaultDrgRouteTables.
+ The OCID of the default DRG route table to be assigned to DRG attachments
+ of type VIRTUAL_CIRCUIT on creation.
+
+
+ :return: The virtual_circuit of this DefaultDrgRouteTables.
+ :rtype: str
+ """
+ return self._virtual_circuit
+
+ @virtual_circuit.setter
+ def virtual_circuit(self, virtual_circuit):
+ """
+ Sets the virtual_circuit of this DefaultDrgRouteTables.
+ The OCID of the default DRG route table to be assigned to DRG attachments
+ of type VIRTUAL_CIRCUIT on creation.
+
+
+ :param virtual_circuit: The virtual_circuit of this DefaultDrgRouteTables.
+ :type: str
+ """
+ self._virtual_circuit = virtual_circuit
+
+ @property
+ def remote_peering_connection(self):
+ """
+ Gets the remote_peering_connection of this DefaultDrgRouteTables.
+ The `OCID`__ of the default DRG route table to be assigned to DRG attachments
+ of type REMOTE_PEERING_CONNECTION on creation.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The remote_peering_connection of this DefaultDrgRouteTables.
+ :rtype: str
+ """
+ return self._remote_peering_connection
+
+ @remote_peering_connection.setter
+ def remote_peering_connection(self, remote_peering_connection):
+ """
+ Sets the remote_peering_connection of this DefaultDrgRouteTables.
+ The `OCID`__ of the default DRG route table to be assigned to DRG attachments
+ of type REMOTE_PEERING_CONNECTION on creation.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param remote_peering_connection: The remote_peering_connection of this DefaultDrgRouteTables.
+ :type: str
+ """
+ self._remote_peering_connection = remote_peering_connection
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg.py b/src/oci/core/models/drg.py
index fb9b272702..cdc01ab639 100644
--- a/src/oci/core/models/drg.py
+++ b/src/oci/core/models/drg.py
@@ -10,16 +10,18 @@
@init_model_state_from_kwargs
class Drg(object):
"""
- A dynamic routing gateway (DRG), which is a virtual router that provides a path for private
- network traffic between your VCN and your existing network. You use it with other Networking
- Service components to create an IPSec VPN or a connection that uses
- Oracle Cloud Infrastructure FastConnect. For more information, see
+ A dynamic routing gateway (DRG) is a virtual router that provides a path for private
+ network traffic between networks. You use it with other Networking
+ Service components to create a connection to your on-premises network using `VPN Connect`__ or a connection that uses
+ `FastConnect`__. For more information, see
`Overview of the Networking Service`__.
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized,
talk to an administrator. If you're an administrator who needs to write policies to give users access, see
`Getting Started with Policies`__.
+ __ https://docs.cloud.oracle.com/Content/Network/Tasks/managingIPsec.htm
+ __ https://docs.cloud.oracle.com/Content/Network/Concepts/fastconnect.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm
"""
@@ -75,6 +77,14 @@ def __init__(self, **kwargs):
The value to assign to the time_created property of this Drg.
:type time_created: datetime
+ :param default_drg_route_tables:
+ The value to assign to the default_drg_route_tables property of this Drg.
+ :type default_drg_route_tables: oci.core.models.DefaultDrgRouteTables
+
+ :param default_export_drg_route_distribution_id:
+ The value to assign to the default_export_drg_route_distribution_id property of this Drg.
+ :type default_export_drg_route_distribution_id: str
+
"""
self.swagger_types = {
'compartment_id': 'str',
@@ -83,7 +93,9 @@ def __init__(self, **kwargs):
'freeform_tags': 'dict(str, str)',
'id': 'str',
'lifecycle_state': 'str',
- 'time_created': 'datetime'
+ 'time_created': 'datetime',
+ 'default_drg_route_tables': 'DefaultDrgRouteTables',
+ 'default_export_drg_route_distribution_id': 'str'
}
self.attribute_map = {
@@ -93,7 +105,9 @@ def __init__(self, **kwargs):
'freeform_tags': 'freeformTags',
'id': 'id',
'lifecycle_state': 'lifecycleState',
- 'time_created': 'timeCreated'
+ 'time_created': 'timeCreated',
+ 'default_drg_route_tables': 'defaultDrgRouteTables',
+ 'default_export_drg_route_distribution_id': 'defaultExportDrgRouteDistributionId'
}
self._compartment_id = None
@@ -103,12 +117,16 @@ def __init__(self, **kwargs):
self._id = None
self._lifecycle_state = None
self._time_created = None
+ self._default_drg_route_tables = None
+ self._default_export_drg_route_distribution_id = None
@property
def compartment_id(self):
"""
**[Required]** Gets the compartment_id of this Drg.
- The OCID of the compartment containing the DRG.
+ The `OCID`__ of the compartment containing the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The compartment_id of this Drg.
@@ -120,7 +138,9 @@ def compartment_id(self):
def compartment_id(self, compartment_id):
"""
Sets the compartment_id of this Drg.
- The OCID of the compartment containing the DRG.
+ The `OCID`__ of the compartment containing the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param compartment_id: The compartment_id of this Drg.
@@ -226,7 +246,9 @@ def freeform_tags(self, freeform_tags):
def id(self):
"""
**[Required]** Gets the id of this Drg.
- The DRG's Oracle ID (OCID).
+ The DRG's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The id of this Drg.
@@ -238,7 +260,9 @@ def id(self):
def id(self, id):
"""
Sets the id of this Drg.
- The DRG's Oracle ID (OCID).
+ The DRG's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param id: The id of this Drg.
@@ -308,6 +332,54 @@ def time_created(self, time_created):
"""
self._time_created = time_created
+ @property
+ def default_drg_route_tables(self):
+ """
+ Gets the default_drg_route_tables of this Drg.
+
+ :return: The default_drg_route_tables of this Drg.
+ :rtype: oci.core.models.DefaultDrgRouteTables
+ """
+ return self._default_drg_route_tables
+
+ @default_drg_route_tables.setter
+ def default_drg_route_tables(self, default_drg_route_tables):
+ """
+ Sets the default_drg_route_tables of this Drg.
+
+ :param default_drg_route_tables: The default_drg_route_tables of this Drg.
+ :type: oci.core.models.DefaultDrgRouteTables
+ """
+ self._default_drg_route_tables = default_drg_route_tables
+
+ @property
+ def default_export_drg_route_distribution_id(self):
+ """
+ Gets the default_export_drg_route_distribution_id of this Drg.
+ The `OCID`__ of this DRG's default export route distribution for the DRG attachments.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The default_export_drg_route_distribution_id of this Drg.
+ :rtype: str
+ """
+ return self._default_export_drg_route_distribution_id
+
+ @default_export_drg_route_distribution_id.setter
+ def default_export_drg_route_distribution_id(self, default_export_drg_route_distribution_id):
+ """
+ Sets the default_export_drg_route_distribution_id of this Drg.
+ The `OCID`__ of this DRG's default export route distribution for the DRG attachments.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param default_export_drg_route_distribution_id: The default_export_drg_route_distribution_id of this Drg.
+ :type: str
+ """
+ self._default_export_drg_route_distribution_id = default_export_drg_route_distribution_id
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/drg_attachment.py b/src/oci/core/models/drg_attachment.py
index e4d6072637..d591cfee09 100644
--- a/src/oci/core/models/drg_attachment.py
+++ b/src/oci/core/models/drg_attachment.py
@@ -10,8 +10,10 @@
@init_model_state_from_kwargs
class DrgAttachment(object):
"""
- A link between a DRG and VCN. For more information, see
- `Overview of the Networking Service`__.
+ A DRG attachment serves as a link between a DRG and a network resource. A DRG can be attached to a VCN,
+ IPSec tunnel, remote peering connection, or virtual circuit.
+
+ For more information, see `Overview of the Networking Service`__.
__ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm
"""
@@ -63,6 +65,22 @@ def __init__(self, **kwargs):
The value to assign to the time_created property of this DrgAttachment.
:type time_created: datetime
+ :param drg_route_table_id:
+ The value to assign to the drg_route_table_id property of this DrgAttachment.
+ :type drg_route_table_id: str
+
+ :param network_details:
+ The value to assign to the network_details property of this DrgAttachment.
+ :type network_details: oci.core.models.DrgAttachmentNetworkDetails
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this DrgAttachment.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this DrgAttachment.
+ :type freeform_tags: dict(str, str)
+
:param route_table_id:
The value to assign to the route_table_id property of this DrgAttachment.
:type route_table_id: str
@@ -71,6 +89,14 @@ def __init__(self, **kwargs):
The value to assign to the vcn_id property of this DrgAttachment.
:type vcn_id: str
+ :param export_drg_route_distribution_id:
+ The value to assign to the export_drg_route_distribution_id property of this DrgAttachment.
+ :type export_drg_route_distribution_id: str
+
+ :param is_cross_tenancy:
+ The value to assign to the is_cross_tenancy property of this DrgAttachment.
+ :type is_cross_tenancy: bool
+
"""
self.swagger_types = {
'compartment_id': 'str',
@@ -79,8 +105,14 @@ def __init__(self, **kwargs):
'id': 'str',
'lifecycle_state': 'str',
'time_created': 'datetime',
+ 'drg_route_table_id': 'str',
+ 'network_details': 'DrgAttachmentNetworkDetails',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'freeform_tags': 'dict(str, str)',
'route_table_id': 'str',
- 'vcn_id': 'str'
+ 'vcn_id': 'str',
+ 'export_drg_route_distribution_id': 'str',
+ 'is_cross_tenancy': 'bool'
}
self.attribute_map = {
@@ -90,8 +122,14 @@ def __init__(self, **kwargs):
'id': 'id',
'lifecycle_state': 'lifecycleState',
'time_created': 'timeCreated',
+ 'drg_route_table_id': 'drgRouteTableId',
+ 'network_details': 'networkDetails',
+ 'defined_tags': 'definedTags',
+ 'freeform_tags': 'freeformTags',
'route_table_id': 'routeTableId',
- 'vcn_id': 'vcnId'
+ 'vcn_id': 'vcnId',
+ 'export_drg_route_distribution_id': 'exportDrgRouteDistributionId',
+ 'is_cross_tenancy': 'isCrossTenancy'
}
self._compartment_id = None
@@ -100,14 +138,22 @@ def __init__(self, **kwargs):
self._id = None
self._lifecycle_state = None
self._time_created = None
+ self._drg_route_table_id = None
+ self._network_details = None
+ self._defined_tags = None
+ self._freeform_tags = None
self._route_table_id = None
self._vcn_id = None
+ self._export_drg_route_distribution_id = None
+ self._is_cross_tenancy = None
@property
def compartment_id(self):
"""
**[Required]** Gets the compartment_id of this DrgAttachment.
- The OCID of the compartment containing the DRG attachment.
+ The `OCID`__ of the compartment containing the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The compartment_id of this DrgAttachment.
@@ -119,7 +165,9 @@ def compartment_id(self):
def compartment_id(self, compartment_id):
"""
Sets the compartment_id of this DrgAttachment.
- The OCID of the compartment containing the DRG attachment.
+ The `OCID`__ of the compartment containing the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param compartment_id: The compartment_id of this DrgAttachment.
@@ -157,7 +205,9 @@ def display_name(self, display_name):
def drg_id(self):
"""
**[Required]** Gets the drg_id of this DrgAttachment.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The drg_id of this DrgAttachment.
@@ -169,7 +219,9 @@ def drg_id(self):
def drg_id(self, drg_id):
"""
Sets the drg_id of this DrgAttachment.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param drg_id: The drg_id of this DrgAttachment.
@@ -181,7 +233,9 @@ def drg_id(self, drg_id):
def id(self):
"""
**[Required]** Gets the id of this DrgAttachment.
- The DRG attachment's Oracle ID (OCID).
+ The DRG attachment's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The id of this DrgAttachment.
@@ -193,7 +247,9 @@ def id(self):
def id(self, id):
"""
Sets the id of this DrgAttachment.
- The DRG attachment's Oracle ID (OCID).
+ The DRG attachment's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param id: The id of this DrgAttachment.
@@ -263,6 +319,126 @@ def time_created(self, time_created):
"""
self._time_created = time_created
+ @property
+ def drg_route_table_id(self):
+ """
+ Gets the drg_route_table_id of this DrgAttachment.
+ The `OCID`__ of the DRG route table that is assigned to this attachment.
+
+ The DRG route table manages traffic inside the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_route_table_id of this DrgAttachment.
+ :rtype: str
+ """
+ return self._drg_route_table_id
+
+ @drg_route_table_id.setter
+ def drg_route_table_id(self, drg_route_table_id):
+ """
+ Sets the drg_route_table_id of this DrgAttachment.
+ The `OCID`__ of the DRG route table that is assigned to this attachment.
+
+ The DRG route table manages traffic inside the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_route_table_id: The drg_route_table_id of this DrgAttachment.
+ :type: str
+ """
+ self._drg_route_table_id = drg_route_table_id
+
+ @property
+ def network_details(self):
+ """
+ Gets the network_details of this DrgAttachment.
+
+ :return: The network_details of this DrgAttachment.
+ :rtype: oci.core.models.DrgAttachmentNetworkDetails
+ """
+ return self._network_details
+
+ @network_details.setter
+ def network_details(self, network_details):
+ """
+ Sets the network_details of this DrgAttachment.
+
+ :param network_details: The network_details of this DrgAttachment.
+ :type: oci.core.models.DrgAttachmentNetworkDetails
+ """
+ self._network_details = network_details
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this DrgAttachment.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this DrgAttachment.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this DrgAttachment.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this DrgAttachment.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this DrgAttachment.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this DrgAttachment.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this DrgAttachment.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this DrgAttachment.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
@property
def route_table_id(self):
"""
@@ -274,8 +450,11 @@ def route_table_id(self):
* `Transit Routing: Access to Multiple VCNs in Same Region`__
* `Transit Routing: Private Access to Oracle Services`__
+ This field is deprecated. Instead, use the `networkDetails` field to view the `OCID`__ of the attached resource.
+
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The route_table_id of this DrgAttachment.
@@ -294,8 +473,11 @@ def route_table_id(self, route_table_id):
* `Transit Routing: Access to Multiple VCNs in Same Region`__
* `Transit Routing: Private Access to Oracle Services`__
+ This field is deprecated. Instead, use the `networkDetails` field to view the `OCID`__ of the attached resource.
+
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param route_table_id: The route_table_id of this DrgAttachment.
@@ -306,8 +488,12 @@ def route_table_id(self, route_table_id):
@property
def vcn_id(self):
"""
- **[Required]** Gets the vcn_id of this DrgAttachment.
- The OCID of the VCN.
+ Gets the vcn_id of this DrgAttachment.
+ The `OCID`__ of the VCN.
+ This field is deprecated. Instead, use the `networkDetails` field to view the `OCID`__ of the attached resource.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The vcn_id of this DrgAttachment.
@@ -319,7 +505,11 @@ def vcn_id(self):
def vcn_id(self, vcn_id):
"""
Sets the vcn_id of this DrgAttachment.
- The OCID of the VCN.
+ The `OCID`__ of the VCN.
+ This field is deprecated. Instead, use the `networkDetails` field to view the `OCID`__ of the attached resource.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param vcn_id: The vcn_id of this DrgAttachment.
@@ -327,6 +517,66 @@ def vcn_id(self, vcn_id):
"""
self._vcn_id = vcn_id
+ @property
+ def export_drg_route_distribution_id(self):
+ """
+ Gets the export_drg_route_distribution_id of this DrgAttachment.
+ The `OCID`__ of the export route distribution used to specify how routes in the assigned DRG route table
+ are advertised to the attachment.
+ If this value is null, no routes are advertised through this attachment.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The export_drg_route_distribution_id of this DrgAttachment.
+ :rtype: str
+ """
+ return self._export_drg_route_distribution_id
+
+ @export_drg_route_distribution_id.setter
+ def export_drg_route_distribution_id(self, export_drg_route_distribution_id):
+ """
+ Sets the export_drg_route_distribution_id of this DrgAttachment.
+ The `OCID`__ of the export route distribution used to specify how routes in the assigned DRG route table
+ are advertised to the attachment.
+ If this value is null, no routes are advertised through this attachment.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param export_drg_route_distribution_id: The export_drg_route_distribution_id of this DrgAttachment.
+ :type: str
+ """
+ self._export_drg_route_distribution_id = export_drg_route_distribution_id
+
+ @property
+ def is_cross_tenancy(self):
+ """
+ Gets the is_cross_tenancy of this DrgAttachment.
+ Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG.
+
+ Example: `false`
+
+
+ :return: The is_cross_tenancy of this DrgAttachment.
+ :rtype: bool
+ """
+ return self._is_cross_tenancy
+
+ @is_cross_tenancy.setter
+ def is_cross_tenancy(self, is_cross_tenancy):
+ """
+ Sets the is_cross_tenancy of this DrgAttachment.
+ Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG.
+
+ Example: `false`
+
+
+ :param is_cross_tenancy: The is_cross_tenancy of this DrgAttachment.
+ :type: bool
+ """
+ self._is_cross_tenancy = is_cross_tenancy
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/drg_attachment_id_drg_route_distribution_match_criteria.py b/src/oci/core/models/drg_attachment_id_drg_route_distribution_match_criteria.py
new file mode 100644
index 0000000000..3dbbc75466
--- /dev/null
+++ b/src/oci/core/models/drg_attachment_id_drg_route_distribution_match_criteria.py
@@ -0,0 +1,84 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_route_distribution_match_criteria import DrgRouteDistributionMatchCriteria
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgAttachmentIdDrgRouteDistributionMatchCriteria(DrgRouteDistributionMatchCriteria):
+ """
+ The criteria by which a specific attachment will import routes to the DRG.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgAttachmentIdDrgRouteDistributionMatchCriteria object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.DrgAttachmentIdDrgRouteDistributionMatchCriteria.match_type` attribute
+ of this class is ``DRG_ATTACHMENT_ID`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param match_type:
+ The value to assign to the match_type property of this DrgAttachmentIdDrgRouteDistributionMatchCriteria.
+ Allowed values for this property are: "DRG_ATTACHMENT_TYPE", "DRG_ATTACHMENT_ID"
+ :type match_type: str
+
+ :param drg_attachment_id:
+ The value to assign to the drg_attachment_id property of this DrgAttachmentIdDrgRouteDistributionMatchCriteria.
+ :type drg_attachment_id: str
+
+ """
+ self.swagger_types = {
+ 'match_type': 'str',
+ 'drg_attachment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'match_type': 'matchType',
+ 'drg_attachment_id': 'drgAttachmentId'
+ }
+
+ self._match_type = None
+ self._drg_attachment_id = None
+ self._match_type = 'DRG_ATTACHMENT_ID'
+
+ @property
+ def drg_attachment_id(self):
+ """
+ **[Required]** Gets the drg_attachment_id of this DrgAttachmentIdDrgRouteDistributionMatchCriteria.
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_attachment_id of this DrgAttachmentIdDrgRouteDistributionMatchCriteria.
+ :rtype: str
+ """
+ return self._drg_attachment_id
+
+ @drg_attachment_id.setter
+ def drg_attachment_id(self, drg_attachment_id):
+ """
+ Sets the drg_attachment_id of this DrgAttachmentIdDrgRouteDistributionMatchCriteria.
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_attachment_id: The drg_attachment_id of this DrgAttachmentIdDrgRouteDistributionMatchCriteria.
+ :type: str
+ """
+ self._drg_attachment_id = drg_attachment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_attachment_info.py b/src/oci/core/models/drg_attachment_info.py
new file mode 100644
index 0000000000..acf4620c88
--- /dev/null
+++ b/src/oci/core/models/drg_attachment_info.py
@@ -0,0 +1,72 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgAttachmentInfo(object):
+ """
+ The `DrgAttachmentInfo` resource contains the `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgAttachmentInfo object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this DrgAttachmentInfo.
+ :type id: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id'
+ }
+
+ self._id = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DrgAttachmentInfo.
+ The Oracle-assigned ID of the DRG attachment
+
+
+ :return: The id of this DrgAttachmentInfo.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DrgAttachmentInfo.
+ The Oracle-assigned ID of the DRG attachment
+
+
+ :param id: The id of this DrgAttachmentInfo.
+ :type: str
+ """
+ self._id = id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_attachment_network_create_details.py b/src/oci/core/models/drg_attachment_network_create_details.py
new file mode 100644
index 0000000000..4c40c2ce7b
--- /dev/null
+++ b/src/oci/core/models/drg_attachment_network_create_details.py
@@ -0,0 +1,131 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgAttachmentNetworkCreateDetails(object):
+ """
+ DrgAttachmentNetworkCreateDetails model.
+ """
+
+ #: A constant which can be used with the type property of a DrgAttachmentNetworkCreateDetails.
+ #: This constant has a value of "VCN"
+ TYPE_VCN = "VCN"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgAttachmentNetworkCreateDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.core.models.VcnDrgAttachmentNetworkCreateDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this DrgAttachmentNetworkCreateDetails.
+ Allowed values for this property are: "VCN"
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this DrgAttachmentNetworkCreateDetails.
+ :type id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id'
+ }
+
+ self._type = None
+ self._id = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'VCN':
+ return 'VcnDrgAttachmentNetworkCreateDetails'
+ else:
+ return 'DrgAttachmentNetworkCreateDetails'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this DrgAttachmentNetworkCreateDetails.
+ Allowed values for this property are: "VCN"
+
+
+ :return: The type of this DrgAttachmentNetworkCreateDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this DrgAttachmentNetworkCreateDetails.
+
+ :param type: The type of this DrgAttachmentNetworkCreateDetails.
+ :type: str
+ """
+ allowed_values = ["VCN"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ "Invalid value for `type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._type = type
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DrgAttachmentNetworkCreateDetails.
+ The `OCID`__ of the network attached to the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this DrgAttachmentNetworkCreateDetails.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DrgAttachmentNetworkCreateDetails.
+ The `OCID`__ of the network attached to the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this DrgAttachmentNetworkCreateDetails.
+ :type: str
+ """
+ self._id = id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_attachment_network_details.py b/src/oci/core/models/drg_attachment_network_details.py
new file mode 100644
index 0000000000..b03be80b68
--- /dev/null
+++ b/src/oci/core/models/drg_attachment_network_details.py
@@ -0,0 +1,154 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgAttachmentNetworkDetails(object):
+ """
+ DrgAttachmentNetworkDetails model.
+ """
+
+ #: A constant which can be used with the type property of a DrgAttachmentNetworkDetails.
+ #: This constant has a value of "VCN"
+ TYPE_VCN = "VCN"
+
+ #: A constant which can be used with the type property of a DrgAttachmentNetworkDetails.
+ #: This constant has a value of "IPSEC_TUNNEL"
+ TYPE_IPSEC_TUNNEL = "IPSEC_TUNNEL"
+
+ #: A constant which can be used with the type property of a DrgAttachmentNetworkDetails.
+ #: This constant has a value of "VIRTUAL_CIRCUIT"
+ TYPE_VIRTUAL_CIRCUIT = "VIRTUAL_CIRCUIT"
+
+ #: A constant which can be used with the type property of a DrgAttachmentNetworkDetails.
+ #: This constant has a value of "REMOTE_PEERING_CONNECTION"
+ TYPE_REMOTE_PEERING_CONNECTION = "REMOTE_PEERING_CONNECTION"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgAttachmentNetworkDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.core.models.VcnDrgAttachmentNetworkDetails`
+ * :class:`~oci.core.models.IpsecTunnelDrgAttachmentNetworkDetails`
+ * :class:`~oci.core.models.VirtualCircuitDrgAttachmentNetworkDetails`
+ * :class:`~oci.core.models.RemotePeeringConnectionDrgAttachmentNetworkDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this DrgAttachmentNetworkDetails.
+ Allowed values for this property are: "VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this DrgAttachmentNetworkDetails.
+ :type id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id'
+ }
+
+ self._type = None
+ self._id = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'VCN':
+ return 'VcnDrgAttachmentNetworkDetails'
+
+ if type == 'IPSEC_TUNNEL':
+ return 'IpsecTunnelDrgAttachmentNetworkDetails'
+
+ if type == 'VIRTUAL_CIRCUIT':
+ return 'VirtualCircuitDrgAttachmentNetworkDetails'
+
+ if type == 'REMOTE_PEERING_CONNECTION':
+ return 'RemotePeeringConnectionDrgAttachmentNetworkDetails'
+ else:
+ return 'DrgAttachmentNetworkDetails'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this DrgAttachmentNetworkDetails.
+ Allowed values for this property are: "VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this DrgAttachmentNetworkDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this DrgAttachmentNetworkDetails.
+
+ :param type: The type of this DrgAttachmentNetworkDetails.
+ :type: str
+ """
+ allowed_values = ["VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DrgAttachmentNetworkDetails.
+ The `OCID`__ of the network attached to the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this DrgAttachmentNetworkDetails.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DrgAttachmentNetworkDetails.
+ The `OCID`__ of the network attached to the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this DrgAttachmentNetworkDetails.
+ :type: str
+ """
+ self._id = id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_attachment_network_update_details.py b/src/oci/core/models/drg_attachment_network_update_details.py
new file mode 100644
index 0000000000..e5083c78a8
--- /dev/null
+++ b/src/oci/core/models/drg_attachment_network_update_details.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgAttachmentNetworkUpdateDetails(object):
+ """
+ DrgAttachmentNetworkUpdateDetails model.
+ """
+
+ #: A constant which can be used with the type property of a DrgAttachmentNetworkUpdateDetails.
+ #: This constant has a value of "VCN"
+ TYPE_VCN = "VCN"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgAttachmentNetworkUpdateDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.core.models.VcnDrgAttachmentNetworkUpdateDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this DrgAttachmentNetworkUpdateDetails.
+ Allowed values for this property are: "VCN"
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type'
+ }
+
+ self._type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'VCN':
+ return 'VcnDrgAttachmentNetworkUpdateDetails'
+ else:
+ return 'DrgAttachmentNetworkUpdateDetails'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this DrgAttachmentNetworkUpdateDetails.
+ Allowed values for this property are: "VCN"
+
+
+ :return: The type of this DrgAttachmentNetworkUpdateDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this DrgAttachmentNetworkUpdateDetails.
+
+ :param type: The type of this DrgAttachmentNetworkUpdateDetails.
+ :type: str
+ """
+ allowed_values = ["VCN"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ "Invalid value for `type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._type = type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_attachment_type_drg_route_distribution_match_criteria.py b/src/oci/core/models/drg_attachment_type_drg_route_distribution_match_criteria.py
new file mode 100644
index 0000000000..116389bb43
--- /dev/null
+++ b/src/oci/core/models/drg_attachment_type_drg_route_distribution_match_criteria.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_route_distribution_match_criteria import DrgRouteDistributionMatchCriteria
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgAttachmentTypeDrgRouteDistributionMatchCriteria(DrgRouteDistributionMatchCriteria):
+ """
+ The attachment type from which the DRG will import routes. Routes will be imported from
+ all attachments of this type.
+ """
+
+ #: A constant which can be used with the attachment_type property of a DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ #: This constant has a value of "VCN"
+ ATTACHMENT_TYPE_VCN = "VCN"
+
+ #: A constant which can be used with the attachment_type property of a DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ #: This constant has a value of "VIRTUAL_CIRCUIT"
+ ATTACHMENT_TYPE_VIRTUAL_CIRCUIT = "VIRTUAL_CIRCUIT"
+
+ #: A constant which can be used with the attachment_type property of a DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ #: This constant has a value of "REMOTE_PEERING_CONNECTION"
+ ATTACHMENT_TYPE_REMOTE_PEERING_CONNECTION = "REMOTE_PEERING_CONNECTION"
+
+ #: A constant which can be used with the attachment_type property of a DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ #: This constant has a value of "IPSEC_TUNNEL"
+ ATTACHMENT_TYPE_IPSEC_TUNNEL = "IPSEC_TUNNEL"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgAttachmentTypeDrgRouteDistributionMatchCriteria object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.DrgAttachmentTypeDrgRouteDistributionMatchCriteria.match_type` attribute
+ of this class is ``DRG_ATTACHMENT_TYPE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param match_type:
+ The value to assign to the match_type property of this DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ Allowed values for this property are: "DRG_ATTACHMENT_TYPE", "DRG_ATTACHMENT_ID", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type match_type: str
+
+ :param attachment_type:
+ The value to assign to the attachment_type property of this DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ Allowed values for this property are: "VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type attachment_type: str
+
+ """
+ self.swagger_types = {
+ 'match_type': 'str',
+ 'attachment_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'match_type': 'matchType',
+ 'attachment_type': 'attachmentType'
+ }
+
+ self._match_type = None
+ self._attachment_type = None
+ self._match_type = 'DRG_ATTACHMENT_TYPE'
+
+ @property
+ def attachment_type(self):
+ """
+ **[Required]** Gets the attachment_type of this DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ The type of the network resource to be included in this match. A match for a network type implies that all
+ DRG attachments of that type insert routes into the table.
+
+ Allowed values for this property are: "VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The attachment_type of this DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ :rtype: str
+ """
+ return self._attachment_type
+
+ @attachment_type.setter
+ def attachment_type(self, attachment_type):
+ """
+ Sets the attachment_type of this DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ The type of the network resource to be included in this match. A match for a network type implies that all
+ DRG attachments of that type insert routes into the table.
+
+
+ :param attachment_type: The attachment_type of this DrgAttachmentTypeDrgRouteDistributionMatchCriteria.
+ :type: str
+ """
+ allowed_values = ["VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL"]
+ if not value_allowed_none_or_none_sentinel(attachment_type, allowed_values):
+ attachment_type = 'UNKNOWN_ENUM_VALUE'
+ self._attachment_type = attachment_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_redundancy_status.py b/src/oci/core/models/drg_redundancy_status.py
index 9b75c4c156..809b9d8a4b 100644
--- a/src/oci/core/models/drg_redundancy_status.py
+++ b/src/oci/core/models/drg_redundancy_status.py
@@ -81,7 +81,9 @@ def __init__(self, **kwargs):
def id(self):
"""
Gets the id of this DrgRedundancyStatus.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The id of this DrgRedundancyStatus.
@@ -93,7 +95,9 @@ def id(self):
def id(self, id):
"""
Sets the id of this DrgRedundancyStatus.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param id: The id of this DrgRedundancyStatus.
diff --git a/src/oci/core/models/drg_route_distribution.py b/src/oci/core/models/drg_route_distribution.py
new file mode 100644
index 0000000000..05ceb84ad2
--- /dev/null
+++ b/src/oci/core/models/drg_route_distribution.py
@@ -0,0 +1,417 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgRouteDistribution(object):
+ """
+ A route distribution establishes how routes get imported into DRG route tables and exported through the DRG attachments.
+
+ A route distribution is a list of statements. Each statement consists of a set of matches, all of which must be `True` in order for
+ the statement's action to take place. Each statement determines which routes are propagated.
+
+ You can assign a route distribution as a route table's import distribution. The statements in an import
+ route distribution specify how how incoming route advertisements through a referenced attachment or all attachments of a certain type are inserted into the route table.
+
+ You can assign a route distribution as a DRG attachment's export distribution. Export route distribution statements specify how routes in a
+ DRG attachment's assigned table are advertised out through the attachment. When a DRG attachment is created, a route distribution is created with a
+ single ACCEPT statement with an empty match criteria (empty match criteria implies match ALL).
+ Exporting routes through VCN attachments is unsupported, so no VCN attachments are assigned an export distribution.
+
+ The two auto-generated DRG route tables (one as the default for VCN attachments, and the other for all other types of attachments)
+ are each assigned an auto generated import route distribution. The default VCN table's import distribution has a single statement with empty match criteria statement to import routes from
+ each DRG attachment type. The other table's import distribution has a statement to import routes from attachments with the VCN type.
+
+ The route distribution is always in the same compartment as the DRG.
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteDistribution.
+ #: This constant has a value of "PROVISIONING"
+ LIFECYCLE_STATE_PROVISIONING = "PROVISIONING"
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteDistribution.
+ #: This constant has a value of "AVAILABLE"
+ LIFECYCLE_STATE_AVAILABLE = "AVAILABLE"
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteDistribution.
+ #: This constant has a value of "TERMINATING"
+ LIFECYCLE_STATE_TERMINATING = "TERMINATING"
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteDistribution.
+ #: This constant has a value of "TERMINATED"
+ LIFECYCLE_STATE_TERMINATED = "TERMINATED"
+
+ #: A constant which can be used with the distribution_type property of a DrgRouteDistribution.
+ #: This constant has a value of "IMPORT"
+ DISTRIBUTION_TYPE_IMPORT = "IMPORT"
+
+ #: A constant which can be used with the distribution_type property of a DrgRouteDistribution.
+ #: This constant has a value of "EXPORT"
+ DISTRIBUTION_TYPE_EXPORT = "EXPORT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgRouteDistribution object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param drg_id:
+ The value to assign to the drg_id property of this DrgRouteDistribution.
+ :type drg_id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this DrgRouteDistribution.
+ :type compartment_id: str
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this DrgRouteDistribution.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param display_name:
+ The value to assign to the display_name property of this DrgRouteDistribution.
+ :type display_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this DrgRouteDistribution.
+ :type freeform_tags: dict(str, str)
+
+ :param id:
+ The value to assign to the id property of this DrgRouteDistribution.
+ :type id: str
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this DrgRouteDistribution.
+ Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param time_created:
+ The value to assign to the time_created property of this DrgRouteDistribution.
+ :type time_created: datetime
+
+ :param distribution_type:
+ The value to assign to the distribution_type property of this DrgRouteDistribution.
+ Allowed values for this property are: "IMPORT", "EXPORT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type distribution_type: str
+
+ """
+ self.swagger_types = {
+ 'drg_id': 'str',
+ 'compartment_id': 'str',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'display_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'id': 'str',
+ 'lifecycle_state': 'str',
+ 'time_created': 'datetime',
+ 'distribution_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'drg_id': 'drgId',
+ 'compartment_id': 'compartmentId',
+ 'defined_tags': 'definedTags',
+ 'display_name': 'displayName',
+ 'freeform_tags': 'freeformTags',
+ 'id': 'id',
+ 'lifecycle_state': 'lifecycleState',
+ 'time_created': 'timeCreated',
+ 'distribution_type': 'distributionType'
+ }
+
+ self._drg_id = None
+ self._compartment_id = None
+ self._defined_tags = None
+ self._display_name = None
+ self._freeform_tags = None
+ self._id = None
+ self._lifecycle_state = None
+ self._time_created = None
+ self._distribution_type = None
+
+ @property
+ def drg_id(self):
+ """
+ **[Required]** Gets the drg_id of this DrgRouteDistribution.
+ The `OCID`__ of the DRG that contains this route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_id of this DrgRouteDistribution.
+ :rtype: str
+ """
+ return self._drg_id
+
+ @drg_id.setter
+ def drg_id(self, drg_id):
+ """
+ Sets the drg_id of this DrgRouteDistribution.
+ The `OCID`__ of the DRG that contains this route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_id: The drg_id of this DrgRouteDistribution.
+ :type: str
+ """
+ self._drg_id = drg_id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this DrgRouteDistribution.
+ The `OCID`__ of the compartment containing the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this DrgRouteDistribution.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this DrgRouteDistribution.
+ The `OCID`__ of the compartment containing the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this DrgRouteDistribution.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this DrgRouteDistribution.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this DrgRouteDistribution.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this DrgRouteDistribution.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this DrgRouteDistribution.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this DrgRouteDistribution.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :return: The display_name of this DrgRouteDistribution.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this DrgRouteDistribution.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :param display_name: The display_name of this DrgRouteDistribution.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this DrgRouteDistribution.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this DrgRouteDistribution.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this DrgRouteDistribution.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this DrgRouteDistribution.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DrgRouteDistribution.
+ The route distribution's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this DrgRouteDistribution.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DrgRouteDistribution.
+ The route distribution's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this DrgRouteDistribution.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this DrgRouteDistribution.
+ The route distribution's current state.
+
+ Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this DrgRouteDistribution.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this DrgRouteDistribution.
+ The route distribution's current state.
+
+
+ :param lifecycle_state: The lifecycle_state of this DrgRouteDistribution.
+ :type: str
+ """
+ allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this DrgRouteDistribution.
+ The date and time the route distribution was created, in the format defined by `RFC3339`__.
+
+ Example: `2016-08-25T21:10:29.600Z`
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :return: The time_created of this DrgRouteDistribution.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this DrgRouteDistribution.
+ The date and time the route distribution was created, in the format defined by `RFC3339`__.
+
+ Example: `2016-08-25T21:10:29.600Z`
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :param time_created: The time_created of this DrgRouteDistribution.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def distribution_type(self):
+ """
+ **[Required]** Gets the distribution_type of this DrgRouteDistribution.
+ Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
+
+ Allowed values for this property are: "IMPORT", "EXPORT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The distribution_type of this DrgRouteDistribution.
+ :rtype: str
+ """
+ return self._distribution_type
+
+ @distribution_type.setter
+ def distribution_type(self, distribution_type):
+ """
+ Sets the distribution_type of this DrgRouteDistribution.
+ Whether this distribution defines how routes get imported into route tables or exported through DRG attachments.
+
+
+ :param distribution_type: The distribution_type of this DrgRouteDistribution.
+ :type: str
+ """
+ allowed_values = ["IMPORT", "EXPORT"]
+ if not value_allowed_none_or_none_sentinel(distribution_type, allowed_values):
+ distribution_type = 'UNKNOWN_ENUM_VALUE'
+ self._distribution_type = distribution_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_route_distribution_match_criteria.py b/src/oci/core/models/drg_route_distribution_match_criteria.py
new file mode 100644
index 0000000000..b867c7ce99
--- /dev/null
+++ b/src/oci/core/models/drg_route_distribution_match_criteria.py
@@ -0,0 +1,108 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgRouteDistributionMatchCriteria(object):
+ """
+ The match criteria in a route distribution statement. The match criteria outlines which routes
+ should be imported or exported. Leaving the match criteria empty implies match ALL.
+ """
+
+ #: A constant which can be used with the match_type property of a DrgRouteDistributionMatchCriteria.
+ #: This constant has a value of "DRG_ATTACHMENT_TYPE"
+ MATCH_TYPE_DRG_ATTACHMENT_TYPE = "DRG_ATTACHMENT_TYPE"
+
+ #: A constant which can be used with the match_type property of a DrgRouteDistributionMatchCriteria.
+ #: This constant has a value of "DRG_ATTACHMENT_ID"
+ MATCH_TYPE_DRG_ATTACHMENT_ID = "DRG_ATTACHMENT_ID"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgRouteDistributionMatchCriteria object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.core.models.DrgAttachmentIdDrgRouteDistributionMatchCriteria`
+ * :class:`~oci.core.models.DrgAttachmentTypeDrgRouteDistributionMatchCriteria`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param match_type:
+ The value to assign to the match_type property of this DrgRouteDistributionMatchCriteria.
+ Allowed values for this property are: "DRG_ATTACHMENT_TYPE", "DRG_ATTACHMENT_ID", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type match_type: str
+
+ """
+ self.swagger_types = {
+ 'match_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'match_type': 'matchType'
+ }
+
+ self._match_type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['matchType']
+
+ if type == 'DRG_ATTACHMENT_ID':
+ return 'DrgAttachmentIdDrgRouteDistributionMatchCriteria'
+
+ if type == 'DRG_ATTACHMENT_TYPE':
+ return 'DrgAttachmentTypeDrgRouteDistributionMatchCriteria'
+ else:
+ return 'DrgRouteDistributionMatchCriteria'
+
+ @property
+ def match_type(self):
+ """
+ **[Required]** Gets the match_type of this DrgRouteDistributionMatchCriteria.
+ The type of the match criteria for a route distribution statement.
+
+ Allowed values for this property are: "DRG_ATTACHMENT_TYPE", "DRG_ATTACHMENT_ID", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The match_type of this DrgRouteDistributionMatchCriteria.
+ :rtype: str
+ """
+ return self._match_type
+
+ @match_type.setter
+ def match_type(self, match_type):
+ """
+ Sets the match_type of this DrgRouteDistributionMatchCriteria.
+ The type of the match criteria for a route distribution statement.
+
+
+ :param match_type: The match_type of this DrgRouteDistributionMatchCriteria.
+ :type: str
+ """
+ allowed_values = ["DRG_ATTACHMENT_TYPE", "DRG_ATTACHMENT_ID"]
+ if not value_allowed_none_or_none_sentinel(match_type, allowed_values):
+ match_type = 'UNKNOWN_ENUM_VALUE'
+ self._match_type = match_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_route_distribution_statement.py b/src/oci/core/models/drg_route_distribution_statement.py
new file mode 100644
index 0000000000..ceecf15110
--- /dev/null
+++ b/src/oci/core/models/drg_route_distribution_statement.py
@@ -0,0 +1,188 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgRouteDistributionStatement(object):
+ """
+ A single statement within a route distribution. All match criteria in a statement must be met
+ for the action to take place.
+ """
+
+ #: A constant which can be used with the action property of a DrgRouteDistributionStatement.
+ #: This constant has a value of "ACCEPT"
+ ACTION_ACCEPT = "ACCEPT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgRouteDistributionStatement object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param match_criteria:
+ The value to assign to the match_criteria property of this DrgRouteDistributionStatement.
+ :type match_criteria: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+
+ :param action:
+ The value to assign to the action property of this DrgRouteDistributionStatement.
+ Allowed values for this property are: "ACCEPT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type action: str
+
+ :param priority:
+ The value to assign to the priority property of this DrgRouteDistributionStatement.
+ :type priority: int
+
+ :param id:
+ The value to assign to the id property of this DrgRouteDistributionStatement.
+ :type id: str
+
+ """
+ self.swagger_types = {
+ 'match_criteria': 'list[DrgRouteDistributionMatchCriteria]',
+ 'action': 'str',
+ 'priority': 'int',
+ 'id': 'str'
+ }
+
+ self.attribute_map = {
+ 'match_criteria': 'matchCriteria',
+ 'action': 'action',
+ 'priority': 'priority',
+ 'id': 'id'
+ }
+
+ self._match_criteria = None
+ self._action = None
+ self._priority = None
+ self._id = None
+
+ @property
+ def match_criteria(self):
+ """
+ **[Required]** Gets the match_criteria of this DrgRouteDistributionStatement.
+ The action is applied only if all of the match criteria is met.
+ If there are no match criteria in a statement, any input is considered a match and the action is applied.
+
+
+ :return: The match_criteria of this DrgRouteDistributionStatement.
+ :rtype: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+ """
+ return self._match_criteria
+
+ @match_criteria.setter
+ def match_criteria(self, match_criteria):
+ """
+ Sets the match_criteria of this DrgRouteDistributionStatement.
+ The action is applied only if all of the match criteria is met.
+ If there are no match criteria in a statement, any input is considered a match and the action is applied.
+
+
+ :param match_criteria: The match_criteria of this DrgRouteDistributionStatement.
+ :type: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+ """
+ self._match_criteria = match_criteria
+
+ @property
+ def action(self):
+ """
+ **[Required]** Gets the action of this DrgRouteDistributionStatement.
+ `ACCEPT` indicates the route should be imported or exported as-is.
+
+ Allowed values for this property are: "ACCEPT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The action of this DrgRouteDistributionStatement.
+ :rtype: str
+ """
+ return self._action
+
+ @action.setter
+ def action(self, action):
+ """
+ Sets the action of this DrgRouteDistributionStatement.
+ `ACCEPT` indicates the route should be imported or exported as-is.
+
+
+ :param action: The action of this DrgRouteDistributionStatement.
+ :type: str
+ """
+ allowed_values = ["ACCEPT"]
+ if not value_allowed_none_or_none_sentinel(action, allowed_values):
+ action = 'UNKNOWN_ENUM_VALUE'
+ self._action = action
+
+ @property
+ def priority(self):
+ """
+ **[Required]** Gets the priority of this DrgRouteDistributionStatement.
+ This field specifies the priority of each statement in a route distribution.
+ Priorities must be unique within a particular route distribution.
+ The priority will be represented as a number between 0 and 65535 where a lower number
+ indicates a higher priority. When a route is processed, statements are applied in the order
+ defined by their priority. The first matching rule dictates the action that will be taken
+ on the route.
+
+
+ :return: The priority of this DrgRouteDistributionStatement.
+ :rtype: int
+ """
+ return self._priority
+
+ @priority.setter
+ def priority(self, priority):
+ """
+ Sets the priority of this DrgRouteDistributionStatement.
+ This field specifies the priority of each statement in a route distribution.
+ Priorities must be unique within a particular route distribution.
+ The priority will be represented as a number between 0 and 65535 where a lower number
+ indicates a higher priority. When a route is processed, statements are applied in the order
+ defined by their priority. The first matching rule dictates the action that will be taken
+ on the route.
+
+
+ :param priority: The priority of this DrgRouteDistributionStatement.
+ :type: int
+ """
+ self._priority = priority
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DrgRouteDistributionStatement.
+ The Oracle-assigned ID of the route distribution statement.
+
+
+ :return: The id of this DrgRouteDistributionStatement.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DrgRouteDistributionStatement.
+ The Oracle-assigned ID of the route distribution statement.
+
+
+ :param id: The id of this DrgRouteDistributionStatement.
+ :type: str
+ """
+ self._id = id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_route_rule.py b/src/oci/core/models/drg_route_rule.py
new file mode 100644
index 0000000000..aa710fd1aa
--- /dev/null
+++ b/src/oci/core/models/drg_route_rule.py
@@ -0,0 +1,393 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgRouteRule(object):
+ """
+ A DRG route rule is a mapping between a destination IP address range and a DRG attachment.
+ The map is used to route matching packets. Traffic will be routed across the attachments using Equal-cost multi-path routing (ECMP)
+ if there are multiple rules with identical destinations and none of the rules conflict.
+ """
+
+ #: A constant which can be used with the destination_type property of a DrgRouteRule.
+ #: This constant has a value of "CIDR_BLOCK"
+ DESTINATION_TYPE_CIDR_BLOCK = "CIDR_BLOCK"
+
+ #: A constant which can be used with the destination_type property of a DrgRouteRule.
+ #: This constant has a value of "SERVICE_CIDR_BLOCK"
+ DESTINATION_TYPE_SERVICE_CIDR_BLOCK = "SERVICE_CIDR_BLOCK"
+
+ #: A constant which can be used with the route_type property of a DrgRouteRule.
+ #: This constant has a value of "STATIC"
+ ROUTE_TYPE_STATIC = "STATIC"
+
+ #: A constant which can be used with the route_type property of a DrgRouteRule.
+ #: This constant has a value of "DYNAMIC"
+ ROUTE_TYPE_DYNAMIC = "DYNAMIC"
+
+ #: A constant which can be used with the route_provenance property of a DrgRouteRule.
+ #: This constant has a value of "STATIC"
+ ROUTE_PROVENANCE_STATIC = "STATIC"
+
+ #: A constant which can be used with the route_provenance property of a DrgRouteRule.
+ #: This constant has a value of "VCN"
+ ROUTE_PROVENANCE_VCN = "VCN"
+
+ #: A constant which can be used with the route_provenance property of a DrgRouteRule.
+ #: This constant has a value of "VIRTUAL_CIRCUIT"
+ ROUTE_PROVENANCE_VIRTUAL_CIRCUIT = "VIRTUAL_CIRCUIT"
+
+ #: A constant which can be used with the route_provenance property of a DrgRouteRule.
+ #: This constant has a value of "IPSEC_TUNNEL"
+ ROUTE_PROVENANCE_IPSEC_TUNNEL = "IPSEC_TUNNEL"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgRouteRule object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param destination:
+ The value to assign to the destination property of this DrgRouteRule.
+ :type destination: str
+
+ :param destination_type:
+ The value to assign to the destination_type property of this DrgRouteRule.
+ Allowed values for this property are: "CIDR_BLOCK", "SERVICE_CIDR_BLOCK", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type destination_type: str
+
+ :param next_hop_drg_attachment_id:
+ The value to assign to the next_hop_drg_attachment_id property of this DrgRouteRule.
+ :type next_hop_drg_attachment_id: str
+
+ :param route_type:
+ The value to assign to the route_type property of this DrgRouteRule.
+ Allowed values for this property are: "STATIC", "DYNAMIC", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type route_type: str
+
+ :param is_conflict:
+ The value to assign to the is_conflict property of this DrgRouteRule.
+ :type is_conflict: bool
+
+ :param is_blackhole:
+ The value to assign to the is_blackhole property of this DrgRouteRule.
+ :type is_blackhole: bool
+
+ :param id:
+ The value to assign to the id property of this DrgRouteRule.
+ :type id: str
+
+ :param route_provenance:
+ The value to assign to the route_provenance property of this DrgRouteRule.
+ Allowed values for this property are: "STATIC", "VCN", "VIRTUAL_CIRCUIT", "IPSEC_TUNNEL", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type route_provenance: str
+
+ """
+ self.swagger_types = {
+ 'destination': 'str',
+ 'destination_type': 'str',
+ 'next_hop_drg_attachment_id': 'str',
+ 'route_type': 'str',
+ 'is_conflict': 'bool',
+ 'is_blackhole': 'bool',
+ 'id': 'str',
+ 'route_provenance': 'str'
+ }
+
+ self.attribute_map = {
+ 'destination': 'destination',
+ 'destination_type': 'destinationType',
+ 'next_hop_drg_attachment_id': 'nextHopDrgAttachmentId',
+ 'route_type': 'routeType',
+ 'is_conflict': 'isConflict',
+ 'is_blackhole': 'isBlackhole',
+ 'id': 'id',
+ 'route_provenance': 'routeProvenance'
+ }
+
+ self._destination = None
+ self._destination_type = None
+ self._next_hop_drg_attachment_id = None
+ self._route_type = None
+ self._is_conflict = None
+ self._is_blackhole = None
+ self._id = None
+ self._route_provenance = None
+
+ @property
+ def destination(self):
+ """
+ **[Required]** Gets the destination of this DrgRouteRule.
+ Represents the range of IP addresses to match against when routing traffic.
+
+ Potential values:
+ * An IP address range (IPv4 or IPv6) in CIDR notation. For example: `192.168.1.0/24`
+ or `2001:0db8:0123:45::/56`.
+ * When you're setting up a security rule for traffic destined for a particular `Service` through
+ a service gateway, this is the `cidrBlock` value associated with that :class:`Service`. For example: `oci-phx-objectstorage`.
+
+
+ :return: The destination of this DrgRouteRule.
+ :rtype: str
+ """
+ return self._destination
+
+ @destination.setter
+ def destination(self, destination):
+ """
+ Sets the destination of this DrgRouteRule.
+ Represents the range of IP addresses to match against when routing traffic.
+
+ Potential values:
+ * An IP address range (IPv4 or IPv6) in CIDR notation. For example: `192.168.1.0/24`
+ or `2001:0db8:0123:45::/56`.
+ * When you're setting up a security rule for traffic destined for a particular `Service` through
+ a service gateway, this is the `cidrBlock` value associated with that :class:`Service`. For example: `oci-phx-objectstorage`.
+
+
+ :param destination: The destination of this DrgRouteRule.
+ :type: str
+ """
+ self._destination = destination
+
+ @property
+ def destination_type(self):
+ """
+ **[Required]** Gets the destination_type of this DrgRouteRule.
+ The type of destination for the rule. the type is required if `direction` = `EGRESS`.
+
+ Allowed values:
+
+ * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation.
+ * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a
+ :class:`Service` (the rule is for traffic destined for a
+ particular `Service` through a service gateway).
+
+ Allowed values for this property are: "CIDR_BLOCK", "SERVICE_CIDR_BLOCK", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The destination_type of this DrgRouteRule.
+ :rtype: str
+ """
+ return self._destination_type
+
+ @destination_type.setter
+ def destination_type(self, destination_type):
+ """
+ Sets the destination_type of this DrgRouteRule.
+ The type of destination for the rule. the type is required if `direction` = `EGRESS`.
+
+ Allowed values:
+
+ * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation.
+ * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a
+ :class:`Service` (the rule is for traffic destined for a
+ particular `Service` through a service gateway).
+
+
+ :param destination_type: The destination_type of this DrgRouteRule.
+ :type: str
+ """
+ allowed_values = ["CIDR_BLOCK", "SERVICE_CIDR_BLOCK"]
+ if not value_allowed_none_or_none_sentinel(destination_type, allowed_values):
+ destination_type = 'UNKNOWN_ENUM_VALUE'
+ self._destination_type = destination_type
+
+ @property
+ def next_hop_drg_attachment_id(self):
+ """
+ **[Required]** Gets the next_hop_drg_attachment_id of this DrgRouteRule.
+ The `OCID`__ of the next hop DRG attachment responsible
+ for reaching the network destination.
+
+ A value of `BLACKHOLE` means traffic for this route is discarded without notification.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The next_hop_drg_attachment_id of this DrgRouteRule.
+ :rtype: str
+ """
+ return self._next_hop_drg_attachment_id
+
+ @next_hop_drg_attachment_id.setter
+ def next_hop_drg_attachment_id(self, next_hop_drg_attachment_id):
+ """
+ Sets the next_hop_drg_attachment_id of this DrgRouteRule.
+ The `OCID`__ of the next hop DRG attachment responsible
+ for reaching the network destination.
+
+ A value of `BLACKHOLE` means traffic for this route is discarded without notification.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param next_hop_drg_attachment_id: The next_hop_drg_attachment_id of this DrgRouteRule.
+ :type: str
+ """
+ self._next_hop_drg_attachment_id = next_hop_drg_attachment_id
+
+ @property
+ def route_type(self):
+ """
+ Gets the route_type of this DrgRouteRule.
+ You can specify static routes for the DRG route table using the API.
+ The DRG learns dynamic routes from the DRG attachments using various routing protocols.
+
+ Allowed values for this property are: "STATIC", "DYNAMIC", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The route_type of this DrgRouteRule.
+ :rtype: str
+ """
+ return self._route_type
+
+ @route_type.setter
+ def route_type(self, route_type):
+ """
+ Sets the route_type of this DrgRouteRule.
+ You can specify static routes for the DRG route table using the API.
+ The DRG learns dynamic routes from the DRG attachments using various routing protocols.
+
+
+ :param route_type: The route_type of this DrgRouteRule.
+ :type: str
+ """
+ allowed_values = ["STATIC", "DYNAMIC"]
+ if not value_allowed_none_or_none_sentinel(route_type, allowed_values):
+ route_type = 'UNKNOWN_ENUM_VALUE'
+ self._route_type = route_type
+
+ @property
+ def is_conflict(self):
+ """
+ Gets the is_conflict of this DrgRouteRule.
+ Indicates that the route was not imported due to a conflict between route rules.
+
+
+ :return: The is_conflict of this DrgRouteRule.
+ :rtype: bool
+ """
+ return self._is_conflict
+
+ @is_conflict.setter
+ def is_conflict(self, is_conflict):
+ """
+ Sets the is_conflict of this DrgRouteRule.
+ Indicates that the route was not imported due to a conflict between route rules.
+
+
+ :param is_conflict: The is_conflict of this DrgRouteRule.
+ :type: bool
+ """
+ self._is_conflict = is_conflict
+
+ @property
+ def is_blackhole(self):
+ """
+ Gets the is_blackhole of this DrgRouteRule.
+ Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
+
+
+ :return: The is_blackhole of this DrgRouteRule.
+ :rtype: bool
+ """
+ return self._is_blackhole
+
+ @is_blackhole.setter
+ def is_blackhole(self, is_blackhole):
+ """
+ Sets the is_blackhole of this DrgRouteRule.
+ Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification.
+
+
+ :param is_blackhole: The is_blackhole of this DrgRouteRule.
+ :type: bool
+ """
+ self._is_blackhole = is_blackhole
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DrgRouteRule.
+ The Oracle-assigned ID of the DRG route rule.
+
+
+ :return: The id of this DrgRouteRule.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DrgRouteRule.
+ The Oracle-assigned ID of the DRG route rule.
+
+
+ :param id: The id of this DrgRouteRule.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def route_provenance(self):
+ """
+ **[Required]** Gets the route_provenance of this DrgRouteRule.
+ The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment,
+ and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains `IPSEC_TUNNEL`,
+ because that is the earliest origin.
+
+ No routes with a provenance `IPSEC_TUNNEL` or `VIRTUAL_CIRCUIT` will be exported to IPsec tunnel or virtual circuit attachments,
+ regardless of the attachment's export distribution.
+
+ Allowed values for this property are: "STATIC", "VCN", "VIRTUAL_CIRCUIT", "IPSEC_TUNNEL", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The route_provenance of this DrgRouteRule.
+ :rtype: str
+ """
+ return self._route_provenance
+
+ @route_provenance.setter
+ def route_provenance(self, route_provenance):
+ """
+ Sets the route_provenance of this DrgRouteRule.
+ The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment,
+ and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains `IPSEC_TUNNEL`,
+ because that is the earliest origin.
+
+ No routes with a provenance `IPSEC_TUNNEL` or `VIRTUAL_CIRCUIT` will be exported to IPsec tunnel or virtual circuit attachments,
+ regardless of the attachment's export distribution.
+
+
+ :param route_provenance: The route_provenance of this DrgRouteRule.
+ :type: str
+ """
+ allowed_values = ["STATIC", "VCN", "VIRTUAL_CIRCUIT", "IPSEC_TUNNEL"]
+ if not value_allowed_none_or_none_sentinel(route_provenance, allowed_values):
+ route_provenance = 'UNKNOWN_ENUM_VALUE'
+ self._route_provenance = route_provenance
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/drg_route_table.py b/src/oci/core/models/drg_route_table.py
new file mode 100644
index 0000000000..0e8f6b3704
--- /dev/null
+++ b/src/oci/core/models/drg_route_table.py
@@ -0,0 +1,439 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DrgRouteTable(object):
+ """
+ All routing inside the DRG is driven by the contents of DRG route tables.
+ DRG route tables contain rules which route packets to a particular network destination,
+ represented as a DRG attachment.
+ The routing decision for a packet entering a DRG is determined by the rules in the DRG route table
+ assigned to the attachment-of-entry.
+
+ Each DRG attachment can inject routes in any DRG route table, provided there is a statement corresponding to the attachment in the route table's `importDrgRouteDistribution`.
+ You can also insert static routes into the DRG route tables.
+
+ The DRG route table is always in the same compartment as the DRG. There must always be a default
+ DRG route table for each attachment type.
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteTable.
+ #: This constant has a value of "PROVISIONING"
+ LIFECYCLE_STATE_PROVISIONING = "PROVISIONING"
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteTable.
+ #: This constant has a value of "AVAILABLE"
+ LIFECYCLE_STATE_AVAILABLE = "AVAILABLE"
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteTable.
+ #: This constant has a value of "TERMINATING"
+ LIFECYCLE_STATE_TERMINATING = "TERMINATING"
+
+ #: A constant which can be used with the lifecycle_state property of a DrgRouteTable.
+ #: This constant has a value of "TERMINATED"
+ LIFECYCLE_STATE_TERMINATED = "TERMINATED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DrgRouteTable object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this DrgRouteTable.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this DrgRouteTable.
+ :type compartment_id: str
+
+ :param drg_id:
+ The value to assign to the drg_id property of this DrgRouteTable.
+ :type drg_id: str
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this DrgRouteTable.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param display_name:
+ The value to assign to the display_name property of this DrgRouteTable.
+ :type display_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this DrgRouteTable.
+ :type freeform_tags: dict(str, str)
+
+ :param time_created:
+ The value to assign to the time_created property of this DrgRouteTable.
+ :type time_created: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this DrgRouteTable.
+ Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param import_drg_route_distribution_id:
+ The value to assign to the import_drg_route_distribution_id property of this DrgRouteTable.
+ :type import_drg_route_distribution_id: str
+
+ :param is_ecmp_enabled:
+ The value to assign to the is_ecmp_enabled property of this DrgRouteTable.
+ :type is_ecmp_enabled: bool
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'drg_id': 'str',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'display_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'time_created': 'datetime',
+ 'lifecycle_state': 'str',
+ 'import_drg_route_distribution_id': 'str',
+ 'is_ecmp_enabled': 'bool'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'drg_id': 'drgId',
+ 'defined_tags': 'definedTags',
+ 'display_name': 'displayName',
+ 'freeform_tags': 'freeformTags',
+ 'time_created': 'timeCreated',
+ 'lifecycle_state': 'lifecycleState',
+ 'import_drg_route_distribution_id': 'importDrgRouteDistributionId',
+ 'is_ecmp_enabled': 'isEcmpEnabled'
+ }
+
+ self._id = None
+ self._compartment_id = None
+ self._drg_id = None
+ self._defined_tags = None
+ self._display_name = None
+ self._freeform_tags = None
+ self._time_created = None
+ self._lifecycle_state = None
+ self._import_drg_route_distribution_id = None
+ self._is_ecmp_enabled = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DrgRouteTable.
+ The `OCID`__ of the
+ DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this DrgRouteTable.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DrgRouteTable.
+ The `OCID`__ of the
+ DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this DrgRouteTable.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this DrgRouteTable.
+ The `OCID`__ of the compartment the DRG is in. The DRG route table
+ is always in the same compartment as the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this DrgRouteTable.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this DrgRouteTable.
+ The `OCID`__ of the compartment the DRG is in. The DRG route table
+ is always in the same compartment as the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this DrgRouteTable.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def drg_id(self):
+ """
+ **[Required]** Gets the drg_id of this DrgRouteTable.
+ The `OCID`__ of the DRG the DRG that contains this route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_id of this DrgRouteTable.
+ :rtype: str
+ """
+ return self._drg_id
+
+ @drg_id.setter
+ def drg_id(self, drg_id):
+ """
+ Sets the drg_id of this DrgRouteTable.
+ The `OCID`__ of the DRG the DRG that contains this route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_id: The drg_id of this DrgRouteTable.
+ :type: str
+ """
+ self._drg_id = drg_id
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this DrgRouteTable.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this DrgRouteTable.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this DrgRouteTable.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this DrgRouteTable.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this DrgRouteTable.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :return: The display_name of this DrgRouteTable.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this DrgRouteTable.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+
+ :param display_name: The display_name of this DrgRouteTable.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this DrgRouteTable.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this DrgRouteTable.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this DrgRouteTable.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this DrgRouteTable.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this DrgRouteTable.
+ The date and time the DRG route table was created, in the format defined by `RFC3339`__.
+
+ Example: `2016-08-25T21:10:29.600Z`
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :return: The time_created of this DrgRouteTable.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this DrgRouteTable.
+ The date and time the DRG route table was created, in the format defined by `RFC3339`__.
+
+ Example: `2016-08-25T21:10:29.600Z`
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :param time_created: The time_created of this DrgRouteTable.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this DrgRouteTable.
+ The DRG route table's current state.
+
+ Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this DrgRouteTable.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this DrgRouteTable.
+ The DRG route table's current state.
+
+
+ :param lifecycle_state: The lifecycle_state of this DrgRouteTable.
+ :type: str
+ """
+ allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def import_drg_route_distribution_id(self):
+ """
+ Gets the import_drg_route_distribution_id of this DrgRouteTable.
+ The `OCID`__ of the import route distribution used to specify how incoming route advertisements from
+ referenced attachments are inserted into the DRG route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The import_drg_route_distribution_id of this DrgRouteTable.
+ :rtype: str
+ """
+ return self._import_drg_route_distribution_id
+
+ @import_drg_route_distribution_id.setter
+ def import_drg_route_distribution_id(self, import_drg_route_distribution_id):
+ """
+ Sets the import_drg_route_distribution_id of this DrgRouteTable.
+ The `OCID`__ of the import route distribution used to specify how incoming route advertisements from
+ referenced attachments are inserted into the DRG route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param import_drg_route_distribution_id: The import_drg_route_distribution_id of this DrgRouteTable.
+ :type: str
+ """
+ self._import_drg_route_distribution_id = import_drg_route_distribution_id
+
+ @property
+ def is_ecmp_enabled(self):
+ """
+ **[Required]** Gets the is_ecmp_enabled of this DrgRouteTable.
+ If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to
+ your on-premises network, enable ECMP on the DRG route table to which these attachments
+ import routes.
+
+
+ :return: The is_ecmp_enabled of this DrgRouteTable.
+ :rtype: bool
+ """
+ return self._is_ecmp_enabled
+
+ @is_ecmp_enabled.setter
+ def is_ecmp_enabled(self, is_ecmp_enabled):
+ """
+ Sets the is_ecmp_enabled of this DrgRouteTable.
+ If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to
+ your on-premises network, enable ECMP on the DRG route table to which these attachments
+ import routes.
+
+
+ :param is_ecmp_enabled: The is_ecmp_enabled of this DrgRouteTable.
+ :type: bool
+ """
+ self._is_ecmp_enabled = is_ecmp_enabled
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/image.py b/src/oci/core/models/image.py
index 12a376de85..6c6ee59337 100644
--- a/src/oci/core/models/image.py
+++ b/src/oci/core/models/image.py
@@ -322,7 +322,7 @@ def display_name(self):
A user-friendly name for the image. It does not have to be unique, and it's changeable.
Avoid entering confidential information.
- You cannot use an Oracle-provided image name as a custom image name.
+ You cannot use a platform image name as a custom image name.
Example: `My custom Oracle Linux image`
@@ -339,7 +339,7 @@ def display_name(self, display_name):
A user-friendly name for the image. It does not have to be unique, and it's changeable.
Avoid entering confidential information.
- You cannot use an Oracle-provided image name as a custom image name.
+ You cannot use a platform image name as a custom image name.
Example: `My custom Oracle Linux image`
@@ -412,7 +412,7 @@ def launch_mode(self):
"""
Gets the launch_mode of this Image.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
@@ -431,7 +431,7 @@ def launch_mode(self, launch_mode):
"""
Sets the launch_mode of this Image.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
diff --git a/src/oci/core/models/ingress_security_rule.py b/src/oci/core/models/ingress_security_rule.py
index b2bded11bf..b6a27e0ea3 100644
--- a/src/oci/core/models/ingress_security_rule.py
+++ b/src/oci/core/models/ingress_security_rule.py
@@ -188,7 +188,7 @@ def source(self):
Allowed values:
* IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`.
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
@@ -213,7 +213,7 @@ def source(self, source):
Allowed values:
* IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`.
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
diff --git a/src/oci/core/models/instance.py b/src/oci/core/models/instance.py
index 54024ed507..2580a3db50 100644
--- a/src/oci/core/models/instance.py
+++ b/src/oci/core/models/instance.py
@@ -149,6 +149,10 @@ def __init__(self, **kwargs):
The value to assign to the availability_config property of this Instance.
:type availability_config: oci.core.models.InstanceAvailabilityConfig
+ :param preemptible_instance_config:
+ The value to assign to the preemptible_instance_config property of this Instance.
+ :type preemptible_instance_config: oci.core.models.PreemptibleInstanceConfigDetails
+
:param lifecycle_state:
The value to assign to the lifecycle_state property of this Instance.
Allowed values for this property are: "MOVING", "PROVISIONING", "RUNNING", "STARTING", "STOPPING", "STOPPED", "CREATING_IMAGE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
@@ -213,6 +217,7 @@ def __init__(self, **kwargs):
'launch_options': 'LaunchOptions',
'instance_options': 'InstanceOptions',
'availability_config': 'InstanceAvailabilityConfig',
+ 'preemptible_instance_config': 'PreemptibleInstanceConfigDetails',
'lifecycle_state': 'str',
'metadata': 'dict(str, str)',
'region': 'str',
@@ -243,6 +248,7 @@ def __init__(self, **kwargs):
'launch_options': 'launchOptions',
'instance_options': 'instanceOptions',
'availability_config': 'availabilityConfig',
+ 'preemptible_instance_config': 'preemptibleInstanceConfig',
'lifecycle_state': 'lifecycleState',
'metadata': 'metadata',
'region': 'region',
@@ -272,6 +278,7 @@ def __init__(self, **kwargs):
self._launch_options = None
self._instance_options = None
self._availability_config = None
+ self._preemptible_instance_config = None
self._lifecycle_state = None
self._metadata = None
self._region = None
@@ -689,7 +696,7 @@ def launch_mode(self):
"""
Gets the launch_mode of this Instance.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
@@ -708,7 +715,7 @@ def launch_mode(self, launch_mode):
"""
Sets the launch_mode of this Instance.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
@@ -782,6 +789,26 @@ def availability_config(self, availability_config):
"""
self._availability_config = availability_config
+ @property
+ def preemptible_instance_config(self):
+ """
+ Gets the preemptible_instance_config of this Instance.
+
+ :return: The preemptible_instance_config of this Instance.
+ :rtype: oci.core.models.PreemptibleInstanceConfigDetails
+ """
+ return self._preemptible_instance_config
+
+ @preemptible_instance_config.setter
+ def preemptible_instance_config(self, preemptible_instance_config):
+ """
+ Sets the preemptible_instance_config of this Instance.
+
+ :param preemptible_instance_config: The preemptible_instance_config of this Instance.
+ :type: oci.core.models.PreemptibleInstanceConfigDetails
+ """
+ self._preemptible_instance_config = preemptible_instance_config
+
@property
def lifecycle_state(self):
"""
diff --git a/src/oci/core/models/instance_configuration_launch_instance_details.py b/src/oci/core/models/instance_configuration_launch_instance_details.py
index 569a1a1b28..795b67af80 100644
--- a/src/oci/core/models/instance_configuration_launch_instance_details.py
+++ b/src/oci/core/models/instance_configuration_launch_instance_details.py
@@ -141,6 +141,10 @@ def __init__(self, **kwargs):
The value to assign to the availability_config property of this InstanceConfigurationLaunchInstanceDetails.
:type availability_config: oci.core.models.InstanceConfigurationAvailabilityConfig
+ :param preemptible_instance_config:
+ The value to assign to the preemptible_instance_config property of this InstanceConfigurationLaunchInstanceDetails.
+ :type preemptible_instance_config: oci.core.models.PreemptibleInstanceConfigDetails
+
"""
self.swagger_types = {
'availability_domain': 'str',
@@ -165,7 +169,8 @@ def __init__(self, **kwargs):
'is_pv_encryption_in_transit_enabled': 'bool',
'preferred_maintenance_action': 'str',
'instance_options': 'InstanceConfigurationInstanceOptions',
- 'availability_config': 'InstanceConfigurationAvailabilityConfig'
+ 'availability_config': 'InstanceConfigurationAvailabilityConfig',
+ 'preemptible_instance_config': 'PreemptibleInstanceConfigDetails'
}
self.attribute_map = {
@@ -191,7 +196,8 @@ def __init__(self, **kwargs):
'is_pv_encryption_in_transit_enabled': 'isPvEncryptionInTransitEnabled',
'preferred_maintenance_action': 'preferredMaintenanceAction',
'instance_options': 'instanceOptions',
- 'availability_config': 'availabilityConfig'
+ 'availability_config': 'availabilityConfig',
+ 'preemptible_instance_config': 'preemptibleInstanceConfig'
}
self._availability_domain = None
@@ -217,6 +223,7 @@ def __init__(self, **kwargs):
self._preferred_maintenance_action = None
self._instance_options = None
self._availability_config = None
+ self._preemptible_instance_config = None
@property
def availability_domain(self):
@@ -823,7 +830,7 @@ def launch_mode(self):
"""
Gets the launch_mode of this InstanceConfigurationLaunchInstanceDetails.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
@@ -842,7 +849,7 @@ def launch_mode(self, launch_mode):
"""
Sets the launch_mode of this InstanceConfigurationLaunchInstanceDetails.
Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are:
- * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for Oracle-provided images.
+ * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images.
* `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller.
* `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers.
* `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter.
@@ -994,6 +1001,26 @@ def availability_config(self, availability_config):
"""
self._availability_config = availability_config
+ @property
+ def preemptible_instance_config(self):
+ """
+ Gets the preemptible_instance_config of this InstanceConfigurationLaunchInstanceDetails.
+
+ :return: The preemptible_instance_config of this InstanceConfigurationLaunchInstanceDetails.
+ :rtype: oci.core.models.PreemptibleInstanceConfigDetails
+ """
+ return self._preemptible_instance_config
+
+ @preemptible_instance_config.setter
+ def preemptible_instance_config(self, preemptible_instance_config):
+ """
+ Sets the preemptible_instance_config of this InstanceConfigurationLaunchInstanceDetails.
+
+ :param preemptible_instance_config: The preemptible_instance_config of this InstanceConfigurationLaunchInstanceDetails.
+ :type: oci.core.models.PreemptibleInstanceConfigDetails
+ """
+ self._preemptible_instance_config = preemptible_instance_config
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/instance_configuration_launch_instance_shape_config_details.py b/src/oci/core/models/instance_configuration_launch_instance_shape_config_details.py
index 59afb4b916..5ac09d651d 100644
--- a/src/oci/core/models/instance_configuration_launch_instance_shape_config_details.py
+++ b/src/oci/core/models/instance_configuration_launch_instance_shape_config_details.py
@@ -21,6 +21,18 @@ class InstanceConfigurationLaunchInstanceShapeConfigDetails(object):
specified `shape`, an error is returned.
"""
+ #: A constant which can be used with the baseline_ocpu_utilization property of a InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_8"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_8 = "BASELINE_1_8"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_2"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_2 = "BASELINE_1_2"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_1"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_1 = "BASELINE_1_1"
+
def __init__(self, **kwargs):
"""
Initializes a new InstanceConfigurationLaunchInstanceShapeConfigDetails object with values from keyword arguments.
@@ -34,19 +46,28 @@ def __init__(self, **kwargs):
The value to assign to the memory_in_gbs property of this InstanceConfigurationLaunchInstanceShapeConfigDetails.
:type memory_in_gbs: float
+ :param baseline_ocpu_utilization:
+ The value to assign to the baseline_ocpu_utilization property of this InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type baseline_ocpu_utilization: str
+
"""
self.swagger_types = {
'ocpus': 'float',
- 'memory_in_gbs': 'float'
+ 'memory_in_gbs': 'float',
+ 'baseline_ocpu_utilization': 'str'
}
self.attribute_map = {
'ocpus': 'ocpus',
- 'memory_in_gbs': 'memoryInGBs'
+ 'memory_in_gbs': 'memoryInGBs',
+ 'baseline_ocpu_utilization': 'baselineOcpuUtilization'
}
self._ocpus = None
self._memory_in_gbs = None
+ self._baseline_ocpu_utilization = None
@property
def ocpus(self):
@@ -96,6 +117,48 @@ def memory_in_gbs(self, memory_in_gbs):
"""
self._memory_in_gbs = memory_in_gbs
+ @property
+ def baseline_ocpu_utilization(self):
+ """
+ Gets the baseline_ocpu_utilization of this InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
+
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The baseline_ocpu_utilization of this InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ :rtype: str
+ """
+ return self._baseline_ocpu_utilization
+
+ @baseline_ocpu_utilization.setter
+ def baseline_ocpu_utilization(self, baseline_ocpu_utilization):
+ """
+ Sets the baseline_ocpu_utilization of this InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
+
+
+ :param baseline_ocpu_utilization: The baseline_ocpu_utilization of this InstanceConfigurationLaunchInstanceShapeConfigDetails.
+ :type: str
+ """
+ allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"]
+ if not value_allowed_none_or_none_sentinel(baseline_ocpu_utilization, allowed_values):
+ baseline_ocpu_utilization = 'UNKNOWN_ENUM_VALUE'
+ self._baseline_ocpu_utilization = baseline_ocpu_utilization
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/instance_configuration_launch_options.py b/src/oci/core/models/instance_configuration_launch_options.py
index aa420fa20e..7e33d6e0a1 100644
--- a/src/oci/core/models/instance_configuration_launch_options.py
+++ b/src/oci/core/models/instance_configuration_launch_options.py
@@ -146,9 +146,9 @@ def boot_volume_type(self):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
Allowed values for this property are: "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -168,9 +168,9 @@ def boot_volume_type(self, boot_volume_type):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
:param boot_volume_type: The boot_volume_type of this InstanceConfigurationLaunchOptions.
@@ -189,7 +189,7 @@ def firmware(self):
* `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating
systems that boot using MBR style bootloaders.
* `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the
- default for Oracle-provided images.
+ default for platform images.
Allowed values for this property are: "BIOS", "UEFI_64", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -208,7 +208,7 @@ def firmware(self, firmware):
* `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating
systems that boot using MBR style bootloaders.
* `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the
- default for Oracle-provided images.
+ default for platform images.
:param firmware: The firmware of this InstanceConfigurationLaunchOptions.
@@ -266,9 +266,9 @@ def remote_data_volume_type(self):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
Allowed values for this property are: "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -288,9 +288,9 @@ def remote_data_volume_type(self, remote_data_volume_type):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
:param remote_data_volume_type: The remote_data_volume_type of this InstanceConfigurationLaunchOptions.
diff --git a/src/oci/core/models/instance_shape_config.py b/src/oci/core/models/instance_shape_config.py
index e0b8f573af..505d7915c6 100644
--- a/src/oci/core/models/instance_shape_config.py
+++ b/src/oci/core/models/instance_shape_config.py
@@ -14,6 +14,18 @@ class InstanceShapeConfig(object):
the resources allocated to an instance.
"""
+ #: A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
+ #: This constant has a value of "BASELINE_1_8"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_8 = "BASELINE_1_8"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
+ #: This constant has a value of "BASELINE_1_2"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_2 = "BASELINE_1_2"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a InstanceShapeConfig.
+ #: This constant has a value of "BASELINE_1_1"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_1 = "BASELINE_1_1"
+
def __init__(self, **kwargs):
"""
Initializes a new InstanceShapeConfig object with values from keyword arguments.
@@ -27,6 +39,12 @@ def __init__(self, **kwargs):
The value to assign to the memory_in_gbs property of this InstanceShapeConfig.
:type memory_in_gbs: float
+ :param baseline_ocpu_utilization:
+ The value to assign to the baseline_ocpu_utilization property of this InstanceShapeConfig.
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type baseline_ocpu_utilization: str
+
:param processor_description:
The value to assign to the processor_description property of this InstanceShapeConfig.
:type processor_description: str
@@ -63,6 +81,7 @@ def __init__(self, **kwargs):
self.swagger_types = {
'ocpus': 'float',
'memory_in_gbs': 'float',
+ 'baseline_ocpu_utilization': 'str',
'processor_description': 'str',
'networking_bandwidth_in_gbps': 'float',
'max_vnic_attachments': 'int',
@@ -76,6 +95,7 @@ def __init__(self, **kwargs):
self.attribute_map = {
'ocpus': 'ocpus',
'memory_in_gbs': 'memoryInGBs',
+ 'baseline_ocpu_utilization': 'baselineOcpuUtilization',
'processor_description': 'processorDescription',
'networking_bandwidth_in_gbps': 'networkingBandwidthInGbps',
'max_vnic_attachments': 'maxVnicAttachments',
@@ -88,6 +108,7 @@ def __init__(self, **kwargs):
self._ocpus = None
self._memory_in_gbs = None
+ self._baseline_ocpu_utilization = None
self._processor_description = None
self._networking_bandwidth_in_gbps = None
self._max_vnic_attachments = None
@@ -145,6 +166,48 @@ def memory_in_gbs(self, memory_in_gbs):
"""
self._memory_in_gbs = memory_in_gbs
+ @property
+ def baseline_ocpu_utilization(self):
+ """
+ Gets the baseline_ocpu_utilization of this InstanceShapeConfig.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance.
+
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The baseline_ocpu_utilization of this InstanceShapeConfig.
+ :rtype: str
+ """
+ return self._baseline_ocpu_utilization
+
+ @baseline_ocpu_utilization.setter
+ def baseline_ocpu_utilization(self, baseline_ocpu_utilization):
+ """
+ Sets the baseline_ocpu_utilization of this InstanceShapeConfig.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance.
+
+
+ :param baseline_ocpu_utilization: The baseline_ocpu_utilization of this InstanceShapeConfig.
+ :type: str
+ """
+ allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"]
+ if not value_allowed_none_or_none_sentinel(baseline_ocpu_utilization, allowed_values):
+ baseline_ocpu_utilization = 'UNKNOWN_ENUM_VALUE'
+ self._baseline_ocpu_utilization = baseline_ocpu_utilization
+
@property
def processor_description(self):
"""
diff --git a/src/oci/core/models/ip_sec_connection.py b/src/oci/core/models/ip_sec_connection.py
index 301e2e9cfe..62f612a4d1 100644
--- a/src/oci/core/models/ip_sec_connection.py
+++ b/src/oci/core/models/ip_sec_connection.py
@@ -273,7 +273,9 @@ def display_name(self, display_name):
def drg_id(self):
"""
**[Required]** Gets the drg_id of this IPSecConnection.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The drg_id of this IPSecConnection.
@@ -285,7 +287,9 @@ def drg_id(self):
def drg_id(self, drg_id):
"""
Sets the drg_id of this IPSecConnection.
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param drg_id: The drg_id of this IPSecConnection.
@@ -331,7 +335,9 @@ def freeform_tags(self, freeform_tags):
def id(self):
"""
**[Required]** Gets the id of this IPSecConnection.
- The IPSec connection's Oracle ID (OCID).
+ The IPSec connection's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The id of this IPSecConnection.
@@ -343,7 +349,9 @@ def id(self):
def id(self, id):
"""
Sets the id of this IPSecConnection.
- The IPSec connection's Oracle ID (OCID).
+ The IPSec connection's Oracle ID (`OCID`__).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param id: The id of this IPSecConnection.
@@ -477,8 +485,8 @@ def static_routes(self):
you must provide at least one valid static route. If you configure both
tunnels to use BGP dynamic routing, you can provide an empty list for the static routes.
- The CIDR can be either IPv4 or IPv6. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
Example: `10.0.1.0/24`
@@ -504,8 +512,8 @@ def static_routes(self, static_routes):
you must provide at least one valid static route. If you configure both
tunnels to use BGP dynamic routing, you can provide an empty list for the static routes.
- The CIDR can be either IPv4 or IPv6. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
Example: `10.0.1.0/24`
diff --git a/src/oci/core/models/ipsec_tunnel_drg_attachment_network_details.py b/src/oci/core/models/ipsec_tunnel_drg_attachment_network_details.py
new file mode 100644
index 0000000000..f3a878707a
--- /dev/null
+++ b/src/oci/core/models/ipsec_tunnel_drg_attachment_network_details.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_attachment_network_details import DrgAttachmentNetworkDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class IpsecTunnelDrgAttachmentNetworkDetails(DrgAttachmentNetworkDetails):
+ """
+ Specifies the IPSec tunnel attached to the DRG.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new IpsecTunnelDrgAttachmentNetworkDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.IpsecTunnelDrgAttachmentNetworkDetails.type` attribute
+ of this class is ``IPSEC_TUNNEL`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this IpsecTunnelDrgAttachmentNetworkDetails.
+ Allowed values for this property are: "VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION"
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this IpsecTunnelDrgAttachmentNetworkDetails.
+ :type id: str
+
+ :param ipsec_connection_id:
+ The value to assign to the ipsec_connection_id property of this IpsecTunnelDrgAttachmentNetworkDetails.
+ :type ipsec_connection_id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str',
+ 'ipsec_connection_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id',
+ 'ipsec_connection_id': 'ipsecConnectionId'
+ }
+
+ self._type = None
+ self._id = None
+ self._ipsec_connection_id = None
+ self._type = 'IPSEC_TUNNEL'
+
+ @property
+ def ipsec_connection_id(self):
+ """
+ Gets the ipsec_connection_id of this IpsecTunnelDrgAttachmentNetworkDetails.
+ The IPSec connection that contains the attached IPSec tunnel.
+
+
+ :return: The ipsec_connection_id of this IpsecTunnelDrgAttachmentNetworkDetails.
+ :rtype: str
+ """
+ return self._ipsec_connection_id
+
+ @ipsec_connection_id.setter
+ def ipsec_connection_id(self, ipsec_connection_id):
+ """
+ Sets the ipsec_connection_id of this IpsecTunnelDrgAttachmentNetworkDetails.
+ The IPSec connection that contains the attached IPSec tunnel.
+
+
+ :param ipsec_connection_id: The ipsec_connection_id of this IpsecTunnelDrgAttachmentNetworkDetails.
+ :type: str
+ """
+ self._ipsec_connection_id = ipsec_connection_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/ipv6.py b/src/oci/core/models/ipv6.py
index 15d7bf9851..5ceb547dc5 100644
--- a/src/oci/core/models/ipv6.py
+++ b/src/oci/core/models/ipv6.py
@@ -16,7 +16,7 @@ class Ipv6(object):
You can create and assign an IPv6 to any VNIC that is in an IPv6-enabled subnet in an
IPv6-enabled VCN.
- **Note:** IPv6 addressing is currently supported only in certain regions. For important
+ **Note:** IPv6 addressing is supported for all commercial and government regions. For important
details about IPv6 addressing in a VCN, see `IPv6 Addresses`__.
__ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
@@ -67,20 +67,12 @@ def __init__(self, **kwargs):
The value to assign to the ip_address property of this Ipv6.
:type ip_address: str
- :param is_internet_access_allowed:
- The value to assign to the is_internet_access_allowed property of this Ipv6.
- :type is_internet_access_allowed: bool
-
:param lifecycle_state:
The value to assign to the lifecycle_state property of this Ipv6.
Allowed values for this property are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type lifecycle_state: str
- :param public_ip_address:
- The value to assign to the public_ip_address property of this Ipv6.
- :type public_ip_address: str
-
:param subnet_id:
The value to assign to the subnet_id property of this Ipv6.
:type subnet_id: str
@@ -101,9 +93,7 @@ def __init__(self, **kwargs):
'freeform_tags': 'dict(str, str)',
'id': 'str',
'ip_address': 'str',
- 'is_internet_access_allowed': 'bool',
'lifecycle_state': 'str',
- 'public_ip_address': 'str',
'subnet_id': 'str',
'time_created': 'datetime',
'vnic_id': 'str'
@@ -116,9 +106,7 @@ def __init__(self, **kwargs):
'freeform_tags': 'freeformTags',
'id': 'id',
'ip_address': 'ipAddress',
- 'is_internet_access_allowed': 'isInternetAccessAllowed',
'lifecycle_state': 'lifecycleState',
- 'public_ip_address': 'publicIpAddress',
'subnet_id': 'subnetId',
'time_created': 'timeCreated',
'vnic_id': 'vnicId'
@@ -130,9 +118,7 @@ def __init__(self, **kwargs):
self._freeform_tags = None
self._id = None
self._ip_address = None
- self._is_internet_access_allowed = None
self._lifecycle_state = None
- self._public_ip_address = None
self._subnet_id = None
self._time_created = None
self._vnic_id = None
@@ -293,9 +279,8 @@ def id(self, id):
def ip_address(self):
"""
**[Required]** Gets the ip_address of this Ipv6.
- The IPv6 address of the `IPv6` object. The address is within the private IPv6 CIDR block
- of the VNIC's subnet (see the `ipv6CidrBlock` attribute for the :class:`Subnet`
- object.
+ The IPv6 address of the `IPv6` object. The address is within the IPv6 CIDR block of the VNIC's subnet
+ (see the `ipv6CidrBlock` attribute for the :class:`Subnet` object.
Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789`
@@ -309,9 +294,8 @@ def ip_address(self):
def ip_address(self, ip_address):
"""
Sets the ip_address of this Ipv6.
- The IPv6 address of the `IPv6` object. The address is within the private IPv6 CIDR block
- of the VNIC's subnet (see the `ipv6CidrBlock` attribute for the :class:`Subnet`
- object.
+ The IPv6 address of the `IPv6` object. The address is within the IPv6 CIDR block of the VNIC's subnet
+ (see the `ipv6CidrBlock` attribute for the :class:`Subnet` object.
Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789`
@@ -321,38 +305,6 @@ def ip_address(self, ip_address):
"""
self._ip_address = ip_address
- @property
- def is_internet_access_allowed(self):
- """
- Gets the is_internet_access_allowed of this Ipv6.
- Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in
- a public subnet. Never allowed for an IPv6 in a private subnet. If the value is `true`, the
- IPv6 uses its public IP address for internet communication.
-
- Example: `true`
-
-
- :return: The is_internet_access_allowed of this Ipv6.
- :rtype: bool
- """
- return self._is_internet_access_allowed
-
- @is_internet_access_allowed.setter
- def is_internet_access_allowed(self, is_internet_access_allowed):
- """
- Sets the is_internet_access_allowed of this Ipv6.
- Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in
- a public subnet. Never allowed for an IPv6 in a private subnet. If the value is `true`, the
- IPv6 uses its public IP address for internet communication.
-
- Example: `true`
-
-
- :param is_internet_access_allowed: The is_internet_access_allowed of this Ipv6.
- :type: bool
- """
- self._is_internet_access_allowed = is_internet_access_allowed
-
@property
def lifecycle_state(self):
"""
@@ -383,60 +335,6 @@ def lifecycle_state(self, lifecycle_state):
lifecycle_state = 'UNKNOWN_ENUM_VALUE'
self._lifecycle_state = lifecycle_state
- @property
- def public_ip_address(self):
- """
- Gets the public_ip_address of this Ipv6.
- The IPv6 address to be used for internet communication. The address is within the public
- IPv6 CIDR block of the VNIC's subnet (see the `ipv6PublicCidrBlock` attribute for the
- :class:`Subnet` object).
-
- If your organization did NOT assign a custom IPv6 CIDR to the VCN for the private address
- space, Oracle provides the IPv6 CIDR and uses that same CIDR for the private and public
- address space. Therefore the `publicIpAddress` would be the same as the `ipAddress`.
-
- If your organization assigned a custom IPv6 CIDR to the VCN for the private address space,
- the right 80 bits of the IPv6 public IP (the subnet and address bits) are the same as for
- the `ipAddress`. But the left 48 bits are from the public IPv6 CIDR that Oracle assigned
- to the VCN.
-
- This is null if the IPv6 is created with `isInternetAccessAllowed` set to `false`.
-
- Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789`
-
-
- :return: The public_ip_address of this Ipv6.
- :rtype: str
- """
- return self._public_ip_address
-
- @public_ip_address.setter
- def public_ip_address(self, public_ip_address):
- """
- Sets the public_ip_address of this Ipv6.
- The IPv6 address to be used for internet communication. The address is within the public
- IPv6 CIDR block of the VNIC's subnet (see the `ipv6PublicCidrBlock` attribute for the
- :class:`Subnet` object).
-
- If your organization did NOT assign a custom IPv6 CIDR to the VCN for the private address
- space, Oracle provides the IPv6 CIDR and uses that same CIDR for the private and public
- address space. Therefore the `publicIpAddress` would be the same as the `ipAddress`.
-
- If your organization assigned a custom IPv6 CIDR to the VCN for the private address space,
- the right 80 bits of the IPv6 public IP (the subnet and address bits) are the same as for
- the `ipAddress`. But the left 48 bits are from the public IPv6 CIDR that Oracle assigned
- to the VCN.
-
- This is null if the IPv6 is created with `isInternetAccessAllowed` set to `false`.
-
- Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789`
-
-
- :param public_ip_address: The public_ip_address of this Ipv6.
- :type: str
- """
- self._public_ip_address = public_ip_address
-
@property
def subnet_id(self):
"""
diff --git a/src/oci/core/models/launch_instance_details.py b/src/oci/core/models/launch_instance_details.py
index b4f9f12f8f..ff15e8d073 100644
--- a/src/oci/core/models/launch_instance_details.py
+++ b/src/oci/core/models/launch_instance_details.py
@@ -83,6 +83,10 @@ def __init__(self, **kwargs):
The value to assign to the availability_config property of this LaunchInstanceDetails.
:type availability_config: oci.core.models.LaunchInstanceAvailabilityConfigDetails
+ :param preemptible_instance_config:
+ The value to assign to the preemptible_instance_config property of this LaunchInstanceDetails.
+ :type preemptible_instance_config: oci.core.models.PreemptibleInstanceConfigDetails
+
:param metadata:
The value to assign to the metadata property of this LaunchInstanceDetails.
:type metadata: dict(str, str)
@@ -133,6 +137,7 @@ def __init__(self, **kwargs):
'launch_options': 'LaunchOptions',
'instance_options': 'InstanceOptions',
'availability_config': 'LaunchInstanceAvailabilityConfigDetails',
+ 'preemptible_instance_config': 'PreemptibleInstanceConfigDetails',
'metadata': 'dict(str, str)',
'agent_config': 'LaunchInstanceAgentConfigDetails',
'shape': 'str',
@@ -160,6 +165,7 @@ def __init__(self, **kwargs):
'launch_options': 'launchOptions',
'instance_options': 'instanceOptions',
'availability_config': 'availabilityConfig',
+ 'preemptible_instance_config': 'preemptibleInstanceConfig',
'metadata': 'metadata',
'agent_config': 'agentConfig',
'shape': 'shape',
@@ -186,6 +192,7 @@ def __init__(self, **kwargs):
self._launch_options = None
self._instance_options = None
self._availability_config = None
+ self._preemptible_instance_config = None
self._metadata = None
self._agent_config = None
self._shape = None
@@ -697,6 +704,26 @@ def availability_config(self, availability_config):
"""
self._availability_config = availability_config
+ @property
+ def preemptible_instance_config(self):
+ """
+ Gets the preemptible_instance_config of this LaunchInstanceDetails.
+
+ :return: The preemptible_instance_config of this LaunchInstanceDetails.
+ :rtype: oci.core.models.PreemptibleInstanceConfigDetails
+ """
+ return self._preemptible_instance_config
+
+ @preemptible_instance_config.setter
+ def preemptible_instance_config(self, preemptible_instance_config):
+ """
+ Sets the preemptible_instance_config of this LaunchInstanceDetails.
+
+ :param preemptible_instance_config: The preemptible_instance_config of this LaunchInstanceDetails.
+ :type: oci.core.models.PreemptibleInstanceConfigDetails
+ """
+ self._preemptible_instance_config = preemptible_instance_config
+
@property
def metadata(self):
"""
diff --git a/src/oci/core/models/launch_instance_shape_config_details.py b/src/oci/core/models/launch_instance_shape_config_details.py
index 1bdfb27806..afea14a264 100644
--- a/src/oci/core/models/launch_instance_shape_config_details.py
+++ b/src/oci/core/models/launch_instance_shape_config_details.py
@@ -20,6 +20,18 @@ class LaunchInstanceShapeConfigDetails(object):
specified `shape`, an error is returned.
"""
+ #: A constant which can be used with the baseline_ocpu_utilization property of a LaunchInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_8"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_8 = "BASELINE_1_8"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a LaunchInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_2"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_2 = "BASELINE_1_2"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a LaunchInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_1"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_1 = "BASELINE_1_1"
+
def __init__(self, **kwargs):
"""
Initializes a new LaunchInstanceShapeConfigDetails object with values from keyword arguments.
@@ -33,19 +45,27 @@ def __init__(self, **kwargs):
The value to assign to the memory_in_gbs property of this LaunchInstanceShapeConfigDetails.
:type memory_in_gbs: float
+ :param baseline_ocpu_utilization:
+ The value to assign to the baseline_ocpu_utilization property of this LaunchInstanceShapeConfigDetails.
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"
+ :type baseline_ocpu_utilization: str
+
"""
self.swagger_types = {
'ocpus': 'float',
- 'memory_in_gbs': 'float'
+ 'memory_in_gbs': 'float',
+ 'baseline_ocpu_utilization': 'str'
}
self.attribute_map = {
'ocpus': 'ocpus',
- 'memory_in_gbs': 'memoryInGBs'
+ 'memory_in_gbs': 'memoryInGBs',
+ 'baseline_ocpu_utilization': 'baselineOcpuUtilization'
}
self._ocpus = None
self._memory_in_gbs = None
+ self._baseline_ocpu_utilization = None
@property
def ocpus(self):
@@ -95,6 +115,50 @@ def memory_in_gbs(self, memory_in_gbs):
"""
self._memory_in_gbs = memory_in_gbs
+ @property
+ def baseline_ocpu_utilization(self):
+ """
+ Gets the baseline_ocpu_utilization of this LaunchInstanceShapeConfigDetails.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
+
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"
+
+
+ :return: The baseline_ocpu_utilization of this LaunchInstanceShapeConfigDetails.
+ :rtype: str
+ """
+ return self._baseline_ocpu_utilization
+
+ @baseline_ocpu_utilization.setter
+ def baseline_ocpu_utilization(self, baseline_ocpu_utilization):
+ """
+ Sets the baseline_ocpu_utilization of this LaunchInstanceShapeConfigDetails.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
+
+
+ :param baseline_ocpu_utilization: The baseline_ocpu_utilization of this LaunchInstanceShapeConfigDetails.
+ :type: str
+ """
+ allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"]
+ if not value_allowed_none_or_none_sentinel(baseline_ocpu_utilization, allowed_values):
+ raise ValueError(
+ "Invalid value for `baseline_ocpu_utilization`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._baseline_ocpu_utilization = baseline_ocpu_utilization
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/launch_options.py b/src/oci/core/models/launch_options.py
index 8c3ddce8ae..80f352e778 100644
--- a/src/oci/core/models/launch_options.py
+++ b/src/oci/core/models/launch_options.py
@@ -146,9 +146,9 @@ def boot_volume_type(self):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle-provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
Allowed values for this property are: "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -168,9 +168,9 @@ def boot_volume_type(self, boot_volume_type):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle-provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
:param boot_volume_type: The boot_volume_type of this LaunchOptions.
@@ -189,7 +189,7 @@ def firmware(self):
* `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating
systems that boot using MBR style bootloaders.
* `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the
- default for Oracle-provided images.
+ default for platform images.
Allowed values for this property are: "BIOS", "UEFI_64", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -208,7 +208,7 @@ def firmware(self, firmware):
* `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating
systems that boot using MBR style bootloaders.
* `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the
- default for Oracle-provided images.
+ default for platform images.
:param firmware: The firmware of this LaunchOptions.
@@ -266,9 +266,9 @@ def remote_data_volume_type(self):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle-provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
Allowed values for this property are: "ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -288,9 +288,9 @@ def remote_data_volume_type(self, remote_data_volume_type):
* `SCSI` - Emulated SCSI disk.
* `IDE` - Emulated IDE disk.
* `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
- volumes on Oracle-provided images.
+ volumes on platform images.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided images.
+ storage volumes on platform images.
:param remote_data_volume_type: The remote_data_volume_type of this LaunchOptions.
diff --git a/src/oci/core/models/local_peering_gateway.py b/src/oci/core/models/local_peering_gateway.py
index 903af968b4..eb747ac1f5 100644
--- a/src/oci/core/models/local_peering_gateway.py
+++ b/src/oci/core/models/local_peering_gateway.py
@@ -113,6 +113,10 @@ def __init__(self, **kwargs):
The value to assign to the peering_status_details property of this LocalPeeringGateway.
:type peering_status_details: str
+ :param peer_id:
+ The value to assign to the peer_id property of this LocalPeeringGateway.
+ :type peer_id: str
+
:param route_table_id:
The value to assign to the route_table_id property of this LocalPeeringGateway.
:type route_table_id: str
@@ -138,6 +142,7 @@ def __init__(self, **kwargs):
'peer_advertised_cidr_details': 'list[str]',
'peering_status': 'str',
'peering_status_details': 'str',
+ 'peer_id': 'str',
'route_table_id': 'str',
'time_created': 'datetime',
'vcn_id': 'str'
@@ -155,6 +160,7 @@ def __init__(self, **kwargs):
'peer_advertised_cidr_details': 'peerAdvertisedCidrDetails',
'peering_status': 'peeringStatus',
'peering_status_details': 'peeringStatusDetails',
+ 'peer_id': 'peerId',
'route_table_id': 'routeTableId',
'time_created': 'timeCreated',
'vcn_id': 'vcnId'
@@ -171,6 +177,7 @@ def __init__(self, **kwargs):
self._peer_advertised_cidr_details = None
self._peering_status = None
self._peering_status_details = None
+ self._peer_id = None
self._route_table_id = None
self._time_created = None
self._vcn_id = None
@@ -499,6 +506,34 @@ def peering_status_details(self, peering_status_details):
"""
self._peering_status_details = peering_status_details
+ @property
+ def peer_id(self):
+ """
+ **[Required]** Gets the peer_id of this LocalPeeringGateway.
+ The `OCID`__ of the peered LPG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The peer_id of this LocalPeeringGateway.
+ :rtype: str
+ """
+ return self._peer_id
+
+ @peer_id.setter
+ def peer_id(self, peer_id):
+ """
+ Sets the peer_id of this LocalPeeringGateway.
+ The `OCID`__ of the peered LPG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param peer_id: The peer_id of this LocalPeeringGateway.
+ :type: str
+ """
+ self._peer_id = peer_id
+
@property
def route_table_id(self):
"""
diff --git a/src/oci/core/models/networking_topology.py b/src/oci/core/models/networking_topology.py
new file mode 100644
index 0000000000..738d46293a
--- /dev/null
+++ b/src/oci/core/models/networking_topology.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .topology import Topology
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class NetworkingTopology(Topology):
+ """
+ Defines the representation of a virtual network topology for a region.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new NetworkingTopology object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.NetworkingTopology.type` attribute
+ of this class is ``NETWORKING`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this NetworkingTopology.
+ Allowed values for this property are: "NETWORKING", "VCN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param entities:
+ The value to assign to the entities property of this NetworkingTopology.
+ :type entities: list[object]
+
+ :param relationships:
+ The value to assign to the relationships property of this NetworkingTopology.
+ :type relationships: list[oci.core.models.TopologyEntityRelationship]
+
+ :param time_created:
+ The value to assign to the time_created property of this NetworkingTopology.
+ :type time_created: datetime
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'entities': 'list[object]',
+ 'relationships': 'list[TopologyEntityRelationship]',
+ 'time_created': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'entities': 'entities',
+ 'relationships': 'relationships',
+ 'time_created': 'timeCreated'
+ }
+
+ self._type = None
+ self._entities = None
+ self._relationships = None
+ self._time_created = None
+ self._type = 'NETWORKING'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/port_range.py b/src/oci/core/models/port_range.py
index 29ea4f1a9c..011d5d3f6e 100644
--- a/src/oci/core/models/port_range.py
+++ b/src/oci/core/models/port_range.py
@@ -44,7 +44,7 @@ def __init__(self, **kwargs):
def max(self):
"""
**[Required]** Gets the max of this PortRange.
- The maximum port number. Must not be lower than the minimum port number. To specify
+ The maximum port number, which must not be less than the minimum port number. To specify
a single port number, set both the min and max to the same value.
@@ -57,7 +57,7 @@ def max(self):
def max(self, max):
"""
Sets the max of this PortRange.
- The maximum port number. Must not be lower than the minimum port number. To specify
+ The maximum port number, which must not be less than the minimum port number. To specify
a single port number, set both the min and max to the same value.
@@ -70,7 +70,7 @@ def max(self, max):
def min(self):
"""
**[Required]** Gets the min of this PortRange.
- The minimum port number. Must not be greater than the maximum port number.
+ The minimum port number, which must not be greater than the maximum port number.
:return: The min of this PortRange.
@@ -82,7 +82,7 @@ def min(self):
def min(self, min):
"""
Sets the min of this PortRange.
- The minimum port number. Must not be greater than the maximum port number.
+ The minimum port number, which must not be greater than the maximum port number.
:param min: The min of this PortRange.
diff --git a/src/oci/core/models/preemptible_instance_config_details.py b/src/oci/core/models/preemptible_instance_config_details.py
new file mode 100644
index 0000000000..0b278242ac
--- /dev/null
+++ b/src/oci/core/models/preemptible_instance_config_details.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class PreemptibleInstanceConfigDetails(object):
+ """
+ Configuration options for preemptible instances.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PreemptibleInstanceConfigDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param preemption_action:
+ The value to assign to the preemption_action property of this PreemptibleInstanceConfigDetails.
+ :type preemption_action: oci.core.models.PreemptionAction
+
+ """
+ self.swagger_types = {
+ 'preemption_action': 'PreemptionAction'
+ }
+
+ self.attribute_map = {
+ 'preemption_action': 'preemptionAction'
+ }
+
+ self._preemption_action = None
+
+ @property
+ def preemption_action(self):
+ """
+ **[Required]** Gets the preemption_action of this PreemptibleInstanceConfigDetails.
+
+ :return: The preemption_action of this PreemptibleInstanceConfigDetails.
+ :rtype: oci.core.models.PreemptionAction
+ """
+ return self._preemption_action
+
+ @preemption_action.setter
+ def preemption_action(self, preemption_action):
+ """
+ Sets the preemption_action of this PreemptibleInstanceConfigDetails.
+
+ :param preemption_action: The preemption_action of this PreemptibleInstanceConfigDetails.
+ :type: oci.core.models.PreemptionAction
+ """
+ self._preemption_action = preemption_action
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/preemption_action.py b/src/oci/core/models/preemption_action.py
new file mode 100644
index 0000000000..c77f89943d
--- /dev/null
+++ b/src/oci/core/models/preemption_action.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class PreemptionAction(object):
+ """
+ The action to run when the preemptible instance is interrupted for eviction.
+ """
+
+ #: A constant which can be used with the type property of a PreemptionAction.
+ #: This constant has a value of "TERMINATE"
+ TYPE_TERMINATE = "TERMINATE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PreemptionAction object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.core.models.TerminatePreemptionAction`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this PreemptionAction.
+ Allowed values for this property are: "TERMINATE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type'
+ }
+
+ self._type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'TERMINATE':
+ return 'TerminatePreemptionAction'
+ else:
+ return 'PreemptionAction'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this PreemptionAction.
+ The type of action to run when the instance is interrupted for eviction.
+
+ Allowed values for this property are: "TERMINATE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this PreemptionAction.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this PreemptionAction.
+ The type of action to run when the instance is interrupted for eviction.
+
+
+ :param type: The type of this PreemptionAction.
+ :type: str
+ """
+ allowed_values = ["TERMINATE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/remote_peering_connection_drg_attachment_network_details.py b/src/oci/core/models/remote_peering_connection_drg_attachment_network_details.py
new file mode 100644
index 0000000000..90bec1c67f
--- /dev/null
+++ b/src/oci/core/models/remote_peering_connection_drg_attachment_network_details.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_attachment_network_details import DrgAttachmentNetworkDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class RemotePeeringConnectionDrgAttachmentNetworkDetails(DrgAttachmentNetworkDetails):
+ """
+ Specifies the DRG attachment to another DRG.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new RemotePeeringConnectionDrgAttachmentNetworkDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.RemotePeeringConnectionDrgAttachmentNetworkDetails.type` attribute
+ of this class is ``REMOTE_PEERING_CONNECTION`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this RemotePeeringConnectionDrgAttachmentNetworkDetails.
+ Allowed values for this property are: "VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION"
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this RemotePeeringConnectionDrgAttachmentNetworkDetails.
+ :type id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id'
+ }
+
+ self._type = None
+ self._id = None
+ self._type = 'REMOTE_PEERING_CONNECTION'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/remove_drg_route_distribution_statements_details.py b/src/oci/core/models/remove_drg_route_distribution_statements_details.py
new file mode 100644
index 0000000000..7f151026cf
--- /dev/null
+++ b/src/oci/core/models/remove_drg_route_distribution_statements_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class RemoveDrgRouteDistributionStatementsDetails(object):
+ """
+ Details request to remove statements from a route distribution.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new RemoveDrgRouteDistributionStatementsDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param statement_ids:
+ The value to assign to the statement_ids property of this RemoveDrgRouteDistributionStatementsDetails.
+ :type statement_ids: list[str]
+
+ """
+ self.swagger_types = {
+ 'statement_ids': 'list[str]'
+ }
+
+ self.attribute_map = {
+ 'statement_ids': 'statementIds'
+ }
+
+ self._statement_ids = None
+
+ @property
+ def statement_ids(self):
+ """
+ Gets the statement_ids of this RemoveDrgRouteDistributionStatementsDetails.
+ The Oracle-assigned ID of each route distribution to remove.
+
+
+ :return: The statement_ids of this RemoveDrgRouteDistributionStatementsDetails.
+ :rtype: list[str]
+ """
+ return self._statement_ids
+
+ @statement_ids.setter
+ def statement_ids(self, statement_ids):
+ """
+ Sets the statement_ids of this RemoveDrgRouteDistributionStatementsDetails.
+ The Oracle-assigned ID of each route distribution to remove.
+
+
+ :param statement_ids: The statement_ids of this RemoveDrgRouteDistributionStatementsDetails.
+ :type: list[str]
+ """
+ self._statement_ids = statement_ids
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/remove_drg_route_rules_details.py b/src/oci/core/models/remove_drg_route_rules_details.py
new file mode 100644
index 0000000000..1b020990aa
--- /dev/null
+++ b/src/oci/core/models/remove_drg_route_rules_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class RemoveDrgRouteRulesDetails(object):
+ """
+ Details used in a request to remove static routes from a DRG route table.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new RemoveDrgRouteRulesDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param route_rule_ids:
+ The value to assign to the route_rule_ids property of this RemoveDrgRouteRulesDetails.
+ :type route_rule_ids: list[str]
+
+ """
+ self.swagger_types = {
+ 'route_rule_ids': 'list[str]'
+ }
+
+ self.attribute_map = {
+ 'route_rule_ids': 'routeRuleIds'
+ }
+
+ self._route_rule_ids = None
+
+ @property
+ def route_rule_ids(self):
+ """
+ Gets the route_rule_ids of this RemoveDrgRouteRulesDetails.
+ The Oracle-assigned ID of each DRG route rule to be deleted.
+
+
+ :return: The route_rule_ids of this RemoveDrgRouteRulesDetails.
+ :rtype: list[str]
+ """
+ return self._route_rule_ids
+
+ @route_rule_ids.setter
+ def route_rule_ids(self, route_rule_ids):
+ """
+ Sets the route_rule_ids of this RemoveDrgRouteRulesDetails.
+ The Oracle-assigned ID of each DRG route rule to be deleted.
+
+
+ :param route_rule_ids: The route_rule_ids of this RemoveDrgRouteRulesDetails.
+ :type: list[str]
+ """
+ self._route_rule_ids = route_rule_ids
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/route_rule.py b/src/oci/core/models/route_rule.py
index 66a526706c..74f73d4325 100644
--- a/src/oci/core/models/route_rule.py
+++ b/src/oci/core/models/route_rule.py
@@ -123,8 +123,9 @@ def destination(self):
* IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target
- can only be a DRG or internet gateway. Note that IPv6 addressing is currently supported
- only in certain regions. See `IPv6 Addresses`__.
+ can only be a DRG or internet gateway.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
setting up a route rule for traffic destined for a particular `Service` through
@@ -149,8 +150,9 @@ def destination(self, destination):
* IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target
- can only be a DRG or internet gateway. Note that IPv6 addressing is currently supported
- only in certain regions. See `IPv6 Addresses`__.
+ can only be a DRG or internet gateway.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
setting up a route rule for traffic destined for a particular `Service` through
diff --git a/src/oci/core/models/route_table.py b/src/oci/core/models/route_table.py
index 7d1ac1ee4f..ce48356937 100644
--- a/src/oci/core/models/route_table.py
+++ b/src/oci/core/models/route_table.py
@@ -348,7 +348,9 @@ def time_created(self, time_created):
def vcn_id(self):
"""
**[Required]** Gets the vcn_id of this RouteTable.
- The OCID of the VCN the route table list belongs to.
+ The `OCID`__ of the VCN the route table list belongs to.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The vcn_id of this RouteTable.
@@ -360,7 +362,9 @@ def vcn_id(self):
def vcn_id(self, vcn_id):
"""
Sets the vcn_id of this RouteTable.
- The OCID of the VCN the route table list belongs to.
+ The `OCID`__ of the VCN the route table list belongs to.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param vcn_id: The vcn_id of this RouteTable.
diff --git a/src/oci/core/models/security_rule.py b/src/oci/core/models/security_rule.py
index e7225ee5d4..ae3b513842 100644
--- a/src/oci/core/models/security_rule.py
+++ b/src/oci/core/models/security_rule.py
@@ -198,8 +198,8 @@ def destination(self):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
- `IPv6 Addresses`__.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
setting up a security rule for traffic destined for a particular `Service` through
@@ -227,8 +227,8 @@ def destination(self, destination):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
- `IPv6 Addresses`__.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
setting up a security rule for traffic destined for a particular `Service` through
@@ -484,8 +484,8 @@ def source(self):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
- `IPv6 Addresses`__.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
setting up a security rule for traffic coming from a particular `Service` through
@@ -513,8 +513,8 @@ def source(self, source):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
- `IPv6 Addresses`__.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
setting up a security rule for traffic coming from a particular `Service` through
diff --git a/src/oci/core/models/shape.py b/src/oci/core/models/shape.py
index c04d7f0c0c..95264baba2 100644
--- a/src/oci/core/models/shape.py
+++ b/src/oci/core/models/shape.py
@@ -18,11 +18,33 @@ class Shape(object):
__ https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm
"""
+ #: A constant which can be used with the baseline_ocpu_utilizations property of a Shape.
+ #: This constant has a value of "BASELINE_1_8"
+ BASELINE_OCPU_UTILIZATIONS_BASELINE_1_8 = "BASELINE_1_8"
+
+ #: A constant which can be used with the baseline_ocpu_utilizations property of a Shape.
+ #: This constant has a value of "BASELINE_1_2"
+ BASELINE_OCPU_UTILIZATIONS_BASELINE_1_2 = "BASELINE_1_2"
+
+ #: A constant which can be used with the baseline_ocpu_utilizations property of a Shape.
+ #: This constant has a value of "BASELINE_1_1"
+ BASELINE_OCPU_UTILIZATIONS_BASELINE_1_1 = "BASELINE_1_1"
+
def __init__(self, **kwargs):
"""
Initializes a new Shape object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
+ :param baseline_ocpu_utilizations:
+ The value to assign to the baseline_ocpu_utilizations property of this Shape.
+ Allowed values for items in this list are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type baseline_ocpu_utilizations: list[str]
+
+ :param min_total_baseline_ocpus_required:
+ The value to assign to the min_total_baseline_ocpus_required property of this Shape.
+ :type min_total_baseline_ocpus_required: float
+
:param shape:
The value to assign to the shape property of this Shape.
:type shape: str
@@ -85,6 +107,8 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
+ 'baseline_ocpu_utilizations': 'list[str]',
+ 'min_total_baseline_ocpus_required': 'float',
'shape': 'str',
'processor_description': 'str',
'ocpus': 'float',
@@ -103,6 +127,8 @@ def __init__(self, **kwargs):
}
self.attribute_map = {
+ 'baseline_ocpu_utilizations': 'baselineOcpuUtilizations',
+ 'min_total_baseline_ocpus_required': 'minTotalBaselineOcpusRequired',
'shape': 'shape',
'processor_description': 'processorDescription',
'ocpus': 'ocpus',
@@ -120,6 +146,8 @@ def __init__(self, **kwargs):
'max_vnic_attachment_options': 'maxVnicAttachmentOptions'
}
+ self._baseline_ocpu_utilizations = None
+ self._min_total_baseline_ocpus_required = None
self._shape = None
self._processor_description = None
self._ocpus = None
@@ -136,6 +164,62 @@ def __init__(self, **kwargs):
self._networking_bandwidth_options = None
self._max_vnic_attachment_options = None
+ @property
+ def baseline_ocpu_utilizations(self):
+ """
+ Gets the baseline_ocpu_utilizations of this Shape.
+ For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.
+
+ Allowed values for items in this list are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The baseline_ocpu_utilizations of this Shape.
+ :rtype: list[str]
+ """
+ return self._baseline_ocpu_utilizations
+
+ @baseline_ocpu_utilizations.setter
+ def baseline_ocpu_utilizations(self, baseline_ocpu_utilizations):
+ """
+ Sets the baseline_ocpu_utilizations of this Shape.
+ For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape.
+
+
+ :param baseline_ocpu_utilizations: The baseline_ocpu_utilizations of this Shape.
+ :type: list[str]
+ """
+ allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"]
+ if baseline_ocpu_utilizations:
+ baseline_ocpu_utilizations[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in baseline_ocpu_utilizations]
+ self._baseline_ocpu_utilizations = baseline_ocpu_utilizations
+
+ @property
+ def min_total_baseline_ocpus_required(self):
+ """
+ Gets the min_total_baseline_ocpus_required of this Shape.
+ For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to
+ baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen.
+
+
+ :return: The min_total_baseline_ocpus_required of this Shape.
+ :rtype: float
+ """
+ return self._min_total_baseline_ocpus_required
+
+ @min_total_baseline_ocpus_required.setter
+ def min_total_baseline_ocpus_required(self, min_total_baseline_ocpus_required):
+ """
+ Sets the min_total_baseline_ocpus_required of this Shape.
+ For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to
+ baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen.
+
+
+ :param min_total_baseline_ocpus_required: The min_total_baseline_ocpus_required of this Shape.
+ :type: float
+ """
+ self._min_total_baseline_ocpus_required = min_total_baseline_ocpus_required
+
@property
def shape(self):
"""
diff --git a/src/oci/core/models/subnet.py b/src/oci/core/models/subnet.py
index fb3e07306e..ed1e957a04 100644
--- a/src/oci/core/models/subnet.py
+++ b/src/oci/core/models/subnet.py
@@ -90,10 +90,6 @@ def __init__(self, **kwargs):
The value to assign to the ipv6_cidr_block property of this Subnet.
:type ipv6_cidr_block: str
- :param ipv6_public_cidr_block:
- The value to assign to the ipv6_public_cidr_block property of this Subnet.
- :type ipv6_public_cidr_block: str
-
:param ipv6_virtual_router_ip:
The value to assign to the ipv6_virtual_router_ip property of this Subnet.
:type ipv6_virtual_router_ip: str
@@ -104,6 +100,10 @@ def __init__(self, **kwargs):
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type lifecycle_state: str
+ :param prohibit_internet_ingress:
+ The value to assign to the prohibit_internet_ingress property of this Subnet.
+ :type prohibit_internet_ingress: bool
+
:param prohibit_public_ip_on_vnic:
The value to assign to the prohibit_public_ip_on_vnic property of this Subnet.
:type prohibit_public_ip_on_vnic: bool
@@ -148,9 +148,9 @@ def __init__(self, **kwargs):
'freeform_tags': 'dict(str, str)',
'id': 'str',
'ipv6_cidr_block': 'str',
- 'ipv6_public_cidr_block': 'str',
'ipv6_virtual_router_ip': 'str',
'lifecycle_state': 'str',
+ 'prohibit_internet_ingress': 'bool',
'prohibit_public_ip_on_vnic': 'bool',
'route_table_id': 'str',
'security_list_ids': 'list[str]',
@@ -172,9 +172,9 @@ def __init__(self, **kwargs):
'freeform_tags': 'freeformTags',
'id': 'id',
'ipv6_cidr_block': 'ipv6CidrBlock',
- 'ipv6_public_cidr_block': 'ipv6PublicCidrBlock',
'ipv6_virtual_router_ip': 'ipv6VirtualRouterIp',
'lifecycle_state': 'lifecycleState',
+ 'prohibit_internet_ingress': 'prohibitInternetIngress',
'prohibit_public_ip_on_vnic': 'prohibitPublicIpOnVnic',
'route_table_id': 'routeTableId',
'security_list_ids': 'securityListIds',
@@ -195,9 +195,9 @@ def __init__(self, **kwargs):
self._freeform_tags = None
self._id = None
self._ipv6_cidr_block = None
- self._ipv6_public_cidr_block = None
self._ipv6_virtual_router_ip = None
self._lifecycle_state = None
+ self._prohibit_internet_ingress = None
self._prohibit_public_ip_on_vnic = None
self._route_table_id = None
self._security_list_ids = None
@@ -487,9 +487,8 @@ def id(self, id):
def ipv6_cidr_block(self):
"""
Gets the ipv6_cidr_block of this Subnet.
- For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's private IP address
- space. The subnet size is always /64. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's IP address space.
+ The subnet size is always /64. See `IPv6 Addresses`__.
Example: `2001:0db8:0123:1111::/64`
@@ -505,9 +504,8 @@ def ipv6_cidr_block(self):
def ipv6_cidr_block(self, ipv6_cidr_block):
"""
Sets the ipv6_cidr_block of this Subnet.
- For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's private IP address
- space. The subnet size is always /64. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's IP address space.
+ The subnet size is always /64. See `IPv6 Addresses`__.
Example: `2001:0db8:0123:1111::/64`
@@ -519,40 +517,6 @@ def ipv6_cidr_block(self, ipv6_cidr_block):
"""
self._ipv6_cidr_block = ipv6_cidr_block
- @property
- def ipv6_public_cidr_block(self):
- """
- Gets the ipv6_public_cidr_block of this Subnet.
- For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's public IP address
- space. The subnet size is always /64. The left 48 bits are inherited from the
- `ipv6PublicCidrBlock` of the :class:`Vcn`,
- and the remaining 16 bits are from the subnet's `ipv6CidrBlock`.
-
- Example: `2001:0db8:0123:1111::/64`
-
-
- :return: The ipv6_public_cidr_block of this Subnet.
- :rtype: str
- """
- return self._ipv6_public_cidr_block
-
- @ipv6_public_cidr_block.setter
- def ipv6_public_cidr_block(self, ipv6_public_cidr_block):
- """
- Sets the ipv6_public_cidr_block of this Subnet.
- For an IPv6-enabled subnet, this is the IPv6 CIDR block for the subnet's public IP address
- space. The subnet size is always /64. The left 48 bits are inherited from the
- `ipv6PublicCidrBlock` of the :class:`Vcn`,
- and the remaining 16 bits are from the subnet's `ipv6CidrBlock`.
-
- Example: `2001:0db8:0123:1111::/64`
-
-
- :param ipv6_public_cidr_block: The ipv6_public_cidr_block of this Subnet.
- :type: str
- """
- self._ipv6_public_cidr_block = ipv6_public_cidr_block
-
@property
def ipv6_virtual_router_ip(self):
"""
@@ -611,6 +575,54 @@ def lifecycle_state(self, lifecycle_state):
lifecycle_state = 'UNKNOWN_ENUM_VALUE'
self._lifecycle_state = lifecycle_state
+ @property
+ def prohibit_internet_ingress(self):
+ """
+ Gets the prohibit_internet_ingress of this Subnet.
+ Whether to disallow ingress internet traffic to VNICs within this subnet. Defaults to false.
+
+ For IPV4, `prohibitInternetIngress` behaves similarly to `prohibitPublicIpOnVnic`.
+ If it is set to false, VNICs created in this subnet will automatically be assigned public IP
+ addresses unless specified otherwise during instance launch or VNIC creation (with the `assignPublicIp`
+ flag in :class:`CreateVnicDetails`).
+ If `prohibitInternetIngress` is set to true, VNICs created in this subnet cannot have public IP addresses
+ (that is, it's a privatesubnet).
+
+ For IPv6, if `prohibitInternetIngress` is set to `true`, internet access is not allowed for any
+ IPv6s assigned to VNICs in the subnet. Otherwise, ingress internet traffic is allowed by default.
+
+ Example: `true`
+
+
+ :return: The prohibit_internet_ingress of this Subnet.
+ :rtype: bool
+ """
+ return self._prohibit_internet_ingress
+
+ @prohibit_internet_ingress.setter
+ def prohibit_internet_ingress(self, prohibit_internet_ingress):
+ """
+ Sets the prohibit_internet_ingress of this Subnet.
+ Whether to disallow ingress internet traffic to VNICs within this subnet. Defaults to false.
+
+ For IPV4, `prohibitInternetIngress` behaves similarly to `prohibitPublicIpOnVnic`.
+ If it is set to false, VNICs created in this subnet will automatically be assigned public IP
+ addresses unless specified otherwise during instance launch or VNIC creation (with the `assignPublicIp`
+ flag in :class:`CreateVnicDetails`).
+ If `prohibitInternetIngress` is set to true, VNICs created in this subnet cannot have public IP addresses
+ (that is, it's a privatesubnet).
+
+ For IPv6, if `prohibitInternetIngress` is set to `true`, internet access is not allowed for any
+ IPv6s assigned to VNICs in the subnet. Otherwise, ingress internet traffic is allowed by default.
+
+ Example: `true`
+
+
+ :param prohibit_internet_ingress: The prohibit_internet_ingress of this Subnet.
+ :type: bool
+ """
+ self._prohibit_internet_ingress = prohibit_internet_ingress
+
@property
def prohibit_public_ip_on_vnic(self):
"""
diff --git a/src/oci/core/models/terminate_preemption_action.py b/src/oci/core/models/terminate_preemption_action.py
new file mode 100644
index 0000000000..6d37c24d0c
--- /dev/null
+++ b/src/oci/core/models/terminate_preemption_action.py
@@ -0,0 +1,80 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .preemption_action import PreemptionAction
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TerminatePreemptionAction(PreemptionAction):
+ """
+ Terminates the preemptible instance when it is interrupted for eviction.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TerminatePreemptionAction object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.TerminatePreemptionAction.type` attribute
+ of this class is ``TERMINATE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this TerminatePreemptionAction.
+ Allowed values for this property are: "TERMINATE"
+ :type type: str
+
+ :param preserve_boot_volume:
+ The value to assign to the preserve_boot_volume property of this TerminatePreemptionAction.
+ :type preserve_boot_volume: bool
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'preserve_boot_volume': 'bool'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'preserve_boot_volume': 'preserveBootVolume'
+ }
+
+ self._type = None
+ self._preserve_boot_volume = None
+ self._type = 'TERMINATE'
+
+ @property
+ def preserve_boot_volume(self):
+ """
+ Gets the preserve_boot_volume of this TerminatePreemptionAction.
+ Whether to preserve the boot volume that was used to launch the preemptible instance when the instance is terminated. Defaults to false if not specified.
+
+
+ :return: The preserve_boot_volume of this TerminatePreemptionAction.
+ :rtype: bool
+ """
+ return self._preserve_boot_volume
+
+ @preserve_boot_volume.setter
+ def preserve_boot_volume(self, preserve_boot_volume):
+ """
+ Sets the preserve_boot_volume of this TerminatePreemptionAction.
+ Whether to preserve the boot volume that was used to launch the preemptible instance when the instance is terminated. Defaults to false if not specified.
+
+
+ :param preserve_boot_volume: The preserve_boot_volume of this TerminatePreemptionAction.
+ :type: bool
+ """
+ self._preserve_boot_volume = preserve_boot_volume
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/topology.py b/src/oci/core/models/topology.py
new file mode 100644
index 0000000000..67d2ad3b76
--- /dev/null
+++ b/src/oci/core/models/topology.py
@@ -0,0 +1,205 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class Topology(object):
+ """
+ Defines the representation of a virtual network topology.
+ """
+
+ #: A constant which can be used with the type property of a Topology.
+ #: This constant has a value of "NETWORKING"
+ TYPE_NETWORKING = "NETWORKING"
+
+ #: A constant which can be used with the type property of a Topology.
+ #: This constant has a value of "VCN"
+ TYPE_VCN = "VCN"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Topology object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.core.models.VcnTopology`
+ * :class:`~oci.core.models.NetworkingTopology`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this Topology.
+ Allowed values for this property are: "NETWORKING", "VCN"
+ :type type: str
+
+ :param entities:
+ The value to assign to the entities property of this Topology.
+ :type entities: list[object]
+
+ :param relationships:
+ The value to assign to the relationships property of this Topology.
+ :type relationships: list[oci.core.models.TopologyEntityRelationship]
+
+ :param time_created:
+ The value to assign to the time_created property of this Topology.
+ :type time_created: datetime
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'entities': 'list[object]',
+ 'relationships': 'list[TopologyEntityRelationship]',
+ 'time_created': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'entities': 'entities',
+ 'relationships': 'relationships',
+ 'time_created': 'timeCreated'
+ }
+
+ self._type = None
+ self._entities = None
+ self._relationships = None
+ self._time_created = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'VCN':
+ return 'VcnTopology'
+
+ if type == 'NETWORKING':
+ return 'NetworkingTopology'
+ else:
+ return 'Topology'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this Topology.
+ Type of the topology object.
+
+ Allowed values for this property are: "NETWORKING", "VCN"
+
+
+ :return: The type of this Topology.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this Topology.
+ Type of the topology object.
+
+
+ :param type: The type of this Topology.
+ :type: str
+ """
+ allowed_values = ["NETWORKING", "VCN"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ "Invalid value for `type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._type = type
+
+ @property
+ def entities(self):
+ """
+ **[Required]** Gets the entities of this Topology.
+ Lists entities comprising the virtual network topology.
+
+
+ :return: The entities of this Topology.
+ :rtype: list[object]
+ """
+ return self._entities
+
+ @entities.setter
+ def entities(self, entities):
+ """
+ Sets the entities of this Topology.
+ Lists entities comprising the virtual network topology.
+
+
+ :param entities: The entities of this Topology.
+ :type: list[object]
+ """
+ self._entities = entities
+
+ @property
+ def relationships(self):
+ """
+ **[Required]** Gets the relationships of this Topology.
+ Lists relationships between entities in the virtual network topology.
+
+
+ :return: The relationships of this Topology.
+ :rtype: list[oci.core.models.TopologyEntityRelationship]
+ """
+ return self._relationships
+
+ @relationships.setter
+ def relationships(self, relationships):
+ """
+ Sets the relationships of this Topology.
+ Lists relationships between entities in the virtual network topology.
+
+
+ :param relationships: The relationships of this Topology.
+ :type: list[oci.core.models.TopologyEntityRelationship]
+ """
+ self._relationships = relationships
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this Topology.
+ Records when the virtual network topology was created, in `RFC3339`__ format for date and time.
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :return: The time_created of this Topology.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this Topology.
+ Records when the virtual network topology was created, in `RFC3339`__ format for date and time.
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :param time_created: The time_created of this Topology.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/topology_associated_with_entity_relationship.py b/src/oci/core/models/topology_associated_with_entity_relationship.py
new file mode 100644
index 0000000000..c845ca75e8
--- /dev/null
+++ b/src/oci/core/models/topology_associated_with_entity_relationship.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .topology_entity_relationship import TopologyEntityRelationship
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TopologyAssociatedWithEntityRelationship(TopologyEntityRelationship):
+ """
+ Defines the `associatedWith` relationship between virtual network topology entities. An `AssociatedWith` relationship
+ is defined when there is no obvious `contains` relationship but entities are still related.
+ For example, a DRG is associated with a VCN because a DRG is not managed by VCN but can be
+ attached to a VCN.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TopologyAssociatedWithEntityRelationship object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.TopologyAssociatedWithEntityRelationship.type` attribute
+ of this class is ``ASSOCIATED_WITH`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id1:
+ The value to assign to the id1 property of this TopologyAssociatedWithEntityRelationship.
+ :type id1: str
+
+ :param id2:
+ The value to assign to the id2 property of this TopologyAssociatedWithEntityRelationship.
+ :type id2: str
+
+ :param type:
+ The value to assign to the type property of this TopologyAssociatedWithEntityRelationship.
+ Allowed values for this property are: "CONTAINS", "ASSOCIATED_WITH", "ROUTES_TO"
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'id1': 'str',
+ 'id2': 'str',
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'id1': 'id1',
+ 'id2': 'id2',
+ 'type': 'type'
+ }
+
+ self._id1 = None
+ self._id2 = None
+ self._type = None
+ self._type = 'ASSOCIATED_WITH'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/topology_contains_entity_relationship.py b/src/oci/core/models/topology_contains_entity_relationship.py
new file mode 100644
index 0000000000..4267d79a1e
--- /dev/null
+++ b/src/oci/core/models/topology_contains_entity_relationship.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .topology_entity_relationship import TopologyEntityRelationship
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TopologyContainsEntityRelationship(TopologyEntityRelationship):
+ """
+ Defines the `contains` relationship between virtual network topology entities. A `Contains` relationship
+ is defined when an entity fully owns, contains or manages another entity.
+ For example, a subnet is contained and managed in the scope of a VCN, therefore a VCN has a
+ `contains` relationship to a subnet.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TopologyContainsEntityRelationship object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.TopologyContainsEntityRelationship.type` attribute
+ of this class is ``CONTAINS`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id1:
+ The value to assign to the id1 property of this TopologyContainsEntityRelationship.
+ :type id1: str
+
+ :param id2:
+ The value to assign to the id2 property of this TopologyContainsEntityRelationship.
+ :type id2: str
+
+ :param type:
+ The value to assign to the type property of this TopologyContainsEntityRelationship.
+ Allowed values for this property are: "CONTAINS", "ASSOCIATED_WITH", "ROUTES_TO"
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'id1': 'str',
+ 'id2': 'str',
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'id1': 'id1',
+ 'id2': 'id2',
+ 'type': 'type'
+ }
+
+ self._id1 = None
+ self._id2 = None
+ self._type = None
+ self._type = 'CONTAINS'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/topology_entity_relationship.py b/src/oci/core/models/topology_entity_relationship.py
new file mode 100644
index 0000000000..17739fb075
--- /dev/null
+++ b/src/oci/core/models/topology_entity_relationship.py
@@ -0,0 +1,185 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TopologyEntityRelationship(object):
+ """
+ Defines the relationship between Virtual Network topology entities.
+ """
+
+ #: A constant which can be used with the type property of a TopologyEntityRelationship.
+ #: This constant has a value of "CONTAINS"
+ TYPE_CONTAINS = "CONTAINS"
+
+ #: A constant which can be used with the type property of a TopologyEntityRelationship.
+ #: This constant has a value of "ASSOCIATED_WITH"
+ TYPE_ASSOCIATED_WITH = "ASSOCIATED_WITH"
+
+ #: A constant which can be used with the type property of a TopologyEntityRelationship.
+ #: This constant has a value of "ROUTES_TO"
+ TYPE_ROUTES_TO = "ROUTES_TO"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TopologyEntityRelationship object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.core.models.TopologyRoutesToEntityRelationship`
+ * :class:`~oci.core.models.TopologyAssociatedWithEntityRelationship`
+ * :class:`~oci.core.models.TopologyContainsEntityRelationship`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id1:
+ The value to assign to the id1 property of this TopologyEntityRelationship.
+ :type id1: str
+
+ :param id2:
+ The value to assign to the id2 property of this TopologyEntityRelationship.
+ :type id2: str
+
+ :param type:
+ The value to assign to the type property of this TopologyEntityRelationship.
+ Allowed values for this property are: "CONTAINS", "ASSOCIATED_WITH", "ROUTES_TO", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'id1': 'str',
+ 'id2': 'str',
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'id1': 'id1',
+ 'id2': 'id2',
+ 'type': 'type'
+ }
+
+ self._id1 = None
+ self._id2 = None
+ self._type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['type']
+
+ if type == 'ROUTES_TO':
+ return 'TopologyRoutesToEntityRelationship'
+
+ if type == 'ASSOCIATED_WITH':
+ return 'TopologyAssociatedWithEntityRelationship'
+
+ if type == 'CONTAINS':
+ return 'TopologyContainsEntityRelationship'
+ else:
+ return 'TopologyEntityRelationship'
+
+ @property
+ def id1(self):
+ """
+ **[Required]** Gets the id1 of this TopologyEntityRelationship.
+ The `OCID`__ of the first entity in the relationship.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id1 of this TopologyEntityRelationship.
+ :rtype: str
+ """
+ return self._id1
+
+ @id1.setter
+ def id1(self, id1):
+ """
+ Sets the id1 of this TopologyEntityRelationship.
+ The `OCID`__ of the first entity in the relationship.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id1: The id1 of this TopologyEntityRelationship.
+ :type: str
+ """
+ self._id1 = id1
+
+ @property
+ def id2(self):
+ """
+ **[Required]** Gets the id2 of this TopologyEntityRelationship.
+ The `OCID`__ of the second entity in the relationship.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id2 of this TopologyEntityRelationship.
+ :rtype: str
+ """
+ return self._id2
+
+ @id2.setter
+ def id2(self, id2):
+ """
+ Sets the id2 of this TopologyEntityRelationship.
+ The `OCID`__ of the second entity in the relationship.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id2: The id2 of this TopologyEntityRelationship.
+ :type: str
+ """
+ self._id2 = id2
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this TopologyEntityRelationship.
+ The type of relationship between the entities.
+
+ Allowed values for this property are: "CONTAINS", "ASSOCIATED_WITH", "ROUTES_TO", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this TopologyEntityRelationship.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this TopologyEntityRelationship.
+ The type of relationship between the entities.
+
+
+ :param type: The type of this TopologyEntityRelationship.
+ :type: str
+ """
+ allowed_values = ["CONTAINS", "ASSOCIATED_WITH", "ROUTES_TO"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/topology_routes_to_entity_relationship.py b/src/oci/core/models/topology_routes_to_entity_relationship.py
new file mode 100644
index 0000000000..e1bd3baa35
--- /dev/null
+++ b/src/oci/core/models/topology_routes_to_entity_relationship.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .topology_entity_relationship import TopologyEntityRelationship
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TopologyRoutesToEntityRelationship(TopologyEntityRelationship):
+ """
+ Defines the `routesTo` relationship between virtual network topology entities. A `RoutesTo` relationship
+ is defined when a routing table and a routing rule are used to govern how to route traffic
+ from one entity to another. For example, a DRG might have a routing rule to send certain traffic to an LPG.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TopologyRoutesToEntityRelationship object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.TopologyRoutesToEntityRelationship.type` attribute
+ of this class is ``ROUTES_TO`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id1:
+ The value to assign to the id1 property of this TopologyRoutesToEntityRelationship.
+ :type id1: str
+
+ :param id2:
+ The value to assign to the id2 property of this TopologyRoutesToEntityRelationship.
+ :type id2: str
+
+ :param type:
+ The value to assign to the type property of this TopologyRoutesToEntityRelationship.
+ Allowed values for this property are: "CONTAINS", "ASSOCIATED_WITH", "ROUTES_TO"
+ :type type: str
+
+ :param route_rule_details:
+ The value to assign to the route_rule_details property of this TopologyRoutesToEntityRelationship.
+ :type route_rule_details: oci.core.models.TopologyRoutesToRelationshipDetails
+
+ """
+ self.swagger_types = {
+ 'id1': 'str',
+ 'id2': 'str',
+ 'type': 'str',
+ 'route_rule_details': 'TopologyRoutesToRelationshipDetails'
+ }
+
+ self.attribute_map = {
+ 'id1': 'id1',
+ 'id2': 'id2',
+ 'type': 'type',
+ 'route_rule_details': 'routeRuleDetails'
+ }
+
+ self._id1 = None
+ self._id2 = None
+ self._type = None
+ self._route_rule_details = None
+ self._type = 'ROUTES_TO'
+
+ @property
+ def route_rule_details(self):
+ """
+ **[Required]** Gets the route_rule_details of this TopologyRoutesToEntityRelationship.
+
+ :return: The route_rule_details of this TopologyRoutesToEntityRelationship.
+ :rtype: oci.core.models.TopologyRoutesToRelationshipDetails
+ """
+ return self._route_rule_details
+
+ @route_rule_details.setter
+ def route_rule_details(self, route_rule_details):
+ """
+ Sets the route_rule_details of this TopologyRoutesToEntityRelationship.
+
+ :param route_rule_details: The route_rule_details of this TopologyRoutesToEntityRelationship.
+ :type: oci.core.models.TopologyRoutesToRelationshipDetails
+ """
+ self._route_rule_details = route_rule_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/topology_routes_to_relationship_details.py b/src/oci/core/models/topology_routes_to_relationship_details.py
new file mode 100644
index 0000000000..9a588dee64
--- /dev/null
+++ b/src/oci/core/models/topology_routes_to_relationship_details.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TopologyRoutesToRelationshipDetails(object):
+ """
+ Defines route rule details for a `routesTo` relationship.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TopologyRoutesToRelationshipDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param destination_type:
+ The value to assign to the destination_type property of this TopologyRoutesToRelationshipDetails.
+ :type destination_type: str
+
+ :param destination:
+ The value to assign to the destination property of this TopologyRoutesToRelationshipDetails.
+ :type destination: str
+
+ :param route_table_id:
+ The value to assign to the route_table_id property of this TopologyRoutesToRelationshipDetails.
+ :type route_table_id: str
+
+ """
+ self.swagger_types = {
+ 'destination_type': 'str',
+ 'destination': 'str',
+ 'route_table_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'destination_type': 'destinationType',
+ 'destination': 'destination',
+ 'route_table_id': 'routeTableId'
+ }
+
+ self._destination_type = None
+ self._destination = None
+ self._route_table_id = None
+
+ @property
+ def destination_type(self):
+ """
+ **[Required]** Gets the destination_type of this TopologyRoutesToRelationshipDetails.
+ The destinationType can be set to one of two values:
+
+ * Use `CIDR_BLOCK` if the rule's `destination` is an IP address range in CIDR notation.
+
+ * Use `SERVICE_CIDR_BLOCK` if the rule's `destination` is the `cidrBlock` value for a :class:`Service`.
+
+
+ :return: The destination_type of this TopologyRoutesToRelationshipDetails.
+ :rtype: str
+ """
+ return self._destination_type
+
+ @destination_type.setter
+ def destination_type(self, destination_type):
+ """
+ Sets the destination_type of this TopologyRoutesToRelationshipDetails.
+ The destinationType can be set to one of two values:
+
+ * Use `CIDR_BLOCK` if the rule's `destination` is an IP address range in CIDR notation.
+
+ * Use `SERVICE_CIDR_BLOCK` if the rule's `destination` is the `cidrBlock` value for a :class:`Service`.
+
+
+ :param destination_type: The destination_type of this TopologyRoutesToRelationshipDetails.
+ :type: str
+ """
+ self._destination_type = destination_type
+
+ @property
+ def destination(self):
+ """
+ **[Required]** Gets the destination of this TopologyRoutesToRelationshipDetails.
+ An IP address range in CIDR notation or the `cidrBlock` value for a :class:`Service`.
+
+
+ :return: The destination of this TopologyRoutesToRelationshipDetails.
+ :rtype: str
+ """
+ return self._destination
+
+ @destination.setter
+ def destination(self, destination):
+ """
+ Sets the destination of this TopologyRoutesToRelationshipDetails.
+ An IP address range in CIDR notation or the `cidrBlock` value for a :class:`Service`.
+
+
+ :param destination: The destination of this TopologyRoutesToRelationshipDetails.
+ :type: str
+ """
+ self._destination = destination
+
+ @property
+ def route_table_id(self):
+ """
+ **[Required]** Gets the route_table_id of this TopologyRoutesToRelationshipDetails.
+ The `OCID`__ of the routing table that contains the route rule.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The route_table_id of this TopologyRoutesToRelationshipDetails.
+ :rtype: str
+ """
+ return self._route_table_id
+
+ @route_table_id.setter
+ def route_table_id(self, route_table_id):
+ """
+ Sets the route_table_id of this TopologyRoutesToRelationshipDetails.
+ The `OCID`__ of the routing table that contains the route rule.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param route_table_id: The route_table_id of this TopologyRoutesToRelationshipDetails.
+ :type: str
+ """
+ self._route_table_id = route_table_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/update_drg_attachment_details.py b/src/oci/core/models/update_drg_attachment_details.py
index 0c1b641c41..01c98c5303 100644
--- a/src/oci/core/models/update_drg_attachment_details.py
+++ b/src/oci/core/models/update_drg_attachment_details.py
@@ -22,6 +22,26 @@ def __init__(self, **kwargs):
The value to assign to the display_name property of this UpdateDrgAttachmentDetails.
:type display_name: str
+ :param drg_route_table_id:
+ The value to assign to the drg_route_table_id property of this UpdateDrgAttachmentDetails.
+ :type drg_route_table_id: str
+
+ :param network_details:
+ The value to assign to the network_details property of this UpdateDrgAttachmentDetails.
+ :type network_details: oci.core.models.DrgAttachmentNetworkUpdateDetails
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateDrgAttachmentDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateDrgAttachmentDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param export_drg_route_distribution_id:
+ The value to assign to the export_drg_route_distribution_id property of this UpdateDrgAttachmentDetails.
+ :type export_drg_route_distribution_id: str
+
:param route_table_id:
The value to assign to the route_table_id property of this UpdateDrgAttachmentDetails.
:type route_table_id: str
@@ -29,15 +49,30 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'display_name': 'str',
+ 'drg_route_table_id': 'str',
+ 'network_details': 'DrgAttachmentNetworkUpdateDetails',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'freeform_tags': 'dict(str, str)',
+ 'export_drg_route_distribution_id': 'str',
'route_table_id': 'str'
}
self.attribute_map = {
'display_name': 'displayName',
+ 'drg_route_table_id': 'drgRouteTableId',
+ 'network_details': 'networkDetails',
+ 'defined_tags': 'definedTags',
+ 'freeform_tags': 'freeformTags',
+ 'export_drg_route_distribution_id': 'exportDrgRouteDistributionId',
'route_table_id': 'routeTableId'
}
self._display_name = None
+ self._drg_route_table_id = None
+ self._network_details = None
+ self._defined_tags = None
+ self._freeform_tags = None
+ self._export_drg_route_distribution_id = None
self._route_table_id = None
@property
@@ -66,17 +101,176 @@ def display_name(self, display_name):
"""
self._display_name = display_name
+ @property
+ def drg_route_table_id(self):
+ """
+ Gets the drg_route_table_id of this UpdateDrgAttachmentDetails.
+ The `OCID`__ of the DRG route table that is assigned to this attachment.
+
+ The DRG route table manages traffic inside the DRG.
+
+ You can't remove a DRG route table from a DRG attachment, but you can reassign which
+ DRG route table it uses.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The drg_route_table_id of this UpdateDrgAttachmentDetails.
+ :rtype: str
+ """
+ return self._drg_route_table_id
+
+ @drg_route_table_id.setter
+ def drg_route_table_id(self, drg_route_table_id):
+ """
+ Sets the drg_route_table_id of this UpdateDrgAttachmentDetails.
+ The `OCID`__ of the DRG route table that is assigned to this attachment.
+
+ The DRG route table manages traffic inside the DRG.
+
+ You can't remove a DRG route table from a DRG attachment, but you can reassign which
+ DRG route table it uses.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param drg_route_table_id: The drg_route_table_id of this UpdateDrgAttachmentDetails.
+ :type: str
+ """
+ self._drg_route_table_id = drg_route_table_id
+
+ @property
+ def network_details(self):
+ """
+ Gets the network_details of this UpdateDrgAttachmentDetails.
+
+ :return: The network_details of this UpdateDrgAttachmentDetails.
+ :rtype: oci.core.models.DrgAttachmentNetworkUpdateDetails
+ """
+ return self._network_details
+
+ @network_details.setter
+ def network_details(self, network_details):
+ """
+ Sets the network_details of this UpdateDrgAttachmentDetails.
+
+ :param network_details: The network_details of this UpdateDrgAttachmentDetails.
+ :type: oci.core.models.DrgAttachmentNetworkUpdateDetails
+ """
+ self._network_details = network_details
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateDrgAttachmentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this UpdateDrgAttachmentDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateDrgAttachmentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this UpdateDrgAttachmentDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateDrgAttachmentDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this UpdateDrgAttachmentDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateDrgAttachmentDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this UpdateDrgAttachmentDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def export_drg_route_distribution_id(self):
+ """
+ Gets the export_drg_route_distribution_id of this UpdateDrgAttachmentDetails.
+ The `OCID`__ of the export route distribution used to specify how routes in the assigned DRG route table
+ are advertised out through the attachment.
+ If this value is null, no routes are advertised through this attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The export_drg_route_distribution_id of this UpdateDrgAttachmentDetails.
+ :rtype: str
+ """
+ return self._export_drg_route_distribution_id
+
+ @export_drg_route_distribution_id.setter
+ def export_drg_route_distribution_id(self, export_drg_route_distribution_id):
+ """
+ Sets the export_drg_route_distribution_id of this UpdateDrgAttachmentDetails.
+ The `OCID`__ of the export route distribution used to specify how routes in the assigned DRG route table
+ are advertised out through the attachment.
+ If this value is null, no routes are advertised through this attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param export_drg_route_distribution_id: The export_drg_route_distribution_id of this UpdateDrgAttachmentDetails.
+ :type: str
+ """
+ self._export_drg_route_distribution_id = export_drg_route_distribution_id
+
@property
def route_table_id(self):
"""
Gets the route_table_id of this UpdateDrgAttachmentDetails.
- The OCID of the route table the DRG attachment will use.
+ This is the `OCID`__ of the route table that is used to route the traffic as it enters a VCN through this attachment.
For information about why you would associate a route table with a DRG attachment, see:
* `Transit Routing: Access to Multiple VCNs in Same Region`__
* `Transit Routing: Private Access to Oracle Services`__
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
@@ -90,13 +284,14 @@ def route_table_id(self):
def route_table_id(self, route_table_id):
"""
Sets the route_table_id of this UpdateDrgAttachmentDetails.
- The OCID of the route table the DRG attachment will use.
+ This is the `OCID`__ of the route table that is used to route the traffic as it enters a VCN through this attachment.
For information about why you would associate a route table with a DRG attachment, see:
* `Transit Routing: Access to Multiple VCNs in Same Region`__
* `Transit Routing: Private Access to Oracle Services`__
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
diff --git a/src/oci/core/models/update_drg_details.py b/src/oci/core/models/update_drg_details.py
index f98ced9fc6..ad81f32200 100644
--- a/src/oci/core/models/update_drg_details.py
+++ b/src/oci/core/models/update_drg_details.py
@@ -22,6 +22,10 @@ def __init__(self, **kwargs):
The value to assign to the defined_tags property of this UpdateDrgDetails.
:type defined_tags: dict(str, dict(str, object))
+ :param default_drg_route_tables:
+ The value to assign to the default_drg_route_tables property of this UpdateDrgDetails.
+ :type default_drg_route_tables: oci.core.models.DefaultDrgRouteTables
+
:param display_name:
The value to assign to the display_name property of this UpdateDrgDetails.
:type display_name: str
@@ -33,17 +37,20 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'defined_tags': 'dict(str, dict(str, object))',
+ 'default_drg_route_tables': 'DefaultDrgRouteTables',
'display_name': 'str',
'freeform_tags': 'dict(str, str)'
}
self.attribute_map = {
'defined_tags': 'definedTags',
+ 'default_drg_route_tables': 'defaultDrgRouteTables',
'display_name': 'displayName',
'freeform_tags': 'freeformTags'
}
self._defined_tags = None
+ self._default_drg_route_tables = None
self._display_name = None
self._freeform_tags = None
@@ -81,6 +88,26 @@ def defined_tags(self, defined_tags):
"""
self._defined_tags = defined_tags
+ @property
+ def default_drg_route_tables(self):
+ """
+ Gets the default_drg_route_tables of this UpdateDrgDetails.
+
+ :return: The default_drg_route_tables of this UpdateDrgDetails.
+ :rtype: oci.core.models.DefaultDrgRouteTables
+ """
+ return self._default_drg_route_tables
+
+ @default_drg_route_tables.setter
+ def default_drg_route_tables(self, default_drg_route_tables):
+ """
+ Sets the default_drg_route_tables of this UpdateDrgDetails.
+
+ :param default_drg_route_tables: The default_drg_route_tables of this UpdateDrgDetails.
+ :type: oci.core.models.DefaultDrgRouteTables
+ """
+ self._default_drg_route_tables = default_drg_route_tables
+
@property
def display_name(self):
"""
diff --git a/src/oci/core/models/update_drg_route_distribution_details.py b/src/oci/core/models/update_drg_route_distribution_details.py
new file mode 100644
index 0000000000..d2cb13eeda
--- /dev/null
+++ b/src/oci/core/models/update_drg_route_distribution_details.py
@@ -0,0 +1,158 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDrgRouteDistributionDetails(object):
+ """
+ Details used in a request to update a route distribution.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDrgRouteDistributionDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateDrgRouteDistributionDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateDrgRouteDistributionDetails.
+ :type display_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateDrgRouteDistributionDetails.
+ :type freeform_tags: dict(str, str)
+
+ """
+ self.swagger_types = {
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'display_name': 'str',
+ 'freeform_tags': 'dict(str, str)'
+ }
+
+ self.attribute_map = {
+ 'defined_tags': 'definedTags',
+ 'display_name': 'displayName',
+ 'freeform_tags': 'freeformTags'
+ }
+
+ self._defined_tags = None
+ self._display_name = None
+ self._freeform_tags = None
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateDrgRouteDistributionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this UpdateDrgRouteDistributionDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateDrgRouteDistributionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this UpdateDrgRouteDistributionDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateDrgRouteDistributionDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+ You cannot assign a table to a virtual circuit or IPSec connection attachment if there is a static route rule for an RPC attachment.
+
+
+ :return: The display_name of this UpdateDrgRouteDistributionDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateDrgRouteDistributionDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+ You cannot assign a table to a virtual circuit or IPSec connection attachment if there is a static route rule for an RPC attachment.
+
+
+ :param display_name: The display_name of this UpdateDrgRouteDistributionDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateDrgRouteDistributionDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this UpdateDrgRouteDistributionDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateDrgRouteDistributionDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this UpdateDrgRouteDistributionDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/update_drg_route_distribution_statement_details.py b/src/oci/core/models/update_drg_route_distribution_statement_details.py
new file mode 100644
index 0000000000..cb0dc6df7b
--- /dev/null
+++ b/src/oci/core/models/update_drg_route_distribution_statement_details.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDrgRouteDistributionStatementDetails(object):
+ """
+ Route distribution statements to update in the route distribution.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDrgRouteDistributionStatementDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this UpdateDrgRouteDistributionStatementDetails.
+ :type id: str
+
+ :param match_criteria:
+ The value to assign to the match_criteria property of this UpdateDrgRouteDistributionStatementDetails.
+ :type match_criteria: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+
+ :param priority:
+ The value to assign to the priority property of this UpdateDrgRouteDistributionStatementDetails.
+ :type priority: int
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'match_criteria': 'list[DrgRouteDistributionMatchCriteria]',
+ 'priority': 'int'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'match_criteria': 'matchCriteria',
+ 'priority': 'priority'
+ }
+
+ self._id = None
+ self._match_criteria = None
+ self._priority = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this UpdateDrgRouteDistributionStatementDetails.
+ The Oracle-assigned ID of each route distribution statement to be updated.
+
+
+ :return: The id of this UpdateDrgRouteDistributionStatementDetails.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this UpdateDrgRouteDistributionStatementDetails.
+ The Oracle-assigned ID of each route distribution statement to be updated.
+
+
+ :param id: The id of this UpdateDrgRouteDistributionStatementDetails.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def match_criteria(self):
+ """
+ Gets the match_criteria of this UpdateDrgRouteDistributionStatementDetails.
+ The action is applied only if all of the match criteria is met.
+ If there are no match criteria in a statement, match ALL is implied.
+
+
+ :return: The match_criteria of this UpdateDrgRouteDistributionStatementDetails.
+ :rtype: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+ """
+ return self._match_criteria
+
+ @match_criteria.setter
+ def match_criteria(self, match_criteria):
+ """
+ Sets the match_criteria of this UpdateDrgRouteDistributionStatementDetails.
+ The action is applied only if all of the match criteria is met.
+ If there are no match criteria in a statement, match ALL is implied.
+
+
+ :param match_criteria: The match_criteria of this UpdateDrgRouteDistributionStatementDetails.
+ :type: list[oci.core.models.DrgRouteDistributionMatchCriteria]
+ """
+ self._match_criteria = match_criteria
+
+ @property
+ def priority(self):
+ """
+ Gets the priority of this UpdateDrgRouteDistributionStatementDetails.
+ The priority of the statement you'd like to update.
+
+
+ :return: The priority of this UpdateDrgRouteDistributionStatementDetails.
+ :rtype: int
+ """
+ return self._priority
+
+ @priority.setter
+ def priority(self, priority):
+ """
+ Sets the priority of this UpdateDrgRouteDistributionStatementDetails.
+ The priority of the statement you'd like to update.
+
+
+ :param priority: The priority of this UpdateDrgRouteDistributionStatementDetails.
+ :type: int
+ """
+ self._priority = priority
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/update_drg_route_distribution_statements_details.py b/src/oci/core/models/update_drg_route_distribution_statements_details.py
new file mode 100644
index 0000000000..48db451346
--- /dev/null
+++ b/src/oci/core/models/update_drg_route_distribution_statements_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDrgRouteDistributionStatementsDetails(object):
+ """
+ Details request to update statements in a route distribution.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDrgRouteDistributionStatementsDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param statements:
+ The value to assign to the statements property of this UpdateDrgRouteDistributionStatementsDetails.
+ :type statements: list[oci.core.models.UpdateDrgRouteDistributionStatementDetails]
+
+ """
+ self.swagger_types = {
+ 'statements': 'list[UpdateDrgRouteDistributionStatementDetails]'
+ }
+
+ self.attribute_map = {
+ 'statements': 'statements'
+ }
+
+ self._statements = None
+
+ @property
+ def statements(self):
+ """
+ **[Required]** Gets the statements of this UpdateDrgRouteDistributionStatementsDetails.
+ The route distribution statements to update, and the details to be updated.
+
+
+ :return: The statements of this UpdateDrgRouteDistributionStatementsDetails.
+ :rtype: list[oci.core.models.UpdateDrgRouteDistributionStatementDetails]
+ """
+ return self._statements
+
+ @statements.setter
+ def statements(self, statements):
+ """
+ Sets the statements of this UpdateDrgRouteDistributionStatementsDetails.
+ The route distribution statements to update, and the details to be updated.
+
+
+ :param statements: The statements of this UpdateDrgRouteDistributionStatementsDetails.
+ :type: list[oci.core.models.UpdateDrgRouteDistributionStatementDetails]
+ """
+ self._statements = statements
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/update_drg_route_rule_details.py b/src/oci/core/models/update_drg_route_rule_details.py
new file mode 100644
index 0000000000..57e74a465a
--- /dev/null
+++ b/src/oci/core/models/update_drg_route_rule_details.py
@@ -0,0 +1,194 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDrgRouteRuleDetails(object):
+ """
+ Details used to update a route rule in the DRG route table.
+ """
+
+ #: A constant which can be used with the destination_type property of a UpdateDrgRouteRuleDetails.
+ #: This constant has a value of "CIDR_BLOCK"
+ DESTINATION_TYPE_CIDR_BLOCK = "CIDR_BLOCK"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDrgRouteRuleDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this UpdateDrgRouteRuleDetails.
+ :type id: str
+
+ :param destination:
+ The value to assign to the destination property of this UpdateDrgRouteRuleDetails.
+ :type destination: str
+
+ :param destination_type:
+ The value to assign to the destination_type property of this UpdateDrgRouteRuleDetails.
+ Allowed values for this property are: "CIDR_BLOCK"
+ :type destination_type: str
+
+ :param next_hop_drg_attachment_id:
+ The value to assign to the next_hop_drg_attachment_id property of this UpdateDrgRouteRuleDetails.
+ :type next_hop_drg_attachment_id: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'destination': 'str',
+ 'destination_type': 'str',
+ 'next_hop_drg_attachment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'destination': 'destination',
+ 'destination_type': 'destinationType',
+ 'next_hop_drg_attachment_id': 'nextHopDrgAttachmentId'
+ }
+
+ self._id = None
+ self._destination = None
+ self._destination_type = None
+ self._next_hop_drg_attachment_id = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this UpdateDrgRouteRuleDetails.
+ The Oracle-assigned ID of each DRG route rule to update.
+
+
+ :return: The id of this UpdateDrgRouteRuleDetails.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this UpdateDrgRouteRuleDetails.
+ The Oracle-assigned ID of each DRG route rule to update.
+
+
+ :param id: The id of this UpdateDrgRouteRuleDetails.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def destination(self):
+ """
+ Gets the destination of this UpdateDrgRouteRuleDetails.
+ The range of IP addresses used for matching when routing traffic.
+
+ Potential values:
+ * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
+ or `2001:0db8:0123:45::/56`.
+
+
+ :return: The destination of this UpdateDrgRouteRuleDetails.
+ :rtype: str
+ """
+ return self._destination
+
+ @destination.setter
+ def destination(self, destination):
+ """
+ Sets the destination of this UpdateDrgRouteRuleDetails.
+ The range of IP addresses used for matching when routing traffic.
+
+ Potential values:
+ * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24`
+ or `2001:0db8:0123:45::/56`.
+
+
+ :param destination: The destination of this UpdateDrgRouteRuleDetails.
+ :type: str
+ """
+ self._destination = destination
+
+ @property
+ def destination_type(self):
+ """
+ Gets the destination_type of this UpdateDrgRouteRuleDetails.
+ Type of destination for the rule. Required if `direction` = `EGRESS`.
+ Allowed values:
+ * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation.
+
+ Allowed values for this property are: "CIDR_BLOCK"
+
+
+ :return: The destination_type of this UpdateDrgRouteRuleDetails.
+ :rtype: str
+ """
+ return self._destination_type
+
+ @destination_type.setter
+ def destination_type(self, destination_type):
+ """
+ Sets the destination_type of this UpdateDrgRouteRuleDetails.
+ Type of destination for the rule. Required if `direction` = `EGRESS`.
+ Allowed values:
+ * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation.
+
+
+ :param destination_type: The destination_type of this UpdateDrgRouteRuleDetails.
+ :type: str
+ """
+ allowed_values = ["CIDR_BLOCK"]
+ if not value_allowed_none_or_none_sentinel(destination_type, allowed_values):
+ raise ValueError(
+ "Invalid value for `destination_type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._destination_type = destination_type
+
+ @property
+ def next_hop_drg_attachment_id(self):
+ """
+ Gets the next_hop_drg_attachment_id of this UpdateDrgRouteRuleDetails.
+ The `OCID`__ of the next hop DRG attachment. The next hop DRG attachment is responsible
+ for reaching the network destination.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The next_hop_drg_attachment_id of this UpdateDrgRouteRuleDetails.
+ :rtype: str
+ """
+ return self._next_hop_drg_attachment_id
+
+ @next_hop_drg_attachment_id.setter
+ def next_hop_drg_attachment_id(self, next_hop_drg_attachment_id):
+ """
+ Sets the next_hop_drg_attachment_id of this UpdateDrgRouteRuleDetails.
+ The `OCID`__ of the next hop DRG attachment. The next hop DRG attachment is responsible
+ for reaching the network destination.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param next_hop_drg_attachment_id: The next_hop_drg_attachment_id of this UpdateDrgRouteRuleDetails.
+ :type: str
+ """
+ self._next_hop_drg_attachment_id = next_hop_drg_attachment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/update_drg_route_rules_details.py b/src/oci/core/models/update_drg_route_rules_details.py
new file mode 100644
index 0000000000..3e2c23b2ff
--- /dev/null
+++ b/src/oci/core/models/update_drg_route_rules_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDrgRouteRulesDetails(object):
+ """
+ Details used to update route rules in a DRG route table.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDrgRouteRulesDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param route_rules:
+ The value to assign to the route_rules property of this UpdateDrgRouteRulesDetails.
+ :type route_rules: list[oci.core.models.UpdateDrgRouteRuleDetails]
+
+ """
+ self.swagger_types = {
+ 'route_rules': 'list[UpdateDrgRouteRuleDetails]'
+ }
+
+ self.attribute_map = {
+ 'route_rules': 'routeRules'
+ }
+
+ self._route_rules = None
+
+ @property
+ def route_rules(self):
+ """
+ Gets the route_rules of this UpdateDrgRouteRulesDetails.
+ The DRG rute rules to update.
+
+
+ :return: The route_rules of this UpdateDrgRouteRulesDetails.
+ :rtype: list[oci.core.models.UpdateDrgRouteRuleDetails]
+ """
+ return self._route_rules
+
+ @route_rules.setter
+ def route_rules(self, route_rules):
+ """
+ Sets the route_rules of this UpdateDrgRouteRulesDetails.
+ The DRG rute rules to update.
+
+
+ :param route_rules: The route_rules of this UpdateDrgRouteRulesDetails.
+ :type: list[oci.core.models.UpdateDrgRouteRuleDetails]
+ """
+ self._route_rules = route_rules
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/update_drg_route_table_details.py b/src/oci/core/models/update_drg_route_table_details.py
new file mode 100644
index 0000000000..6b4475468b
--- /dev/null
+++ b/src/oci/core/models/update_drg_route_table_details.py
@@ -0,0 +1,228 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDrgRouteTableDetails(object):
+ """
+ Details used in a request to update a DRG route table.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDrgRouteTableDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateDrgRouteTableDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateDrgRouteTableDetails.
+ :type display_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateDrgRouteTableDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param import_drg_route_distribution_id:
+ The value to assign to the import_drg_route_distribution_id property of this UpdateDrgRouteTableDetails.
+ :type import_drg_route_distribution_id: str
+
+ :param is_ecmp_enabled:
+ The value to assign to the is_ecmp_enabled property of this UpdateDrgRouteTableDetails.
+ :type is_ecmp_enabled: bool
+
+ """
+ self.swagger_types = {
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'display_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'import_drg_route_distribution_id': 'str',
+ 'is_ecmp_enabled': 'bool'
+ }
+
+ self.attribute_map = {
+ 'defined_tags': 'definedTags',
+ 'display_name': 'displayName',
+ 'freeform_tags': 'freeformTags',
+ 'import_drg_route_distribution_id': 'importDrgRouteDistributionId',
+ 'is_ecmp_enabled': 'isEcmpEnabled'
+ }
+
+ self._defined_tags = None
+ self._display_name = None
+ self._freeform_tags = None
+ self._import_drg_route_distribution_id = None
+ self._is_ecmp_enabled = None
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateDrgRouteTableDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The defined_tags of this UpdateDrgRouteTableDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateDrgRouteTableDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a
+ namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param defined_tags: The defined_tags of this UpdateDrgRouteTableDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateDrgRouteTableDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+ You can't assign a table to a virtual circuit or IPSec connection attachment if there is a static route rule for an RPC attachment.
+
+
+ :return: The display_name of this UpdateDrgRouteTableDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateDrgRouteTableDetails.
+ A user-friendly name. Does not have to be unique, and it's changeable.
+ Avoid entering confidential information.
+
+ You can't assign a table to a virtual circuit or IPSec connection attachment if there is a static route rule for an RPC attachment.
+
+
+ :param display_name: The display_name of this UpdateDrgRouteTableDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateDrgRouteTableDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :return: The freeform_tags of this UpdateDrgRouteTableDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateDrgRouteTableDetails.
+ Free-form tags for this resource. Each tag is a simple key-value pair with no
+ predefined name, type, or namespace. For more information, see `Resource Tags`__.
+
+ Example: `{\"Department\": \"Finance\"}`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm
+
+
+ :param freeform_tags: The freeform_tags of this UpdateDrgRouteTableDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def import_drg_route_distribution_id(self):
+ """
+ Gets the import_drg_route_distribution_id of this UpdateDrgRouteTableDetails.
+ The `OCID`__ of the import route distribution used to specify how incoming route advertisements through
+ referenced attachements are inserted into the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The import_drg_route_distribution_id of this UpdateDrgRouteTableDetails.
+ :rtype: str
+ """
+ return self._import_drg_route_distribution_id
+
+ @import_drg_route_distribution_id.setter
+ def import_drg_route_distribution_id(self, import_drg_route_distribution_id):
+ """
+ Sets the import_drg_route_distribution_id of this UpdateDrgRouteTableDetails.
+ The `OCID`__ of the import route distribution used to specify how incoming route advertisements through
+ referenced attachements are inserted into the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param import_drg_route_distribution_id: The import_drg_route_distribution_id of this UpdateDrgRouteTableDetails.
+ :type: str
+ """
+ self._import_drg_route_distribution_id = import_drg_route_distribution_id
+
+ @property
+ def is_ecmp_enabled(self):
+ """
+ Gets the is_ecmp_enabled of this UpdateDrgRouteTableDetails.
+ If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to
+ your on-prem networks, set this value to true on the route table.
+
+
+ :return: The is_ecmp_enabled of this UpdateDrgRouteTableDetails.
+ :rtype: bool
+ """
+ return self._is_ecmp_enabled
+
+ @is_ecmp_enabled.setter
+ def is_ecmp_enabled(self, is_ecmp_enabled):
+ """
+ Sets the is_ecmp_enabled of this UpdateDrgRouteTableDetails.
+ If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to
+ your on-prem networks, set this value to true on the route table.
+
+
+ :param is_ecmp_enabled: The is_ecmp_enabled of this UpdateDrgRouteTableDetails.
+ :type: bool
+ """
+ self._is_ecmp_enabled = is_ecmp_enabled
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/update_instance_shape_config_details.py b/src/oci/core/models/update_instance_shape_config_details.py
index 4f97edef1d..afbb0f51a2 100644
--- a/src/oci/core/models/update_instance_shape_config_details.py
+++ b/src/oci/core/models/update_instance_shape_config_details.py
@@ -20,6 +20,18 @@ class UpdateInstanceShapeConfigDetails(object):
existing shape, an error will be returned.
"""
+ #: A constant which can be used with the baseline_ocpu_utilization property of a UpdateInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_8"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_8 = "BASELINE_1_8"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a UpdateInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_2"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_2 = "BASELINE_1_2"
+
+ #: A constant which can be used with the baseline_ocpu_utilization property of a UpdateInstanceShapeConfigDetails.
+ #: This constant has a value of "BASELINE_1_1"
+ BASELINE_OCPU_UTILIZATION_BASELINE_1_1 = "BASELINE_1_1"
+
def __init__(self, **kwargs):
"""
Initializes a new UpdateInstanceShapeConfigDetails object with values from keyword arguments.
@@ -33,19 +45,27 @@ def __init__(self, **kwargs):
The value to assign to the memory_in_gbs property of this UpdateInstanceShapeConfigDetails.
:type memory_in_gbs: float
+ :param baseline_ocpu_utilization:
+ The value to assign to the baseline_ocpu_utilization property of this UpdateInstanceShapeConfigDetails.
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"
+ :type baseline_ocpu_utilization: str
+
"""
self.swagger_types = {
'ocpus': 'float',
- 'memory_in_gbs': 'float'
+ 'memory_in_gbs': 'float',
+ 'baseline_ocpu_utilization': 'str'
}
self.attribute_map = {
'ocpus': 'ocpus',
- 'memory_in_gbs': 'memoryInGBs'
+ 'memory_in_gbs': 'memoryInGBs',
+ 'baseline_ocpu_utilization': 'baselineOcpuUtilization'
}
self._ocpus = None
self._memory_in_gbs = None
+ self._baseline_ocpu_utilization = None
@property
def ocpus(self):
@@ -95,6 +115,50 @@ def memory_in_gbs(self, memory_in_gbs):
"""
self._memory_in_gbs = memory_in_gbs
+ @property
+ def baseline_ocpu_utilization(self):
+ """
+ Gets the baseline_ocpu_utilization of this UpdateInstanceShapeConfigDetails.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
+
+ Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"
+
+
+ :return: The baseline_ocpu_utilization of this UpdateInstanceShapeConfigDetails.
+ :rtype: str
+ """
+ return self._baseline_ocpu_utilization
+
+ @baseline_ocpu_utilization.setter
+ def baseline_ocpu_utilization(self, baseline_ocpu_utilization):
+ """
+ Sets the baseline_ocpu_utilization of this UpdateInstanceShapeConfigDetails.
+ The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
+ non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
+
+ The following values are supported:
+ - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
+ - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
+ - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
+
+
+ :param baseline_ocpu_utilization: The baseline_ocpu_utilization of this UpdateInstanceShapeConfigDetails.
+ :type: str
+ """
+ allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"]
+ if not value_allowed_none_or_none_sentinel(baseline_ocpu_utilization, allowed_values):
+ raise ValueError(
+ "Invalid value for `baseline_ocpu_utilization`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._baseline_ocpu_utilization = baseline_ocpu_utilization
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/update_ip_sec_connection_details.py b/src/oci/core/models/update_ip_sec_connection_details.py
index f38180d7fe..bba84e1cab 100644
--- a/src/oci/core/models/update_ip_sec_connection_details.py
+++ b/src/oci/core/models/update_ip_sec_connection_details.py
@@ -257,8 +257,9 @@ def static_routes(self):
Gets the static_routes of this UpdateIPSecConnectionDetails.
Static routes to the CPE. If you provide this attribute, it replaces the entire current set of
static routes. A static route's CIDR must not be a multicast address or class E address.
- The CIDR can be either IPv4 or IPv6. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ The CIDR can be either IPv4 or IPv6.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
Example: `10.0.1.0/24`
@@ -278,8 +279,9 @@ def static_routes(self, static_routes):
Sets the static_routes of this UpdateIPSecConnectionDetails.
Static routes to the CPE. If you provide this attribute, it replaces the entire current set of
static routes. A static route's CIDR must not be a multicast address or class E address.
- The CIDR can be either IPv4 or IPv6. Note that IPv6 addressing is currently supported only
- in certain regions. See `IPv6 Addresses`__.
+ The CIDR can be either IPv4 or IPv6.
+ IPv6 addressing is supported for all commercial and government regions.
+ See `IPv6 Addresses`__.
Example: `10.0.1.0/24`
diff --git a/src/oci/core/models/update_ip_sec_tunnel_bgp_session_details.py b/src/oci/core/models/update_ip_sec_tunnel_bgp_session_details.py
index 9336d83846..ca6d7a7b8c 100644
--- a/src/oci/core/models/update_ip_sec_tunnel_bgp_session_details.py
+++ b/src/oci/core/models/update_ip_sec_tunnel_bgp_session_details.py
@@ -26,6 +26,14 @@ def __init__(self, **kwargs):
The value to assign to the customer_interface_ip property of this UpdateIPSecTunnelBgpSessionDetails.
:type customer_interface_ip: str
+ :param oracle_interface_ipv6:
+ The value to assign to the oracle_interface_ipv6 property of this UpdateIPSecTunnelBgpSessionDetails.
+ :type oracle_interface_ipv6: str
+
+ :param customer_interface_ipv6:
+ The value to assign to the customer_interface_ipv6 property of this UpdateIPSecTunnelBgpSessionDetails.
+ :type customer_interface_ipv6: str
+
:param customer_bgp_asn:
The value to assign to the customer_bgp_asn property of this UpdateIPSecTunnelBgpSessionDetails.
:type customer_bgp_asn: str
@@ -34,17 +42,23 @@ def __init__(self, **kwargs):
self.swagger_types = {
'oracle_interface_ip': 'str',
'customer_interface_ip': 'str',
+ 'oracle_interface_ipv6': 'str',
+ 'customer_interface_ipv6': 'str',
'customer_bgp_asn': 'str'
}
self.attribute_map = {
'oracle_interface_ip': 'oracleInterfaceIp',
'customer_interface_ip': 'customerInterfaceIp',
+ 'oracle_interface_ipv6': 'oracleInterfaceIpv6',
+ 'customer_interface_ipv6': 'customerInterfaceIpv6',
'customer_bgp_asn': 'customerBgpAsn'
}
self._oracle_interface_ip = None
self._customer_interface_ip = None
+ self._oracle_interface_ipv6 = None
+ self._customer_interface_ipv6 = None
self._customer_bgp_asn = None
@property
@@ -151,6 +165,98 @@ def customer_interface_ip(self, customer_interface_ip):
"""
self._customer_interface_ip = customer_interface_ip
+ @property
+ def oracle_interface_ipv6(self):
+ """
+ Gets the oracle_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :return: The oracle_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ :rtype: str
+ """
+ return self._oracle_interface_ipv6
+
+ @oracle_interface_ipv6.setter
+ def oracle_interface_ipv6(self, oracle_interface_ipv6):
+ """
+ Sets the oracle_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :param oracle_interface_ipv6: The oracle_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ :type: str
+ """
+ self._oracle_interface_ipv6 = oracle_interface_ipv6
+
+ @property
+ def customer_interface_ipv6(self):
+ """
+ Gets the customer_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :return: The customer_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ :rtype: str
+ """
+ return self._customer_interface_ipv6
+
+ @customer_interface_ipv6.setter
+ def customer_interface_ipv6(self, customer_interface_ipv6):
+ """
+ Sets the customer_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional.
+
+ If the tunnel's `routing` attribute is set to `BGP`
+ (see :class:`IPSecConnectionTunnel`), this IP address
+ is used for the tunnel's BGP session.
+
+ If `routing` is instead set to `STATIC`, you can set this IP
+ address to troubleshoot or monitor the tunnel.
+
+ Only subnet masks from /64 up to /127 are allowed.
+
+ Example: `2001:db8::1/64`
+
+
+ :param customer_interface_ipv6: The customer_interface_ipv6 of this UpdateIPSecTunnelBgpSessionDetails.
+ :type: str
+ """
+ self._customer_interface_ipv6 = customer_interface_ipv6
+
@property
def customer_bgp_asn(self):
"""
diff --git a/src/oci/core/models/update_ipv6_details.py b/src/oci/core/models/update_ipv6_details.py
index f9b26899a5..63e0ed32b6 100644
--- a/src/oci/core/models/update_ipv6_details.py
+++ b/src/oci/core/models/update_ipv6_details.py
@@ -30,10 +30,6 @@ def __init__(self, **kwargs):
The value to assign to the freeform_tags property of this UpdateIpv6Details.
:type freeform_tags: dict(str, str)
- :param is_internet_access_allowed:
- The value to assign to the is_internet_access_allowed property of this UpdateIpv6Details.
- :type is_internet_access_allowed: bool
-
:param vnic_id:
The value to assign to the vnic_id property of this UpdateIpv6Details.
:type vnic_id: str
@@ -43,7 +39,6 @@ def __init__(self, **kwargs):
'defined_tags': 'dict(str, dict(str, object))',
'display_name': 'str',
'freeform_tags': 'dict(str, str)',
- 'is_internet_access_allowed': 'bool',
'vnic_id': 'str'
}
@@ -51,14 +46,12 @@ def __init__(self, **kwargs):
'defined_tags': 'definedTags',
'display_name': 'displayName',
'freeform_tags': 'freeformTags',
- 'is_internet_access_allowed': 'isInternetAccessAllowed',
'vnic_id': 'vnicId'
}
self._defined_tags = None
self._display_name = None
self._freeform_tags = None
- self._is_internet_access_allowed = None
self._vnic_id = None
@property
@@ -155,44 +148,6 @@ def freeform_tags(self, freeform_tags):
"""
self._freeform_tags = freeform_tags
- @property
- def is_internet_access_allowed(self):
- """
- Gets the is_internet_access_allowed of this UpdateIpv6Details.
- Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in
- a public subnet. Never allowed for an IPv6 in a private subnet. If the value is `true`, the
- IPv6 uses its public IP address for internet communication.
-
- If you switch this from `true` to `false`, the `publicIpAddress` attribute for the IPv6
- becomes null.
-
- Example: `false`
-
-
- :return: The is_internet_access_allowed of this UpdateIpv6Details.
- :rtype: bool
- """
- return self._is_internet_access_allowed
-
- @is_internet_access_allowed.setter
- def is_internet_access_allowed(self, is_internet_access_allowed):
- """
- Sets the is_internet_access_allowed of this UpdateIpv6Details.
- Whether the IPv6 can be used for internet communication. Allowed by default for an IPv6 in
- a public subnet. Never allowed for an IPv6 in a private subnet. If the value is `true`, the
- IPv6 uses its public IP address for internet communication.
-
- If you switch this from `true` to `false`, the `publicIpAddress` attribute for the IPv6
- becomes null.
-
- Example: `false`
-
-
- :param is_internet_access_allowed: The is_internet_access_allowed of this UpdateIpv6Details.
- :type: bool
- """
- self._is_internet_access_allowed = is_internet_access_allowed
-
@property
def vnic_id(self):
"""
diff --git a/src/oci/core/models/update_launch_options.py b/src/oci/core/models/update_launch_options.py
index c3a932c9ca..ea475a4b03 100644
--- a/src/oci/core/models/update_launch_options.py
+++ b/src/oci/core/models/update_launch_options.py
@@ -72,7 +72,7 @@ def boot_volume_type(self):
Emulation type for the boot volume.
* `ISCSI` - ISCSI attached block storage device.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided plaform images.
+ storage volumes on platform images.
Before you change the boot volume attachment type, detach all block volumes and VNICs except for
the boot volume and the primary VNIC.
@@ -98,7 +98,7 @@ def boot_volume_type(self, boot_volume_type):
Emulation type for the boot volume.
* `ISCSI` - ISCSI attached block storage device.
* `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
- storage volumes on Oracle-provided plaform images.
+ storage volumes on platform images.
Before you change the boot volume attachment type, detach all block volumes and VNICs except for
the boot volume and the primary VNIC.
diff --git a/src/oci/core/models/update_security_rule_details.py b/src/oci/core/models/update_security_rule_details.py
index 86f0653895..a8b7737b4c 100644
--- a/src/oci/core/models/update_security_rule_details.py
+++ b/src/oci/core/models/update_security_rule_details.py
@@ -179,7 +179,7 @@ def destination(self):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
@@ -208,7 +208,7 @@ def destination(self, destination):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
@@ -439,7 +439,7 @@ def source(self):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
@@ -468,7 +468,7 @@ def source(self, source):
Allowed values:
* An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`
- Note that IPv6 addressing is currently supported only in certain regions. See
+ IPv6 addressing is supported for all commercial and government regions. See
`IPv6 Addresses`__.
* The `cidrBlock` value for a :class:`Service`, if you're
diff --git a/src/oci/core/models/update_subnet_details.py b/src/oci/core/models/update_subnet_details.py
index 5fec5b5325..dc44c152aa 100644
--- a/src/oci/core/models/update_subnet_details.py
+++ b/src/oci/core/models/update_subnet_details.py
@@ -46,6 +46,10 @@ def __init__(self, **kwargs):
The value to assign to the cidr_block property of this UpdateSubnetDetails.
:type cidr_block: str
+ :param ipv6_cidr_block:
+ The value to assign to the ipv6_cidr_block property of this UpdateSubnetDetails.
+ :type ipv6_cidr_block: str
+
"""
self.swagger_types = {
'defined_tags': 'dict(str, dict(str, object))',
@@ -54,7 +58,8 @@ def __init__(self, **kwargs):
'freeform_tags': 'dict(str, str)',
'route_table_id': 'str',
'security_list_ids': 'list[str]',
- 'cidr_block': 'str'
+ 'cidr_block': 'str',
+ 'ipv6_cidr_block': 'str'
}
self.attribute_map = {
@@ -64,7 +69,8 @@ def __init__(self, **kwargs):
'freeform_tags': 'freeformTags',
'route_table_id': 'routeTableId',
'security_list_ids': 'securityListIds',
- 'cidr_block': 'cidrBlock'
+ 'cidr_block': 'cidrBlock',
+ 'ipv6_cidr_block': 'ipv6CidrBlock'
}
self._defined_tags = None
@@ -74,6 +80,7 @@ def __init__(self, **kwargs):
self._route_table_id = None
self._security_list_ids = None
self._cidr_block = None
+ self._ipv6_cidr_block = None
@property
def defined_tags(self):
@@ -291,6 +298,50 @@ def cidr_block(self, cidr_block):
"""
self._cidr_block = cidr_block
+ @property
+ def ipv6_cidr_block(self):
+ """
+ Gets the ipv6_cidr_block of this UpdateSubnetDetails.
+ This is the IPv6 CIDR block for the subnet's IP address space.
+ The subnet size is always /64.
+ See `IPv6 Addresses`__.
+ The provided CIDR must maintain the following rules -
+
+ a. The IPv6 CIDR block is valid and correctly formatted.
+ b. The IPv6 CIDR is within the parent VCN IPv6 range.
+
+ Example: `2001:0db8:0123:1111::/64`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
+
+
+ :return: The ipv6_cidr_block of this UpdateSubnetDetails.
+ :rtype: str
+ """
+ return self._ipv6_cidr_block
+
+ @ipv6_cidr_block.setter
+ def ipv6_cidr_block(self, ipv6_cidr_block):
+ """
+ Sets the ipv6_cidr_block of this UpdateSubnetDetails.
+ This is the IPv6 CIDR block for the subnet's IP address space.
+ The subnet size is always /64.
+ See `IPv6 Addresses`__.
+ The provided CIDR must maintain the following rules -
+
+ a. The IPv6 CIDR block is valid and correctly formatted.
+ b. The IPv6 CIDR is within the parent VCN IPv6 range.
+
+ Example: `2001:0db8:0123:1111::/64`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
+
+
+ :param ipv6_cidr_block: The ipv6_cidr_block of this UpdateSubnetDetails.
+ :type: str
+ """
+ self._ipv6_cidr_block = ipv6_cidr_block
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/core/models/upgrade_status.py b/src/oci/core/models/upgrade_status.py
new file mode 100644
index 0000000000..394b0db498
--- /dev/null
+++ b/src/oci/core/models/upgrade_status.py
@@ -0,0 +1,152 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpgradeStatus(object):
+ """
+ The upgrade status of a DRG.
+ """
+
+ #: A constant which can be used with the status property of a UpgradeStatus.
+ #: This constant has a value of "NOT_UPGRADED"
+ STATUS_NOT_UPGRADED = "NOT_UPGRADED"
+
+ #: A constant which can be used with the status property of a UpgradeStatus.
+ #: This constant has a value of "IN_PROGRESS"
+ STATUS_IN_PROGRESS = "IN_PROGRESS"
+
+ #: A constant which can be used with the status property of a UpgradeStatus.
+ #: This constant has a value of "UPGRADED"
+ STATUS_UPGRADED = "UPGRADED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpgradeStatus object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param drg_id:
+ The value to assign to the drg_id property of this UpgradeStatus.
+ :type drg_id: str
+
+ :param status:
+ The value to assign to the status property of this UpgradeStatus.
+ Allowed values for this property are: "NOT_UPGRADED", "IN_PROGRESS", "UPGRADED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param upgraded_connections:
+ The value to assign to the upgraded_connections property of this UpgradeStatus.
+ :type upgraded_connections: str
+
+ """
+ self.swagger_types = {
+ 'drg_id': 'str',
+ 'status': 'str',
+ 'upgraded_connections': 'str'
+ }
+
+ self.attribute_map = {
+ 'drg_id': 'drgId',
+ 'status': 'status',
+ 'upgraded_connections': 'upgradedConnections'
+ }
+
+ self._drg_id = None
+ self._status = None
+ self._upgraded_connections = None
+
+ @property
+ def drg_id(self):
+ """
+ **[Required]** Gets the drg_id of this UpgradeStatus.
+ The `drgId` of the upgraded DRG.
+
+
+ :return: The drg_id of this UpgradeStatus.
+ :rtype: str
+ """
+ return self._drg_id
+
+ @drg_id.setter
+ def drg_id(self, drg_id):
+ """
+ Sets the drg_id of this UpgradeStatus.
+ The `drgId` of the upgraded DRG.
+
+
+ :param drg_id: The drg_id of this UpgradeStatus.
+ :type: str
+ """
+ self._drg_id = drg_id
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this UpgradeStatus.
+ The current upgrade status of the DRG attachment.
+
+ Allowed values for this property are: "NOT_UPGRADED", "IN_PROGRESS", "UPGRADED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this UpgradeStatus.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this UpgradeStatus.
+ The current upgrade status of the DRG attachment.
+
+
+ :param status: The status of this UpgradeStatus.
+ :type: str
+ """
+ allowed_values = ["NOT_UPGRADED", "IN_PROGRESS", "UPGRADED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def upgraded_connections(self):
+ """
+ **[Required]** Gets the upgraded_connections of this UpgradeStatus.
+ The number of upgraded connections.
+
+
+ :return: The upgraded_connections of this UpgradeStatus.
+ :rtype: str
+ """
+ return self._upgraded_connections
+
+ @upgraded_connections.setter
+ def upgraded_connections(self, upgraded_connections):
+ """
+ Sets the upgraded_connections of this UpgradeStatus.
+ The number of upgraded connections.
+
+
+ :param upgraded_connections: The upgraded_connections of this UpgradeStatus.
+ :type: str
+ """
+ self._upgraded_connections = upgraded_connections
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/vcn.py b/src/oci/core/models/vcn.py
index 76f491c22f..fe7adf0d77 100644
--- a/src/oci/core/models/vcn.py
+++ b/src/oci/core/models/vcn.py
@@ -90,13 +90,9 @@ def __init__(self, **kwargs):
The value to assign to the id property of this Vcn.
:type id: str
- :param ipv6_cidr_block:
- The value to assign to the ipv6_cidr_block property of this Vcn.
- :type ipv6_cidr_block: str
-
- :param ipv6_public_cidr_block:
- The value to assign to the ipv6_public_cidr_block property of this Vcn.
- :type ipv6_public_cidr_block: str
+ :param ipv6_cidr_blocks:
+ The value to assign to the ipv6_cidr_blocks property of this Vcn.
+ :type ipv6_cidr_blocks: list[str]
:param lifecycle_state:
The value to assign to the lifecycle_state property of this Vcn.
@@ -125,8 +121,7 @@ def __init__(self, **kwargs):
'dns_label': 'str',
'freeform_tags': 'dict(str, str)',
'id': 'str',
- 'ipv6_cidr_block': 'str',
- 'ipv6_public_cidr_block': 'str',
+ 'ipv6_cidr_blocks': 'list[str]',
'lifecycle_state': 'str',
'time_created': 'datetime',
'vcn_domain_name': 'str'
@@ -144,8 +139,7 @@ def __init__(self, **kwargs):
'dns_label': 'dnsLabel',
'freeform_tags': 'freeformTags',
'id': 'id',
- 'ipv6_cidr_block': 'ipv6CidrBlock',
- 'ipv6_public_cidr_block': 'ipv6PublicCidrBlock',
+ 'ipv6_cidr_blocks': 'ipv6CidrBlocks',
'lifecycle_state': 'lifecycleState',
'time_created': 'timeCreated',
'vcn_domain_name': 'vcnDomainName'
@@ -162,8 +156,7 @@ def __init__(self, **kwargs):
self._dns_label = None
self._freeform_tags = None
self._id = None
- self._ipv6_cidr_block = None
- self._ipv6_public_cidr_block = None
+ self._ipv6_cidr_blocks = None
self._lifecycle_state = None
self._time_created = None
self._vcn_domain_name = None
@@ -487,80 +480,30 @@ def id(self, id):
self._id = id
@property
- def ipv6_cidr_block(self):
- """
- Gets the ipv6_cidr_block of this Vcn.
- For an IPv6-enabled VCN, this is the IPv6 CIDR block for the VCN's private IP address space.
- The VCN size is always /48. If you don't provide a value when creating the VCN, Oracle
- provides one and uses that *same* CIDR for the `ipv6PublicCidrBlock`. If you do provide a
- value, Oracle provides a *different* CIDR for the `ipv6PublicCidrBlock`. Note that IPv6
- addressing is currently supported only in certain regions. See
- `IPv6 Addresses`__.
- Example: `2001:0db8:0123::/48`
-
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
-
-
- :return: The ipv6_cidr_block of this Vcn.
- :rtype: str
- """
- return self._ipv6_cidr_block
-
- @ipv6_cidr_block.setter
- def ipv6_cidr_block(self, ipv6_cidr_block):
- """
- Sets the ipv6_cidr_block of this Vcn.
- For an IPv6-enabled VCN, this is the IPv6 CIDR block for the VCN's private IP address space.
- The VCN size is always /48. If you don't provide a value when creating the VCN, Oracle
- provides one and uses that *same* CIDR for the `ipv6PublicCidrBlock`. If you do provide a
- value, Oracle provides a *different* CIDR for the `ipv6PublicCidrBlock`. Note that IPv6
- addressing is currently supported only in certain regions. See
- `IPv6 Addresses`__.
- Example: `2001:0db8:0123::/48`
-
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm
-
-
- :param ipv6_cidr_block: The ipv6_cidr_block of this Vcn.
- :type: str
- """
- self._ipv6_cidr_block = ipv6_cidr_block
-
- @property
- def ipv6_public_cidr_block(self):
+ def ipv6_cidr_blocks(self):
"""
- Gets the ipv6_public_cidr_block of this Vcn.
- For an IPv6-enabled VCN, this is the IPv6 CIDR block for the VCN's public IP address space.
- The VCN size is always /48. This CIDR is always provided by Oracle. If you don't provide a
- custom CIDR for the `ipv6CidrBlock` when creating the VCN, Oracle assigns that value and also
- uses it for `ipv6PublicCidrBlock`. Oracle uses addresses from this block for the `publicIpAddress`
- attribute of an :class:`Ipv6` that has internet access allowed.
-
- Example: `2001:0db8:0123::/48`
+ Gets the ipv6_cidr_blocks of this Vcn.
+ For an IPv6-enabled VCN, this is the list of IPv6 CIDR blocks for the VCN's IP address space.
+ The CIDRs are provided by Oracle and the sizes are always /56.
- :return: The ipv6_public_cidr_block of this Vcn.
- :rtype: str
+ :return: The ipv6_cidr_blocks of this Vcn.
+ :rtype: list[str]
"""
- return self._ipv6_public_cidr_block
+ return self._ipv6_cidr_blocks
- @ipv6_public_cidr_block.setter
- def ipv6_public_cidr_block(self, ipv6_public_cidr_block):
+ @ipv6_cidr_blocks.setter
+ def ipv6_cidr_blocks(self, ipv6_cidr_blocks):
"""
- Sets the ipv6_public_cidr_block of this Vcn.
- For an IPv6-enabled VCN, this is the IPv6 CIDR block for the VCN's public IP address space.
- The VCN size is always /48. This CIDR is always provided by Oracle. If you don't provide a
- custom CIDR for the `ipv6CidrBlock` when creating the VCN, Oracle assigns that value and also
- uses it for `ipv6PublicCidrBlock`. Oracle uses addresses from this block for the `publicIpAddress`
- attribute of an :class:`Ipv6` that has internet access allowed.
-
- Example: `2001:0db8:0123::/48`
+ Sets the ipv6_cidr_blocks of this Vcn.
+ For an IPv6-enabled VCN, this is the list of IPv6 CIDR blocks for the VCN's IP address space.
+ The CIDRs are provided by Oracle and the sizes are always /56.
- :param ipv6_public_cidr_block: The ipv6_public_cidr_block of this Vcn.
- :type: str
+ :param ipv6_cidr_blocks: The ipv6_cidr_blocks of this Vcn.
+ :type: list[str]
"""
- self._ipv6_public_cidr_block = ipv6_public_cidr_block
+ self._ipv6_cidr_blocks = ipv6_cidr_blocks
@property
def lifecycle_state(self):
diff --git a/src/oci/core/models/vcn_drg_attachment_network_create_details.py b/src/oci/core/models/vcn_drg_attachment_network_create_details.py
new file mode 100644
index 0000000000..e8831a0460
--- /dev/null
+++ b/src/oci/core/models/vcn_drg_attachment_network_create_details.py
@@ -0,0 +1,111 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_attachment_network_create_details import DrgAttachmentNetworkCreateDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class VcnDrgAttachmentNetworkCreateDetails(DrgAttachmentNetworkCreateDetails):
+ """
+ Specifies the VCN Attachment
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new VcnDrgAttachmentNetworkCreateDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.VcnDrgAttachmentNetworkCreateDetails.type` attribute
+ of this class is ``VCN`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this VcnDrgAttachmentNetworkCreateDetails.
+ Allowed values for this property are: "VCN"
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this VcnDrgAttachmentNetworkCreateDetails.
+ :type id: str
+
+ :param route_table_id:
+ The value to assign to the route_table_id property of this VcnDrgAttachmentNetworkCreateDetails.
+ :type route_table_id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str',
+ 'route_table_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id',
+ 'route_table_id': 'routeTableId'
+ }
+
+ self._type = None
+ self._id = None
+ self._route_table_id = None
+ self._type = 'VCN'
+
+ @property
+ def route_table_id(self):
+ """
+ Gets the route_table_id of this VcnDrgAttachmentNetworkCreateDetails.
+ This is the `OCID`__ of the route table that is used to route the traffic as it enters a VCN through this attachment.
+
+ For information about why you would associate a route table with a DRG attachment, see
+ `Advanced Scenario: Transit Routing`__.
+ For information about why you would associate a route table with a DRG attachment, see:
+
+ * `Transit Routing: Access to Multiple VCNs in Same Region`__
+ * `Transit Routing: Private Access to Oracle Services`__
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+
+
+ :return: The route_table_id of this VcnDrgAttachmentNetworkCreateDetails.
+ :rtype: str
+ """
+ return self._route_table_id
+
+ @route_table_id.setter
+ def route_table_id(self, route_table_id):
+ """
+ Sets the route_table_id of this VcnDrgAttachmentNetworkCreateDetails.
+ This is the `OCID`__ of the route table that is used to route the traffic as it enters a VCN through this attachment.
+
+ For information about why you would associate a route table with a DRG attachment, see
+ `Advanced Scenario: Transit Routing`__.
+ For information about why you would associate a route table with a DRG attachment, see:
+
+ * `Transit Routing: Access to Multiple VCNs in Same Region`__
+ * `Transit Routing: Private Access to Oracle Services`__
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+
+
+ :param route_table_id: The route_table_id of this VcnDrgAttachmentNetworkCreateDetails.
+ :type: str
+ """
+ self._route_table_id = route_table_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/vcn_drg_attachment_network_details.py b/src/oci/core/models/vcn_drg_attachment_network_details.py
new file mode 100644
index 0000000000..86bba5de85
--- /dev/null
+++ b/src/oci/core/models/vcn_drg_attachment_network_details.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_attachment_network_details import DrgAttachmentNetworkDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class VcnDrgAttachmentNetworkDetails(DrgAttachmentNetworkDetails):
+ """
+ Specifies details within the VCN.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new VcnDrgAttachmentNetworkDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.VcnDrgAttachmentNetworkDetails.type` attribute
+ of this class is ``VCN`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this VcnDrgAttachmentNetworkDetails.
+ Allowed values for this property are: "VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION"
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this VcnDrgAttachmentNetworkDetails.
+ :type id: str
+
+ :param route_table_id:
+ The value to assign to the route_table_id property of this VcnDrgAttachmentNetworkDetails.
+ :type route_table_id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str',
+ 'route_table_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id',
+ 'route_table_id': 'routeTableId'
+ }
+
+ self._type = None
+ self._id = None
+ self._route_table_id = None
+ self._type = 'VCN'
+
+ @property
+ def route_table_id(self):
+ """
+ Gets the route_table_id of this VcnDrgAttachmentNetworkDetails.
+ The `OCID`__ of the route table the DRG attachment is using.
+
+ For information about why you would associate a route table with a DRG attachment, see:
+
+ * `Transit Routing: Access to Multiple VCNs in Same Region`__
+ * `Transit Routing: Private Access to Oracle Services`__
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+
+
+ :return: The route_table_id of this VcnDrgAttachmentNetworkDetails.
+ :rtype: str
+ """
+ return self._route_table_id
+
+ @route_table_id.setter
+ def route_table_id(self, route_table_id):
+ """
+ Sets the route_table_id of this VcnDrgAttachmentNetworkDetails.
+ The `OCID`__ of the route table the DRG attachment is using.
+
+ For information about why you would associate a route table with a DRG attachment, see:
+
+ * `Transit Routing: Access to Multiple VCNs in Same Region`__
+ * `Transit Routing: Private Access to Oracle Services`__
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+
+
+ :param route_table_id: The route_table_id of this VcnDrgAttachmentNetworkDetails.
+ :type: str
+ """
+ self._route_table_id = route_table_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/vcn_drg_attachment_network_update_details.py b/src/oci/core/models/vcn_drg_attachment_network_update_details.py
new file mode 100644
index 0000000000..8c8b80dfa7
--- /dev/null
+++ b/src/oci/core/models/vcn_drg_attachment_network_update_details.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_attachment_network_update_details import DrgAttachmentNetworkUpdateDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class VcnDrgAttachmentNetworkUpdateDetails(DrgAttachmentNetworkUpdateDetails):
+ """
+ Specifies the update details for the VCN attachment.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new VcnDrgAttachmentNetworkUpdateDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.VcnDrgAttachmentNetworkUpdateDetails.type` attribute
+ of this class is ``VCN`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this VcnDrgAttachmentNetworkUpdateDetails.
+ Allowed values for this property are: "VCN"
+ :type type: str
+
+ :param route_table_id:
+ The value to assign to the route_table_id property of this VcnDrgAttachmentNetworkUpdateDetails.
+ :type route_table_id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'route_table_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'route_table_id': 'routeTableId'
+ }
+
+ self._type = None
+ self._route_table_id = None
+ self._type = 'VCN'
+
+ @property
+ def route_table_id(self):
+ """
+ Gets the route_table_id of this VcnDrgAttachmentNetworkUpdateDetails.
+ This is the `OCID`__ of the route table that is used to route the traffic as it enters a VCN through this attachment.
+
+ For information about why you would associate a route table with a DRG attachment, see:
+
+ * `Transit Routing: Access to Multiple VCNs in Same Region`__
+ * `Transit Routing: Private Access to Oracle Services`__
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+
+
+ :return: The route_table_id of this VcnDrgAttachmentNetworkUpdateDetails.
+ :rtype: str
+ """
+ return self._route_table_id
+
+ @route_table_id.setter
+ def route_table_id(self, route_table_id):
+ """
+ Sets the route_table_id of this VcnDrgAttachmentNetworkUpdateDetails.
+ This is the `OCID`__ of the route table that is used to route the traffic as it enters a VCN through this attachment.
+
+ For information about why you would associate a route table with a DRG attachment, see:
+
+ * `Transit Routing: Access to Multiple VCNs in Same Region`__
+ * `Transit Routing: Private Access to Oracle Services`__
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm
+
+
+ :param route_table_id: The route_table_id of this VcnDrgAttachmentNetworkUpdateDetails.
+ :type: str
+ """
+ self._route_table_id = route_table_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/vcn_topology.py b/src/oci/core/models/vcn_topology.py
new file mode 100644
index 0000000000..6134aa2d79
--- /dev/null
+++ b/src/oci/core/models/vcn_topology.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .topology import Topology
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class VcnTopology(Topology):
+ """
+ Defines the representation of a virtual network topology for a VCN.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new VcnTopology object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.VcnTopology.type` attribute
+ of this class is ``VCN`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this VcnTopology.
+ Allowed values for this property are: "NETWORKING", "VCN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param entities:
+ The value to assign to the entities property of this VcnTopology.
+ :type entities: list[object]
+
+ :param relationships:
+ The value to assign to the relationships property of this VcnTopology.
+ :type relationships: list[oci.core.models.TopologyEntityRelationship]
+
+ :param time_created:
+ The value to assign to the time_created property of this VcnTopology.
+ :type time_created: datetime
+
+ :param vcn_id:
+ The value to assign to the vcn_id property of this VcnTopology.
+ :type vcn_id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'entities': 'list[object]',
+ 'relationships': 'list[TopologyEntityRelationship]',
+ 'time_created': 'datetime',
+ 'vcn_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'entities': 'entities',
+ 'relationships': 'relationships',
+ 'time_created': 'timeCreated',
+ 'vcn_id': 'vcnId'
+ }
+
+ self._type = None
+ self._entities = None
+ self._relationships = None
+ self._time_created = None
+ self._vcn_id = None
+ self._type = 'VCN'
+
+ @property
+ def vcn_id(self):
+ """
+ Gets the vcn_id of this VcnTopology.
+ The `OCID`__ of the VCN for which the topology is generated.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The vcn_id of this VcnTopology.
+ :rtype: str
+ """
+ return self._vcn_id
+
+ @vcn_id.setter
+ def vcn_id(self, vcn_id):
+ """
+ Sets the vcn_id of this VcnTopology.
+ The `OCID`__ of the VCN for which the topology is generated.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param vcn_id: The vcn_id of this VcnTopology.
+ :type: str
+ """
+ self._vcn_id = vcn_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/models/virtual_circuit.py b/src/oci/core/models/virtual_circuit.py
index 8902faff3e..d3c7ece419 100644
--- a/src/oci/core/models/virtual_circuit.py
+++ b/src/oci/core/models/virtual_circuit.py
@@ -54,6 +54,14 @@ class VirtualCircuit(object):
#: This constant has a value of "DOWN"
BGP_SESSION_STATE_DOWN = "DOWN"
+ #: A constant which can be used with the bgp_ipv6_session_state property of a VirtualCircuit.
+ #: This constant has a value of "UP"
+ BGP_IPV6_SESSION_STATE_UP = "UP"
+
+ #: A constant which can be used with the bgp_ipv6_session_state property of a VirtualCircuit.
+ #: This constant has a value of "DOWN"
+ BGP_IPV6_SESSION_STATE_DOWN = "DOWN"
+
#: A constant which can be used with the routing_policy property of a VirtualCircuit.
#: This constant has a value of "ORACLE_SERVICE_NETWORK"
ROUTING_POLICY_ORACLE_SERVICE_NETWORK = "ORACLE_SERVICE_NETWORK"
@@ -151,6 +159,12 @@ def __init__(self, **kwargs):
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type bgp_session_state: str
+ :param bgp_ipv6_session_state:
+ The value to assign to the bgp_ipv6_session_state property of this VirtualCircuit.
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type bgp_ipv6_session_state: str
+
:param compartment_id:
The value to assign to the compartment_id property of this VirtualCircuit.
:type compartment_id: str
@@ -258,6 +272,7 @@ def __init__(self, **kwargs):
'bandwidth_shape_name': 'str',
'bgp_management': 'str',
'bgp_session_state': 'str',
+ 'bgp_ipv6_session_state': 'str',
'compartment_id': 'str',
'cross_connect_mappings': 'list[CrossConnectMapping]',
'routing_policy': 'list[str]',
@@ -287,6 +302,7 @@ def __init__(self, **kwargs):
'bandwidth_shape_name': 'bandwidthShapeName',
'bgp_management': 'bgpManagement',
'bgp_session_state': 'bgpSessionState',
+ 'bgp_ipv6_session_state': 'bgpIpv6SessionState',
'compartment_id': 'compartmentId',
'cross_connect_mappings': 'crossConnectMappings',
'routing_policy': 'routingPolicy',
@@ -315,6 +331,7 @@ def __init__(self, **kwargs):
self._bandwidth_shape_name = None
self._bgp_management = None
self._bgp_session_state = None
+ self._bgp_ipv6_session_state = None
self._compartment_id = None
self._cross_connect_mappings = None
self._routing_policy = None
@@ -407,7 +424,7 @@ def bgp_management(self, bgp_management):
def bgp_session_state(self):
"""
Gets the bgp_session_state of this VirtualCircuit.
- The state of the BGP session associated with the virtual circuit.
+ The state of the Ipv4 BGP session associated with the virtual circuit.
Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -422,7 +439,7 @@ def bgp_session_state(self):
def bgp_session_state(self, bgp_session_state):
"""
Sets the bgp_session_state of this VirtualCircuit.
- The state of the BGP session associated with the virtual circuit.
+ The state of the Ipv4 BGP session associated with the virtual circuit.
:param bgp_session_state: The bgp_session_state of this VirtualCircuit.
@@ -433,6 +450,36 @@ def bgp_session_state(self, bgp_session_state):
bgp_session_state = 'UNKNOWN_ENUM_VALUE'
self._bgp_session_state = bgp_session_state
+ @property
+ def bgp_ipv6_session_state(self):
+ """
+ Gets the bgp_ipv6_session_state of this VirtualCircuit.
+ The state of the Ipv6 BGP session associated with the virtual circuit.
+
+ Allowed values for this property are: "UP", "DOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The bgp_ipv6_session_state of this VirtualCircuit.
+ :rtype: str
+ """
+ return self._bgp_ipv6_session_state
+
+ @bgp_ipv6_session_state.setter
+ def bgp_ipv6_session_state(self, bgp_ipv6_session_state):
+ """
+ Sets the bgp_ipv6_session_state of this VirtualCircuit.
+ The state of the Ipv6 BGP session associated with the virtual circuit.
+
+
+ :param bgp_ipv6_session_state: The bgp_ipv6_session_state of this VirtualCircuit.
+ :type: str
+ """
+ allowed_values = ["UP", "DOWN"]
+ if not value_allowed_none_or_none_sentinel(bgp_ipv6_session_state, allowed_values):
+ bgp_ipv6_session_state = 'UNKNOWN_ENUM_VALUE'
+ self._bgp_ipv6_session_state = bgp_ipv6_session_state
+
@property
def compartment_id(self):
"""
diff --git a/src/oci/core/models/virtual_circuit_drg_attachment_network_details.py b/src/oci/core/models/virtual_circuit_drg_attachment_network_details.py
new file mode 100644
index 0000000000..bca80d3f60
--- /dev/null
+++ b/src/oci/core/models/virtual_circuit_drg_attachment_network_details.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .drg_attachment_network_details import DrgAttachmentNetworkDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class VirtualCircuitDrgAttachmentNetworkDetails(DrgAttachmentNetworkDetails):
+ """
+ Specifies the virtual circuit attached to the DRG.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new VirtualCircuitDrgAttachmentNetworkDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.VirtualCircuitDrgAttachmentNetworkDetails.type` attribute
+ of this class is ``VIRTUAL_CIRCUIT`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this VirtualCircuitDrgAttachmentNetworkDetails.
+ Allowed values for this property are: "VCN", "IPSEC_TUNNEL", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION"
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this VirtualCircuitDrgAttachmentNetworkDetails.
+ :type id: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id'
+ }
+
+ self._type = None
+ self._id = None
+ self._type = 'VIRTUAL_CIRCUIT'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/core/virtual_network_client.py b/src/oci/core/virtual_network_client.py
index ec02978a59..e74626f4c2 100644
--- a/src/oci/core/virtual_network_client.py
+++ b/src/oci/core/virtual_network_client.py
@@ -91,6 +91,262 @@ def __init__(self, config, **kwargs):
self._config = config
self._kwargs = kwargs
+ def add_drg_route_distribution_statements(self, drg_route_distribution_id, add_drg_route_distribution_statements_details, **kwargs):
+ """
+ Adds one or more route distribution statements to the specified route distribution.
+
+
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.AddDrgRouteDistributionStatementsDetails add_drg_route_distribution_statements_details: (required)
+ Request with one or more route distribution statements to be inserted into the route distribution.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteDistributionStatement`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use add_drg_route_distribution_statements API.
+ """
+ resource_path = "/drgRouteDistributions/{drgRouteDistributionId}/actions/addDrgRouteDistributionStatements"
+ method = "POST"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "add_drg_route_distribution_statements got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteDistributionId": drg_route_distribution_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=add_drg_route_distribution_statements_details,
+ response_type="list[DrgRouteDistributionStatement]")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=add_drg_route_distribution_statements_details,
+ response_type="list[DrgRouteDistributionStatement]")
+
+ def add_drg_route_rules(self, drg_route_table_id, add_drg_route_rules_details, **kwargs):
+ """
+ Adds one or more static route rules to the specified DRG route table.
+
+
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.AddDrgRouteRulesDetails add_drg_route_rules_details: (required)
+ Request for one or more route rules to be inserted into the DRG route table.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteRule`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use add_drg_route_rules API.
+ """
+ resource_path = "/drgRouteTables/{drgRouteTableId}/actions/addDrgRouteRules"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "add_drg_route_rules got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteTableId": drg_route_table_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=add_drg_route_rules_details,
+ response_type="list[DrgRouteRule]")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=add_drg_route_rules_details,
+ response_type="list[DrgRouteRule]")
+
+ def add_ipv6_vcn_cidr(self, vcn_id, **kwargs):
+ """
+ Add an IPv6 CIDR to a VCN. The VCN size is always /56 and assigned by Oracle.
+ Once added the IPv6 CIDR block cannot be removed or modified.
+
+
+ :param str vcn_id: (required)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use add_ipv6_vcn_cidr API.
+ """
+ resource_path = "/vcns/{vcnId}/actions/addIpv6Cidr"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "opc_retry_token",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "add_ipv6_vcn_cidr got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "vcnId": vcn_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
def add_network_security_group_security_rules(self, network_security_group_id, add_network_security_group_security_rules_details, **kwargs):
"""
Adds one or more security rules to the specified network security group.
@@ -544,7 +800,9 @@ def bulk_add_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_add_
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.BulkAddVirtualCircuitPublicPrefixesDetails bulk_add_virtual_circuit_public_prefixes_details: (required)
Request with publix prefixes to be added to the virtual circuit
@@ -616,10 +874,12 @@ def bulk_delete_virtual_circuit_public_prefixes(self, virtual_circuit_id, bulk_d
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.BulkDeleteVirtualCircuitPublicPrefixesDetails bulk_delete_virtual_circuit_public_prefixes_details: (required)
- Request with publix prefixes to be deleted from the virtual circuit
+ Request with public prefixes to be deleted from the virtual circuit.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -785,7 +1045,9 @@ def change_cpe_compartment(self, cpe_id, change_cpe_compartment_details, **kwarg
:param str cpe_id: (required)
- The OCID of the CPE.
+ The `OCID`__ of the CPE.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeCpeCompartmentDetails change_cpe_compartment_details: (required)
Request to change the compartment of a CPE.
@@ -879,7 +1141,9 @@ def change_cross_connect_compartment(self, cross_connect_id, change_cross_connec
:param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ The `OCID`__ of the cross-connect.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeCrossConnectCompartmentDetails change_cross_connect_compartment_details: (required)
Request to change the compartment of a Cross Connect.
@@ -973,7 +1237,9 @@ def change_cross_connect_group_compartment(self, cross_connect_group_id, change_
:param str cross_connect_group_id: (required)
- The OCID of the cross-connect group.
+ The `OCID`__ of the cross-connect group.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeCrossConnectGroupCompartmentDetails change_cross_connect_group_compartment_details: (required)
Request to change the compartment of a Cross Connect Group.
@@ -1067,7 +1333,9 @@ def change_dhcp_options_compartment(self, dhcp_id, change_dhcp_options_compartme
:param str dhcp_id: (required)
- The OCID for the set of DHCP options.
+ The `OCID`__ for the set of DHCP options.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeDhcpOptionsCompartmentDetails change_dhcp_options_compartment_details: (required)
Request to change the compartment of a set of DHCP Options.
@@ -1161,7 +1429,9 @@ def change_drg_compartment(self, drg_id, change_drg_compartment_details, **kwarg
:param str drg_id: (required)
- The OCID of the DRG.
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeDrgCompartmentDetails change_drg_compartment_details: (required)
Request to change the compartment of a DRG.
@@ -1255,7 +1525,9 @@ def change_internet_gateway_compartment(self, ig_id, change_internet_gateway_com
:param str ig_id: (required)
- The OCID of the internet gateway.
+ The `OCID`__ of the internet gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeInternetGatewayCompartmentDetails change_internet_gateway_compartment_details: (required)
Request to change the compartment of an internet gateway.
@@ -1349,10 +1621,12 @@ def change_ip_sec_connection_compartment(self, ipsc_id, change_ip_sec_connection
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeIPSecConnectionCompartmentDetails change_ip_sec_connection_compartment_details: (required)
- Request to change the compartment of a Ipsec Connection.
+ Request to change the compartment of a IPSec connection.
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -1443,7 +1717,9 @@ def change_local_peering_gateway_compartment(self, local_peering_gateway_id, cha
:param str local_peering_gateway_id: (required)
- The OCID of the local peering gateway.
+ The `OCID`__ of the local peering gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeLocalPeeringGatewayCompartmentDetails change_local_peering_gateway_compartment_details: (required)
Request to change the compartment of a given local peering gateway.
@@ -1731,7 +2007,9 @@ def change_public_ip_compartment(self, public_ip_id, change_public_ip_compartmen
:param str public_ip_id: (required)
- The OCID of the public IP.
+ The `OCID`__ of the public IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangePublicIpCompartmentDetails change_public_ip_compartment_details: (required)
Request to change the compartment of a Public IP.
@@ -1921,10 +2199,12 @@ def change_remote_peering_connection_compartment(self, remote_peering_connection
:param str remote_peering_connection_id: (required)
- The OCID of the remote peering connection (RPC).
+ The `OCID`__ of the remote peering connection (RPC).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeRemotePeeringConnectionCompartmentDetails change_remote_peering_connection_compartment_details: (required)
- Request to change the compartment of a Remote Peering Connection.
+ Request to change the compartment of a remote peering connection.
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -2015,7 +2295,9 @@ def change_route_table_compartment(self, rt_id, change_route_table_compartment_d
:param str rt_id: (required)
- The OCID of the route table.
+ The `OCID`__ of the route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeRouteTableCompartmentDetails change_route_table_compartment_details: (required)
Request to change the compartment of a given route table.
@@ -2109,7 +2391,9 @@ def change_security_list_compartment(self, security_list_id, change_security_lis
:param str security_list_id: (required)
- The OCID of the security list.
+ The `OCID`__ of the security list.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeSecurityListCompartmentDetails change_security_list_compartment_details: (required)
Request to change the compartment of a given security list.
@@ -2299,7 +2583,9 @@ def change_subnet_compartment(self, subnet_id, change_subnet_compartment_details
:param str subnet_id: (required)
- The OCID of the subnet.
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeSubnetCompartmentDetails change_subnet_compartment_details: (required)
Request to change the compartment of a given subnet.
@@ -2489,7 +2775,9 @@ def change_virtual_circuit_compartment(self, virtual_circuit_id, change_virtual_
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeVirtualCircuitCompartmentDetails change_virtual_circuit_compartment_details: (required)
Request to change the compartment of a virtual circuit.
@@ -2691,7 +2979,9 @@ def connect_local_peering_gateways(self, local_peering_gateway_id, connect_local
:param str local_peering_gateway_id: (required)
- The OCID of the local peering gateway.
+ The `OCID`__ of the local peering gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ConnectLocalPeeringGatewaysDetails connect_local_peering_gateways_details: (required)
Details regarding the local peering gateway to connect.
@@ -2769,7 +3059,9 @@ def connect_remote_peering_connections(self, remote_peering_connection_id, conne
:param str remote_peering_connection_id: (required)
- The OCID of the remote peering connection (RPC).
+ The `OCID`__ of the remote peering connection (RPC).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ConnectRemotePeeringConnectionsDetails connect_remote_peering_connections_details: (required)
Details to connect peering connection with peering connection from remote region
@@ -2914,7 +3206,7 @@ def create_cpe(self, create_cpe_details, **kwargs):
Creates a new virtual customer-premises equipment (CPE) object in the specified compartment. For
more information, see `IPSec VPNs`__.
- For the purposes of access control, you must provide the OCID of the compartment where you want
+ For the purposes of access control, you must provide the `OCID`__ of the compartment where you want
the CPE to reside. Notice that the CPE doesn't have to be in the same compartment as the IPSec
connection or other Networking Service components. If you're not sure which compartment to
use, put the CPE in the same compartment as the DRG. For more information about
@@ -2928,6 +3220,7 @@ def create_cpe(self, create_cpe_details, **kwargs):
be unique, and you can change it. Avoid entering confidential information.
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPsec.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/configuringCPE.htm
@@ -3009,7 +3302,7 @@ def create_cross_connect(self, create_cross_connect_details, **kwargs):
and request to have the physical cable installed. For more information, see
`FastConnect Overview`__.
- For the purposes of access control, you must provide the OCID of the
+ For the purposes of access control, you must provide the `OCID`__ of the
compartment where you want the cross-connect to reside. If you're
not sure which compartment to use, put the cross-connect in the
same compartment with your VCN. For more information about
@@ -3022,6 +3315,7 @@ def create_cross_connect(self, create_cross_connect_details, **kwargs):
It does not have to be unique, and you can change it. Avoid entering confidential information.
__ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -3098,7 +3392,7 @@ def create_cross_connect_group(self, create_cross_connect_group_details, **kwarg
FastConnect. For more information, see
`FastConnect Overview`__.
- For the purposes of access control, you must provide the OCID of the
+ For the purposes of access control, you must provide the `OCID`__ of the
compartment where you want the cross-connect group to reside. If you're
not sure which compartment to use, put the cross-connect group in the
same compartment with your VCN. For more information about
@@ -3111,6 +3405,7 @@ def create_cross_connect_group(self, create_cross_connect_group_details, **kwarg
It does not have to be unique, and you can change it. Avoid entering confidential information.
__ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -3186,7 +3481,7 @@ def create_dhcp_options(self, create_dhcp_details, **kwargs):
Creates a new set of DHCP options for the specified VCN. For more information, see
:class:`DhcpOptions`.
- For the purposes of access control, you must provide the OCID of the compartment where you want the set of
+ For the purposes of access control, you must provide the `OCID`__ of the compartment where you want the set of
DHCP options to reside. Notice that the set of options doesn't have to be in the same compartment as the VCN,
subnets, or other Networking Service components. If you're not sure which compartment to use, put the set
of DHCP options in the same compartment as the VCN. For more information about compartments and access control, see
@@ -3196,6 +3491,7 @@ def create_dhcp_options(self, create_dhcp_details, **kwargs):
You may optionally specify a *display name* for the set of DHCP options, otherwise a default is provided.
It does not have to be unique, and you can change it. Avoid entering confidential information.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -3354,18 +3650,19 @@ def create_drg(self, create_drg_details, **kwargs):
def create_drg_attachment(self, create_drg_attachment_details, **kwargs):
"""
- Attaches the specified DRG to the specified VCN. A VCN can be attached to only one DRG at a time,
- and vice versa. The response includes a `DrgAttachment` object with its own OCID. For more
- information about DRGs, see
+ Attaches the specified DRG to the specified network resource. A VCN can be attached to only one DRG
+ at a time, but a DRG can be attached to more than one VCN. The response includes a `DrgAttachment`
+ object with its own `OCID`__. For more information about DRGs, see
`Dynamic Routing Gateways (DRGs)`__.
You may optionally specify a *display name* for the attachment, otherwise a default is provided.
It does not have to be unique, and you can change it. Avoid entering confidential information.
- For the purposes of access control, the DRG attachment is automatically placed into the same compartment
- as the VCN. For more information about compartments and access control, see
+ For the purposes of access control, the DRG attachment is automatically placed into the currently selected compartment.
+ For more information about compartments and access control, see
`Overview of the IAM Service`__.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDRGs.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm
@@ -3436,33 +3733,178 @@ def create_drg_attachment(self, create_drg_attachment_details, **kwargs):
body=create_drg_attachment_details,
response_type="DrgAttachment")
- def create_internet_gateway(self, create_internet_gateway_details, **kwargs):
+ def create_drg_route_distribution(self, create_drg_route_distribution_details, **kwargs):
"""
- Creates a new internet gateway for the specified VCN. For more information, see
- `Access to the Internet`__.
-
- For the purposes of access control, you must provide the OCID of the compartment where you want the Internet
- Gateway to reside. Notice that the internet gateway doesn't have to be in the same compartment as the VCN or
- other Networking Service components. If you're not sure which compartment to use, put the Internet
- Gateway in the same compartment with the VCN. For more information about compartments and access control, see
- `Overview of the IAM Service`__. For information about OCIDs, see
- `Resource Identifiers`__.
+ Creates a new route distribution for the specified DRG.
+ Assign the route distribution as an import distribution to a DRG route table using the `UpdateDrgRouteTable` or `CreateDrgRouteTable` operations.
+ Assign the route distribution as an export distribution to a DRG attachment
+ using the `UpdateDrgAttachment` or `CreateDrgAttachment` operations.
- You may optionally specify a *display name* for the internet gateway, otherwise a default is provided. It
- does not have to be unique, and you can change it. Avoid entering confidential information.
- For traffic to flow between a subnet and an internet gateway, you must create a route rule accordingly in
- the subnet's route table (for example, 0.0.0.0/0 > internet gateway). See
- :func:`update_route_table`.
+ :param oci.core.models.CreateDrgRouteDistributionDetails create_drg_route_distribution_details: (required)
+ Details for creating a route distribution.
- You must specify whether the internet gateway is enabled when you create it. If it's disabled, that means no
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgRouteDistribution`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use create_drg_route_distribution API.
+ """
+ resource_path = "/drgRouteDistributions"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "create_drg_route_distribution got unknown kwargs: {!r}".format(extra_kwargs))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_drg_route_distribution_details,
+ response_type="DrgRouteDistribution")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_drg_route_distribution_details,
+ response_type="DrgRouteDistribution")
+
+ def create_drg_route_table(self, create_drg_route_table_details, **kwargs):
+ """
+ Creates a new DRG route table for the specified DRG. Assign the DRG route table to a DRG attachment
+ using the `UpdateDrgAttachment` or `CreateDrgAttachment` operations.
+
+
+ :param oci.core.models.CreateDrgRouteTableDetails create_drg_route_table_details: (required)
+ Details for creating a DRG route table.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgRouteTable`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use create_drg_route_table API.
+ """
+ resource_path = "/drgRouteTables"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "create_drg_route_table got unknown kwargs: {!r}".format(extra_kwargs))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_drg_route_table_details,
+ response_type="DrgRouteTable")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_drg_route_table_details,
+ response_type="DrgRouteTable")
+
+ def create_internet_gateway(self, create_internet_gateway_details, **kwargs):
+ """
+ Creates a new internet gateway for the specified VCN. For more information, see
+ `Access to the Internet`__.
+
+ For the purposes of access control, you must provide the `OCID`__ of the compartment where you want the Internet
+ Gateway to reside. Notice that the internet gateway doesn't have to be in the same compartment as the VCN or
+ other Networking Service components. If you're not sure which compartment to use, put the Internet
+ Gateway in the same compartment with the VCN. For more information about compartments and access control, see
+ `Overview of the IAM Service`__.
+
+ You may optionally specify a *display name* for the internet gateway, otherwise a default is provided. It
+ does not have to be unique, and you can change it. Avoid entering confidential information.
+
+ For traffic to flow between a subnet and an internet gateway, you must create a route rule accordingly in
+ the subnet's route table (for example, 0.0.0.0/0 > internet gateway). See
+ :func:`update_route_table`.
+
+ You must specify whether the internet gateway is enabled when you create it. If it's disabled, that means no
traffic will flow to/from the internet even if there's a route rule that enables that traffic. You can later
use :func:`update_internet_gateway` to easily disable/enable
the gateway without changing the route rule.
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIGs.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param oci.core.models.CreateInternetGatewayDetails create_internet_gateway_details: (required)
@@ -3542,13 +3984,12 @@ def create_ip_sec_connection(self, create_ip_sec_connection_details, **kwargs):
the static routes. For more information, see the important note in
:class:`IPSecConnection`.
- For the purposes of access control, you must provide the OCID of the compartment where you want the
+ For the purposes of access control, you must provide the `OCID`__ of the compartment where you want the
IPSec connection to reside. Notice that the IPSec connection doesn't have to be in the same compartment
as the DRG, CPE, or other Networking Service components. If you're not sure which compartment to
use, put the IPSec connection in the same compartment as the DRG. For more information about
compartments and access control, see
`Overview of the IAM Service`__.
- For information about OCIDs, see `Resource Identifiers`__.
You may optionally specify a *display name* for the IPSec connection, otherwise a default is provided.
It does not have to be unique, and you can change it. Avoid entering confidential information.
@@ -3564,8 +4005,8 @@ def create_ip_sec_connection(self, create_ip_sec_connection_details, **kwargs):
`Configuring Your On-Premises Router for an IPSec VPN`__.
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPsec.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
__ https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/configuringCPE.htm
@@ -4993,7 +5434,9 @@ def delete_cpe(self, cpe_id, **kwargs):
:param str cpe_id: (required)
- The OCID of the CPE.
+ The `OCID`__ of the CPE.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5069,7 +5512,9 @@ def delete_cross_connect(self, cross_connect_id, **kwargs):
:param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ The `OCID`__ of the cross-connect.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5146,7 +5591,9 @@ def delete_cross_connect_group(self, cross_connect_group_id, **kwargs):
:param str cross_connect_group_id: (required)
- The OCID of the cross-connect group.
+ The `OCID`__ of the cross-connect group.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5225,7 +5672,9 @@ def delete_dhcp_options(self, dhcp_id, **kwargs):
:param str dhcp_id: (required)
- The OCID for the set of DHCP options.
+ The `OCID`__ for the set of DHCP options.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5303,7 +5752,9 @@ def delete_drg(self, drg_id, **kwargs):
:param str drg_id: (required)
- The OCID of the DRG.
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5374,13 +5825,15 @@ def delete_drg(self, drg_id, **kwargs):
def delete_drg_attachment(self, drg_attachment_id, **kwargs):
"""
- Detaches a DRG from a VCN by deleting the corresponding `DrgAttachment`. This is an asynchronous
- operation. The attachment's `lifecycleState` will change to DETACHING temporarily until the attachment
+ Detaches a DRG from a network resource by deleting the corresponding `DrgAttachment` resource. This is an asynchronous
+ operation. The attachment's `lifecycleState` will temporarily change to DETACHING until the attachment
is completely removed.
:param str drg_attachment_id: (required)
- The OCID of the DRG attachment.
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5449,17 +5902,17 @@ def delete_drg_attachment(self, drg_attachment_id, **kwargs):
path_params=path_params,
header_params=header_params)
- def delete_internet_gateway(self, ig_id, **kwargs):
+ def delete_drg_route_distribution(self, drg_route_distribution_id, **kwargs):
"""
- Deletes the specified internet gateway. The internet gateway does not have to be disabled, but
- there must not be a route table that lists it as a target.
+ Deletes the specified route distribution. You can't delete a route distribution currently in use by a DRG attachment or DRG route table.
- This is an asynchronous operation. The gateway's `lifecycleState` will change to TERMINATING temporarily
- until the gateway is completely removed.
+ Remove the DRG route distribution from a DRG attachment or DRG route table by using the \"RemoveExportDrgRouteDistribution\" or \"RemoveImportDrgRouteDistribution' operations.
- :param str ig_id: (required)
- The OCID of the internet gateway.
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5478,9 +5931,9 @@ def delete_internet_gateway(self, ig_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_internet_gateway API.
+ Click `here `__ to see an example of how to use delete_drg_route_distribution API.
"""
- resource_path = "/internetGateways/{igId}"
+ resource_path = "/drgRouteDistributions/{drgRouteDistributionId}"
method = "DELETE"
# Don't accept unknown kwargs
@@ -5491,10 +5944,10 @@ def delete_internet_gateway(self, ig_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "delete_internet_gateway got unknown kwargs: {!r}".format(extra_kwargs))
+ "delete_drg_route_distribution got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "igId": ig_id
+ "drgRouteDistributionId": drg_route_distribution_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -5528,20 +5981,15 @@ def delete_internet_gateway(self, ig_id, **kwargs):
path_params=path_params,
header_params=header_params)
- def delete_ip_sec_connection(self, ipsc_id, **kwargs):
+ def delete_drg_route_table(self, drg_route_table_id, **kwargs):
"""
- Deletes the specified IPSec connection. If your goal is to disable the IPSec VPN between your VCN and
- on-premises network, it's easiest to simply detach the DRG but keep all the IPSec VPN components intact.
- If you were to delete all the components and then later need to create an IPSec VPN again, you would
- need to configure your on-premises router again with the new information returned from
- :func:`create_ip_sec_connection`.
+ Deletes the specified DRG route table. There must not be any DRG attachments assigned.
- This is an asynchronous operation. The connection's `lifecycleState` will change to TERMINATING temporarily
- until the connection is completely removed.
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
- :param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5560,9 +6008,9 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_ip_sec_connection API.
+ Click `here `__ to see an example of how to use delete_drg_route_table API.
"""
- resource_path = "/ipsecConnections/{ipscId}"
+ resource_path = "/drgRouteTables/{drgRouteTableId}"
method = "DELETE"
# Don't accept unknown kwargs
@@ -5573,10 +6021,10 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "delete_ip_sec_connection got unknown kwargs: {!r}".format(extra_kwargs))
+ "delete_drg_route_table got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "ipscId": ipsc_id
+ "drgRouteTableId": drg_route_table_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -5610,26 +6058,25 @@ def delete_ip_sec_connection(self, ipsc_id, **kwargs):
path_params=path_params,
header_params=header_params)
- def delete_ipv6(self, ipv6_id, **kwargs):
+ def delete_internet_gateway(self, ig_id, **kwargs):
"""
- Unassigns and deletes the specified IPv6. You must specify the object's OCID.
- The IPv6 address is returned to the subnet's pool of available addresses.
+ Deletes the specified internet gateway. The internet gateway does not have to be disabled, but
+ there must not be a route table that lists it as a target.
+ This is an asynchronous operation. The gateway's `lifecycleState` will change to TERMINATING temporarily
+ until the gateway is completely removed.
- :param str ipv6_id: (required)
- The `OCID`__ of the IPv6.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str ig_id: (required)
+ The `OCID`__ of the internet gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
will be updated or deleted only if the etag you provide matches the resource's current etag value.
- :param str opc_request_id: (optional)
- Unique identifier for the request.
- If you need to contact Oracle about a particular request, please provide the request ID.
-
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -5642,24 +6089,23 @@ def delete_ipv6(self, ipv6_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_ipv6 API.
+ Click `here `__ to see an example of how to use delete_internet_gateway API.
"""
- resource_path = "/ipv6/{ipv6Id}"
+ resource_path = "/internetGateways/{igId}"
method = "DELETE"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "if_match",
- "opc_request_id"
+ "if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "delete_ipv6 got unknown kwargs: {!r}".format(extra_kwargs))
+ "delete_internet_gateway got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "ipv6Id": ipv6_id
+ "igId": ig_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -5671,8 +6117,7 @@ def delete_ipv6(self, ipv6_id, **kwargs):
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "if-match": kwargs.get("if_match", missing),
- "opc-request-id": kwargs.get("opc_request_id", missing)
+ "if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -5694,16 +6139,22 @@ def delete_ipv6(self, ipv6_id, **kwargs):
path_params=path_params,
header_params=header_params)
- def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs):
+ def delete_ip_sec_connection(self, ipsc_id, **kwargs):
"""
- Deletes the specified local peering gateway (LPG).
+ Deletes the specified IPSec connection. If your goal is to disable the IPSec VPN between your VCN and
+ on-premises network, it's easiest to simply detach the DRG but keep all the IPSec VPN components intact.
+ If you were to delete all the components and then later need to create an IPSec VPN again, you would
+ need to configure your on-premises router again with the new information returned from
+ :func:`create_ip_sec_connection`.
- This is an asynchronous operation; the local peering gateway's `lifecycleState` changes to TERMINATING temporarily
- until the local peering gateway is completely removed.
+ This is an asynchronous operation. The connection's `lifecycleState` will change to TERMINATING temporarily
+ until the connection is completely removed.
- :param str local_peering_gateway_id: (required)
- The OCID of the local peering gateway.
+ :param str ipsc_id: (required)
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -5722,9 +6173,9 @@ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_local_peering_gateway API.
+ Click `here `__ to see an example of how to use delete_ip_sec_connection API.
"""
- resource_path = "/localPeeringGateways/{localPeeringGatewayId}"
+ resource_path = "/ipsecConnections/{ipscId}"
method = "DELETE"
# Don't accept unknown kwargs
@@ -5735,10 +6186,10 @@ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "delete_local_peering_gateway got unknown kwargs: {!r}".format(extra_kwargs))
+ "delete_ip_sec_connection got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "localPeeringGatewayId": local_peering_gateway_id
+ "ipscId": ipsc_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -5772,17 +6223,16 @@ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs):
path_params=path_params,
header_params=header_params)
- def delete_nat_gateway(self, nat_gateway_id, **kwargs):
+ def delete_ipv6(self, ipv6_id, **kwargs):
"""
- Deletes the specified NAT gateway. The NAT gateway does not have to be disabled, but there
- must not be a route rule that lists the NAT gateway as a target.
+ Unassigns and deletes the specified IPv6. You must specify the object's `OCID`__.
+ The IPv6 address is returned to the subnet's pool of available addresses.
- This is an asynchronous operation. The NAT gateway's `lifecycleState` will change to
- TERMINATING temporarily until the NAT gateway is completely removed.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str nat_gateway_id: (required)
- The NAT gateway's `OCID`__.
+ :param str ipv6_id: (required)
+ The `OCID`__ of the IPv6.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -5791,6 +6241,10 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs):
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
will be updated or deleted only if the etag you provide matches the resource's current etag value.
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -5803,23 +6257,24 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_nat_gateway API.
+ Click `here `__ to see an example of how to use delete_ipv6 API.
"""
- resource_path = "/natGateways/{natGatewayId}"
+ resource_path = "/ipv6/{ipv6Id}"
method = "DELETE"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "if_match"
+ "if_match",
+ "opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "delete_nat_gateway got unknown kwargs: {!r}".format(extra_kwargs))
+ "delete_ipv6 got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "natGatewayId": nat_gateway_id
+ "ipv6Id": ipv6_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -5831,7 +6286,8 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs):
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "if-match": kwargs.get("if_match", missing)
+ "if-match": kwargs.get("if_match", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -5853,12 +6309,173 @@ def delete_nat_gateway(self, nat_gateway_id, **kwargs):
path_params=path_params,
header_params=header_params)
- def delete_network_security_group(self, network_security_group_id, **kwargs):
+ def delete_local_peering_gateway(self, local_peering_gateway_id, **kwargs):
"""
- Deletes the specified network security group. The group must not contain any VNICs.
+ Deletes the specified local peering gateway (LPG).
- To get a list of the VNICs in a network security group, use
- :func:`list_network_security_group_vnics`.
+ This is an asynchronous operation; the local peering gateway's `lifecycleState` changes to TERMINATING temporarily
+ until the local peering gateway is completely removed.
+
+
+ :param str local_peering_gateway_id: (required)
+ The `OCID`__ of the local peering gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use delete_local_peering_gateway API.
+ """
+ resource_path = "/localPeeringGateways/{localPeeringGatewayId}"
+ method = "DELETE"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "delete_local_peering_gateway got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "localPeeringGatewayId": local_peering_gateway_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
+ def delete_nat_gateway(self, nat_gateway_id, **kwargs):
+ """
+ Deletes the specified NAT gateway. The NAT gateway does not have to be disabled, but there
+ must not be a route rule that lists the NAT gateway as a target.
+
+ This is an asynchronous operation. The NAT gateway's `lifecycleState` will change to
+ TERMINATING temporarily until the NAT gateway is completely removed.
+
+
+ :param str nat_gateway_id: (required)
+ The NAT gateway's `OCID`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use delete_nat_gateway API.
+ """
+ resource_path = "/natGateways/{natGatewayId}"
+ method = "DELETE"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "delete_nat_gateway got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "natGatewayId": nat_gateway_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
+ def delete_network_security_group(self, network_security_group_id, **kwargs):
+ """
+ Deletes the specified network security group. The group must not contain any VNICs.
+
+ To get a list of the VNICs in a network security group, use
+ :func:`list_network_security_group_vnics`.
Each returned :class:`NetworkSecurityGroupVnic` object
contains both the OCID of the VNIC and the OCID of the VNIC's parent resource (for example,
the Compute instance that the VNIC is attached to).
@@ -5954,7 +6571,9 @@ def delete_private_ip(self, private_ip_id, **kwargs):
:param str private_ip_id: (required)
- The OCID of the private IP.
+ The `OCID`__ of the private IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -6043,7 +6662,9 @@ def delete_public_ip(self, public_ip_id, **kwargs):
:param str public_ip_id: (required)
- The OCID of the public IP.
+ The `OCID`__ of the public IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -6208,7 +6829,9 @@ def delete_remote_peering_connection(self, remote_peering_connection_id, **kwarg
:param str remote_peering_connection_id: (required)
- The OCID of the remote peering connection (RPC).
+ The `OCID`__ of the remote peering connection (RPC).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -6287,7 +6910,9 @@ def delete_route_table(self, rt_id, **kwargs):
:param str rt_id: (required)
- The OCID of the route table.
+ The `OCID`__ of the route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -6366,7 +6991,9 @@ def delete_security_list(self, security_list_id, **kwargs):
:param str security_list_id: (required)
- The OCID of the security list.
+ The `OCID`__ of the security list.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -6521,7 +7148,9 @@ def delete_subnet(self, subnet_id, **kwargs):
:param str subnet_id: (required)
- The OCID of the subnet.
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -6679,7 +7308,9 @@ def delete_virtual_circuit(self, virtual_circuit_id, **kwargs):
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -6926,22 +7557,44 @@ def detach_service_id(self, service_gateway_id, detach_service_details, **kwargs
body=detach_service_details,
response_type="ServiceGateway")
- def get_byoip_range(self, byoip_range_id, **kwargs):
+ def get_all_drg_attachments(self, drg_id, **kwargs):
"""
- Gets the `ByoipRange` resource. You must specify the `OCID`__.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ Returns a complete list of DRG attachments that belong to a particular DRG.
- :param str byoip_range_id: (required)
- The `OCID`__ of the `ByoipRange` resource containing the BYOIP CIDR block.
+ :param str drg_id: (required)
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
Unique identifier for the request.
If you need to contact Oracle about a particular request, please provide the request ID.
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to return in a paginated
+ \"List\" call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ Example: `50`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
+ call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str attachment_type: (optional)
+ The type for the network resource attached to the DRG.
+
+ Allowed values are: "VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL", "ALL"
+
+ :param bool is_cross_tenancy: (optional)
+ Whether the DRG attachment lives in a different tenancy than the DRG.
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -6950,27 +7603,31 @@ def get_byoip_range(self, byoip_range_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ByoipRange`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgAttachmentInfo`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use get_byoip_range API.
+ Click `here `__ to see an example of how to use get_all_drg_attachments API.
"""
- resource_path = "/byoipRanges/{byoipRangeId}"
- method = "GET"
+ resource_path = "/drgs/{drgId}/actions/getAllDrgAttachments"
+ method = "POST"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "opc_request_id"
+ "opc_request_id",
+ "limit",
+ "page",
+ "attachment_type",
+ "is_cross_tenancy"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "get_byoip_range got unknown kwargs: {!r}".format(extra_kwargs))
+ "get_all_drg_attachments got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "byoipRangeId": byoip_range_id
+ "drgId": drg_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -6979,6 +7636,21 @@ def get_byoip_range(self, byoip_range_id, **kwargs):
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+ if 'attachment_type' in kwargs:
+ attachment_type_allowed_values = ["VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL", "ALL"]
+ if kwargs['attachment_type'] not in attachment_type_allowed_values:
+ raise ValueError(
+ "Invalid value for `attachment_type`, must be one of {0}".format(attachment_type_allowed_values)
+ )
+
+ query_params = {
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "attachmentType": kwargs.get("attachment_type", missing),
+ "isCrossTenancy": kwargs.get("is_cross_tenancy", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
header_params = {
"accept": "application/json",
"content-type": "application/json",
@@ -6996,23 +7668,33 @@ def get_byoip_range(self, byoip_range_id, **kwargs):
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
- response_type="ByoipRange")
+ response_type="list[DrgAttachmentInfo]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
- response_type="ByoipRange")
+ response_type="list[DrgAttachmentInfo]")
- def get_cpe(self, cpe_id, **kwargs):
+ def get_byoip_range(self, byoip_range_id, **kwargs):
"""
- Gets the specified CPE's information.
+ Gets the `ByoipRange` resource. You must specify the `OCID`__.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str cpe_id: (required)
- The OCID of the CPE.
+
+ :param str byoip_range_id: (required)
+ The `OCID`__ of the `ByoipRange` resource containing the BYOIP CIDR block.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7022,23 +7704,27 @@ def get_cpe(self, cpe_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.Cpe`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ByoipRange`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use get_cpe API.
+ Click `here `__ to see an example of how to use get_byoip_range API.
"""
- resource_path = "/cpes/{cpeId}"
+ resource_path = "/byoipRanges/{byoipRangeId}"
method = "GET"
- expected_kwargs = ["retry_strategy"]
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "get_cpe got unknown kwargs: {!r}".format(extra_kwargs))
+ "get_byoip_range got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "cpeId": cpe_id
+ "byoipRangeId": byoip_range_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -7049,8 +7735,10 @@ def get_cpe(self, cpe_id, **kwargs):
header_params = {
"accept": "application/json",
- "content-type": "application/json"
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
}
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -7063,7 +7751,75 @@ def get_cpe(self, cpe_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- response_type="Cpe")
+ response_type="ByoipRange")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="ByoipRange")
+
+ def get_cpe(self, cpe_id, **kwargs):
+ """
+ Gets the specified CPE's information.
+
+
+ :param str cpe_id: (required)
+ The `OCID`__ of the CPE.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.Cpe`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_cpe API.
+ """
+ resource_path = "/cpes/{cpeId}"
+ method = "GET"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_cpe got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "cpeId": cpe_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Cpe")
else:
return self.base_client.call_api(
resource_path=resource_path,
@@ -7095,7 +7851,9 @@ def get_cpe_device_config_content(self, cpe_id, **kwargs):
:param str cpe_id: (required)
- The OCID of the CPE.
+ The `OCID`__ of the CPE.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -7257,7 +8015,9 @@ def get_cross_connect(self, cross_connect_id, **kwargs):
:param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ The `OCID`__ of the cross-connect.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7323,7 +8083,9 @@ def get_cross_connect_group(self, cross_connect_group_id, **kwargs):
:param str cross_connect_group_id: (required)
- The OCID of the cross-connect group.
+ The `OCID`__ of the cross-connect group.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7389,7 +8151,9 @@ def get_cross_connect_letter_of_authority(self, cross_connect_id, **kwargs):
:param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ The `OCID`__ of the cross-connect.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7455,7 +8219,9 @@ def get_cross_connect_status(self, cross_connect_id, **kwargs):
:param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ The `OCID`__ of the cross-connect.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7521,7 +8287,9 @@ def get_dhcp_options(self, dhcp_id, **kwargs):
:param str dhcp_id: (required)
- The OCID for the set of DHCP options.
+ The `OCID`__ for the set of DHCP options.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7587,7 +8355,9 @@ def get_drg(self, drg_id, **kwargs):
:param str drg_id: (required)
- The OCID of the DRG.
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7649,11 +8419,13 @@ def get_drg(self, drg_id, **kwargs):
def get_drg_attachment(self, drg_attachment_id, **kwargs):
"""
- Gets the information for the specified `DrgAttachment`.
+ Gets the `DrgAttachment` resource.
:param str drg_attachment_id: (required)
- The OCID of the DRG attachment.
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7722,7 +8494,9 @@ def get_drg_redundancy_status(self, drg_id, **kwargs):
:param str drg_id: (required)
- The OCID of the DRG.
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -7792,6 +8566,142 @@ def get_drg_redundancy_status(self, drg_id, **kwargs):
header_params=header_params,
response_type="DrgRedundancyStatus")
+ def get_drg_route_distribution(self, drg_route_distribution_id, **kwargs):
+ """
+ Gets the specified route distribution's information.
+
+
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgRouteDistribution`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_drg_route_distribution API.
+ """
+ resource_path = "/drgRouteDistributions/{drgRouteDistributionId}"
+ method = "GET"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_drg_route_distribution got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteDistributionId": drg_route_distribution_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgRouteDistribution")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgRouteDistribution")
+
+ def get_drg_route_table(self, drg_route_table_id, **kwargs):
+ """
+ Gets the specified DRG route table's information.
+
+
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgRouteTable`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_drg_route_table API.
+ """
+ resource_path = "/drgRouteTables/{drgRouteTableId}"
+ method = "GET"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_drg_route_table got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteTableId": drg_route_table_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgRouteTable")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgRouteTable")
+
def get_fast_connect_provider_service(self, provider_service_id, **kwargs):
"""
Gets the specified provider service.
@@ -7801,7 +8711,9 @@ def get_fast_connect_provider_service(self, provider_service_id, **kwargs):
:param str provider_service_id: (required)
- The OCID of the provider service.
+ The `OCID`__ of the provider service.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -7868,7 +8780,9 @@ def get_fast_connect_provider_service_key(self, provider_service_id, provider_se
:param str provider_service_id: (required)
- The OCID of the provider service.
+ The `OCID`__ of the provider service.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str provider_service_key_name: (required)
The provider service key that the provider gives you when you set up a virtual circuit connection
@@ -7941,7 +8855,9 @@ def get_internet_gateway(self, ig_id, **kwargs):
:param str ig_id: (required)
- The OCID of the internet gateway.
+ The `OCID`__ of the internet gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -8009,7 +8925,9 @@ def get_ip_sec_connection(self, ipsc_id, **kwargs):
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -8078,7 +8996,9 @@ def get_ip_sec_connection_device_config(self, ipsc_id, **kwargs):
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -8145,7 +9065,9 @@ def get_ip_sec_connection_device_status(self, ipsc_id, **kwargs):
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -8213,7 +9135,9 @@ def get_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, **kwargs):
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -8286,7 +9210,9 @@ def get_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, **kwarg
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -8376,7 +9302,9 @@ def get_ipsec_cpe_device_config_content(self, ipsc_id, **kwargs):
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -8448,11 +9376,13 @@ def get_ipsec_cpe_device_config_content(self, ipsc_id, **kwargs):
def get_ipv6(self, ipv6_id, **kwargs):
"""
- Gets the specified IPv6. You must specify the object's OCID.
+ Gets the specified IPv6. You must specify the object's `OCID`__.
Alternatively, you can get the object by using
:func:`list_ipv6s`
with the IPv6 address (for example, 2001:0db8:0123:1111:98fe:dcba:9876:4321) and subnet OCID.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
:param str ipv6_id: (required)
The `OCID`__ of the IPv6.
@@ -8533,7 +9463,9 @@ def get_local_peering_gateway(self, local_peering_gateway_id, **kwargs):
:param str local_peering_gateway_id: (required)
- The OCID of the local peering gateway.
+ The `OCID`__ of the local peering gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -8735,16 +9667,47 @@ def get_network_security_group(self, network_security_group_id, **kwargs):
header_params=header_params,
response_type="NetworkSecurityGroup")
- def get_private_ip(self, private_ip_id, **kwargs):
+ def get_networking_topology(self, compartment_id, **kwargs):
"""
- Gets the specified private IP. You must specify the object's OCID.
- Alternatively, you can get the object by using
- :func:`list_private_ips`
- with the private IP address (for example, 10.0.3.3) and subnet OCID.
+ Gets a virtual networking topology for the current region.
- :param str private_ip_id: (required)
- The OCID of the private IP.
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str access_level: (optional)
+ Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`.
+ Setting this to `ACCESSIBLE` returns only compartments for which a
+ user has INSPECT permissions, either directly or indirectly (permissions can be on a
+ resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has
+ indirect INSPECT permissions.
+
+ When set to `ANY` permissions are not checked.
+
+ Allowed values are: "ANY", "ACCESSIBLE"
+
+ :param bool query_compartment_subtree: (optional)
+ When set to true, the hierarchy of compartments is traversed
+ and the specified compartment and its subcompartments are
+ inspected depending on the the setting of `accessLevel`.
+ Default is false.
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str if_none_match: (optional)
+ For querying if there is a cached value on the server. The If-None-Match HTTP request header
+ makes the request conditional. For GET and HEAD methods, the server will send back the requested
+ resource, with a 200 status, only if it doesn't have an ETag matching the given ones.
+ For other methods, the request will be processed only if the eventually existing resource's
+ ETag doesn't match any of the values listed.
+
+ :param str cache_control: (optional)
+ The Cache-Control HTTP header holds directives (instructions)
+ for caching in both requests and responses.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -8754,35 +9717,51 @@ def get_private_ip(self, private_ip_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.PrivateIp`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.NetworkingTopology`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use get_private_ip API.
+ Click `here `__ to see an example of how to use get_networking_topology API.
"""
- resource_path = "/privateIps/{privateIpId}"
+ resource_path = "/networkingTopology"
method = "GET"
- expected_kwargs = ["retry_strategy"]
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "access_level",
+ "query_compartment_subtree",
+ "opc_request_id",
+ "if_none_match",
+ "cache_control"
+ ]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "get_private_ip got unknown kwargs: {!r}".format(extra_kwargs))
+ "get_networking_topology got unknown kwargs: {!r}".format(extra_kwargs))
- path_params = {
- "privateIpId": private_ip_id
- }
-
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+ if 'access_level' in kwargs:
+ access_level_allowed_values = ["ANY", "ACCESSIBLE"]
+ if kwargs['access_level'] not in access_level_allowed_values:
+ raise ValueError(
+ "Invalid value for `access_level`, must be one of {0}".format(access_level_allowed_values)
+ )
- for (k, v) in six.iteritems(path_params):
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+ query_params = {
+ "compartmentId": compartment_id,
+ "accessLevel": kwargs.get("access_level", missing),
+ "queryCompartmentSubtree": kwargs.get("query_compartment_subtree", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
- "content-type": "application/json"
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-none-match": kwargs.get("if_none_match", missing),
+ "cache-control": kwargs.get("cache_control", missing)
}
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -8793,16 +9772,87 @@ def get_private_ip(self, private_ip_id, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
+ query_params=query_params,
header_params=header_params,
- response_type="PrivateIp")
+ response_type="NetworkingTopology")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
+ query_params=query_params,
header_params=header_params,
- response_type="PrivateIp")
+ response_type="NetworkingTopology")
+
+ def get_private_ip(self, private_ip_id, **kwargs):
+ """
+ Gets the specified private IP. You must specify the object's OCID.
+ Alternatively, you can get the object by using
+ :func:`list_private_ips`
+ with the private IP address (for example, 10.0.3.3) and subnet OCID.
+
+
+ :param str private_ip_id: (required)
+ The `OCID`__ of the private IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.PrivateIp`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_private_ip API.
+ """
+ resource_path = "/privateIps/{privateIpId}"
+ method = "GET"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_private_ip got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "privateIpId": private_ip_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="PrivateIp")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="PrivateIp")
def get_public_ip(self, public_ip_id, **kwargs):
"""
@@ -8820,7 +9870,9 @@ def get_public_ip(self, public_ip_id, **kwargs):
:param str public_ip_id: (required)
- The OCID of the public IP.
+ The `OCID`__ of the public IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -9092,7 +10144,9 @@ def get_remote_peering_connection(self, remote_peering_connection_id, **kwargs):
:param str remote_peering_connection_id: (required)
- The OCID of the remote peering connection (RPC).
+ The `OCID`__ of the remote peering connection (RPC).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -9158,7 +10212,9 @@ def get_route_table(self, rt_id, **kwargs):
:param str rt_id: (required)
- The OCID of the route table.
+ The `OCID`__ of the route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -9224,7 +10280,9 @@ def get_security_list(self, security_list_id, **kwargs):
:param str security_list_id: (required)
- The OCID of the security list.
+ The `OCID`__ of the security list.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -9426,7 +10484,9 @@ def get_subnet(self, subnet_id, **kwargs):
:param str subnet_id: (required)
- The OCID of the subnet.
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -9496,7 +10556,9 @@ def get_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, **kwargs):
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -9595,7 +10657,9 @@ def get_tunnel_cpe_device_config_content(self, ipsc_id, tunnel_id, **kwargs):
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -9671,6 +10735,84 @@ def get_tunnel_cpe_device_config_content(self, ipsc_id, tunnel_id, **kwargs):
header_params=header_params,
response_type="stream")
+ def get_upgrade_status(self, drg_id, **kwargs):
+ """
+ Returns the DRG upgrade status. The status can be not updated, in progress, or updated. Also indicates how much of the upgrade is completed.
+
+
+ :param str drg_id: (required)
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.UpgradeStatus`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_upgrade_status API.
+ """
+ resource_path = "/drgs/{drgId}/actions/upgradeStatus"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_upgrade_status got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgId": drg_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="UpgradeStatus")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="UpgradeStatus")
+
def get_vcn(self, vcn_id, **kwargs):
"""
Gets the specified VCN's information.
@@ -9817,13 +10959,137 @@ def get_vcn_dns_resolver_association(self, vcn_id, **kwargs):
header_params=header_params,
response_type="VcnDnsResolverAssociation")
+ def get_vcn_topology(self, compartment_id, vcn_id, **kwargs):
+ """
+ Gets a virtual network topology for a given VCN.
+
+
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str vcn_id: (required)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str access_level: (optional)
+ Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`.
+ Setting this to `ACCESSIBLE` returns only compartments for which a
+ user has INSPECT permissions, either directly or indirectly (permissions can be on a
+ resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has
+ indirect INSPECT permissions.
+
+ When set to `ANY` permissions are not checked.
+
+ Allowed values are: "ANY", "ACCESSIBLE"
+
+ :param bool query_compartment_subtree: (optional)
+ When set to true, the hierarchy of compartments is traversed
+ and the specified compartment and its subcompartments are
+ inspected depending on the the setting of `accessLevel`.
+ Default is false.
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str if_none_match: (optional)
+ For querying if there is a cached value on the server. The If-None-Match HTTP request header
+ makes the request conditional. For GET and HEAD methods, the server will send back the requested
+ resource, with a 200 status, only if it doesn't have an ETag matching the given ones.
+ For other methods, the request will be processed only if the eventually existing resource's
+ ETag doesn't match any of the values listed.
+
+ :param str cache_control: (optional)
+ The Cache-Control HTTP header holds directives (instructions)
+ for caching in both requests and responses.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.VcnTopology`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_vcn_topology API.
+ """
+ resource_path = "/vcnTopology"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "access_level",
+ "query_compartment_subtree",
+ "opc_request_id",
+ "if_none_match",
+ "cache_control"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_vcn_topology got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'access_level' in kwargs:
+ access_level_allowed_values = ["ANY", "ACCESSIBLE"]
+ if kwargs['access_level'] not in access_level_allowed_values:
+ raise ValueError(
+ "Invalid value for `access_level`, must be one of {0}".format(access_level_allowed_values)
+ )
+
+ query_params = {
+ "compartmentId": compartment_id,
+ "accessLevel": kwargs.get("access_level", missing),
+ "queryCompartmentSubtree": kwargs.get("query_compartment_subtree", missing),
+ "vcnId": vcn_id
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-none-match": kwargs.get("if_none_match", missing),
+ "cache-control": kwargs.get("cache_control", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="VcnTopology")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="VcnTopology")
+
def get_virtual_circuit(self, virtual_circuit_id, **kwargs):
"""
Gets the specified virtual circuit's information.
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -9970,7 +11236,9 @@ def get_vnic(self, vnic_id, **kwargs):
:param str vnic_id: (required)
- The OCID of the VNIC.
+ The `OCID`__ of the VNIC.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -10337,7 +11605,7 @@ def list_cpe_device_shapes(self, **kwargs):
If you want to generate CPE configuration content for one of the returned CPE device types,
ensure that the :class:`Cpe` object's `cpeDeviceShapeId` attribute is set
- to the CPE device type's OCID (returned by this operation).
+ to the CPE device type's `OCID`__ (returned by this operation).
For information about generating CPE configuration content, see these operations:
@@ -10345,6 +11613,8 @@ def list_cpe_device_shapes(self, **kwargs):
* :func:`get_ipsec_cpe_device_config_content`
* :func:`get_tunnel_cpe_device_config_content`
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -10743,35 +12013,118 @@ def list_cross_connect_locations(self, compartment_id, **kwargs):
header_params=header_params,
response_type="list[CrossConnectLocation]")
- def list_cross_connects(self, compartment_id, **kwargs):
+ def list_cross_connect_mappings(self, virtual_circuit_id, **kwargs):
"""
- Lists the cross-connects in the specified compartment. You can filter the list
- by specifying the OCID of a cross-connect group.
+ Lists the Cross Connect mapping Details for the specified
+ virtual circuit.
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str virtual_circuit_id: (required)
+ The `OCID`__ of the virtual circuit.
- :param str cross_connect_group_id: (optional)
- The OCID of the cross-connect group.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param int limit: (optional)
- For list pagination. The maximum number of results per page, or items to return in a paginated
- \"List\" call. For important details about how pagination works, see
- `List Pagination`__.
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
- Example: `50`
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
- :param str page: (optional)
- For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
- call. For important details about how pagination works, see
- `List Pagination`__.
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.CrossConnectMappingDetailsCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_cross_connect_mappings API.
+ """
+ resource_path = "/virtualCircuits/{virtualCircuitId}/crossConnectMappings"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_cross_connect_mappings got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "virtualCircuitId": virtual_circuit_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="CrossConnectMappingDetailsCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="CrossConnectMappingDetailsCollection")
+
+ def list_cross_connects(self, compartment_id, **kwargs):
+ """
+ Lists the cross-connects in the specified compartment. You can filter the list
+ by specifying the `OCID`__ of a cross-connect group.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str cross_connect_group_id: (optional)
+ The `OCID`__ of the cross-connect group.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to return in a paginated
+ \"List\" call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ Example: `50`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
+ call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
:param str display_name: (optional)
A filter to return only resources that match the given display name exactly.
@@ -11133,8 +12486,12 @@ def list_dhcp_options(self, compartment_id, **kwargs):
def list_drg_attachments(self, compartment_id, **kwargs):
"""
- Lists the `DrgAttachment` objects for the specified compartment. You can filter the
- results by VCN or DRG.
+ Lists the `DrgAttachment` resource for the specified compartment. You can filter the
+ results by DRG, attached network, attachment type, DRG route table or
+ VCN route table.
+
+ The LIST API lists DRG attachments by attachment type. It will default to list VCN attachments,
+ but you may request to list ALL attachments of ALL types.
:param str compartment_id: (required)
@@ -11148,7 +12505,9 @@ def list_drg_attachments(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param str drg_id: (optional)
- The OCID of the DRG.
+ The `OCID`__ of the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -11166,6 +12525,48 @@ def list_drg_attachments(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ :param str network_id: (optional)
+ The `OCID`__ of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str attachment_type: (optional)
+ The type for the network resource attached to the DRG.
+
+ Allowed values are: "VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL", "ALL"
+
+ :param str drg_route_table_id: (optional)
+ The `OCID`__ of the DRG route table assigned to the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
+
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
+
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
+
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ A filter to return only resources that match the specified lifecycle
+ state. The value is case insensitive.
+
+ Allowed values are: "ATTACHING", "ATTACHED", "DETACHING", "DETACHED"
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -11189,19 +12590,61 @@ def list_drg_attachments(self, compartment_id, **kwargs):
"vcn_id",
"drg_id",
"limit",
- "page"
+ "page",
+ "network_id",
+ "attachment_type",
+ "drg_route_table_id",
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
"list_drg_attachments got unknown kwargs: {!r}".format(extra_kwargs))
+ if 'attachment_type' in kwargs:
+ attachment_type_allowed_values = ["VCN", "VIRTUAL_CIRCUIT", "REMOTE_PEERING_CONNECTION", "IPSEC_TUNNEL", "ALL"]
+ if kwargs['attachment_type'] not in attachment_type_allowed_values:
+ raise ValueError(
+ "Invalid value for `attachment_type`, must be one of {0}".format(attachment_type_allowed_values)
+ )
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["ATTACHING", "ATTACHED", "DETACHING", "DETACHED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
+
query_params = {
"compartmentId": compartment_id,
"vcnId": kwargs.get("vcn_id", missing),
"drgId": kwargs.get("drg_id", missing),
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing)
+ "page": kwargs.get("page", missing),
+ "networkId": kwargs.get("network_id", missing),
+ "attachmentType": kwargs.get("attachment_type", missing),
+ "drgRouteTableId": kwargs.get("drg_route_table_id", missing),
+ "displayName": kwargs.get("display_name", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -11230,13 +12673,13 @@ def list_drg_attachments(self, compartment_id, **kwargs):
header_params=header_params,
response_type="list[DrgAttachment]")
- def list_drgs(self, compartment_id, **kwargs):
+ def list_drg_route_distribution_statements(self, drg_route_distribution_id, **kwargs):
"""
- Lists the DRGs in the specified compartment.
+ Lists the statements for the specified route distribution.
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -11256,6 +12699,17 @@ def list_drgs(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ :param str sort_by: (optional)
+ The field to sort by.
+
+ Allowed values are: "TIMECREATED"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -11264,30 +12718,57 @@ def list_drgs(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Drg`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteDistributionStatement`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_drgs API.
+ Click `here `__ to see an example of how to use list_drg_route_distribution_statements API.
"""
- resource_path = "/drgs"
+ resource_path = "/drgRouteDistributions/{drgRouteDistributionId}/drgRouteDistributionStatements"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
"limit",
- "page"
+ "page",
+ "sort_by",
+ "sort_order"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_drgs got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_drg_route_distribution_statements got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteDistributionId": drg_route_distribution_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
query_params = {
- "compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing)
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -11305,32 +12786,29 @@ def list_drgs(self, compartment_id, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[Drg]")
+ response_type="list[DrgRouteDistributionStatement]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[Drg]")
+ response_type="list[DrgRouteDistributionStatement]")
- def list_fast_connect_provider_services(self, compartment_id, **kwargs):
+ def list_drg_route_distributions(self, drg_id, **kwargs):
"""
- Lists the service offerings from supported providers. You need this
- information so you can specify your desired provider and service
- offering when you create a virtual circuit.
-
- For the compartment ID, provide the OCID of your tenancy (the root compartment).
-
- For more information, see `FastConnect Overview`__.
+ Lists the route distributions in the specified DRG.
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm
+ To retrieve the statements in a distribution, use the
+ ListDrgRouteDistributionStatements operation.
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
+ :param str drg_id: (required)
+ The `OCID`__ of the DRG.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -11350,6 +12828,33 @@ def list_fast_connect_provider_services(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
+
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
+
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
+
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ A filter that only returns resources that match the specified lifecycle
+ state. The value is case insensitive.
+
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -11358,30 +12863,59 @@ def list_fast_connect_provider_services(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.FastConnectProviderService`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteDistribution`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_fast_connect_provider_services API.
+ Click `here `__ to see an example of how to use list_drg_route_distributions API.
"""
- resource_path = "/fastConnectProviderServices"
+ resource_path = "/drgRouteDistributions"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
"limit",
- "page"
+ "page",
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_fast_connect_provider_services got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_drg_route_distributions got unknown kwargs: {!r}".format(extra_kwargs))
- query_params = {
- "compartmentId": compartment_id,
- "limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing)
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
+
+ query_params = {
+ "drgId": drg_id,
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "displayName": kwargs.get("display_name", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -11401,27 +12935,24 @@ def list_fast_connect_provider_services(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[FastConnectProviderService]")
+ response_type="list[DrgRouteDistribution]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[FastConnectProviderService]")
+ response_type="list[DrgRouteDistribution]")
- def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_service_id, **kwargs):
+ def list_drg_route_rules(self, drg_route_table_id, **kwargs):
"""
- Gets the list of available virtual circuit bandwidth levels for a provider.
- You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit.
-
- For more information about virtual circuits, see `FastConnect Overview`__.
+ Lists the route rules in the specified DRG route table.
- __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
- :param str provider_service_id: (required)
- The OCID of the provider service.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -11439,6 +12970,12 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ :param str route_type: (optional)
+ Static routes are specified through the DRG route table API.
+ Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols.
+
+ Allowed values are: "STATIC", "DYNAMIC"
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -11447,28 +12984,29 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuitBandwidthShape`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteRule`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_fast_connect_provider_virtual_circuit_bandwidth_shapes API.
+ Click `here `__ to see an example of how to use list_drg_route_rules API.
"""
- resource_path = "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes"
+ resource_path = "/drgRouteTables/{drgRouteTableId}/drgRouteRules"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
"limit",
- "page"
+ "page",
+ "route_type"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_fast_connect_provider_virtual_circuit_bandwidth_shapes got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_drg_route_rules got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "providerServiceId": provider_service_id
+ "drgRouteTableId": drg_route_table_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11477,9 +13015,17 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+ if 'route_type' in kwargs:
+ route_type_allowed_values = ["STATIC", "DYNAMIC"]
+ if kwargs['route_type'] not in route_type_allowed_values:
+ raise ValueError(
+ "Invalid value for `route_type`, must be one of {0}".format(route_type_allowed_values)
+ )
+
query_params = {
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing)
+ "page": kwargs.get("page", missing),
+ "routeType": kwargs.get("route_type", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -11500,7 +13046,7 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s
path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuitBandwidthShape]")
+ response_type="list[DrgRouteRule]")
else:
return self.base_client.call_api(
resource_path=resource_path,
@@ -11508,21 +13054,17 @@ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_s
path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuitBandwidthShape]")
+ response_type="list[DrgRouteRule]")
- def list_internet_gateways(self, compartment_id, **kwargs):
+ def list_drg_route_tables(self, drg_id, **kwargs):
"""
- Lists the internet gateways in the specified VCN and the specified compartment.
- If the VCN ID is not provided, then the list includes the internet gateways from all VCNs in the specified compartment.
-
+ Lists the DRG route tables for the specified DRG.
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
+ Use the `ListDrgRouteRules` operation to retrieve the route rules in a table.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str vcn_id: (optional)
- The `OCID`__ of the VCN.
+ :param str drg_id: (required)
+ The `OCID`__ of the DRG.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -11563,9 +13105,14 @@ def list_internet_gateways(self, compartment_id, **kwargs):
Allowed values are: "ASC", "DESC"
+ :param str import_drg_route_distribution_id: (optional)
+ The `OCID`__ of the import route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
:param str lifecycle_state: (optional)
- A filter to only return resources that match the given lifecycle
- state. The state value is case-insensitive.
+ A filter that only returns matches for the specified lifecycle
+ state. The value is case insensitive.
Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
@@ -11577,30 +13124,30 @@ def list_internet_gateways(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.InternetGateway`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteTable`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_internet_gateways API.
+ Click `here `__ to see an example of how to use list_drg_route_tables API.
"""
- resource_path = "/internetGateways"
+ resource_path = "/drgRouteTables"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "vcn_id",
"limit",
"page",
"display_name",
"sort_by",
"sort_order",
+ "import_drg_route_distribution_id",
"lifecycle_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_internet_gateways got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_drg_route_tables got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_by' in kwargs:
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
@@ -11624,13 +13171,13 @@ def list_internet_gateways(self, compartment_id, **kwargs):
)
query_params = {
- "compartmentId": compartment_id,
- "vcnId": kwargs.get("vcn_id", missing),
+ "drgId": drg_id,
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
"displayName": kwargs.get("display_name", missing),
"sortBy": kwargs.get("sort_by", missing),
"sortOrder": kwargs.get("sort_order", missing),
+ "importDrgRouteDistributionId": kwargs.get("import_drg_route_distribution_id", missing),
"lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -11651,22 +13198,24 @@ def list_internet_gateways(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[InternetGateway]")
+ response_type="list[DrgRouteTable]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[InternetGateway]")
+ response_type="list[DrgRouteTable]")
- def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs):
+ def list_drgs(self, compartment_id, **kwargs):
"""
- Lists the tunnel information for the specified IPSec connection.
+ Lists the DRGs in the specified compartment.
- :param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -11692,13 +13241,13 @@ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.IPSecConnectionTunnel`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Drg`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_ip_sec_connection_tunnels API.
+ Click `here `__ to see an example of how to use list_drgs API.
"""
- resource_path = "/ipsecConnections/{ipscId}/tunnels"
+ resource_path = "/drgs"
method = "GET"
# Don't accept unknown kwargs
@@ -11710,19 +13259,10 @@ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_ip_sec_connection_tunnels got unknown kwargs: {!r}".format(extra_kwargs))
-
- path_params = {
- "ipscId": ipsc_id
- }
-
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
-
- for (k, v) in six.iteritems(path_params):
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+ "list_drgs got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
+ "compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing)
}
@@ -11742,23 +13282,29 @@ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[IPSecConnectionTunnel]")
+ response_type="list[Drg]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[IPSecConnectionTunnel]")
+ response_type="list[Drg]")
- def list_ip_sec_connections(self, compartment_id, **kwargs):
+ def list_fast_connect_provider_services(self, compartment_id, **kwargs):
"""
- Lists the IPSec connections for the specified compartment. You can filter the
- results by DRG or CPE.
+ Lists the service offerings from supported providers. You need this
+ information so you can specify your desired provider and service
+ offering when you create a virtual circuit.
+
+ For the compartment ID, provide the `OCID`__ of your tenancy (the root compartment).
+
+ For more information, see `FastConnect Overview`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm
:param str compartment_id: (required)
@@ -11766,12 +13312,6 @@ def list_ip_sec_connections(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str drg_id: (optional)
- The OCID of the DRG.
-
- :param str cpe_id: (optional)
- The OCID of the CPE.
-
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
\"List\" call. For important details about how pagination works, see
@@ -11796,32 +13336,28 @@ def list_ip_sec_connections(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.IPSecConnection`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.FastConnectProviderService`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_ip_sec_connections API.
+ Click `here `__ to see an example of how to use list_fast_connect_provider_services API.
"""
- resource_path = "/ipsecConnections"
+ resource_path = "/fastConnectProviderServices"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "drg_id",
- "cpe_id",
"limit",
"page"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_ip_sec_connections got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_fast_connect_provider_services got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
"compartmentId": compartment_id,
- "drgId": kwargs.get("drg_id", missing),
- "cpeId": kwargs.get("cpe_id", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing)
}
@@ -11843,26 +13379,29 @@ def list_ip_sec_connections(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[IPSecConnection]")
+ response_type="list[FastConnectProviderService]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[IPSecConnection]")
+ response_type="list[FastConnectProviderService]")
- def list_ipv6s(self, **kwargs):
+ def list_fast_connect_provider_virtual_circuit_bandwidth_shapes(self, provider_service_id, **kwargs):
"""
- Lists the :class:`Ipv6` objects based
- on one of these filters:
+ Gets the list of available virtual circuit bandwidth levels for a provider.
+ You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit.
+
+ For more information about virtual circuits, see `FastConnect Overview`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm
- * Subnet OCID.
- * VNIC OCID.
- * Both IPv6 address and subnet OCID: This lets you get an `Ipv6` object based on its private
- IPv6 address (for example, 2001:0db8:0123:1111:abcd:ef01:2345:6789) and not its OCID. For comparison,
- :func:`get_ipv6` requires the OCID.
+ :param str provider_service_id: (required)
+ The `OCID`__ of the provider service.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -11880,20 +13419,6 @@ def list_ipv6s(self, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str ip_address: (optional)
- An IP address. This could be either IPv4 or IPv6, depending on the resource.
- Example: `10.0.3.3`
-
- :param str subnet_id: (optional)
- The OCID of the subnet.
-
- :param str vnic_id: (optional)
- The OCID of the VNIC.
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
- If you need to contact Oracle about a particular request, please provide the request ID.
-
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -11902,45 +13427,46 @@ def list_ipv6s(self, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Ipv6`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuitBandwidthShape`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_ipv6s API.
+ Click `here `__ to see an example of how to use list_fast_connect_provider_virtual_circuit_bandwidth_shapes API.
"""
- resource_path = "/ipv6"
+ resource_path = "/fastConnectProviderServices/{providerServiceId}/virtualCircuitBandwidthShapes"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
"limit",
- "page",
- "ip_address",
- "subnet_id",
- "vnic_id",
- "opc_request_id"
+ "page"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_ipv6s got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_fast_connect_provider_virtual_circuit_bandwidth_shapes got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "providerServiceId": provider_service_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing),
- "ipAddress": kwargs.get("ip_address", missing),
- "subnetId": kwargs.get("subnet_id", missing),
- "vnicId": kwargs.get("vnic_id", missing)
+ "page": kwargs.get("page", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
- "content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", missing)
+ "content-type": "application/json"
}
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -11951,21 +13477,23 @@ def list_ipv6s(self, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[Ipv6]")
+ response_type="list[VirtualCircuitBandwidthShape]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[Ipv6]")
+ response_type="list[VirtualCircuitBandwidthShape]")
- def list_local_peering_gateways(self, compartment_id, **kwargs):
+ def list_internet_gateways(self, compartment_id, **kwargs):
"""
- Lists the local peering gateways (LPGs) for the specified VCN and specified compartment.
- If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
+ Lists the internet gateways in the specified VCN and the specified compartment.
+ If the VCN ID is not provided, then the list includes the internet gateways from all VCNs in the specified compartment.
:param str compartment_id: (required)
@@ -11973,6 +13501,11 @@ def list_local_peering_gateways(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str vcn_id: (optional)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
\"List\" call. For important details about how pagination works, see
@@ -11989,10 +13522,32 @@ def list_local_peering_gateways(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str vcn_id: (optional)
- The `OCID`__ of the VCN.
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
+
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
+
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ A filter to only return resources that match the given lifecycle
+ state. The state value is case-insensitive.
+
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -12002,32 +13557,61 @@ def list_local_peering_gateways(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.LocalPeeringGateway`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.InternetGateway`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_local_peering_gateways API.
+ Click `here `__ to see an example of how to use list_internet_gateways API.
"""
- resource_path = "/localPeeringGateways"
+ resource_path = "/internetGateways"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
+ "vcn_id",
"limit",
"page",
- "vcn_id"
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_local_peering_gateways got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_internet_gateways got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
query_params = {
"compartmentId": compartment_id,
+ "vcnId": kwargs.get("vcn_id", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "vcnId": kwargs.get("vcn_id", missing)
+ "displayName": kwargs.get("display_name", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -12047,30 +13631,24 @@ def list_local_peering_gateways(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[LocalPeeringGateway]")
+ response_type="list[InternetGateway]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[LocalPeeringGateway]")
+ response_type="list[InternetGateway]")
- def list_nat_gateways(self, compartment_id, **kwargs):
+ def list_ip_sec_connection_tunnels(self, ipsc_id, **kwargs):
"""
- Lists the NAT gateways in the specified compartment. You may optionally specify a VCN OCID
- to filter the results by VCN.
-
-
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
+ Lists the tunnel information for the specified IPSec connection.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str vcn_id: (optional)
- The `OCID`__ of the VCN.
+ :param str ipsc_id: (required)
+ The `OCID`__ of the IPSec connection.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -12088,33 +13666,6 @@ def list_nat_gateways(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str display_name: (optional)
- A filter to return only resources that match the given display name exactly.
-
- :param str sort_by: (optional)
- The field to sort by. You can provide one sort order (`sortOrder`). Default order for
- TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
- sort order is case sensitive.
-
- **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
- optionally filter by availability domain if the scope of the resource type is within a
- single availability domain. If you call one of these \"List\" operations without specifying
- an availability domain, the resources are grouped by availability domain, then sorted.
-
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
-
- :param str sort_order: (optional)
- The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
- is case sensitive.
-
- Allowed values are: "ASC", "DESC"
-
- :param str lifecycle_state: (optional)
- A filter to return only resources that match the specified lifecycle
- state. The value is case insensitive.
-
- Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
-
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -12123,61 +13674,39 @@ def list_nat_gateways(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.NatGateway`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.IPSecConnectionTunnel`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_nat_gateways API.
+ Click `here `__ to see an example of how to use list_ip_sec_connection_tunnels API.
"""
- resource_path = "/natGateways"
+ resource_path = "/ipsecConnections/{ipscId}/tunnels"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "vcn_id",
"limit",
- "page",
- "display_name",
- "sort_by",
- "sort_order",
- "lifecycle_state"
+ "page"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_nat_gateways got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_ip_sec_connection_tunnels got unknown kwargs: {!r}".format(extra_kwargs))
- if 'sort_by' in kwargs:
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
- if kwargs['sort_by'] not in sort_by_allowed_values:
- raise ValueError(
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
- )
+ path_params = {
+ "ipscId": ipsc_id
+ }
- if 'sort_order' in kwargs:
- sort_order_allowed_values = ["ASC", "DESC"]
- if kwargs['sort_order'] not in sort_order_allowed_values:
- raise ValueError(
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
- )
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
- if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
- raise ValueError(
- "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
- )
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
query_params = {
- "compartmentId": compartment_id,
- "vcnId": kwargs.get("vcn_id", missing),
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing),
- "displayName": kwargs.get("display_name", missing),
- "sortBy": kwargs.get("sort_by", missing),
- "sortOrder": kwargs.get("sort_order", missing),
- "lifecycleState": kwargs.get("lifecycle_state", missing)
+ "page": kwargs.get("page", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -12195,32 +13724,39 @@ def list_nat_gateways(self, compartment_id, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[NatGateway]")
+ response_type="list[IPSecConnectionTunnel]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[NatGateway]")
+ response_type="list[IPSecConnectionTunnel]")
- def list_network_security_group_security_rules(self, network_security_group_id, **kwargs):
+ def list_ip_sec_connections(self, compartment_id, **kwargs):
"""
- Lists the security rules in the specified network security group.
+ Lists the IPSec connections for the specified compartment. You can filter the
+ results by DRG or CPE.
- :param str network_security_group_id: (required)
- The `OCID`__ of the network security group.
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str direction: (optional)
- Direction of the security rule. Set to `EGRESS` for rules that allow outbound IP packets,
- or `INGRESS` for rules that allow inbound IP packets.
+ :param str drg_id: (optional)
+ The `OCID`__ of the DRG.
- Allowed values are: "EGRESS", "INGRESS"
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str cpe_id: (optional)
+ The `OCID`__ of the CPE.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -12238,17 +13774,6 @@ def list_network_security_group_security_rules(self, network_security_group_id,
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str sort_by: (optional)
- The field to sort by.
-
- Allowed values are: "TIMECREATED"
-
- :param str sort_order: (optional)
- The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
- is case sensitive.
-
- Allowed values are: "ASC", "DESC"
-
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -12257,66 +13782,34 @@ def list_network_security_group_security_rules(self, network_security_group_id,
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.SecurityRule`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.IPSecConnection`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_network_security_group_security_rules API.
+ Click `here `__ to see an example of how to use list_ip_sec_connections API.
"""
- resource_path = "/networkSecurityGroups/{networkSecurityGroupId}/securityRules"
+ resource_path = "/ipsecConnections"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "direction",
+ "drg_id",
+ "cpe_id",
"limit",
- "page",
- "sort_by",
- "sort_order"
+ "page"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_network_security_group_security_rules got unknown kwargs: {!r}".format(extra_kwargs))
-
- path_params = {
- "networkSecurityGroupId": network_security_group_id
- }
-
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
-
- for (k, v) in six.iteritems(path_params):
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
-
- if 'direction' in kwargs:
- direction_allowed_values = ["EGRESS", "INGRESS"]
- if kwargs['direction'] not in direction_allowed_values:
- raise ValueError(
- "Invalid value for `direction`, must be one of {0}".format(direction_allowed_values)
- )
-
- if 'sort_by' in kwargs:
- sort_by_allowed_values = ["TIMECREATED"]
- if kwargs['sort_by'] not in sort_by_allowed_values:
- raise ValueError(
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
- )
-
- if 'sort_order' in kwargs:
- sort_order_allowed_values = ["ASC", "DESC"]
- if kwargs['sort_order'] not in sort_order_allowed_values:
- raise ValueError(
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
- )
+ "list_ip_sec_connections got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
- "direction": kwargs.get("direction", missing),
+ "compartmentId": compartment_id,
+ "drgId": kwargs.get("drg_id", missing),
+ "cpeId": kwargs.get("cpe_id", missing),
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing),
- "sortBy": kwargs.get("sort_by", missing),
- "sortOrder": kwargs.get("sort_order", missing)
+ "page": kwargs.get("page", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -12334,28 +13827,28 @@ def list_network_security_group_security_rules(self, network_security_group_id,
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[SecurityRule]")
+ response_type="list[IPSecConnection]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[SecurityRule]")
+ response_type="list[IPSecConnection]")
- def list_network_security_group_vnics(self, network_security_group_id, **kwargs):
+ def list_ipv6s(self, **kwargs):
"""
- Lists the VNICs in the specified network security group.
-
+ Lists the :class:`Ipv6` objects based
+ on one of these filters:
- :param str network_security_group_id: (required)
- The `OCID`__ of the network security group.
+ * Subnet OCID.
+ * VNIC OCID.
+ * Both IPv6 address and subnet OCID: This lets you get an `Ipv6` object based on its private
+ IPv6 address (for example, 2001:0db8:0123:1111:abcd:ef01:2345:6789) and not its OCID. For comparison,
+ :func:`get_ipv6` requires the OCID.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -12373,32 +13866,37 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs)
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str sort_by: (optional)
- The field to sort by.
-
- Allowed values are: "TIMEASSOCIATED"
+ :param str ip_address: (optional)
+ An IP address. This could be either IPv4 or IPv6, depending on the resource.
+ Example: `10.0.3.3`
- :param str sort_order: (optional)
- The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
- is case sensitive.
+ :param str subnet_id: (optional)
+ The `OCID`__ of the subnet.
- Allowed values are: "ASC", "DESC"
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param obj retry_strategy: (optional)
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+ :param str vnic_id: (optional)
+ The OCID of the VNIC.
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
is also available. The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.NetworkSecurityGroupVnic`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Ipv6`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_network_security_group_vnics API.
+ Click `here `__ to see an example of how to use list_ipv6s API.
"""
- resource_path = "/networkSecurityGroups/{networkSecurityGroupId}/vnics"
+ resource_path = "/ipv6"
method = "GET"
# Don't accept unknown kwargs
@@ -12406,43 +13904,118 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs)
"retry_strategy",
"limit",
"page",
- "sort_by",
- "sort_order"
+ "ip_address",
+ "subnet_id",
+ "vnic_id",
+ "opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_network_security_group_vnics got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_ipv6s got unknown kwargs: {!r}".format(extra_kwargs))
- path_params = {
- "networkSecurityGroupId": network_security_group_id
+ query_params = {
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "ipAddress": kwargs.get("ip_address", missing),
+ "subnetId": kwargs.get("subnet_id", missing),
+ "vnicId": kwargs.get("vnic_id", missing)
}
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
- for (k, v) in six.iteritems(path_params):
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
- if 'sort_by' in kwargs:
- sort_by_allowed_values = ["TIMEASSOCIATED"]
- if kwargs['sort_by'] not in sort_by_allowed_values:
- raise ValueError(
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
- )
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[Ipv6]")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[Ipv6]")
- if 'sort_order' in kwargs:
- sort_order_allowed_values = ["ASC", "DESC"]
- if kwargs['sort_order'] not in sort_order_allowed_values:
- raise ValueError(
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
- )
+ def list_local_peering_gateways(self, compartment_id, **kwargs):
+ """
+ Lists the local peering gateways (LPGs) for the specified VCN and specified compartment.
+ If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
+
+
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to return in a paginated
+ \"List\" call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ Example: `50`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
+ call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str vcn_id: (optional)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.LocalPeeringGateway`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_local_peering_gateways API.
+ """
+ resource_path = "/localPeeringGateways"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "vcn_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_local_peering_gateways got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
+ "compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "sortBy": kwargs.get("sort_by", missing),
- "sortOrder": kwargs.get("sort_order", missing)
+ "vcnId": kwargs.get("vcn_id", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -12460,22 +14033,21 @@ def list_network_security_group_vnics(self, network_security_group_id, **kwargs)
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[NetworkSecurityGroupVnic]")
+ response_type="list[LocalPeeringGateway]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[NetworkSecurityGroupVnic]")
+ response_type="list[LocalPeeringGateway]")
- def list_network_security_groups(self, compartment_id, **kwargs):
+ def list_nat_gateways(self, compartment_id, **kwargs):
"""
- Lists the network security groups in the specified compartment.
+ Lists the NAT gateways in the specified compartment. You may optionally specify a VCN OCID
+ to filter the results by VCN.
:param str compartment_id: (required)
@@ -12539,13 +14111,13 @@ def list_network_security_groups(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.NetworkSecurityGroup`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.NatGateway`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_network_security_groups API.
+ Click `here `__ to see an example of how to use list_nat_gateways API.
"""
- resource_path = "/networkSecurityGroups"
+ resource_path = "/natGateways"
method = "GET"
# Don't accept unknown kwargs
@@ -12562,7 +14134,7 @@ def list_network_security_groups(self, compartment_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_network_security_groups got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_nat_gateways got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_by' in kwargs:
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
@@ -12613,34 +14185,30 @@ def list_network_security_groups(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[NetworkSecurityGroup]")
+ response_type="list[NatGateway]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[NetworkSecurityGroup]")
+ response_type="list[NatGateway]")
- def list_private_ips(self, **kwargs):
+ def list_network_security_group_security_rules(self, network_security_group_id, **kwargs):
"""
- Lists the :class:`PrivateIp` objects based
- on one of these filters:
+ Lists the security rules in the specified network security group.
- - Subnet OCID.
- - VNIC OCID.
- - Both private IP address and subnet OCID: This lets
- you get a `privateIP` object based on its private IP
- address (for example, 10.0.3.3) and not its OCID. For comparison,
- :func:`get_private_ip`
- requires the OCID.
- If you're listing all the private IPs associated with a given subnet
- or VNIC, the response includes both primary and secondary private IPs.
+ :param str network_security_group_id: (required)
+ The `OCID`__ of the network security group.
- If you are an Oracle Cloud VMware Solution customer and have VLANs
- in your VCN, you can filter the list by VLAN OCID. See :class:`Vlan`.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str direction: (optional)
+ Direction of the security rule. Set to `EGRESS` for rules that allow outbound IP packets,
+ or `INGRESS` for rules that allow inbound IP packets.
+
+ Allowed values are: "EGRESS", "INGRESS"
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -12658,20 +14226,16 @@ def list_private_ips(self, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str ip_address: (optional)
- An IP address. This could be either IPv4 or IPv6, depending on the resource.
- Example: `10.0.3.3`
-
- :param str subnet_id: (optional)
- The OCID of the subnet.
+ :param str sort_by: (optional)
+ The field to sort by.
- :param str vnic_id: (optional)
- The OCID of the VNIC.
+ Allowed values are: "TIMECREATED"
- :param str vlan_id: (optional)
- The `OCID`__ of the VLAN.
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ Allowed values are: "ASC", "DESC"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -12681,37 +14245,66 @@ def list_private_ips(self, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.PrivateIp`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.SecurityRule`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_private_ips API.
+ Click `here `__ to see an example of how to use list_network_security_group_security_rules API.
"""
- resource_path = "/privateIps"
+ resource_path = "/networkSecurityGroups/{networkSecurityGroupId}/securityRules"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
+ "direction",
"limit",
"page",
- "ip_address",
- "subnet_id",
- "vnic_id",
- "vlan_id"
+ "sort_by",
+ "sort_order"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_private_ips got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_network_security_group_security_rules got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "networkSecurityGroupId": network_security_group_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ if 'direction' in kwargs:
+ direction_allowed_values = ["EGRESS", "INGRESS"]
+ if kwargs['direction'] not in direction_allowed_values:
+ raise ValueError(
+ "Invalid value for `direction`, must be one of {0}".format(direction_allowed_values)
+ )
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
query_params = {
+ "direction": kwargs.get("direction", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "ipAddress": kwargs.get("ip_address", missing),
- "subnetId": kwargs.get("subnet_id", missing),
- "vnicId": kwargs.get("vnic_id", missing),
- "vlanId": kwargs.get("vlan_id", missing)
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -12729,32 +14322,29 @@ def list_private_ips(self, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[PrivateIp]")
+ response_type="list[SecurityRule]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[PrivateIp]")
+ response_type="list[SecurityRule]")
- def list_public_ip_pools(self, compartment_id, **kwargs):
+ def list_network_security_group_vnics(self, network_security_group_id, **kwargs):
"""
- Lists the public IP pools in the specified compartment.
- You can filter the list using query parameters.
+ Lists the VNICs in the specified network security group.
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
+ :param str network_security_group_id: (required)
+ The `OCID`__ of the network security group.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str opc_request_id: (optional)
- Unique identifier for the request.
- If you need to contact Oracle about a particular request, please provide the request ID.
-
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
\"List\" call. For important details about how pagination works, see
@@ -12771,23 +14361,10 @@ def list_public_ip_pools(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str display_name: (optional)
- A filter to return only resources that match the given display name exactly.
-
- :param str byoip_range_id: (optional)
- A filter to return only resources that match the given BYOIP CIDR block.
-
:param str sort_by: (optional)
- The field to sort by. You can provide one sort order (`sortOrder`). Default order for
- TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
- sort order is case sensitive.
-
- **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
- optionally filter by availability domain if the scope of the resource type is within a
- single availability domain. If you call one of these \"List\" operations without specifying
- an availability domain, the resources are grouped by availability domain, then sorted.
+ The field to sort by.
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
+ Allowed values are: "TIMEASSOCIATED"
:param str sort_order: (optional)
The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
@@ -12803,33 +14380,40 @@ def list_public_ip_pools(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.PublicIpPoolCollection`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.NetworkSecurityGroupVnic`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_public_ip_pools API.
+ Click `here `__ to see an example of how to use list_network_security_group_vnics API.
"""
- resource_path = "/publicIpPools"
+ resource_path = "/networkSecurityGroups/{networkSecurityGroupId}/vnics"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "opc_request_id",
"limit",
"page",
- "display_name",
- "byoip_range_id",
"sort_by",
"sort_order"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_public_ip_pools got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_network_security_group_vnics got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "networkSecurityGroupId": network_security_group_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
if 'sort_by' in kwargs:
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ sort_by_allowed_values = ["TIMEASSOCIATED"]
if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
"Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
@@ -12845,20 +14429,15 @@ def list_public_ip_pools(self, compartment_id, **kwargs):
query_params = {
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "displayName": kwargs.get("display_name", missing),
- "byoipRangeId": kwargs.get("byoip_range_id", missing),
"sortBy": kwargs.get("sort_by", missing),
- "sortOrder": kwargs.get("sort_order", missing),
- "compartmentId": compartment_id
+ "sortOrder": kwargs.get("sort_order", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
- "content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", missing)
+ "content-type": "application/json"
}
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -12869,60 +14448,34 @@ def list_public_ip_pools(self, compartment_id, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="PublicIpPoolCollection")
+ response_type="list[NetworkSecurityGroupVnic]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="PublicIpPoolCollection")
+ response_type="list[NetworkSecurityGroupVnic]")
- def list_public_ips(self, scope, compartment_id, **kwargs):
+ def list_network_security_groups(self, compartment_id, **kwargs):
"""
- Lists the :class:`PublicIp` objects
- in the specified compartment. You can filter the list by using query parameters.
-
- To list your reserved public IPs:
- * Set `scope` = `REGION` (required)
- * Leave the `availabilityDomain` parameter empty
- * Set `lifetime` = `RESERVED`
-
- To list the ephemeral public IPs assigned to a regional entity such as a NAT gateway:
- * Set `scope` = `REGION` (required)
- * Leave the `availabilityDomain` parameter empty
- * Set `lifetime` = `EPHEMERAL`
-
- To list the ephemeral public IPs assigned to private IPs:
- * Set `scope` = `AVAILABILITY_DOMAIN` (required)
- * Set the `availabilityDomain` parameter to the desired availability domain (required)
- * Set `lifetime` = `EPHEMERAL`
-
- **Note:** An ephemeral public IP assigned to a private IP
- is always in the same availability domain and compartment as the private IP.
-
-
- :param str scope: (required)
- Whether the public IP is regional or specific to a particular availability domain.
-
- * `REGION`: The public IP exists within a region and is assigned to a regional entity
- (such as a :class:`NatGateway`), or can be assigned to a private IP
- in any availability domain in the region. Reserved public IPs have `scope` = `REGION`, as do
- ephemeral public IPs assigned to a regional entity.
-
- * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity
- it's assigned to, which is specified by the `availabilityDomain` property of the public IP object.
- Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`.
+ Lists the network security groups in the specified compartment.
- Allowed values are: "REGION", "AVAILABILITY_DOMAIN"
:param str compartment_id: (required)
The `OCID`__ of the compartment.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str vcn_id: (optional)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
\"List\" call. For important details about how pagination works, see
@@ -12939,18 +14492,32 @@ def list_public_ips(self, scope, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str availability_domain: (optional)
- The name of the availability domain.
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
- Example: `Uocm:PHX-AD-1`
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
- :param str lifetime: (optional)
- A filter to return only public IPs that match given lifetime.
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
- Allowed values are: "EPHEMERAL", "RESERVED"
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
- :param str public_ip_pool_id: (optional)
- A filter to return only resources that belong to the given public IP pool.
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ A filter to return only resources that match the specified lifecycle
+ state. The value is case insensitive.
+
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -12960,50 +14527,61 @@ def list_public_ips(self, scope, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.PublicIp`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.NetworkSecurityGroup`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_public_ips API.
+ Click `here `__ to see an example of how to use list_network_security_groups API.
"""
- resource_path = "/publicIps"
+ resource_path = "/networkSecurityGroups"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
+ "vcn_id",
"limit",
"page",
- "availability_domain",
- "lifetime",
- "public_ip_pool_id"
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_public_ips got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_network_security_groups got unknown kwargs: {!r}".format(extra_kwargs))
- scope_allowed_values = ["REGION", "AVAILABILITY_DOMAIN"]
- if scope not in scope_allowed_values:
- raise ValueError(
- "Invalid value for `scope`, must be one of {0}".format(scope_allowed_values)
- )
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
- if 'lifetime' in kwargs:
- lifetime_allowed_values = ["EPHEMERAL", "RESERVED"]
- if kwargs['lifetime'] not in lifetime_allowed_values:
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
- "Invalid value for `lifetime`, must be one of {0}".format(lifetime_allowed_values)
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
)
query_params = {
+ "compartmentId": compartment_id,
+ "vcnId": kwargs.get("vcn_id", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "scope": scope,
- "availabilityDomain": kwargs.get("availability_domain", missing),
- "lifetime": kwargs.get("lifetime", missing),
- "compartmentId": compartment_id,
- "publicIpPoolId": kwargs.get("public_ip_pool_id", missing)
+ "displayName": kwargs.get("display_name", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -13023,28 +14601,34 @@ def list_public_ips(self, scope, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[PublicIp]")
+ response_type="list[NetworkSecurityGroup]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[PublicIp]")
+ response_type="list[NetworkSecurityGroup]")
- def list_remote_peering_connections(self, compartment_id, **kwargs):
+ def list_private_ips(self, **kwargs):
"""
- Lists the remote peering connections (RPCs) for the specified DRG and compartment
- (the RPC's compartment).
+ Lists the :class:`PrivateIp` objects based
+ on one of these filters:
+ - Subnet OCID.
+ - VNIC OCID.
+ - Both private IP address and subnet OCID: This lets
+ you get a `privateIP` object based on its private IP
+ address (for example, 10.0.3.3) and not its OCID. For comparison,
+ :func:`get_private_ip`
+ requires the OCID.
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
+ If you're listing all the private IPs associated with a given subnet
+ or VNIC, the response includes both primary and secondary private IPs.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ If you are an Oracle Cloud VMware Solution customer and have VLANs
+ in your VCN, you can filter the list by VLAN OCID. See :class:`Vlan`.
- :param str drg_id: (optional)
- The OCID of the DRG.
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -13062,6 +14646,23 @@ def list_remote_peering_connections(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ :param str ip_address: (optional)
+ An IP address. This could be either IPv4 or IPv6, depending on the resource.
+ Example: `10.0.3.3`
+
+ :param str subnet_id: (optional)
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param str vnic_id: (optional)
+ The OCID of the VNIC.
+
+ :param str vlan_id: (optional)
+ The `OCID`__ of the VLAN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -13070,36 +14671,41 @@ def list_remote_peering_connections(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.RemotePeeringConnection`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.PrivateIp`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_remote_peering_connections API.
+ Click `here `__ to see an example of how to use list_private_ips API.
"""
- resource_path = "/remotePeeringConnections"
+ resource_path = "/privateIps"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "drg_id",
"limit",
- "page"
+ "page",
+ "ip_address",
+ "subnet_id",
+ "vnic_id",
+ "vlan_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_remote_peering_connections got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_private_ips got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
- "compartmentId": compartment_id,
- "drgId": kwargs.get("drg_id", missing),
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing)
- }
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
-
- header_params = {
+ "page": kwargs.get("page", missing),
+ "ipAddress": kwargs.get("ip_address", missing),
+ "subnetId": kwargs.get("subnet_id", missing),
+ "vnicId": kwargs.get("vnic_id", missing),
+ "vlanId": kwargs.get("vlan_id", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
"accept": "application/json",
"content-type": "application/json"
}
@@ -13115,21 +14721,19 @@ def list_remote_peering_connections(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[RemotePeeringConnection]")
+ response_type="list[PrivateIp]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[RemotePeeringConnection]")
+ response_type="list[PrivateIp]")
- def list_route_tables(self, compartment_id, **kwargs):
+ def list_public_ip_pools(self, compartment_id, **kwargs):
"""
- Lists the route tables in the specified VCN and specified compartment.
- If the VCN ID is not provided, then the list includes the route tables from all VCNs in the specified compartment.
- The response includes the default route table that automatically comes with
- each VCN in the specified compartment, plus any route tables you've created.
+ Lists the public IP pools in the specified compartment.
+ You can filter the list using query parameters.
:param str compartment_id: (required)
@@ -13137,6 +14741,10 @@ def list_route_tables(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
\"List\" call. For important details about how pagination works, see
@@ -13153,14 +14761,12 @@ def list_route_tables(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str vcn_id: (optional)
- The `OCID`__ of the VCN.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
-
:param str display_name: (optional)
A filter to return only resources that match the given display name exactly.
+ :param str byoip_range_id: (optional)
+ A filter to return only resources that match the given BYOIP CIDR block.
+
:param str sort_by: (optional)
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
@@ -13179,12 +14785,6 @@ def list_route_tables(self, compartment_id, **kwargs):
Allowed values are: "ASC", "DESC"
- :param str lifecycle_state: (optional)
- A filter to only return resources that match the given lifecycle
- state. The state value is case-insensitive.
-
- Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
-
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -13193,30 +14793,30 @@ def list_route_tables(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.RouteTable`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.PublicIpPoolCollection`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_route_tables API.
+ Click `here `__ to see an example of how to use list_public_ip_pools API.
"""
- resource_path = "/routeTables"
+ resource_path = "/publicIpPools"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
+ "opc_request_id",
"limit",
"page",
- "vcn_id",
"display_name",
+ "byoip_range_id",
"sort_by",
- "sort_order",
- "lifecycle_state"
+ "sort_order"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_route_tables got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_public_ip_pools got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_by' in kwargs:
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
@@ -13232,29 +14832,23 @@ def list_route_tables(self, compartment_id, **kwargs):
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
- if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
- raise ValueError(
- "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
- )
-
query_params = {
- "compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "vcnId": kwargs.get("vcn_id", missing),
"displayName": kwargs.get("display_name", missing),
+ "byoipRangeId": kwargs.get("byoip_range_id", missing),
"sortBy": kwargs.get("sort_by", missing),
"sortOrder": kwargs.get("sort_order", missing),
- "lifecycleState": kwargs.get("lifecycle_state", missing)
+ "compartmentId": compartment_id
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
header_params = {
"accept": "application/json",
- "content-type": "application/json"
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
}
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -13267,20 +14861,52 @@ def list_route_tables(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[RouteTable]")
+ response_type="PublicIpPoolCollection")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[RouteTable]")
+ response_type="PublicIpPoolCollection")
- def list_security_lists(self, compartment_id, **kwargs):
+ def list_public_ips(self, scope, compartment_id, **kwargs):
"""
- Lists the security lists in the specified VCN and compartment.
- If the VCN ID is not provided, then the list includes the security lists from all VCNs in the specified compartment.
+ Lists the :class:`PublicIp` objects
+ in the specified compartment. You can filter the list by using query parameters.
+
+ To list your reserved public IPs:
+ * Set `scope` = `REGION` (required)
+ * Leave the `availabilityDomain` parameter empty
+ * Set `lifetime` = `RESERVED`
+
+ To list the ephemeral public IPs assigned to a regional entity such as a NAT gateway:
+ * Set `scope` = `REGION` (required)
+ * Leave the `availabilityDomain` parameter empty
+ * Set `lifetime` = `EPHEMERAL`
+
+ To list the ephemeral public IPs assigned to private IPs:
+ * Set `scope` = `AVAILABILITY_DOMAIN` (required)
+ * Set the `availabilityDomain` parameter to the desired availability domain (required)
+ * Set `lifetime` = `EPHEMERAL`
+
+ **Note:** An ephemeral public IP assigned to a private IP
+ is always in the same availability domain and compartment as the private IP.
+
+
+ :param str scope: (required)
+ Whether the public IP is regional or specific to a particular availability domain.
+
+ * `REGION`: The public IP exists within a region and is assigned to a regional entity
+ (such as a :class:`NatGateway`), or can be assigned to a private IP
+ in any availability domain in the region. Reserved public IPs have `scope` = `REGION`, as do
+ ephemeral public IPs assigned to a regional entity.
+
+ * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity
+ it's assigned to, which is specified by the `availabilityDomain` property of the public IP object.
+ Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`.
+ Allowed values are: "REGION", "AVAILABILITY_DOMAIN"
:param str compartment_id: (required)
The `OCID`__ of the compartment.
@@ -13303,37 +14929,18 @@ def list_security_lists(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str vcn_id: (optional)
- The `OCID`__ of the VCN.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
-
- :param str display_name: (optional)
- A filter to return only resources that match the given display name exactly.
-
- :param str sort_by: (optional)
- The field to sort by. You can provide one sort order (`sortOrder`). Default order for
- TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
- sort order is case sensitive.
-
- **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
- optionally filter by availability domain if the scope of the resource type is within a
- single availability domain. If you call one of these \"List\" operations without specifying
- an availability domain, the resources are grouped by availability domain, then sorted.
-
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
+ :param str availability_domain: (optional)
+ The name of the availability domain.
- :param str sort_order: (optional)
- The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
- is case sensitive.
+ Example: `Uocm:PHX-AD-1`
- Allowed values are: "ASC", "DESC"
+ :param str lifetime: (optional)
+ A filter to return only public IPs that match given lifetime.
- :param str lifecycle_state: (optional)
- A filter to only return resources that match the given lifecycle
- state. The state value is case-insensitive.
+ Allowed values are: "EPHEMERAL", "RESERVED"
- Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
+ :param str public_ip_pool_id: (optional)
+ A filter to return only resources that belong to the given public IP pool.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -13343,13 +14950,13 @@ def list_security_lists(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.SecurityList`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.PublicIp`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_security_lists API.
+ Click `here `__ to see an example of how to use list_public_ips API.
"""
- resource_path = "/securityLists"
+ resource_path = "/publicIps"
method = "GET"
# Don't accept unknown kwargs
@@ -13357,47 +14964,36 @@ def list_security_lists(self, compartment_id, **kwargs):
"retry_strategy",
"limit",
"page",
- "vcn_id",
- "display_name",
- "sort_by",
- "sort_order",
- "lifecycle_state"
+ "availability_domain",
+ "lifetime",
+ "public_ip_pool_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_security_lists got unknown kwargs: {!r}".format(extra_kwargs))
-
- if 'sort_by' in kwargs:
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
- if kwargs['sort_by'] not in sort_by_allowed_values:
- raise ValueError(
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
- )
+ "list_public_ips got unknown kwargs: {!r}".format(extra_kwargs))
- if 'sort_order' in kwargs:
- sort_order_allowed_values = ["ASC", "DESC"]
- if kwargs['sort_order'] not in sort_order_allowed_values:
- raise ValueError(
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
- )
+ scope_allowed_values = ["REGION", "AVAILABILITY_DOMAIN"]
+ if scope not in scope_allowed_values:
+ raise ValueError(
+ "Invalid value for `scope`, must be one of {0}".format(scope_allowed_values)
+ )
- if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ if 'lifetime' in kwargs:
+ lifetime_allowed_values = ["EPHEMERAL", "RESERVED"]
+ if kwargs['lifetime'] not in lifetime_allowed_values:
raise ValueError(
- "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ "Invalid value for `lifetime`, must be one of {0}".format(lifetime_allowed_values)
)
query_params = {
- "compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "vcnId": kwargs.get("vcn_id", missing),
- "displayName": kwargs.get("display_name", missing),
- "sortBy": kwargs.get("sort_by", missing),
- "sortOrder": kwargs.get("sort_order", missing),
- "lifecycleState": kwargs.get("lifecycle_state", missing)
+ "scope": scope,
+ "availabilityDomain": kwargs.get("availability_domain", missing),
+ "lifetime": kwargs.get("lifetime", missing),
+ "compartmentId": compartment_id,
+ "publicIpPoolId": kwargs.get("public_ip_pool_id", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -13417,19 +15013,19 @@ def list_security_lists(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[SecurityList]")
+ response_type="list[PublicIp]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[SecurityList]")
+ response_type="list[PublicIp]")
- def list_service_gateways(self, compartment_id, **kwargs):
+ def list_remote_peering_connections(self, compartment_id, **kwargs):
"""
- Lists the service gateways in the specified compartment. You may optionally specify a VCN OCID
- to filter the results by VCN.
+ Lists the remote peering connections (RPCs) for the specified DRG and compartment
+ (the RPC's compartment).
:param str compartment_id: (required)
@@ -13437,8 +15033,8 @@ def list_service_gateways(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str vcn_id: (optional)
- The `OCID`__ of the VCN.
+ :param str drg_id: (optional)
+ The `OCID`__ of the DRG.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
@@ -13458,30 +15054,6 @@ def list_service_gateways(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str sort_by: (optional)
- The field to sort by. You can provide one sort order (`sortOrder`). Default order for
- TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
- sort order is case sensitive.
-
- **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
- optionally filter by availability domain if the scope of the resource type is within a
- single availability domain. If you call one of these \"List\" operations without specifying
- an availability domain, the resources are grouped by availability domain, then sorted.
-
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
-
- :param str sort_order: (optional)
- The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
- is case sensitive.
-
- Allowed values are: "ASC", "DESC"
-
- :param str lifecycle_state: (optional)
- A filter to return only resources that match the given lifecycle
- state. The state value is case-insensitive.
-
- Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
-
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -13490,59 +15062,32 @@ def list_service_gateways(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.ServiceGateway`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.RemotePeeringConnection`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_service_gateways API.
+ Click `here `__ to see an example of how to use list_remote_peering_connections API.
"""
- resource_path = "/serviceGateways"
+ resource_path = "/remotePeeringConnections"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "vcn_id",
+ "drg_id",
"limit",
- "page",
- "sort_by",
- "sort_order",
- "lifecycle_state"
+ "page"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_service_gateways got unknown kwargs: {!r}".format(extra_kwargs))
-
- if 'sort_by' in kwargs:
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
- if kwargs['sort_by'] not in sort_by_allowed_values:
- raise ValueError(
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
- )
-
- if 'sort_order' in kwargs:
- sort_order_allowed_values = ["ASC", "DESC"]
- if kwargs['sort_order'] not in sort_order_allowed_values:
- raise ValueError(
- "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
- )
-
- if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
- raise ValueError(
- "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
- )
+ "list_remote_peering_connections got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
"compartmentId": compartment_id,
- "vcnId": kwargs.get("vcn_id", missing),
+ "drgId": kwargs.get("drg_id", missing),
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing),
- "sortBy": kwargs.get("sort_by", missing),
- "sortOrder": kwargs.get("sort_order", missing),
- "lifecycleState": kwargs.get("lifecycle_state", missing)
+ "page": kwargs.get("page", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -13562,20 +15107,27 @@ def list_service_gateways(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[ServiceGateway]")
+ response_type="list[RemotePeeringConnection]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[ServiceGateway]")
+ response_type="list[RemotePeeringConnection]")
- def list_services(self, **kwargs):
+ def list_route_tables(self, compartment_id, **kwargs):
"""
- Lists the available :class:`Service` objects that you can enable for a
- service gateway in this region.
+ Lists the route tables in the specified VCN and specified compartment.
+ If the VCN ID is not provided, then the list includes the route tables from all VCNs in the specified compartment.
+ The response includes the default route table that automatically comes with
+ each VCN in the specified compartment, plus any route tables you've created.
+
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -13593,6 +15145,38 @@ def list_services(self, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+ :param str vcn_id: (optional)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
+
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
+
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
+
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ A filter to only return resources that match the given lifecycle
+ state. The state value is case-insensitive.
+
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
+
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -13601,29 +15185,61 @@ def list_services(self, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Service`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.RouteTable`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_services API.
+ Click `here `__ to see an example of how to use list_route_tables API.
"""
- resource_path = "/services"
+ resource_path = "/routeTables"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
"limit",
- "page"
+ "page",
+ "vcn_id",
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_services got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_route_tables got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
query_params = {
+ "compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
- "page": kwargs.get("page", missing)
+ "page": kwargs.get("page", missing),
+ "vcnId": kwargs.get("vcn_id", missing),
+ "displayName": kwargs.get("display_name", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -13643,19 +15259,19 @@ def list_services(self, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[Service]")
+ response_type="list[RouteTable]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[Service]")
+ response_type="list[RouteTable]")
- def list_subnets(self, compartment_id, **kwargs):
+ def list_security_lists(self, compartment_id, **kwargs):
"""
- Lists the subnets in the specified VCN and the specified compartment.
- If the VCN ID is not provided, then the list includes the subnets from all VCNs in the specified compartment.
+ Lists the security lists in the specified VCN and compartment.
+ If the VCN ID is not provided, then the list includes the security lists from all VCNs in the specified compartment.
:param str compartment_id: (required)
@@ -13709,7 +15325,7 @@ def list_subnets(self, compartment_id, **kwargs):
A filter to only return resources that match the given lifecycle
state. The state value is case-insensitive.
- Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -13719,13 +15335,13 @@ def list_subnets(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Subnet`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.SecurityList`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_subnets API.
+ Click `here `__ to see an example of how to use list_security_lists API.
"""
- resource_path = "/subnets"
+ resource_path = "/securityLists"
method = "GET"
# Don't accept unknown kwargs
@@ -13742,7 +15358,7 @@ def list_subnets(self, compartment_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_subnets got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_security_lists got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_by' in kwargs:
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
@@ -13759,7 +15375,7 @@ def list_subnets(self, compartment_id, **kwargs):
)
if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"]
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
raise ValueError(
"Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
@@ -13793,18 +15409,19 @@ def list_subnets(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[Subnet]")
+ response_type="list[SecurityList]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[Subnet]")
+ response_type="list[SecurityList]")
- def list_vcns(self, compartment_id, **kwargs):
+ def list_service_gateways(self, compartment_id, **kwargs):
"""
- Lists the virtual cloud networks (VCNs) in the specified compartment.
+ Lists the service gateways in the specified compartment. You may optionally specify a VCN OCID
+ to filter the results by VCN.
:param str compartment_id: (required)
@@ -13812,6 +15429,11 @@ def list_vcns(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str vcn_id: (optional)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
\"List\" call. For important details about how pagination works, see
@@ -13828,9 +15450,6 @@ def list_vcns(self, compartment_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str display_name: (optional)
- A filter to return only resources that match the given display name exactly.
-
:param str sort_by: (optional)
The field to sort by. You can provide one sort order (`sortOrder`). Default order for
TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
@@ -13850,10 +15469,10 @@ def list_vcns(self, compartment_id, **kwargs):
Allowed values are: "ASC", "DESC"
:param str lifecycle_state: (optional)
- A filter to only return resources that match the given lifecycle
+ A filter to return only resources that match the given lifecycle
state. The state value is case-insensitive.
- Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -13863,21 +15482,21 @@ def list_vcns(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Vcn`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.ServiceGateway`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_vcns API.
+ Click `here `__ to see an example of how to use list_service_gateways API.
"""
- resource_path = "/vcns"
+ resource_path = "/serviceGateways"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
+ "vcn_id",
"limit",
"page",
- "display_name",
"sort_by",
"sort_order",
"lifecycle_state"
@@ -13885,7 +15504,7 @@ def list_vcns(self, compartment_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_vcns got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_service_gateways got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_by' in kwargs:
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
@@ -13902,7 +15521,7 @@ def list_vcns(self, compartment_id, **kwargs):
)
if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"]
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
raise ValueError(
"Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
@@ -13910,9 +15529,9 @@ def list_vcns(self, compartment_id, **kwargs):
query_params = {
"compartmentId": compartment_id,
+ "vcnId": kwargs.get("vcn_id", missing),
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "displayName": kwargs.get("display_name", missing),
"sortBy": kwargs.get("sort_by", missing),
"sortOrder": kwargs.get("sort_order", missing),
"lifecycleState": kwargs.get("lifecycle_state", missing)
@@ -13935,24 +15554,20 @@ def list_vcns(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[Vcn]")
+ response_type="list[ServiceGateway]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[Vcn]")
+ response_type="list[ServiceGateway]")
- def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs):
+ def list_services(self, **kwargs):
"""
- The deprecated operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID of your tenancy (the root compartment).
-
-
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
+ Lists the available :class:`Service` objects that you can enable for a
+ service gateway in this region.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
@@ -13978,13 +15593,13 @@ def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuitBandwidthShape`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Service`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_virtual_circuit_bandwidth_shapes API.
+ Click `here `__ to see an example of how to use list_services API.
"""
- resource_path = "/virtualCircuitBandwidthShapes"
+ resource_path = "/services"
method = "GET"
# Don't accept unknown kwargs
@@ -13996,10 +15611,9 @@ def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_virtual_circuit_bandwidth_shapes got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_services got unknown kwargs: {!r}".format(extra_kwargs))
query_params = {
- "compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing)
}
@@ -14021,78 +15635,137 @@ def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuitBandwidthShape]")
+ response_type="list[Service]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuitBandwidthShape]")
+ response_type="list[Service]")
- def list_virtual_circuit_public_prefixes(self, virtual_circuit_id, **kwargs):
+ def list_subnets(self, compartment_id, **kwargs):
"""
- Lists the public IP prefixes and their details for the specified
- public virtual circuit.
-
+ Lists the subnets in the specified VCN and the specified compartment.
+ If the VCN ID is not provided, then the list includes the subnets from all VCNs in the specified compartment.
- :param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
- :param str verification_state: (optional)
- A filter to only return resources that match the given verification
- state.
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
- The state value is case-insensitive.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- Allowed values are: "IN_PROGRESS", "COMPLETED", "FAILED"
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to return in a paginated
+ \"List\" call. For important details about how pagination works, see
+ `List Pagination`__.
- :param obj retry_strategy: (optional)
- A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+ Example: `50`
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
- is also available. The specifics of the default retry strategy are described `here `__.
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
+ call. For important details about how pagination works, see
+ `List Pagination`__.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuitPublicPrefix`
- :rtype: :class:`~oci.response.Response`
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :example:
- Click `here `__ to see an example of how to use list_virtual_circuit_public_prefixes API.
- """
- resource_path = "/virtualCircuits/{virtualCircuitId}/publicPrefixes"
- method = "GET"
+ :param str vcn_id: (optional)
+ The `OCID`__ of the VCN.
- # Don't accept unknown kwargs
- expected_kwargs = [
- "retry_strategy",
- "verification_state"
- ]
- extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
- if extra_kwargs:
- raise ValueError(
- "list_virtual_circuit_public_prefixes got unknown kwargs: {!r}".format(extra_kwargs))
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- path_params = {
- "virtualCircuitId": virtual_circuit_id
- }
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
- for (k, v) in six.iteritems(path_params):
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
- raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
- if 'verification_state' in kwargs:
- verification_state_allowed_values = ["IN_PROGRESS", "COMPLETED", "FAILED"]
- if kwargs['verification_state'] not in verification_state_allowed_values:
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ A filter to only return resources that match the given lifecycle
+ state. The state value is case-insensitive.
+
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Subnet`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_subnets API.
+ """
+ resource_path = "/subnets"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "vcn_id",
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_subnets got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
raise ValueError(
- "Invalid value for `verification_state`, must be one of {0}".format(verification_state_allowed_values)
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
)
query_params = {
- "verificationState": kwargs.get("verification_state", missing)
+ "compartmentId": compartment_id,
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "vcnId": kwargs.get("vcn_id", missing),
+ "displayName": kwargs.get("display_name", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -14110,22 +15783,20 @@ def list_virtual_circuit_public_prefixes(self, virtual_circuit_id, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuitPublicPrefix]")
+ response_type="list[Subnet]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuitPublicPrefix]")
+ response_type="list[Subnet]")
- def list_virtual_circuits(self, compartment_id, **kwargs):
+ def list_vcns(self, compartment_id, **kwargs):
"""
- Lists the virtual circuits in the specified compartment.
+ Lists the virtual cloud networks (VCNs) in the specified compartment.
:param str compartment_id: (required)
@@ -14171,10 +15842,10 @@ def list_virtual_circuits(self, compartment_id, **kwargs):
Allowed values are: "ASC", "DESC"
:param str lifecycle_state: (optional)
- A filter to return only resources that match the specified lifecycle
- state. The value is case insensitive.
+ A filter to only return resources that match the given lifecycle
+ state. The state value is case-insensitive.
- Allowed values are: "PENDING_PROVIDER", "VERIFYING", "PROVISIONING", "PROVISIONED", "FAILED", "INACTIVE", "TERMINATING", "TERMINATED"
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -14184,13 +15855,13 @@ def list_virtual_circuits(self, compartment_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuit`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Vcn`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_virtual_circuits API.
+ Click `here `__ to see an example of how to use list_vcns API.
"""
- resource_path = "/virtualCircuits"
+ resource_path = "/vcns"
method = "GET"
# Don't accept unknown kwargs
@@ -14206,7 +15877,7 @@ def list_virtual_circuits(self, compartment_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_virtual_circuits got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_vcns got unknown kwargs: {!r}".format(extra_kwargs))
if 'sort_by' in kwargs:
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
@@ -14223,7 +15894,7 @@ def list_virtual_circuits(self, compartment_id, **kwargs):
)
if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PENDING_PROVIDER", "VERIFYING", "PROVISIONING", "PROVISIONED", "FAILED", "INACTIVE", "TERMINATING", "TERMINATED"]
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"]
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
raise ValueError(
"Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
@@ -14256,18 +15927,18 @@ def list_virtual_circuits(self, compartment_id, **kwargs):
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuit]")
+ response_type="list[Vcn]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
query_params=query_params,
header_params=header_params,
- response_type="list[VirtualCircuit]")
+ response_type="list[Vcn]")
- def list_vlans(self, compartment_id, vcn_id, **kwargs):
+ def list_virtual_circuit_bandwidth_shapes(self, compartment_id, **kwargs):
"""
- Lists the VLANs in the specified VCN and the specified compartment.
+ The deprecated operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID of your tenancy (the root compartment).
:param str compartment_id: (required)
@@ -14275,11 +15946,6 @@ def list_vlans(self, compartment_id, vcn_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str vcn_id: (required)
- The `OCID`__ of the VCN.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
-
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to return in a paginated
\"List\" call. For important details about how pagination works, see
@@ -14296,36 +15962,84 @@ def list_vlans(self, compartment_id, vcn_id, **kwargs):
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
- :param str display_name: (optional)
- A filter to return only resources that match the given display name exactly.
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- :param str sort_by: (optional)
- The field to sort by. You can provide one sort order (`sortOrder`). Default order for
- TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
- sort order is case sensitive.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
- **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
- optionally filter by availability domain if the scope of the resource type is within a
- single availability domain. If you call one of these \"List\" operations without specifying
- an availability domain, the resources are grouped by availability domain, then sorted.
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- Allowed values are: "TIMECREATED", "DISPLAYNAME"
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuitBandwidthShape`
+ :rtype: :class:`~oci.response.Response`
- :param str sort_order: (optional)
- The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
- is case sensitive.
+ :example:
+ Click `here `__ to see an example of how to use list_virtual_circuit_bandwidth_shapes API.
+ """
+ resource_path = "/virtualCircuitBandwidthShapes"
+ method = "GET"
- Allowed values are: "ASC", "DESC"
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_virtual_circuit_bandwidth_shapes got unknown kwargs: {!r}".format(extra_kwargs))
- :param str opc_request_id: (optional)
- Unique identifier for the request.
- If you need to contact Oracle about a particular request, please provide the request ID.
+ query_params = {
+ "compartmentId": compartment_id,
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
- :param str lifecycle_state: (optional)
- A filter to only return resources that match the given lifecycle
- state. The state value is case-insensitive.
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[VirtualCircuitBandwidthShape]")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[VirtualCircuitBandwidthShape]")
+
+ def list_virtual_circuit_public_prefixes(self, virtual_circuit_id, **kwargs):
+ """
+ Lists the public IP prefixes and their details for the specified
+ public virtual circuit.
- Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"
+
+ :param str virtual_circuit_id: (required)
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param str verification_state: (optional)
+ A filter to only return resources that match the given verification
+ state.
+
+ The state value is case-insensitive.
+
+ Allowed values are: "IN_PROGRESS", "COMPLETED", "FAILED"
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -14335,47 +16049,175 @@ def list_vlans(self, compartment_id, vcn_id, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Vlan`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuitPublicPrefix`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use list_vlans API.
+ Click `here `__ to see an example of how to use list_virtual_circuit_public_prefixes API.
"""
- resource_path = "/vlans"
+ resource_path = "/virtualCircuits/{virtualCircuitId}/publicPrefixes"
method = "GET"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "limit",
- "page",
- "display_name",
- "sort_by",
- "sort_order",
- "opc_request_id",
- "lifecycle_state"
+ "verification_state"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "list_vlans got unknown kwargs: {!r}".format(extra_kwargs))
+ "list_virtual_circuit_public_prefixes got unknown kwargs: {!r}".format(extra_kwargs))
- if 'sort_by' in kwargs:
- sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
- if kwargs['sort_by'] not in sort_by_allowed_values:
+ path_params = {
+ "virtualCircuitId": virtual_circuit_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ if 'verification_state' in kwargs:
+ verification_state_allowed_values = ["IN_PROGRESS", "COMPLETED", "FAILED"]
+ if kwargs['verification_state'] not in verification_state_allowed_values:
raise ValueError(
- "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ "Invalid value for `verification_state`, must be one of {0}".format(verification_state_allowed_values)
)
- if 'sort_order' in kwargs:
- sort_order_allowed_values = ["ASC", "DESC"]
- if kwargs['sort_order'] not in sort_order_allowed_values:
+ query_params = {
+ "verificationState": kwargs.get("verification_state", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[VirtualCircuitPublicPrefix]")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[VirtualCircuitPublicPrefix]")
+
+ def list_virtual_circuits(self, compartment_id, **kwargs):
+ """
+ Lists the virtual circuits in the specified compartment.
+
+
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to return in a paginated
+ \"List\" call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ Example: `50`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
+ call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
+
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
+
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
+
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ A filter to return only resources that match the specified lifecycle
+ state. The value is case insensitive.
+
+ Allowed values are: "PENDING_PROVIDER", "VERIFYING", "PROVISIONING", "PROVISIONED", "FAILED", "INACTIVE", "TERMINATING", "TERMINATED"
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.VirtualCircuit`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_virtual_circuits API.
+ """
+ resource_path = "/virtualCircuits"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_virtual_circuits got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
raise ValueError(
"Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
)
if 'lifecycle_state' in kwargs:
- lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"]
+ lifecycle_state_allowed_values = ["PENDING_PROVIDER", "VERIFYING", "PROVISIONING", "PROVISIONED", "FAILED", "INACTIVE", "TERMINATING", "TERMINATED"]
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
raise ValueError(
"Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
@@ -14385,7 +16227,6 @@ def list_vlans(self, compartment_id, vcn_id, **kwargs):
"compartmentId": compartment_id,
"limit": kwargs.get("limit", missing),
"page": kwargs.get("page", missing),
- "vcnId": vcn_id,
"displayName": kwargs.get("display_name", missing),
"sortBy": kwargs.get("sort_by", missing),
"sortOrder": kwargs.get("sort_order", missing),
@@ -14393,10 +16234,850 @@ def list_vlans(self, compartment_id, vcn_id, **kwargs):
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[VirtualCircuit]")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[VirtualCircuit]")
+
+ def list_vlans(self, compartment_id, vcn_id, **kwargs):
+ """
+ Lists the VLANs in the specified VCN and the specified compartment.
+
+
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str vcn_id: (required)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to return in a paginated
+ \"List\" call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ Example: `50`
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
+ call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the given display name exactly.
+
+ :param str sort_by: (optional)
+ The field to sort by. You can provide one sort order (`sortOrder`). Default order for
+ TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
+ sort order is case sensitive.
+
+ **Note:** In general, some \"List\" operations (for example, `ListInstances`) let you
+ optionally filter by availability domain if the scope of the resource type is within a
+ single availability domain. If you call one of these \"List\" operations without specifying
+ an availability domain, the resources are grouped by availability domain, then sorted.
+
+ Allowed values are: "TIMECREATED", "DISPLAYNAME"
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
+ is case sensitive.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str lifecycle_state: (optional)
+ A filter to only return resources that match the given lifecycle
+ state. The state value is case-insensitive.
+
+ Allowed values are: "PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.Vlan`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_vlans API.
+ """
+ resource_path = "/vlans"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "display_name",
+ "sort_by",
+ "sort_order",
+ "opc_request_id",
+ "lifecycle_state"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_vlans got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
+
+ query_params = {
+ "compartmentId": compartment_id,
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "vcnId": vcn_id,
+ "displayName": kwargs.get("display_name", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[Vlan]")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="list[Vlan]")
+
+ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs):
+ """
+ Updates the specified CIDR block of a VCN. The new CIDR IP range must meet the following criteria:
+
+ - Must be valid.
+ - Must not overlap with another CIDR block in the VCN, a CIDR block of a peered VCN, or the on-premises network CIDR block.
+ - Must not exceed the limit of CIDR blocks allowed per VCN.
+ - Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules.
+ - No IP address in an existing subnet should be outside of the new CIDR block range.
+
+ **Note:** Modifying a CIDR block places your VCN in an updating state until the changes are complete. You cannot create or update the VCN's subnets, VLANs, LPGs, or route tables during this operation. The time to completion can vary depending on the size of your network. Updating a small network could take about a minute, and updating a large network could take up to an hour. You can use the `GetWorkRequest` operation to check the status of the update.
+
+
+ :param str vcn_id: (required)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.ModifyVcnCidrDetails modify_vcn_cidr_details: (required)
+ Details object for updating a VCN CIDR.
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use modify_vcn_cidr API.
+ """
+ resource_path = "/vcns/{vcnId}/actions/modifyCidr"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "opc_retry_token",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "modify_vcn_cidr got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "vcnId": vcn_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=modify_vcn_cidr_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=modify_vcn_cidr_details)
+
+ def remove_drg_route_distribution_statements(self, drg_route_distribution_id, remove_drg_route_distribution_statements_details, **kwargs):
+ """
+ Removes one or more route distribution statements from the specified route distribution's map.
+
+
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.RemoveDrgRouteDistributionStatementsDetails remove_drg_route_distribution_statements_details: (required)
+ Request with one or more route distribution statements to remove from the route distribution.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_drg_route_distribution_statements API.
+ """
+ resource_path = "/drgRouteDistributions/{drgRouteDistributionId}/actions/removeDrgRouteDistributionStatements"
+ method = "POST"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "remove_drg_route_distribution_statements got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteDistributionId": drg_route_distribution_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_drg_route_distribution_statements_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_drg_route_distribution_statements_details)
+
+ def remove_drg_route_rules(self, drg_route_table_id, remove_drg_route_rules_details, **kwargs):
+ """
+ Removes one or more route rules from the specified DRG route table.
+
+
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.RemoveDrgRouteRulesDetails remove_drg_route_rules_details: (required)
+ Request to remove one or more route rules in the DRG route table.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_drg_route_rules API.
+ """
+ resource_path = "/drgRouteTables/{drgRouteTableId}/actions/removeDrgRouteRules"
+ method = "POST"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "remove_drg_route_rules got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteTableId": drg_route_table_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_drg_route_rules_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_drg_route_rules_details)
+
+ def remove_export_drg_route_distribution(self, drg_attachment_id, **kwargs):
+ """
+ Removes the export route distribution from the DRG attachment so no routes are advertised to it.
+
+
+ :param str drg_attachment_id: (required)
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgAttachment`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_export_drg_route_distribution API.
+ """
+ resource_path = "/drgAttachments/{drgAttachmentId}/actions/removeExportDrgRouteDistribution"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "remove_export_drg_route_distribution got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgAttachmentId": drg_attachment_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgAttachment")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgAttachment")
+
+ def remove_import_drg_route_distribution(self, drg_route_table_id, **kwargs):
+ """
+ Removes the import route distribution from the DRG route table so no routes are imported
+ into it.
+
+
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgRouteTable`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_import_drg_route_distribution API.
+ """
+ resource_path = "/drgRouteTables/{drgRouteTableId}/actions/removeImportDrgRouteDistribution"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "remove_import_drg_route_distribution got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgRouteTableId": drg_route_table_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgRouteTable")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="DrgRouteTable")
+
+ def remove_network_security_group_security_rules(self, network_security_group_id, remove_network_security_group_security_rules_details, **kwargs):
+ """
+ Removes one or more security rules from the specified network security group.
+
+
+ :param str network_security_group_id: (required)
+ The `OCID`__ of the network security group.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.RemoveNetworkSecurityGroupSecurityRulesDetails remove_network_security_group_security_rules_details: (required)
+ Request with one or more security rules associated with the network security group that
+ will be removed.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_network_security_group_security_rules API.
+ """
+ resource_path = "/networkSecurityGroups/{networkSecurityGroupId}/actions/removeSecurityRules"
+ method = "POST"
+
+ expected_kwargs = ["retry_strategy"]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "remove_network_security_group_security_rules got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "networkSecurityGroupId": network_security_group_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ }
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_network_security_group_security_rules_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_network_security_group_security_rules_details)
+
+ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_pool_capacity_details, **kwargs):
+ """
+ Removes a CIDR block from the referenced public IP pool.
+
+
+ :param str public_ip_pool_id: (required)
+ The `OCID`__ of the public IP pool.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.RemovePublicIpPoolCapacityDetails remove_public_ip_pool_capacity_details: (required)
+ The CIDR block to remove from the IP pool.
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.PublicIpPool`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_public_ip_pool_capacity API.
+ """
+ resource_path = "/publicIpPools/{publicIpPoolId}/actions/removeCapacity"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "opc_retry_token"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "remove_public_ip_pool_capacity got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "publicIpPoolId": public_ip_pool_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_public_ip_pool_capacity_details,
+ response_type="PublicIpPool")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=remove_public_ip_pool_capacity_details,
+ response_type="PublicIpPool")
+
+ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs):
+ """
+ Removes a specified CIDR block from a VCN.
+
+ **Notes:**
+ - You cannot remove a CIDR block if an IP address in its range is in use.
+ - Removing a CIDR block places your VCN in an updating state until the changes are complete. You cannot create or update the VCN's subnets, VLANs, LPGs, or route tables during this operation. The time to completion can take a few minutes. You can use the `GetWorkRequest` operation to check the status of the update.
+
+
+ :param str vcn_id: (required)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.RemoveVcnCidrDetails remove_vcn_cidr_details: (required)
+ Details object for removing a VCN CIDR.
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_vcn_cidr API.
+ """
+ resource_path = "/vcns/{vcnId}/actions/removeCidr"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "opc_retry_token",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "remove_vcn_cidr got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "vcnId": vcn_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", missing)
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -14405,53 +17086,40 @@ def list_vlans(self, compartment_id, vcn_id, **kwargs):
retry_strategy = kwargs.get('retry_strategy')
if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
- query_params=query_params,
+ path_params=path_params,
header_params=header_params,
- response_type="list[Vlan]")
+ body=remove_vcn_cidr_details)
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- query_params=query_params,
+ path_params=path_params,
header_params=header_params,
- response_type="list[Vlan]")
+ body=remove_vcn_cidr_details)
- def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs):
+ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwargs):
"""
- Updates the specified CIDR block of a VCN. The new CIDR IP range must meet the following criteria:
-
- - Must be valid.
- - Must not overlap with another CIDR block in the VCN, a CIDR block of a peered VCN, or the on-premises network CIDR block.
- - Must not exceed the limit of CIDR blocks allowed per VCN.
- - Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules.
- - No IP address in an existing subnet should be outside of the new CIDR block range.
-
- **Note:** Modifying a CIDR block places your VCN in an updating state until the changes are complete. You cannot create or update the VCN's subnets, VLANs, LPGs, or route tables during this operation. The time to completion can vary depending on the size of your network. Updating a small network could take about a minute, and updating a large network could take up to an hour. You can use the `GetWorkRequest` operation to check the status of the update.
+ Updates the tags or display name associated to the specified BYOIP CIDR block.
- :param str vcn_id: (required)
- The `OCID`__ of the VCN.
+ :param str byoip_range_id: (required)
+ The `OCID`__ of the `ByoipRange` resource containing the BYOIP CIDR block.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param oci.core.models.ModifyVcnCidrDetails modify_vcn_cidr_details: (required)
- Details object for updating a VCN CIDR.
+ :param oci.core.models.UpdateByoipRangeDetails update_byoip_range_details: (required)
+ Byoip Range details.
:param str opc_request_id: (optional)
Unique identifier for the request.
If you need to contact Oracle about a particular request, please provide the request ID.
- :param str opc_retry_token: (optional)
- A token that uniquely identifies a request so it can be retried in case of a timeout or
- server error without risk of executing that same action again. Retry tokens expire after 24
- hours, but can be invalidated before then due to conflicting operations (for example, if a resource
- has been deleted and purged from the system, then a retry of the original creation request
- may be rejected).
-
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
@@ -14465,29 +17133,28 @@ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type None
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ByoipRange`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use modify_vcn_cidr API.
+ Click `here `__ to see an example of how to use update_byoip_range API.
"""
- resource_path = "/vcns/{vcnId}/actions/modifyCidr"
- method = "POST"
+ resource_path = "/byoipRanges/{byoipRangeId}"
+ method = "PUT"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
"opc_request_id",
- "opc_retry_token",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "modify_vcn_cidr got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_byoip_range got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "vcnId": vcn_id
+ "byoipRangeId": byoip_range_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -14500,7 +17167,6 @@ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs):
"accept": "application/json",
"content-type": "application/json",
"opc-request-id": kwargs.get("opc_request_id", missing),
- "opc-retry-token": kwargs.get("opc_retry_token", missing),
"if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -14510,36 +17176,41 @@ def modify_vcn_cidr(self, vcn_id, modify_vcn_cidr_details, **kwargs):
retry_strategy = kwargs.get('retry_strategy')
if retry_strategy:
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
- self.base_client.add_opc_retry_token_if_needed(header_params)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=modify_vcn_cidr_details)
+ body=update_byoip_range_details,
+ response_type="ByoipRange")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=modify_vcn_cidr_details)
+ body=update_byoip_range_details,
+ response_type="ByoipRange")
- def remove_network_security_group_security_rules(self, network_security_group_id, remove_network_security_group_security_rules_details, **kwargs):
+ def update_cpe(self, cpe_id, update_cpe_details, **kwargs):
"""
- Removes one or more security rules from the specified network security group.
+ Updates the specified CPE's display name or tags.
+ Avoid entering confidential information.
- :param str network_security_group_id: (required)
- The `OCID`__ of the network security group.
+ :param str cpe_id: (required)
+ The `OCID`__ of the CPE.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.core.models.RemoveNetworkSecurityGroupSecurityRulesDetails remove_network_security_group_security_rules_details: (required)
- Request with one or more security rules associated with the network security group that
- will be removed.
+ :param oci.core.models.UpdateCpeDetails update_cpe_details: (required)
+ Details object for updating a CPE.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -14549,23 +17220,27 @@ def remove_network_security_group_security_rules(self, network_security_group_id
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type None
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.Cpe`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use remove_network_security_group_security_rules API.
+ Click `here `__ to see an example of how to use update_cpe API.
"""
- resource_path = "/networkSecurityGroups/{networkSecurityGroupId}/actions/removeSecurityRules"
- method = "POST"
+ resource_path = "/cpes/{cpeId}"
+ method = "PUT"
- expected_kwargs = ["retry_strategy"]
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match"
+ ]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "remove_network_security_group_security_rules got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_cpe got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "networkSecurityGroupId": network_security_group_id
+ "cpeId": cpe_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -14576,8 +17251,10 @@ def remove_network_security_group_security_rules(self, network_security_group_id
header_params = {
"accept": "application/json",
- "content-type": "application/json"
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing)
}
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -14590,38 +17267,34 @@ def remove_network_security_group_security_rules(self, network_security_group_id
method=method,
path_params=path_params,
header_params=header_params,
- body=remove_network_security_group_security_rules_details)
+ body=update_cpe_details,
+ response_type="Cpe")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=remove_network_security_group_security_rules_details)
+ body=update_cpe_details,
+ response_type="Cpe")
- def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_pool_capacity_details, **kwargs):
+ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, **kwargs):
"""
- Removes a CIDR block from the referenced public IP pool.
-
+ Updates the specified cross-connect.
- :param str public_ip_pool_id: (required)
- The `OCID`__ of the public IP pool.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str cross_connect_id: (required)
+ The `OCID`__ of the cross-connect.
- :param oci.core.models.RemovePublicIpPoolCapacityDetails remove_public_ip_pool_capacity_details: (required)
- The CIDR block to remove from the IP pool.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str opc_request_id: (optional)
- Unique identifier for the request.
- If you need to contact Oracle about a particular request, please provide the request ID.
+ :param oci.core.models.UpdateCrossConnectDetails update_cross_connect_details: (required)
+ Update CrossConnect fields.
- :param str opc_retry_token: (optional)
- A token that uniquely identifies a request so it can be retried in case of a timeout or
- server error without risk of executing that same action again. Retry tokens expire after 24
- hours, but can be invalidated before then due to conflicting operations (for example, if a resource
- has been deleted and purged from the system, then a retry of the original creation request
- may be rejected).
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous GET or POST response for that resource. The resource
+ will be updated or deleted only if the etag you provide matches the resource's current etag value.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -14631,28 +17304,27 @@ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_poo
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.PublicIpPool`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.CrossConnect`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use remove_public_ip_pool_capacity API.
+ Click `here `__ to see an example of how to use update_cross_connect API.
"""
- resource_path = "/publicIpPools/{publicIpPoolId}/actions/removeCapacity"
- method = "POST"
+ resource_path = "/crossConnects/{crossConnectId}"
+ method = "PUT"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "opc_request_id",
- "opc_retry_token"
+ "if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "remove_public_ip_pool_capacity got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_cross_connect got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "publicIpPoolId": public_ip_pool_id
+ "crossConnectId": cross_connect_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -14664,8 +17336,7 @@ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_poo
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", missing),
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
+ "if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -14674,52 +17345,36 @@ def remove_public_ip_pool_capacity(self, public_ip_pool_id, remove_public_ip_poo
retry_strategy = kwargs.get('retry_strategy')
if retry_strategy:
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
- self.base_client.add_opc_retry_token_if_needed(header_params)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=remove_public_ip_pool_capacity_details,
- response_type="PublicIpPool")
+ body=update_cross_connect_details,
+ response_type="CrossConnect")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=remove_public_ip_pool_capacity_details,
- response_type="PublicIpPool")
+ body=update_cross_connect_details,
+ response_type="CrossConnect")
- def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs):
+ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connect_group_details, **kwargs):
"""
- Removes a specified CIDR block from a VCN.
-
- **Notes:**
- - You cannot remove a CIDR block if an IP address in its range is in use.
- - Removing a CIDR block places your VCN in an updating state until the changes are complete. You cannot create or update the VCN's subnets, VLANs, LPGs, or route tables during this operation. The time to completion can take a few minutes. You can use the `GetWorkRequest` operation to check the status of the update.
-
-
- :param str vcn_id: (required)
- The `OCID`__ of the VCN.
+ Updates the specified cross-connect group's display name.
+ Avoid entering confidential information.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param oci.core.models.RemoveVcnCidrDetails remove_vcn_cidr_details: (required)
- Details object for removing a VCN CIDR.
+ :param str cross_connect_group_id: (required)
+ The `OCID`__ of the cross-connect group.
- :param str opc_request_id: (optional)
- Unique identifier for the request.
- If you need to contact Oracle about a particular request, please provide the request ID.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str opc_retry_token: (optional)
- A token that uniquely identifies a request so it can be retried in case of a timeout or
- server error without risk of executing that same action again. Retry tokens expire after 24
- hours, but can be invalidated before then due to conflicting operations (for example, if a resource
- has been deleted and purged from the system, then a retry of the original creation request
- may be rejected).
+ :param oci.core.models.UpdateCrossConnectGroupDetails update_cross_connect_group_details: (required)
+ Update CrossConnectGroup fields
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -14734,29 +17389,27 @@ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type None
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.CrossConnectGroup`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use remove_vcn_cidr API.
+ Click `here `__ to see an example of how to use update_cross_connect_group API.
"""
- resource_path = "/vcns/{vcnId}/actions/removeCidr"
- method = "POST"
+ resource_path = "/crossConnectGroups/{crossConnectGroupId}"
+ method = "PUT"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "opc_request_id",
- "opc_retry_token",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "remove_vcn_cidr got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_cross_connect_group got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "vcnId": vcn_id
+ "crossConnectGroupId": cross_connect_group_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -14768,8 +17421,6 @@ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs):
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", missing),
- "opc-retry-token": kwargs.get("opc_retry_token", missing),
"if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -14779,39 +17430,38 @@ def remove_vcn_cidr(self, vcn_id, remove_vcn_cidr_details, **kwargs):
retry_strategy = kwargs.get('retry_strategy')
if retry_strategy:
- if not isinstance(retry_strategy, retry.NoneRetryStrategy):
- self.base_client.add_opc_retry_token_if_needed(header_params)
return retry_strategy.make_retrying_call(
self.base_client.call_api,
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=remove_vcn_cidr_details)
+ body=update_cross_connect_group_details,
+ response_type="CrossConnectGroup")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=remove_vcn_cidr_details)
+ body=update_cross_connect_group_details,
+ response_type="CrossConnectGroup")
- def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwargs):
+ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs):
"""
- Updates the tags or display name associated to the specified BYOIP CIDR block.
+ Updates the specified set of DHCP options. You can update the display name or the options
+ themselves. Avoid entering confidential information.
+ Note that the `options` object you provide replaces the entire existing set of options.
- :param str byoip_range_id: (required)
- The `OCID`__ of the `ByoipRange` resource containing the BYOIP CIDR block.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+ :param str dhcp_id: (required)
+ The `OCID`__ for the set of DHCP options.
- :param oci.core.models.UpdateByoipRangeDetails update_byoip_range_details: (required)
- Byoip Range details.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str opc_request_id: (optional)
- Unique identifier for the request.
- If you need to contact Oracle about a particular request, please provide the request ID.
+ :param oci.core.models.UpdateDhcpDetails update_dhcp_details: (required)
+ Request object for updating a set of DHCP options.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -14826,28 +17476,27 @@ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwarg
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.ByoipRange`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DhcpOptions`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use update_byoip_range API.
+ Click `here `__ to see an example of how to use update_dhcp_options API.
"""
- resource_path = "/byoipRanges/{byoipRangeId}"
+ resource_path = "/dhcps/{dhcpId}"
method = "PUT"
# Don't accept unknown kwargs
expected_kwargs = [
"retry_strategy",
- "opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "update_byoip_range got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_dhcp_options got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "byoipRangeId": byoip_range_id
+ "dhcpId": dhcp_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -14859,7 +17508,6 @@ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwarg
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", missing),
"if-match": kwargs.get("if_match", missing)
}
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -14875,28 +17523,29 @@ def update_byoip_range(self, byoip_range_id, update_byoip_range_details, **kwarg
method=method,
path_params=path_params,
header_params=header_params,
- body=update_byoip_range_details,
- response_type="ByoipRange")
+ body=update_dhcp_details,
+ response_type="DhcpOptions")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
- header_params=header_params,
- body=update_byoip_range_details,
- response_type="ByoipRange")
+ header_params=header_params,
+ body=update_dhcp_details,
+ response_type="DhcpOptions")
- def update_cpe(self, cpe_id, update_cpe_details, **kwargs):
+ def update_drg(self, drg_id, update_drg_details, **kwargs):
"""
- Updates the specified CPE's display name or tags.
- Avoid entering confidential information.
+ Updates the specified DRG's display name or tags. Avoid entering confidential information.
- :param str cpe_id: (required)
- The OCID of the CPE.
+ :param str drg_id: (required)
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
- :param oci.core.models.UpdateCpeDetails update_cpe_details: (required)
- Details object for updating a CPE.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.UpdateDrgDetails update_drg_details: (required)
+ Details object for updating a DRG.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -14911,13 +17560,13 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.Cpe`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.Drg`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use update_cpe API.
+ Click `here `__ to see an example of how to use update_drg API.
"""
- resource_path = "/cpes/{cpeId}"
+ resource_path = "/drgs/{drgId}"
method = "PUT"
# Don't accept unknown kwargs
@@ -14928,10 +17577,10 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "update_cpe got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_drg got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "cpeId": cpe_id
+ "drgId": drg_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -14958,27 +17607,30 @@ def update_cpe(self, cpe_id, update_cpe_details, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- body=update_cpe_details,
- response_type="Cpe")
+ body=update_drg_details,
+ response_type="Drg")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=update_cpe_details,
- response_type="Cpe")
+ body=update_drg_details,
+ response_type="Drg")
- def update_cross_connect(self, cross_connect_id, update_cross_connect_details, **kwargs):
+ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details, **kwargs):
"""
- Updates the specified cross-connect.
+ Updates the display name and routing information for the specified `DrgAttachment`.
+ Avoid entering confidential information.
- :param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ :param str drg_attachment_id: (required)
+ The `OCID`__ of the DRG attachment.
- :param oci.core.models.UpdateCrossConnectDetails update_cross_connect_details: (required)
- Update CrossConnect fields.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.UpdateDrgAttachmentDetails update_drg_attachment_details: (required)
+ Details object for updating a `DrgAttachment`.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -14993,13 +17645,13 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, *
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.CrossConnect`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgAttachment`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use update_cross_connect API.
+ Click `here `__ to see an example of how to use update_drg_attachment API.
"""
- resource_path = "/crossConnects/{crossConnectId}"
+ resource_path = "/drgAttachments/{drgAttachmentId}"
method = "PUT"
# Don't accept unknown kwargs
@@ -15010,10 +17662,10 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, *
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "update_cross_connect got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_drg_attachment got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "crossConnectId": cross_connect_id
+ "drgAttachmentId": drg_attachment_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -15040,28 +17692,29 @@ def update_cross_connect(self, cross_connect_id, update_cross_connect_details, *
method=method,
path_params=path_params,
header_params=header_params,
- body=update_cross_connect_details,
- response_type="CrossConnect")
+ body=update_drg_attachment_details,
+ response_type="DrgAttachment")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=update_cross_connect_details,
- response_type="CrossConnect")
+ body=update_drg_attachment_details,
+ response_type="DrgAttachment")
- def update_cross_connect_group(self, cross_connect_group_id, update_cross_connect_group_details, **kwargs):
+ def update_drg_route_distribution(self, drg_route_distribution_id, update_drg_route_distribution_details, **kwargs):
"""
- Updates the specified cross-connect group's display name.
- Avoid entering confidential information.
+ Updates the specified route distribution
- :param str cross_connect_group_id: (required)
- The OCID of the cross-connect group.
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
- :param oci.core.models.UpdateCrossConnectGroupDetails update_cross_connect_group_details: (required)
- Update CrossConnectGroup fields
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.UpdateDrgRouteDistributionDetails update_drg_route_distribution_details: (required)
+ Details object for updating a route distribution
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -15076,13 +17729,13 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.CrossConnectGroup`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgRouteDistribution`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use update_cross_connect_group API.
+ Click `here `__ to see an example of how to use update_drg_route_distribution API.
"""
- resource_path = "/crossConnectGroups/{crossConnectGroupId}"
+ resource_path = "/drgRouteDistributions/{drgRouteDistributionId}"
method = "PUT"
# Don't accept unknown kwargs
@@ -15093,10 +17746,10 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "update_cross_connect_group got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_drg_route_distribution got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "crossConnectGroupId": cross_connect_group_id
+ "drgRouteDistributionId": drg_route_distribution_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -15123,35 +17776,29 @@ def update_cross_connect_group(self, cross_connect_group_id, update_cross_connec
method=method,
path_params=path_params,
header_params=header_params,
- body=update_cross_connect_group_details,
- response_type="CrossConnectGroup")
+ body=update_drg_route_distribution_details,
+ response_type="DrgRouteDistribution")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=update_cross_connect_group_details,
- response_type="CrossConnectGroup")
+ body=update_drg_route_distribution_details,
+ response_type="DrgRouteDistribution")
- def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs):
+ def update_drg_route_distribution_statements(self, drg_route_distribution_id, update_drg_route_distribution_statements_details, **kwargs):
"""
- Updates the specified set of DHCP options. You can update the display name or the options
- themselves. Avoid entering confidential information.
-
- Note that the `options` object you provide replaces the entire existing set of options.
+ Updates one or more route distribution statements in the specified route distribution.
- :param str dhcp_id: (required)
- The OCID for the set of DHCP options.
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
- :param oci.core.models.UpdateDhcpDetails update_dhcp_details: (required)
- Request object for updating a set of DHCP options.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str if_match: (optional)
- For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
- parameter to the value of the etag from a previous GET or POST response for that resource. The resource
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
+ :param oci.core.models.UpdateDrgRouteDistributionStatementsDetails update_drg_route_distribution_statements_details: (required)
+ Request to update one or more route distribution statements in the route distribution.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -15161,27 +17808,23 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DhcpOptions`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteDistributionStatement`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use update_dhcp_options API.
+ Click `here `__ to see an example of how to use update_drg_route_distribution_statements API.
"""
- resource_path = "/dhcps/{dhcpId}"
- method = "PUT"
+ resource_path = "/drgRouteDistributions/{drgRouteDistributionId}/actions/updateDrgRouteDistributionStatements"
+ method = "POST"
- # Don't accept unknown kwargs
- expected_kwargs = [
- "retry_strategy",
- "if_match"
- ]
+ expected_kwargs = ["retry_strategy"]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "update_dhcp_options got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_drg_route_distribution_statements got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "dhcpId": dhcp_id
+ "drgRouteDistributionId": drg_route_distribution_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -15192,10 +17835,8 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs):
header_params = {
"accept": "application/json",
- "content-type": "application/json",
- "if-match": kwargs.get("if_match", missing)
+ "content-type": "application/json"
}
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -15208,32 +17849,29 @@ def update_dhcp_options(self, dhcp_id, update_dhcp_details, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- body=update_dhcp_details,
- response_type="DhcpOptions")
+ body=update_drg_route_distribution_statements_details,
+ response_type="list[DrgRouteDistributionStatement]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=update_dhcp_details,
- response_type="DhcpOptions")
+ body=update_drg_route_distribution_statements_details,
+ response_type="list[DrgRouteDistributionStatement]")
- def update_drg(self, drg_id, update_drg_details, **kwargs):
+ def update_drg_route_rules(self, drg_route_table_id, update_drg_route_rules_details, **kwargs):
"""
- Updates the specified DRG's display name or tags. Avoid entering confidential information.
+ Updates one or more route rules in the specified DRG route table.
- :param str drg_id: (required)
- The OCID of the DRG.
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
- :param oci.core.models.UpdateDrgDetails update_drg_details: (required)
- Details object for updating a DRG.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param str if_match: (optional)
- For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
- parameter to the value of the etag from a previous GET or POST response for that resource. The resource
- will be updated or deleted only if the etag you provide matches the resource's current etag value.
+ :param oci.core.models.UpdateDrgRouteRulesDetails update_drg_route_rules_details: (required)
+ Request to update one or more route rules in the DRG route table.
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
@@ -15243,27 +17881,23 @@ def update_drg(self, drg_id, update_drg_details, **kwargs):
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.Drg`
+ :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.core.models.DrgRouteRule`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use update_drg API.
+ Click `here `__ to see an example of how to use update_drg_route_rules API.
"""
- resource_path = "/drgs/{drgId}"
- method = "PUT"
+ resource_path = "/drgRouteTables/{drgRouteTableId}/actions/updateDrgRouteRules"
+ method = "POST"
- # Don't accept unknown kwargs
- expected_kwargs = [
- "retry_strategy",
- "if_match"
- ]
+ expected_kwargs = ["retry_strategy"]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "update_drg got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_drg_route_rules got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "drgId": drg_id
+ "drgRouteTableId": drg_route_table_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -15274,10 +17908,8 @@ def update_drg(self, drg_id, update_drg_details, **kwargs):
header_params = {
"accept": "application/json",
- "content-type": "application/json",
- "if-match": kwargs.get("if_match", missing)
+ "content-type": "application/json"
}
- header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
retry_strategy = self.retry_strategy
if kwargs.get('retry_strategy'):
@@ -15290,28 +17922,29 @@ def update_drg(self, drg_id, update_drg_details, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- body=update_drg_details,
- response_type="Drg")
+ body=update_drg_route_rules_details,
+ response_type="list[DrgRouteRule]")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=update_drg_details,
- response_type="Drg")
+ body=update_drg_route_rules_details,
+ response_type="list[DrgRouteRule]")
- def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details, **kwargs):
+ def update_drg_route_table(self, drg_route_table_id, update_drg_route_table_details, **kwargs):
"""
- Updates the display name for the specified `DrgAttachment`.
- Avoid entering confidential information.
+ Updates the specified DRG route table.
- :param str drg_attachment_id: (required)
- The OCID of the DRG attachment.
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
- :param oci.core.models.UpdateDrgAttachmentDetails update_drg_attachment_details: (required)
- Details object for updating a `DrgAttachment`.
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.UpdateDrgRouteTableDetails update_drg_route_table_details: (required)
+ Details object used to updating a DRG route table.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -15326,13 +17959,13 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgAttachment`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.core.models.DrgRouteTable`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use update_drg_attachment API.
+ Click `here `__ to see an example of how to use update_drg_route_table API.
"""
- resource_path = "/drgAttachments/{drgAttachmentId}"
+ resource_path = "/drgRouteTables/{drgRouteTableId}"
method = "PUT"
# Don't accept unknown kwargs
@@ -15343,10 +17976,10 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "update_drg_attachment got unknown kwargs: {!r}".format(extra_kwargs))
+ "update_drg_route_table got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "drgAttachmentId": drg_attachment_id
+ "drgRouteTableId": drg_route_table_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -15373,16 +18006,16 @@ def update_drg_attachment(self, drg_attachment_id, update_drg_attachment_details
method=method,
path_params=path_params,
header_params=header_params,
- body=update_drg_attachment_details,
- response_type="DrgAttachment")
+ body=update_drg_route_table_details,
+ response_type="DrgRouteTable")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- body=update_drg_attachment_details,
- response_type="DrgAttachment")
+ body=update_drg_route_table_details,
+ response_type="DrgRouteTable")
def update_internet_gateway(self, ig_id, update_internet_gateway_details, **kwargs):
"""
@@ -15394,7 +18027,9 @@ def update_internet_gateway(self, ig_id, update_internet_gateway_details, **kwar
:param str ig_id: (required)
- The OCID of the internet gateway.
+ The `OCID`__ of the internet gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateInternetGatewayDetails update_internet_gateway_details: (required)
Details for updating the internet gateway.
@@ -15479,7 +18114,9 @@ def update_ip_sec_connection(self, ipsc_id, update_ip_sec_connection_details, **
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateIPSecConnectionDetails update_ip_sec_connection_details: (required)
Details object for updating a IPSec connection.
@@ -15572,7 +18209,9 @@ def update_ip_sec_connection_tunnel(self, ipsc_id, tunnel_id, update_ip_sec_conn
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -15668,7 +18307,9 @@ def update_ip_sec_connection_tunnel_shared_secret(self, ipsc_id, tunnel_id, upda
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -15852,7 +18493,9 @@ def update_local_peering_gateway(self, local_peering_gateway_id, update_local_pe
:param str local_peering_gateway_id: (required)
- The OCID of the local peering gateway.
+ The `OCID`__ of the local peering gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateLocalPeeringGatewayDetails update_local_peering_gateway_details: (required)
Details object for updating a local peering gateway.
@@ -16199,7 +18842,9 @@ def update_private_ip(self, private_ip_id, update_private_ip_details, **kwargs):
:param str private_ip_id: (required)
- The OCID of the private IP.
+ The `OCID`__ of the private IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdatePrivateIpDetails update_private_ip_details: (required)
Private IP details.
@@ -16321,7 +18966,9 @@ def update_public_ip(self, public_ip_id, update_public_ip_details, **kwargs):
:param str public_ip_id: (required)
- The OCID of the public IP.
+ The `OCID`__ of the public IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdatePublicIpDetails update_public_ip_details: (required)
Public IP details.
@@ -16493,7 +19140,9 @@ def update_remote_peering_connection(self, remote_peering_connection_id, update_
:param str remote_peering_connection_id: (required)
- The OCID of the remote peering connection (RPC).
+ The `OCID`__ of the remote peering connection (RPC).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateRemotePeeringConnectionDetails update_remote_peering_connection_details: (required)
Request to the update the peering connection to remote region
@@ -16578,7 +19227,9 @@ def update_route_table(self, rt_id, update_route_table_details, **kwargs):
:param str rt_id: (required)
- The OCID of the route table.
+ The `OCID`__ of the route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateRouteTableDetails update_route_table_details: (required)
Details object for updating a route table.
@@ -16664,7 +19315,9 @@ def update_security_list(self, security_list_id, update_security_list_details, *
:param str security_list_id: (required)
- The OCID of the security list.
+ The `OCID`__ of the security list.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateSecurityListDetails update_security_list_details: (required)
Updated details for the security list.
@@ -16831,7 +19484,9 @@ def update_subnet(self, subnet_id, update_subnet_details, **kwargs):
:param str subnet_id: (required)
- The OCID of the subnet.
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateSubnetDetails update_subnet_details: (required)
Details object for updating a subnet.
@@ -16915,7 +19570,9 @@ def update_tunnel_cpe_device_config(self, ipsc_id, tunnel_id, update_tunnel_cpe_
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -17129,7 +19786,9 @@ def update_virtual_circuit(self, virtual_circuit_id, update_virtual_circuit_deta
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateVirtualCircuitDetails update_virtual_circuit_details: (required)
Update VirtualCircuit fields.
@@ -17302,7 +19961,9 @@ def update_vnic(self, vnic_id, update_vnic_details, **kwargs):
:param str vnic_id: (required)
- The OCID of the VNIC.
+ The `OCID`__ of the VNIC.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateVnicDetails update_vnic_details: (required)
Details object for updating a VNIC.
@@ -17378,6 +20039,94 @@ def update_vnic(self, vnic_id, update_vnic_details, **kwargs):
body=update_vnic_details,
response_type="Vnic")
+ def upgrade_drg(self, drg_id, **kwargs):
+ """
+ Upgrades the DRG. After upgrade, you can control routing inside your DRG
+ via DRG attachments, route distributions, and DRG route tables.
+
+
+ :param str drg_id: (required)
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+ If you need to contact Oracle about a particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations (for example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ may be rejected).
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use upgrade_drg API.
+ """
+ resource_path = "/drgs/{drgId}/actions/upgrade"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "opc_retry_token"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "upgrade_drg got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "drgId": drg_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
def validate_byoip_range(self, byoip_range_id, **kwargs):
"""
Submits the BYOIP CIDR block you are importing for validation. Do not submit to Oracle for validation if you have not already
diff --git a/src/oci/core/virtual_network_client_composite_operations.py b/src/oci/core/virtual_network_client_composite_operations.py
index df98d22d53..e3de415152 100644
--- a/src/oci/core/virtual_network_client_composite_operations.py
+++ b/src/oci/core/virtual_network_client_composite_operations.py
@@ -27,6 +27,43 @@ def __init__(self, client, work_request_client=None, **kwargs):
self.client = client
self._work_request_client = work_request_client if work_request_client else oci.work_requests.WorkRequestClient(self.client._config, **self.client._kwargs)
+ def add_ipv6_vcn_cidr_and_wait_for_work_request(self, vcn_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.add_ipv6_vcn_cidr` and waits for the oci.work_requests.models.WorkRequest
+ to enter the given state(s).
+
+ :param str vcn_id: (required)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param list[str] work_request_states: (optional)
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.add_ipv6_vcn_cidr`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.add_ipv6_vcn_cidr(vcn_id, **operation_kwargs)
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
+ lowered_work_request_states = [w.lower() for w in work_request_states]
+ work_request_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self._work_request_client,
+ self._work_request_client.get_work_request(work_request_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
+ **waiter_kwargs
+ )
+ return waiter_result
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def add_public_ip_pool_capacity_and_wait_for_state(self, public_ip_pool_id, add_public_ip_pool_capacity_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.core.VirtualNetworkClient.add_public_ip_pool_capacity` and waits for the :py:class:`~oci.core.models.PublicIpPool` acted upon
@@ -159,7 +196,9 @@ def change_drg_compartment_and_wait_for_work_request(self, drg_id, change_drg_co
to enter the given state(s).
:param str drg_id: (required)
- The OCID of the DRG.
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeDrgCompartmentDetails change_drg_compartment_details: (required)
Request to change the compartment of a DRG.
@@ -197,7 +236,9 @@ def change_subnet_compartment_and_wait_for_work_request(self, subnet_id, change_
to enter the given state(s).
:param str subnet_id: (required)
- The OCID of the subnet.
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.ChangeSubnetCompartmentDetails change_subnet_compartment_details: (required)
Request to change the compartment of a given subnet.
@@ -537,6 +578,82 @@ def create_drg_attachment_and_wait_for_state(self, create_drg_attachment_details
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def create_drg_route_distribution_and_wait_for_state(self, create_drg_route_distribution_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.create_drg_route_distribution` and waits for the :py:class:`~oci.core.models.DrgRouteDistribution` acted upon
+ to enter the given state(s).
+
+ :param oci.core.models.CreateDrgRouteDistributionDetails create_drg_route_distribution_details: (required)
+ Details for creating a route distribution.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgRouteDistribution.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_drg_route_distribution`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.create_drg_route_distribution(create_drg_route_distribution_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_drg_route_distribution(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def create_drg_route_table_and_wait_for_state(self, create_drg_route_table_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.create_drg_route_table` and waits for the :py:class:`~oci.core.models.DrgRouteTable` acted upon
+ to enter the given state(s).
+
+ :param oci.core.models.CreateDrgRouteTableDetails create_drg_route_table_details: (required)
+ Details for creating a DRG route table.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgRouteTable.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_drg_route_table`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.create_drg_route_table(create_drg_route_table_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_drg_route_table(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def create_internet_gateway_and_wait_for_state(self, create_internet_gateway_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.core.VirtualNetworkClient.create_internet_gateway` and waits for the :py:class:`~oci.core.models.InternetGateway` acted upon
@@ -1188,7 +1305,9 @@ def delete_cross_connect_and_wait_for_state(self, cross_connect_id, wait_for_sta
to enter the given state(s).
:param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ The `OCID`__ of the cross-connect.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.CrossConnect.lifecycle_state`
@@ -1235,7 +1354,9 @@ def delete_cross_connect_group_and_wait_for_state(self, cross_connect_group_id,
to enter the given state(s).
:param str cross_connect_group_id: (required)
- The OCID of the cross-connect group.
+ The `OCID`__ of the cross-connect group.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.CrossConnectGroup.lifecycle_state`
@@ -1282,7 +1403,9 @@ def delete_dhcp_options_and_wait_for_state(self, dhcp_id, wait_for_states=[], op
to enter the given state(s).
:param str dhcp_id: (required)
- The OCID for the set of DHCP options.
+ The `OCID`__ for the set of DHCP options.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DhcpOptions.lifecycle_state`
@@ -1329,7 +1452,9 @@ def delete_drg_and_wait_for_state(self, drg_id, wait_for_states=[], operation_kw
to enter the given state(s).
:param str drg_id: (required)
- The OCID of the DRG.
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Drg.lifecycle_state`
@@ -1376,7 +1501,9 @@ def delete_drg_attachment_and_wait_for_state(self, drg_attachment_id, wait_for_s
to enter the given state(s).
:param str drg_attachment_id: (required)
- The OCID of the DRG attachment.
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgAttachment.lifecycle_state`
@@ -1417,13 +1544,113 @@ def delete_drg_attachment_and_wait_for_state(self, drg_attachment_id, wait_for_s
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def delete_drg_route_distribution_and_wait_for_state(self, drg_route_distribution_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.delete_drg_route_distribution` and waits for the :py:class:`~oci.core.models.DrgRouteDistribution` acted upon
+ to enter the given state(s).
+
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgRouteDistribution.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_drg_route_distribution`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ initial_get_result = self.client.get_drg_route_distribution(drg_route_distribution_id)
+ operation_result = None
+ try:
+ operation_result = self.client.delete_drg_route_distribution(drg_route_distribution_id, **operation_kwargs)
+ except oci.exceptions.ServiceError as e:
+ if e.status == 404:
+ return WAIT_RESOURCE_NOT_FOUND
+ else:
+ raise e
+
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ initial_get_result,
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ succeed_on_not_found=True,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def delete_drg_route_table_and_wait_for_state(self, drg_route_table_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.delete_drg_route_table` and waits for the :py:class:`~oci.core.models.DrgRouteTable` acted upon
+ to enter the given state(s).
+
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgRouteTable.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_drg_route_table`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ initial_get_result = self.client.get_drg_route_table(drg_route_table_id)
+ operation_result = None
+ try:
+ operation_result = self.client.delete_drg_route_table(drg_route_table_id, **operation_kwargs)
+ except oci.exceptions.ServiceError as e:
+ if e.status == 404:
+ return WAIT_RESOURCE_NOT_FOUND
+ else:
+ raise e
+
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ initial_get_result,
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ succeed_on_not_found=True,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def delete_internet_gateway_and_wait_for_state(self, ig_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.core.VirtualNetworkClient.delete_internet_gateway` and waits for the :py:class:`~oci.core.models.InternetGateway` acted upon
to enter the given state(s).
:param str ig_id: (required)
- The OCID of the internet gateway.
+ The `OCID`__ of the internet gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.InternetGateway.lifecycle_state`
@@ -1470,7 +1697,9 @@ def delete_ip_sec_connection_and_wait_for_state(self, ipsc_id, wait_for_states=[
to enter the given state(s).
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.IPSecConnection.lifecycle_state`
@@ -1566,7 +1795,9 @@ def delete_local_peering_gateway_and_wait_for_state(self, local_peering_gateway_
to enter the given state(s).
:param str local_peering_gateway_id: (required)
- The OCID of the local peering gateway.
+ The `OCID`__ of the local peering gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.LocalPeeringGateway.lifecycle_state`
@@ -1711,7 +1942,9 @@ def delete_public_ip_and_wait_for_state(self, public_ip_id, wait_for_states=[],
to enter the given state(s).
:param str public_ip_id: (required)
- The OCID of the public IP.
+ The `OCID`__ of the public IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.PublicIp.lifecycle_state`
@@ -1807,7 +2040,9 @@ def delete_remote_peering_connection_and_wait_for_state(self, remote_peering_con
to enter the given state(s).
:param str remote_peering_connection_id: (required)
- The OCID of the remote peering connection (RPC).
+ The `OCID`__ of the remote peering connection (RPC).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.RemotePeeringConnection.lifecycle_state`
@@ -1854,7 +2089,9 @@ def delete_route_table_and_wait_for_state(self, rt_id, wait_for_states=[], opera
to enter the given state(s).
:param str rt_id: (required)
- The OCID of the route table.
+ The `OCID`__ of the route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.RouteTable.lifecycle_state`
@@ -1901,7 +2138,9 @@ def delete_security_list_and_wait_for_state(self, security_list_id, wait_for_sta
to enter the given state(s).
:param str security_list_id: (required)
- The OCID of the security list.
+ The `OCID`__ of the security list.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.SecurityList.lifecycle_state`
@@ -1997,7 +2236,9 @@ def delete_subnet_and_wait_for_state(self, subnet_id, wait_for_states=[], operat
to enter the given state(s).
:param str subnet_id: (required)
- The OCID of the subnet.
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Subnet.lifecycle_state`
@@ -2093,7 +2334,9 @@ def delete_virtual_circuit_and_wait_for_state(self, virtual_circuit_id, wait_for
to enter the given state(s).
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param list[str] wait_for_states:
An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VirtualCircuit.lifecycle_state`
@@ -2266,6 +2509,86 @@ def modify_vcn_cidr_and_wait_for_work_request(self, vcn_id, modify_vcn_cidr_deta
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def remove_export_drg_route_distribution_and_wait_for_state(self, drg_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.remove_export_drg_route_distribution` and waits for the :py:class:`~oci.core.models.DrgAttachment` acted upon
+ to enter the given state(s).
+
+ :param str drg_attachment_id: (required)
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgAttachment.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.remove_export_drg_route_distribution`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.remove_export_drg_route_distribution(drg_attachment_id, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_drg_attachment(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def remove_import_drg_route_distribution_and_wait_for_state(self, drg_route_table_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.remove_import_drg_route_distribution` and waits for the :py:class:`~oci.core.models.DrgRouteTable` acted upon
+ to enter the given state(s).
+
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgRouteTable.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.remove_import_drg_route_distribution`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.remove_import_drg_route_distribution(drg_route_table_id, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_drg_route_table(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def remove_public_ip_pool_capacity_and_wait_for_state(self, public_ip_pool_id, remove_public_ip_pool_capacity_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.core.VirtualNetworkClient.remove_public_ip_pool_capacity` and waits for the :py:class:`~oci.core.models.PublicIpPool` acted upon
@@ -2398,7 +2721,9 @@ def update_cross_connect_and_wait_for_state(self, cross_connect_id, update_cross
to enter the given state(s).
:param str cross_connect_id: (required)
- The OCID of the cross-connect.
+ The `OCID`__ of the cross-connect.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateCrossConnectDetails update_cross_connect_details: (required)
Update CrossConnect fields.
@@ -2439,7 +2764,9 @@ def update_cross_connect_group_and_wait_for_state(self, cross_connect_group_id,
to enter the given state(s).
:param str cross_connect_group_id: (required)
- The OCID of the cross-connect group.
+ The `OCID`__ of the cross-connect group.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateCrossConnectGroupDetails update_cross_connect_group_details: (required)
Update CrossConnectGroup fields
@@ -2480,7 +2807,9 @@ def update_dhcp_options_and_wait_for_state(self, dhcp_id, update_dhcp_details, w
to enter the given state(s).
:param str dhcp_id: (required)
- The OCID for the set of DHCP options.
+ The `OCID`__ for the set of DHCP options.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateDhcpDetails update_dhcp_details: (required)
Request object for updating a set of DHCP options.
@@ -2521,7 +2850,9 @@ def update_drg_and_wait_for_state(self, drg_id, update_drg_details, wait_for_sta
to enter the given state(s).
:param str drg_id: (required)
- The OCID of the DRG.
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateDrgDetails update_drg_details: (required)
Details object for updating a DRG.
@@ -2562,7 +2893,9 @@ def update_drg_attachment_and_wait_for_state(self, drg_attachment_id, update_drg
to enter the given state(s).
:param str drg_attachment_id: (required)
- The OCID of the DRG attachment.
+ The `OCID`__ of the DRG attachment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateDrgAttachmentDetails update_drg_attachment_details: (required)
Details object for updating a `DrgAttachment`.
@@ -2597,13 +2930,101 @@ def update_drg_attachment_and_wait_for_state(self, drg_attachment_id, update_drg
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def update_drg_route_distribution_and_wait_for_state(self, drg_route_distribution_id, update_drg_route_distribution_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.update_drg_route_distribution` and waits for the :py:class:`~oci.core.models.DrgRouteDistribution` acted upon
+ to enter the given state(s).
+
+ :param str drg_route_distribution_id: (required)
+ The `OCID`__ of the route distribution.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.UpdateDrgRouteDistributionDetails update_drg_route_distribution_details: (required)
+ Details object for updating a route distribution
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgRouteDistribution.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_drg_route_distribution`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.update_drg_route_distribution(drg_route_distribution_id, update_drg_route_distribution_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_drg_route_distribution(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def update_drg_route_table_and_wait_for_state(self, drg_route_table_id, update_drg_route_table_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.update_drg_route_table` and waits for the :py:class:`~oci.core.models.DrgRouteTable` acted upon
+ to enter the given state(s).
+
+ :param str drg_route_table_id: (required)
+ The `OCID`__ of the DRG route table.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param oci.core.models.UpdateDrgRouteTableDetails update_drg_route_table_details: (required)
+ Details object used to updating a DRG route table.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.DrgRouteTable.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_drg_route_table`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.update_drg_route_table(drg_route_table_id, update_drg_route_table_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_drg_route_table(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def update_internet_gateway_and_wait_for_state(self, ig_id, update_internet_gateway_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.core.VirtualNetworkClient.update_internet_gateway` and waits for the :py:class:`~oci.core.models.InternetGateway` acted upon
to enter the given state(s).
:param str ig_id: (required)
- The OCID of the internet gateway.
+ The `OCID`__ of the internet gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateInternetGatewayDetails update_internet_gateway_details: (required)
Details for updating the internet gateway.
@@ -2644,7 +3065,9 @@ def update_ip_sec_connection_and_wait_for_state(self, ipsc_id, update_ip_sec_con
to enter the given state(s).
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateIPSecConnectionDetails update_ip_sec_connection_details: (required)
Details object for updating a IPSec connection.
@@ -2685,7 +3108,9 @@ def update_ip_sec_connection_tunnel_and_wait_for_state(self, ipsc_id, tunnel_id,
to enter the given state(s).
:param str ipsc_id: (required)
- The OCID of the IPSec connection.
+ The `OCID`__ of the IPSec connection.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str tunnel_id: (required)
The `OCID`__ of the tunnel.
@@ -2774,7 +3199,9 @@ def update_local_peering_gateway_and_wait_for_state(self, local_peering_gateway_
to enter the given state(s).
:param str local_peering_gateway_id: (required)
- The OCID of the local peering gateway.
+ The `OCID`__ of the local peering gateway.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateLocalPeeringGatewayDetails update_local_peering_gateway_details: (required)
Details object for updating a local peering gateway.
@@ -2901,7 +3328,9 @@ def update_public_ip_and_wait_for_state(self, public_ip_id, update_public_ip_det
to enter the given state(s).
:param str public_ip_id: (required)
- The OCID of the public IP.
+ The `OCID`__ of the public IP.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdatePublicIpDetails update_public_ip_details: (required)
Public IP details.
@@ -2985,7 +3414,9 @@ def update_remote_peering_connection_and_wait_for_state(self, remote_peering_con
to enter the given state(s).
:param str remote_peering_connection_id: (required)
- The OCID of the remote peering connection (RPC).
+ The `OCID`__ of the remote peering connection (RPC).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateRemotePeeringConnectionDetails update_remote_peering_connection_details: (required)
Request to the update the peering connection to remote region
@@ -3026,7 +3457,9 @@ def update_route_table_and_wait_for_state(self, rt_id, update_route_table_detail
to enter the given state(s).
:param str rt_id: (required)
- The OCID of the route table.
+ The `OCID`__ of the route table.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateRouteTableDetails update_route_table_details: (required)
Details object for updating a route table.
@@ -3067,7 +3500,9 @@ def update_security_list_and_wait_for_state(self, security_list_id, update_secur
to enter the given state(s).
:param str security_list_id: (required)
- The OCID of the security list.
+ The `OCID`__ of the security list.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateSecurityListDetails update_security_list_details: (required)
Updated details for the security list.
@@ -3151,7 +3586,9 @@ def update_subnet_and_wait_for_state(self, subnet_id, update_subnet_details, wai
to enter the given state(s).
:param str subnet_id: (required)
- The OCID of the subnet.
+ The `OCID`__ of the subnet.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateSubnetDetails update_subnet_details: (required)
Details object for updating a subnet.
@@ -3235,7 +3672,9 @@ def update_virtual_circuit_and_wait_for_state(self, virtual_circuit_id, update_v
to enter the given state(s).
:param str virtual_circuit_id: (required)
- The OCID of the virtual circuit.
+ The `OCID`__ of the virtual circuit.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateVirtualCircuitDetails update_virtual_circuit_details: (required)
Update VirtualCircuit fields.
@@ -3319,7 +3758,9 @@ def update_vnic_and_wait_for_state(self, vnic_id, update_vnic_details, wait_for_
to enter the given state(s).
:param str vnic_id: (required)
- The OCID of the VNIC.
+ The `OCID`__ of the VNIC.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.core.models.UpdateVnicDetails update_vnic_details: (required)
Details object for updating a VNIC.
@@ -3354,6 +3795,43 @@ def update_vnic_and_wait_for_state(self, vnic_id, update_vnic_details, wait_for_
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def upgrade_drg_and_wait_for_work_request(self, drg_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.core.VirtualNetworkClient.upgrade_drg` and waits for the oci.work_requests.models.WorkRequest
+ to enter the given state(s).
+
+ :param str drg_id: (required)
+ The `[OCID`__](/iaas/Content/General/Concepts/identifiers.htm) of the DRG.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param list[str] work_request_states: (optional)
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.upgrade_drg`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.upgrade_drg(drg_id, **operation_kwargs)
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
+ lowered_work_request_states = [w.lower() for w in work_request_states]
+ work_request_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self._work_request_client,
+ self._work_request_client.get_work_request(work_request_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
+ **waiter_kwargs
+ )
+ return waiter_result
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def validate_byoip_range_and_wait_for_work_request(self, byoip_range_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.core.VirtualNetworkClient.validate_byoip_range` and waits for the oci.work_requests.models.WorkRequest
diff --git a/src/oci/data_integration/models/connection_details.py b/src/oci/data_integration/models/connection_details.py
index 7349378b53..923b0bc005 100644
--- a/src/oci/data_integration/models/connection_details.py
+++ b/src/oci/data_integration/models/connection_details.py
@@ -53,7 +53,8 @@ def __init__(self, **kwargs):
:param model_type:
The value to assign to the model_type property of this ConnectionDetails.
- Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION"
+ Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type model_type: str
:param key:
@@ -185,7 +186,8 @@ def model_type(self):
**[Required]** Gets the model_type of this ConnectionDetails.
The type of the connection.
- Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION"
+ Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The model_type of this ConnectionDetails.
@@ -205,10 +207,7 @@ def model_type(self, model_type):
"""
allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION"]
if not value_allowed_none_or_none_sentinel(model_type, allowed_values):
- raise ValueError(
- "Invalid value for `model_type`, must be None or one of {0}"
- .format(allowed_values)
- )
+ model_type = 'UNKNOWN_ENUM_VALUE'
self._model_type = model_type
@property
diff --git a/src/oci/database_management/db_management_client.py b/src/oci/database_management/db_management_client.py
index 49ac9d3e65..0c41ea4063 100644
--- a/src/oci/database_management/db_management_client.py
+++ b/src/oci/database_management/db_management_client.py
@@ -182,7 +182,7 @@ def add_managed_database_to_managed_database_group(self, managed_database_group_
def change_database_parameters(self, managed_database_id, change_database_parameters_details, **kwargs):
"""
- Changes database parameters' values. There are two kinds of database
+ Changes database parameter values. There are two kinds of database
parameters:
- Dynamic parameters: They can be changed for the current Oracle
@@ -203,7 +203,7 @@ def change_database_parameters(self, managed_database_id, change_database_parame
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param oci.database_management.models.ChangeDatabaseParametersDetails change_database_parameters_details: (required)
- The details required to change database parameters' values.
+ The details required to change database parameter values.
:param str opc_request_id: (optional)
The client request ID for tracing.
@@ -811,6 +811,101 @@ def delete_managed_database_group(self, managed_database_group_id, **kwargs):
path_params=path_params,
header_params=header_params)
+ def get_cluster_cache_metric(self, managed_database_id, start_time, end_time, **kwargs):
+ """
+ Gets the metrics related to cluster cache for the Oracle
+ Real Application Clusters (Oracle RAC) database specified
+ by managedDatabaseId.
+
+
+ :param str managed_database_id: (required)
+ The `OCID`__ of the Managed Database.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param str start_time: (required)
+ The start time for the time range to retrieve the health metrics of a Managed Database
+ in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
+
+ :param str end_time: (required)
+ The end time for the time range to retrieve the health metrics of a Managed Database
+ in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
+
+ :param str opc_request_id: (optional)
+ The client request ID for tracing.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ClusterCacheMetric`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_cluster_cache_metric API.
+ """
+ resource_path = "/managedDatabases/{managedDatabaseId}/clusterCacheMetrics"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_cluster_cache_metric got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "managedDatabaseId": managed_database_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ query_params = {
+ "startTime": start_time,
+ "endTime": end_time
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="ClusterCacheMetric")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="ClusterCacheMetric")
+
def get_database_fleet_health_metrics(self, compare_baseline_time, compare_target_time, **kwargs):
"""
Gets the health metrics for a fleet of databases in a compartment or in a Managed Database Group.
@@ -2473,7 +2568,7 @@ def remove_managed_database_from_managed_database_group(self, managed_database_g
def reset_database_parameters(self, managed_database_id, reset_database_parameters_details, **kwargs):
"""
- Resets database parameters' values to their default or startup values.
+ Resets database parameter values to their default or startup values.
:param str managed_database_id: (required)
diff --git a/src/oci/database_management/models/__init__.py b/src/oci/database_management/models/__init__.py
index 60cbee2e89..a4fa834d4b 100644
--- a/src/oci/database_management/models/__init__.py
+++ b/src/oci/database_management/models/__init__.py
@@ -12,6 +12,7 @@
from .change_job_compartment_details import ChangeJobCompartmentDetails
from .change_managed_database_group_compartment_details import ChangeManagedDatabaseGroupCompartmentDetails
from .child_database import ChildDatabase
+from .cluster_cache_metric import ClusterCacheMetric
from .create_job_details import CreateJobDetails
from .create_managed_database_group_details import CreateManagedDatabaseGroupDetails
from .create_sql_job_details import CreateSqlJobDetails
@@ -20,6 +21,7 @@
from .database_home_metric_definition import DatabaseHomeMetricDefinition
from .database_home_metrics import DatabaseHomeMetrics
from .database_io_aggregate_metrics import DatabaseIOAggregateMetrics
+from .database_instance_home_metrics_definition import DatabaseInstanceHomeMetricsDefinition
from .database_parameter_summary import DatabaseParameterSummary
from .database_parameter_update_status import DatabaseParameterUpdateStatus
from .database_parameters_collection import DatabaseParametersCollection
@@ -31,6 +33,7 @@
from .fleet_metric_summary_definition import FleetMetricSummaryDefinition
from .fleet_status_by_category import FleetStatusByCategory
from .fleet_summary import FleetSummary
+from .instance_details import InstanceDetails
from .job import Job
from .job_collection import JobCollection
from .job_database import JobDatabase
@@ -55,12 +58,15 @@
from .object_storage_job_execution_result_details import ObjectStorageJobExecutionResultDetails
from .object_storage_job_execution_result_location import ObjectStorageJobExecutionResultLocation
from .parent_group import ParentGroup
+from .pdb_status_details import PdbStatusDetails
from .remove_managed_database_from_managed_database_group_details import RemoveManagedDatabaseFromManagedDatabaseGroupDetails
from .reset_database_parameters_details import ResetDatabaseParametersDetails
from .sql_job import SqlJob
from .tablespace import Tablespace
from .tablespace_collection import TablespaceCollection
from .tablespace_summary import TablespaceSummary
+from .time_series_metric_data_point import TimeSeriesMetricDataPoint
+from .time_series_metric_definition import TimeSeriesMetricDefinition
from .update_database_parameters_result import UpdateDatabaseParametersResult
from .update_managed_database_group_details import UpdateManagedDatabaseGroupDetails
@@ -74,6 +80,7 @@
"ChangeJobCompartmentDetails": ChangeJobCompartmentDetails,
"ChangeManagedDatabaseGroupCompartmentDetails": ChangeManagedDatabaseGroupCompartmentDetails,
"ChildDatabase": ChildDatabase,
+ "ClusterCacheMetric": ClusterCacheMetric,
"CreateJobDetails": CreateJobDetails,
"CreateManagedDatabaseGroupDetails": CreateManagedDatabaseGroupDetails,
"CreateSqlJobDetails": CreateSqlJobDetails,
@@ -82,6 +89,7 @@
"DatabaseHomeMetricDefinition": DatabaseHomeMetricDefinition,
"DatabaseHomeMetrics": DatabaseHomeMetrics,
"DatabaseIOAggregateMetrics": DatabaseIOAggregateMetrics,
+ "DatabaseInstanceHomeMetricsDefinition": DatabaseInstanceHomeMetricsDefinition,
"DatabaseParameterSummary": DatabaseParameterSummary,
"DatabaseParameterUpdateStatus": DatabaseParameterUpdateStatus,
"DatabaseParametersCollection": DatabaseParametersCollection,
@@ -93,6 +101,7 @@
"FleetMetricSummaryDefinition": FleetMetricSummaryDefinition,
"FleetStatusByCategory": FleetStatusByCategory,
"FleetSummary": FleetSummary,
+ "InstanceDetails": InstanceDetails,
"Job": Job,
"JobCollection": JobCollection,
"JobDatabase": JobDatabase,
@@ -117,12 +126,15 @@
"ObjectStorageJobExecutionResultDetails": ObjectStorageJobExecutionResultDetails,
"ObjectStorageJobExecutionResultLocation": ObjectStorageJobExecutionResultLocation,
"ParentGroup": ParentGroup,
+ "PdbStatusDetails": PdbStatusDetails,
"RemoveManagedDatabaseFromManagedDatabaseGroupDetails": RemoveManagedDatabaseFromManagedDatabaseGroupDetails,
"ResetDatabaseParametersDetails": ResetDatabaseParametersDetails,
"SqlJob": SqlJob,
"Tablespace": Tablespace,
"TablespaceCollection": TablespaceCollection,
"TablespaceSummary": TablespaceSummary,
+ "TimeSeriesMetricDataPoint": TimeSeriesMetricDataPoint,
+ "TimeSeriesMetricDefinition": TimeSeriesMetricDefinition,
"UpdateDatabaseParametersResult": UpdateDatabaseParametersResult,
"UpdateManagedDatabaseGroupDetails": UpdateManagedDatabaseGroupDetails
}
diff --git a/src/oci/database_management/models/activity_time_series_metrics.py b/src/oci/database_management/models/activity_time_series_metrics.py
index e9db801da2..369ec8b241 100644
--- a/src/oci/database_management/models/activity_time_series_metrics.py
+++ b/src/oci/database_management/models/activity_time_series_metrics.py
@@ -38,13 +38,18 @@ def __init__(self, **kwargs):
The value to assign to the cpu_count property of this ActivityTimeSeriesMetrics.
:type cpu_count: oci.database_management.models.MetricDataPoint
+ :param cluster:
+ The value to assign to the cluster property of this ActivityTimeSeriesMetrics.
+ :type cluster: oci.database_management.models.MetricDataPoint
+
"""
self.swagger_types = {
'timestamp': 'datetime',
'cpu_time': 'MetricDataPoint',
'wait_time': 'MetricDataPoint',
'user_io_time': 'MetricDataPoint',
- 'cpu_count': 'MetricDataPoint'
+ 'cpu_count': 'MetricDataPoint',
+ 'cluster': 'MetricDataPoint'
}
self.attribute_map = {
@@ -52,7 +57,8 @@ def __init__(self, **kwargs):
'cpu_time': 'cpuTime',
'wait_time': 'waitTime',
'user_io_time': 'userIoTime',
- 'cpu_count': 'cpuCount'
+ 'cpu_count': 'cpuCount',
+ 'cluster': 'cluster'
}
self._timestamp = None
@@ -60,6 +66,7 @@ def __init__(self, **kwargs):
self._wait_time = None
self._user_io_time = None
self._cpu_count = None
+ self._cluster = None
@property
def timestamp(self):
@@ -165,6 +172,26 @@ def cpu_count(self, cpu_count):
"""
self._cpu_count = cpu_count
+ @property
+ def cluster(self):
+ """
+ Gets the cluster of this ActivityTimeSeriesMetrics.
+
+ :return: The cluster of this ActivityTimeSeriesMetrics.
+ :rtype: oci.database_management.models.MetricDataPoint
+ """
+ return self._cluster
+
+ @cluster.setter
+ def cluster(self, cluster):
+ """
+ Sets the cluster of this ActivityTimeSeriesMetrics.
+
+ :param cluster: The cluster of this ActivityTimeSeriesMetrics.
+ :type: oci.database_management.models.MetricDataPoint
+ """
+ self._cluster = cluster
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/database_management/models/change_database_parameters_details.py b/src/oci/database_management/models/change_database_parameters_details.py
index 55bd7132eb..c9edfe5ef6 100644
--- a/src/oci/database_management/models/change_database_parameters_details.py
+++ b/src/oci/database_management/models/change_database_parameters_details.py
@@ -10,7 +10,7 @@
@init_model_state_from_kwargs
class ChangeDatabaseParametersDetails(object):
"""
- The details required to change database parameters' values.
+ The details required to change database parameter values.
"""
#: A constant which can be used with the scope property of a ChangeDatabaseParametersDetails.
diff --git a/src/oci/database_management/models/cluster_cache_metric.py b/src/oci/database_management/models/cluster_cache_metric.py
new file mode 100644
index 0000000000..44182189db
--- /dev/null
+++ b/src/oci/database_management/models/cluster_cache_metric.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ClusterCacheMetric(object):
+ """
+ The response containing the cluster cache metrics for the
+ Oracle Real Application Clusters (Oracle RAC) database.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ClusterCacheMetric object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param cluster_cache_metrics:
+ The value to assign to the cluster_cache_metrics property of this ClusterCacheMetric.
+ :type cluster_cache_metrics: list[oci.database_management.models.TimeSeriesMetricDefinition]
+
+ """
+ self.swagger_types = {
+ 'cluster_cache_metrics': 'list[TimeSeriesMetricDefinition]'
+ }
+
+ self.attribute_map = {
+ 'cluster_cache_metrics': 'clusterCacheMetrics'
+ }
+
+ self._cluster_cache_metrics = None
+
+ @property
+ def cluster_cache_metrics(self):
+ """
+ **[Required]** Gets the cluster_cache_metrics of this ClusterCacheMetric.
+ A list of cluster cache metrics for a specific database.
+
+
+ :return: The cluster_cache_metrics of this ClusterCacheMetric.
+ :rtype: list[oci.database_management.models.TimeSeriesMetricDefinition]
+ """
+ return self._cluster_cache_metrics
+
+ @cluster_cache_metrics.setter
+ def cluster_cache_metrics(self, cluster_cache_metrics):
+ """
+ Sets the cluster_cache_metrics of this ClusterCacheMetric.
+ A list of cluster cache metrics for a specific database.
+
+
+ :param cluster_cache_metrics: The cluster_cache_metrics of this ClusterCacheMetric.
+ :type: list[oci.database_management.models.TimeSeriesMetricDefinition]
+ """
+ self._cluster_cache_metrics = cluster_cache_metrics
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_management/models/database_home_metrics.py b/src/oci/database_management/models/database_home_metrics.py
index f17a663fbf..2c11e3972c 100644
--- a/src/oci/database_management/models/database_home_metrics.py
+++ b/src/oci/database_management/models/database_home_metrics.py
@@ -22,16 +22,23 @@ def __init__(self, **kwargs):
The value to assign to the database_home_metrics property of this DatabaseHomeMetrics.
:type database_home_metrics: oci.database_management.models.DatabaseHomeMetricDefinition
+ :param database_instance_home_metrics:
+ The value to assign to the database_instance_home_metrics property of this DatabaseHomeMetrics.
+ :type database_instance_home_metrics: list[oci.database_management.models.DatabaseInstanceHomeMetricsDefinition]
+
"""
self.swagger_types = {
- 'database_home_metrics': 'DatabaseHomeMetricDefinition'
+ 'database_home_metrics': 'DatabaseHomeMetricDefinition',
+ 'database_instance_home_metrics': 'list[DatabaseInstanceHomeMetricsDefinition]'
}
self.attribute_map = {
- 'database_home_metrics': 'databaseHomeMetrics'
+ 'database_home_metrics': 'databaseHomeMetrics',
+ 'database_instance_home_metrics': 'databaseInstanceHomeMetrics'
}
self._database_home_metrics = None
+ self._database_instance_home_metrics = None
@property
def database_home_metrics(self):
@@ -53,6 +60,30 @@ def database_home_metrics(self, database_home_metrics):
"""
self._database_home_metrics = database_home_metrics
+ @property
+ def database_instance_home_metrics(self):
+ """
+ Gets the database_instance_home_metrics of this DatabaseHomeMetrics.
+ The metrics for the RAC database instances.
+
+
+ :return: The database_instance_home_metrics of this DatabaseHomeMetrics.
+ :rtype: list[oci.database_management.models.DatabaseInstanceHomeMetricsDefinition]
+ """
+ return self._database_instance_home_metrics
+
+ @database_instance_home_metrics.setter
+ def database_instance_home_metrics(self, database_instance_home_metrics):
+ """
+ Sets the database_instance_home_metrics of this DatabaseHomeMetrics.
+ The metrics for the RAC database instances.
+
+
+ :param database_instance_home_metrics: The database_instance_home_metrics of this DatabaseHomeMetrics.
+ :type: list[oci.database_management.models.DatabaseInstanceHomeMetricsDefinition]
+ """
+ self._database_instance_home_metrics = database_instance_home_metrics
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/database_management/models/database_instance_home_metrics_definition.py b/src/oci/database_management/models/database_instance_home_metrics_definition.py
new file mode 100644
index 0000000000..4f2bf6670b
--- /dev/null
+++ b/src/oci/database_management/models/database_instance_home_metrics_definition.py
@@ -0,0 +1,223 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DatabaseInstanceHomeMetricsDefinition(object):
+ """
+ The response containing the CPU, Wait, DB Time, and Memory metrics
+ for a specific Oracle Real Application Clusters (Oracle RAC) database
+ instance.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DatabaseInstanceHomeMetricsDefinition object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param instance_name:
+ The value to assign to the instance_name property of this DatabaseInstanceHomeMetricsDefinition.
+ :type instance_name: str
+
+ :param instance_number:
+ The value to assign to the instance_number property of this DatabaseInstanceHomeMetricsDefinition.
+ :type instance_number: int
+
+ :param activity_time_series_metrics:
+ The value to assign to the activity_time_series_metrics property of this DatabaseInstanceHomeMetricsDefinition.
+ :type activity_time_series_metrics: list[oci.database_management.models.ActivityTimeSeriesMetrics]
+
+ :param db_time_aggregate_metrics:
+ The value to assign to the db_time_aggregate_metrics property of this DatabaseInstanceHomeMetricsDefinition.
+ :type db_time_aggregate_metrics: oci.database_management.models.DatabaseTimeAggregateMetrics
+
+ :param io_aggregate_metrics:
+ The value to assign to the io_aggregate_metrics property of this DatabaseInstanceHomeMetricsDefinition.
+ :type io_aggregate_metrics: oci.database_management.models.DatabaseIOAggregateMetrics
+
+ :param memory_aggregate_metrics:
+ The value to assign to the memory_aggregate_metrics property of this DatabaseInstanceHomeMetricsDefinition.
+ :type memory_aggregate_metrics: oci.database_management.models.MemoryAggregateMetrics
+
+ """
+ self.swagger_types = {
+ 'instance_name': 'str',
+ 'instance_number': 'int',
+ 'activity_time_series_metrics': 'list[ActivityTimeSeriesMetrics]',
+ 'db_time_aggregate_metrics': 'DatabaseTimeAggregateMetrics',
+ 'io_aggregate_metrics': 'DatabaseIOAggregateMetrics',
+ 'memory_aggregate_metrics': 'MemoryAggregateMetrics'
+ }
+
+ self.attribute_map = {
+ 'instance_name': 'instanceName',
+ 'instance_number': 'instanceNumber',
+ 'activity_time_series_metrics': 'activityTimeSeriesMetrics',
+ 'db_time_aggregate_metrics': 'dbTimeAggregateMetrics',
+ 'io_aggregate_metrics': 'ioAggregateMetrics',
+ 'memory_aggregate_metrics': 'memoryAggregateMetrics'
+ }
+
+ self._instance_name = None
+ self._instance_number = None
+ self._activity_time_series_metrics = None
+ self._db_time_aggregate_metrics = None
+ self._io_aggregate_metrics = None
+ self._memory_aggregate_metrics = None
+
+ @property
+ def instance_name(self):
+ """
+ **[Required]** Gets the instance_name of this DatabaseInstanceHomeMetricsDefinition.
+ The name of the Oracle Real Application Clusters (Oracle RAC)
+ database instance to which the corresponding metrics belong.
+
+
+ :return: The instance_name of this DatabaseInstanceHomeMetricsDefinition.
+ :rtype: str
+ """
+ return self._instance_name
+
+ @instance_name.setter
+ def instance_name(self, instance_name):
+ """
+ Sets the instance_name of this DatabaseInstanceHomeMetricsDefinition.
+ The name of the Oracle Real Application Clusters (Oracle RAC)
+ database instance to which the corresponding metrics belong.
+
+
+ :param instance_name: The instance_name of this DatabaseInstanceHomeMetricsDefinition.
+ :type: str
+ """
+ self._instance_name = instance_name
+
+ @property
+ def instance_number(self):
+ """
+ **[Required]** Gets the instance_number of this DatabaseInstanceHomeMetricsDefinition.
+ The number of Oracle Real Application Clusters (Oracle RAC)
+ database instance to which the corresponding metrics belong.
+
+
+ :return: The instance_number of this DatabaseInstanceHomeMetricsDefinition.
+ :rtype: int
+ """
+ return self._instance_number
+
+ @instance_number.setter
+ def instance_number(self, instance_number):
+ """
+ Sets the instance_number of this DatabaseInstanceHomeMetricsDefinition.
+ The number of Oracle Real Application Clusters (Oracle RAC)
+ database instance to which the corresponding metrics belong.
+
+
+ :param instance_number: The instance_number of this DatabaseInstanceHomeMetricsDefinition.
+ :type: int
+ """
+ self._instance_number = instance_number
+
+ @property
+ def activity_time_series_metrics(self):
+ """
+ **[Required]** Gets the activity_time_series_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ A list of the active session metrics for CPU and Wait time for
+ a specific Oracle Real Application Clusters (Oracle RAC)
+ database instance.
+
+
+ :return: The activity_time_series_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :rtype: list[oci.database_management.models.ActivityTimeSeriesMetrics]
+ """
+ return self._activity_time_series_metrics
+
+ @activity_time_series_metrics.setter
+ def activity_time_series_metrics(self, activity_time_series_metrics):
+ """
+ Sets the activity_time_series_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ A list of the active session metrics for CPU and Wait time for
+ a specific Oracle Real Application Clusters (Oracle RAC)
+ database instance.
+
+
+ :param activity_time_series_metrics: The activity_time_series_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :type: list[oci.database_management.models.ActivityTimeSeriesMetrics]
+ """
+ self._activity_time_series_metrics = activity_time_series_metrics
+
+ @property
+ def db_time_aggregate_metrics(self):
+ """
+ **[Required]** Gets the db_time_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+
+ :return: The db_time_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :rtype: oci.database_management.models.DatabaseTimeAggregateMetrics
+ """
+ return self._db_time_aggregate_metrics
+
+ @db_time_aggregate_metrics.setter
+ def db_time_aggregate_metrics(self, db_time_aggregate_metrics):
+ """
+ Sets the db_time_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+
+ :param db_time_aggregate_metrics: The db_time_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :type: oci.database_management.models.DatabaseTimeAggregateMetrics
+ """
+ self._db_time_aggregate_metrics = db_time_aggregate_metrics
+
+ @property
+ def io_aggregate_metrics(self):
+ """
+ **[Required]** Gets the io_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+
+ :return: The io_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :rtype: oci.database_management.models.DatabaseIOAggregateMetrics
+ """
+ return self._io_aggregate_metrics
+
+ @io_aggregate_metrics.setter
+ def io_aggregate_metrics(self, io_aggregate_metrics):
+ """
+ Sets the io_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+
+ :param io_aggregate_metrics: The io_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :type: oci.database_management.models.DatabaseIOAggregateMetrics
+ """
+ self._io_aggregate_metrics = io_aggregate_metrics
+
+ @property
+ def memory_aggregate_metrics(self):
+ """
+ **[Required]** Gets the memory_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+
+ :return: The memory_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :rtype: oci.database_management.models.MemoryAggregateMetrics
+ """
+ return self._memory_aggregate_metrics
+
+ @memory_aggregate_metrics.setter
+ def memory_aggregate_metrics(self, memory_aggregate_metrics):
+ """
+ Sets the memory_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+
+ :param memory_aggregate_metrics: The memory_aggregate_metrics of this DatabaseInstanceHomeMetricsDefinition.
+ :type: oci.database_management.models.MemoryAggregateMetrics
+ """
+ self._memory_aggregate_metrics = memory_aggregate_metrics
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_management/models/database_parameter_summary.py b/src/oci/database_management/models/database_parameter_summary.py
index a0ace1919d..5627e66ddd 100644
--- a/src/oci/database_management/models/database_parameter_summary.py
+++ b/src/oci/database_management/models/database_parameter_summary.py
@@ -10,7 +10,7 @@
@init_model_state_from_kwargs
class DatabaseParameterSummary(object):
"""
- The details of a database parameter.
+ A summary of the database parameter.
"""
#: A constant which can be used with the type property of a DatabaseParameterSummary.
diff --git a/src/oci/database_management/models/database_parameters_collection.py b/src/oci/database_management/models/database_parameters_collection.py
index 8bcece0ac4..733c8b95d5 100644
--- a/src/oci/database_management/models/database_parameters_collection.py
+++ b/src/oci/database_management/models/database_parameters_collection.py
@@ -10,7 +10,7 @@
@init_model_state_from_kwargs
class DatabaseParametersCollection(object):
"""
- The details of the database parameters.
+ A collection of database parameters.
"""
#: A constant which can be used with the database_type property of a DatabaseParametersCollection.
diff --git a/src/oci/database_management/models/database_time_aggregate_metrics.py b/src/oci/database_management/models/database_time_aggregate_metrics.py
index 433b084dd5..3bd81d664b 100644
--- a/src/oci/database_management/models/database_time_aggregate_metrics.py
+++ b/src/oci/database_management/models/database_time_aggregate_metrics.py
@@ -34,25 +34,32 @@ def __init__(self, **kwargs):
The value to assign to the user_io_time property of this DatabaseTimeAggregateMetrics.
:type user_io_time: oci.database_management.models.MetricDataPoint
+ :param cluster:
+ The value to assign to the cluster property of this DatabaseTimeAggregateMetrics.
+ :type cluster: oci.database_management.models.MetricDataPoint
+
"""
self.swagger_types = {
'cpu_count': 'MetricDataPoint',
'cpu_time': 'MetricDataPoint',
'wait_time': 'MetricDataPoint',
- 'user_io_time': 'MetricDataPoint'
+ 'user_io_time': 'MetricDataPoint',
+ 'cluster': 'MetricDataPoint'
}
self.attribute_map = {
'cpu_count': 'cpuCount',
'cpu_time': 'cpuTime',
'wait_time': 'waitTime',
- 'user_io_time': 'userIoTime'
+ 'user_io_time': 'userIoTime',
+ 'cluster': 'cluster'
}
self._cpu_count = None
self._cpu_time = None
self._wait_time = None
self._user_io_time = None
+ self._cluster = None
@property
def cpu_count(self):
@@ -134,6 +141,26 @@ def user_io_time(self, user_io_time):
"""
self._user_io_time = user_io_time
+ @property
+ def cluster(self):
+ """
+ Gets the cluster of this DatabaseTimeAggregateMetrics.
+
+ :return: The cluster of this DatabaseTimeAggregateMetrics.
+ :rtype: oci.database_management.models.MetricDataPoint
+ """
+ return self._cluster
+
+ @cluster.setter
+ def cluster(self, cluster):
+ """
+ Sets the cluster of this DatabaseTimeAggregateMetrics.
+
+ :param cluster: The cluster of this DatabaseTimeAggregateMetrics.
+ :type: oci.database_management.models.MetricDataPoint
+ """
+ self._cluster = cluster
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/database_management/models/instance_details.py b/src/oci/database_management/models/instance_details.py
new file mode 100644
index 0000000000..84e6b4d2be
--- /dev/null
+++ b/src/oci/database_management/models/instance_details.py
@@ -0,0 +1,183 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class InstanceDetails(object):
+ """
+ The details of the Oracle Real Application Clusters (Oracle RAC) database instance.
+ """
+
+ #: A constant which can be used with the status property of a InstanceDetails.
+ #: This constant has a value of "UP"
+ STATUS_UP = "UP"
+
+ #: A constant which can be used with the status property of a InstanceDetails.
+ #: This constant has a value of "DOWN"
+ STATUS_DOWN = "DOWN"
+
+ #: A constant which can be used with the status property of a InstanceDetails.
+ #: This constant has a value of "UNKNOWN"
+ STATUS_UNKNOWN = "UNKNOWN"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new InstanceDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this InstanceDetails.
+ :type id: int
+
+ :param name:
+ The value to assign to the name property of this InstanceDetails.
+ :type name: str
+
+ :param host_name:
+ The value to assign to the host_name property of this InstanceDetails.
+ :type host_name: str
+
+ :param status:
+ The value to assign to the status property of this InstanceDetails.
+ Allowed values for this property are: "UP", "DOWN", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ """
+ self.swagger_types = {
+ 'id': 'int',
+ 'name': 'str',
+ 'host_name': 'str',
+ 'status': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'name': 'name',
+ 'host_name': 'hostName',
+ 'status': 'status'
+ }
+
+ self._id = None
+ self._name = None
+ self._host_name = None
+ self._status = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this InstanceDetails.
+ The ID of the Oracle RAC database instance.
+
+
+ :return: The id of this InstanceDetails.
+ :rtype: int
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this InstanceDetails.
+ The ID of the Oracle RAC database instance.
+
+
+ :param id: The id of this InstanceDetails.
+ :type: int
+ """
+ self._id = id
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this InstanceDetails.
+ The name of the Oracle RAC database instance.
+
+
+ :return: The name of this InstanceDetails.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this InstanceDetails.
+ The name of the Oracle RAC database instance.
+
+
+ :param name: The name of this InstanceDetails.
+ :type: str
+ """
+ self._name = name
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this InstanceDetails.
+ The name of the host of the Oracle RAC database instance.
+
+
+ :return: The host_name of this InstanceDetails.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this InstanceDetails.
+ The name of the host of the Oracle RAC database instance.
+
+
+ :param host_name: The host_name of this InstanceDetails.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this InstanceDetails.
+ The status of the Oracle RAC database instance.
+
+ Allowed values for this property are: "UP", "DOWN", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this InstanceDetails.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this InstanceDetails.
+ The status of the Oracle RAC database instance.
+
+
+ :param status: The status of this InstanceDetails.
+ :type: str
+ """
+ allowed_values = ["UP", "DOWN", "UNKNOWN"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_management/models/managed_database.py b/src/oci/database_management/models/managed_database.py
index b6b0667a56..01f31202b1 100644
--- a/src/oci/database_management/models/managed_database.py
+++ b/src/oci/database_management/models/managed_database.py
@@ -96,6 +96,30 @@ def __init__(self, **kwargs):
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type database_status: str
+ :param parent_container_name:
+ The value to assign to the parent_container_name property of this ManagedDatabase.
+ :type parent_container_name: str
+
+ :param parent_container_compartment_id:
+ The value to assign to the parent_container_compartment_id property of this ManagedDatabase.
+ :type parent_container_compartment_id: str
+
+ :param instance_count:
+ The value to assign to the instance_count property of this ManagedDatabase.
+ :type instance_count: int
+
+ :param instance_details:
+ The value to assign to the instance_details property of this ManagedDatabase.
+ :type instance_details: list[oci.database_management.models.InstanceDetails]
+
+ :param pdb_count:
+ The value to assign to the pdb_count property of this ManagedDatabase.
+ :type pdb_count: int
+
+ :param pdb_status:
+ The value to assign to the pdb_status property of this ManagedDatabase.
+ :type pdb_status: list[oci.database_management.models.PdbStatusDetails]
+
:param additional_details:
The value to assign to the additional_details property of this ManagedDatabase.
:type additional_details: dict(str, str)
@@ -112,6 +136,12 @@ def __init__(self, **kwargs):
'managed_database_groups': 'list[ParentGroup]',
'time_created': 'datetime',
'database_status': 'str',
+ 'parent_container_name': 'str',
+ 'parent_container_compartment_id': 'str',
+ 'instance_count': 'int',
+ 'instance_details': 'list[InstanceDetails]',
+ 'pdb_count': 'int',
+ 'pdb_status': 'list[PdbStatusDetails]',
'additional_details': 'dict(str, str)'
}
@@ -126,6 +156,12 @@ def __init__(self, **kwargs):
'managed_database_groups': 'managedDatabaseGroups',
'time_created': 'timeCreated',
'database_status': 'databaseStatus',
+ 'parent_container_name': 'parentContainerName',
+ 'parent_container_compartment_id': 'parentContainerCompartmentId',
+ 'instance_count': 'instanceCount',
+ 'instance_details': 'instanceDetails',
+ 'pdb_count': 'pdbCount',
+ 'pdb_status': 'pdbStatus',
'additional_details': 'additionalDetails'
}
@@ -139,6 +175,12 @@ def __init__(self, **kwargs):
self._managed_database_groups = None
self._time_created = None
self._database_status = None
+ self._parent_container_name = None
+ self._parent_container_compartment_id = None
+ self._instance_count = None
+ self._instance_details = None
+ self._pdb_count = None
+ self._pdb_status = None
self._additional_details = None
@property
@@ -415,6 +457,158 @@ def database_status(self, database_status):
database_status = 'UNKNOWN_ENUM_VALUE'
self._database_status = database_status
+ @property
+ def parent_container_name(self):
+ """
+ Gets the parent_container_name of this ManagedDatabase.
+ The name of the parent Container Database.
+
+
+ :return: The parent_container_name of this ManagedDatabase.
+ :rtype: str
+ """
+ return self._parent_container_name
+
+ @parent_container_name.setter
+ def parent_container_name(self, parent_container_name):
+ """
+ Sets the parent_container_name of this ManagedDatabase.
+ The name of the parent Container Database.
+
+
+ :param parent_container_name: The parent_container_name of this ManagedDatabase.
+ :type: str
+ """
+ self._parent_container_name = parent_container_name
+
+ @property
+ def parent_container_compartment_id(self):
+ """
+ Gets the parent_container_compartment_id of this ManagedDatabase.
+ The `OCID`__ of the compartment
+ in which the parent Container Database resides, if the Managed Database
+ is a Pluggable Database (PDB).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The parent_container_compartment_id of this ManagedDatabase.
+ :rtype: str
+ """
+ return self._parent_container_compartment_id
+
+ @parent_container_compartment_id.setter
+ def parent_container_compartment_id(self, parent_container_compartment_id):
+ """
+ Sets the parent_container_compartment_id of this ManagedDatabase.
+ The `OCID`__ of the compartment
+ in which the parent Container Database resides, if the Managed Database
+ is a Pluggable Database (PDB).
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param parent_container_compartment_id: The parent_container_compartment_id of this ManagedDatabase.
+ :type: str
+ """
+ self._parent_container_compartment_id = parent_container_compartment_id
+
+ @property
+ def instance_count(self):
+ """
+ Gets the instance_count of this ManagedDatabase.
+ The number of Oracle Real Application Clusters (Oracle RAC) database instances.
+
+
+ :return: The instance_count of this ManagedDatabase.
+ :rtype: int
+ """
+ return self._instance_count
+
+ @instance_count.setter
+ def instance_count(self, instance_count):
+ """
+ Sets the instance_count of this ManagedDatabase.
+ The number of Oracle Real Application Clusters (Oracle RAC) database instances.
+
+
+ :param instance_count: The instance_count of this ManagedDatabase.
+ :type: int
+ """
+ self._instance_count = instance_count
+
+ @property
+ def instance_details(self):
+ """
+ Gets the instance_details of this ManagedDatabase.
+ The details of the Oracle Real Application Clusters (Oracle RAC) database instances.
+
+
+ :return: The instance_details of this ManagedDatabase.
+ :rtype: list[oci.database_management.models.InstanceDetails]
+ """
+ return self._instance_details
+
+ @instance_details.setter
+ def instance_details(self, instance_details):
+ """
+ Sets the instance_details of this ManagedDatabase.
+ The details of the Oracle Real Application Clusters (Oracle RAC) database instances.
+
+
+ :param instance_details: The instance_details of this ManagedDatabase.
+ :type: list[oci.database_management.models.InstanceDetails]
+ """
+ self._instance_details = instance_details
+
+ @property
+ def pdb_count(self):
+ """
+ Gets the pdb_count of this ManagedDatabase.
+ The number of PDBs in the Container Database.
+
+
+ :return: The pdb_count of this ManagedDatabase.
+ :rtype: int
+ """
+ return self._pdb_count
+
+ @pdb_count.setter
+ def pdb_count(self, pdb_count):
+ """
+ Sets the pdb_count of this ManagedDatabase.
+ The number of PDBs in the Container Database.
+
+
+ :param pdb_count: The pdb_count of this ManagedDatabase.
+ :type: int
+ """
+ self._pdb_count = pdb_count
+
+ @property
+ def pdb_status(self):
+ """
+ Gets the pdb_status of this ManagedDatabase.
+ The status of the PDB in the Container Database.
+
+
+ :return: The pdb_status of this ManagedDatabase.
+ :rtype: list[oci.database_management.models.PdbStatusDetails]
+ """
+ return self._pdb_status
+
+ @pdb_status.setter
+ def pdb_status(self, pdb_status):
+ """
+ Sets the pdb_status of this ManagedDatabase.
+ The status of the PDB in the Container Database.
+
+
+ :param pdb_status: The pdb_status of this ManagedDatabase.
+ :type: list[oci.database_management.models.PdbStatusDetails]
+ """
+ self._pdb_status = pdb_status
+
@property
def additional_details(self):
"""
diff --git a/src/oci/database_management/models/pdb_status_details.py b/src/oci/database_management/models/pdb_status_details.py
new file mode 100644
index 0000000000..2805f64b86
--- /dev/null
+++ b/src/oci/database_management/models/pdb_status_details.py
@@ -0,0 +1,121 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class PdbStatusDetails(object):
+ """
+ The number and status of PDBs in a Container Database.
+ """
+
+ #: A constant which can be used with the status property of a PdbStatusDetails.
+ #: This constant has a value of "UP"
+ STATUS_UP = "UP"
+
+ #: A constant which can be used with the status property of a PdbStatusDetails.
+ #: This constant has a value of "DOWN"
+ STATUS_DOWN = "DOWN"
+
+ #: A constant which can be used with the status property of a PdbStatusDetails.
+ #: This constant has a value of "UNKNOWN"
+ STATUS_UNKNOWN = "UNKNOWN"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PdbStatusDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param status:
+ The value to assign to the status property of this PdbStatusDetails.
+ Allowed values for this property are: "UP", "DOWN", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param count:
+ The value to assign to the count property of this PdbStatusDetails.
+ :type count: int
+
+ """
+ self.swagger_types = {
+ 'status': 'str',
+ 'count': 'int'
+ }
+
+ self.attribute_map = {
+ 'status': 'status',
+ 'count': 'count'
+ }
+
+ self._status = None
+ self._count = None
+
+ @property
+ def status(self):
+ """
+ Gets the status of this PdbStatusDetails.
+ The status of the PDBs with this count.
+
+ Allowed values for this property are: "UP", "DOWN", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this PdbStatusDetails.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this PdbStatusDetails.
+ The status of the PDBs with this count.
+
+
+ :param status: The status of this PdbStatusDetails.
+ :type: str
+ """
+ allowed_values = ["UP", "DOWN", "UNKNOWN"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def count(self):
+ """
+ Gets the count of this PdbStatusDetails.
+ The number of PDBs with this status.
+
+
+ :return: The count of this PdbStatusDetails.
+ :rtype: int
+ """
+ return self._count
+
+ @count.setter
+ def count(self, count):
+ """
+ Sets the count of this PdbStatusDetails.
+ The number of PDBs with this status.
+
+
+ :param count: The count of this PdbStatusDetails.
+ :type: int
+ """
+ self._count = count
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_management/models/reset_database_parameters_details.py b/src/oci/database_management/models/reset_database_parameters_details.py
index 53e8c7faa8..de1480a29b 100644
--- a/src/oci/database_management/models/reset_database_parameters_details.py
+++ b/src/oci/database_management/models/reset_database_parameters_details.py
@@ -10,7 +10,7 @@
@init_model_state_from_kwargs
class ResetDatabaseParametersDetails(object):
"""
- The details required to reset database parameters' values.
+ The details required to reset database parameter values.
"""
#: A constant which can be used with the scope property of a ResetDatabaseParametersDetails.
@@ -86,12 +86,13 @@ def scope(self):
**[Required]** Gets the scope of this ResetDatabaseParametersDetails.
The clause used to specify when the parameter change takes effect.
- Use `MEMORY` to make the change in memory and affect it immediately.
- Use `SPFILE` to make the change in the server parameter file. The
- change takes effect when the database is next shut down and started
- up again. Use `BOTH` to make the change in memory and in the server
- parameter file. The change takes effect immediately and persists
- after the database is shut down and started up again.
+ Use `MEMORY` to make the change in memory and ensure that it takes
+ effect immediately. Use `SPFILE` to make the change in the server
+ parameter file. The change takes effect when the database is next
+ shut down and started up again. Use `BOTH` to make the change in
+ memory and in the server parameter file. The change takes effect
+ immediately and persists after the database is shut down and
+ started up again.
Allowed values for this property are: "MEMORY", "SPFILE", "BOTH"
@@ -107,12 +108,13 @@ def scope(self, scope):
Sets the scope of this ResetDatabaseParametersDetails.
The clause used to specify when the parameter change takes effect.
- Use `MEMORY` to make the change in memory and affect it immediately.
- Use `SPFILE` to make the change in the server parameter file. The
- change takes effect when the database is next shut down and started
- up again. Use `BOTH` to make the change in memory and in the server
- parameter file. The change takes effect immediately and persists
- after the database is shut down and started up again.
+ Use `MEMORY` to make the change in memory and ensure that it takes
+ effect immediately. Use `SPFILE` to make the change in the server
+ parameter file. The change takes effect when the database is next
+ shut down and started up again. Use `BOTH` to make the change in
+ memory and in the server parameter file. The change takes effect
+ immediately and persists after the database is shut down and
+ started up again.
:param scope: The scope of this ResetDatabaseParametersDetails.
diff --git a/src/oci/database_management/models/time_series_metric_data_point.py b/src/oci/database_management/models/time_series_metric_data_point.py
new file mode 100644
index 0000000000..71692d8d5d
--- /dev/null
+++ b/src/oci/database_management/models/time_series_metric_data_point.py
@@ -0,0 +1,163 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TimeSeriesMetricDataPoint(object):
+ """
+ The metric values with dimension details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TimeSeriesMetricDataPoint object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param timestamp:
+ The value to assign to the timestamp property of this TimeSeriesMetricDataPoint.
+ :type timestamp: datetime
+
+ :param value:
+ The value to assign to the value property of this TimeSeriesMetricDataPoint.
+ :type value: float
+
+ :param unit:
+ The value to assign to the unit property of this TimeSeriesMetricDataPoint.
+ :type unit: str
+
+ :param dimensions:
+ The value to assign to the dimensions property of this TimeSeriesMetricDataPoint.
+ :type dimensions: list[oci.database_management.models.MetricDimensionDefinition]
+
+ """
+ self.swagger_types = {
+ 'timestamp': 'datetime',
+ 'value': 'float',
+ 'unit': 'str',
+ 'dimensions': 'list[MetricDimensionDefinition]'
+ }
+
+ self.attribute_map = {
+ 'timestamp': 'timestamp',
+ 'value': 'value',
+ 'unit': 'unit',
+ 'dimensions': 'dimensions'
+ }
+
+ self._timestamp = None
+ self._value = None
+ self._unit = None
+ self._dimensions = None
+
+ @property
+ def timestamp(self):
+ """
+ **[Required]** Gets the timestamp of this TimeSeriesMetricDataPoint.
+ The date and time the metric was created.
+
+
+ :return: The timestamp of this TimeSeriesMetricDataPoint.
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """
+ Sets the timestamp of this TimeSeriesMetricDataPoint.
+ The date and time the metric was created.
+
+
+ :param timestamp: The timestamp of this TimeSeriesMetricDataPoint.
+ :type: datetime
+ """
+ self._timestamp = timestamp
+
+ @property
+ def value(self):
+ """
+ **[Required]** Gets the value of this TimeSeriesMetricDataPoint.
+ The value of the metric.
+
+
+ :return: The value of this TimeSeriesMetricDataPoint.
+ :rtype: float
+ """
+ return self._value
+
+ @value.setter
+ def value(self, value):
+ """
+ Sets the value of this TimeSeriesMetricDataPoint.
+ The value of the metric.
+
+
+ :param value: The value of this TimeSeriesMetricDataPoint.
+ :type: float
+ """
+ self._value = value
+
+ @property
+ def unit(self):
+ """
+ **[Required]** Gets the unit of this TimeSeriesMetricDataPoint.
+ The unit of the metric value.
+
+
+ :return: The unit of this TimeSeriesMetricDataPoint.
+ :rtype: str
+ """
+ return self._unit
+
+ @unit.setter
+ def unit(self, unit):
+ """
+ Sets the unit of this TimeSeriesMetricDataPoint.
+ The unit of the metric value.
+
+
+ :param unit: The unit of this TimeSeriesMetricDataPoint.
+ :type: str
+ """
+ self._unit = unit
+
+ @property
+ def dimensions(self):
+ """
+ Gets the dimensions of this TimeSeriesMetricDataPoint.
+ The dimensions of the metric.
+
+
+ :return: The dimensions of this TimeSeriesMetricDataPoint.
+ :rtype: list[oci.database_management.models.MetricDimensionDefinition]
+ """
+ return self._dimensions
+
+ @dimensions.setter
+ def dimensions(self, dimensions):
+ """
+ Sets the dimensions of this TimeSeriesMetricDataPoint.
+ The dimensions of the metric.
+
+
+ :param dimensions: The dimensions of this TimeSeriesMetricDataPoint.
+ :type: list[oci.database_management.models.MetricDimensionDefinition]
+ """
+ self._dimensions = dimensions
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_management/models/time_series_metric_definition.py b/src/oci/database_management/models/time_series_metric_definition.py
new file mode 100644
index 0000000000..03842779d1
--- /dev/null
+++ b/src/oci/database_management/models/time_series_metric_definition.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TimeSeriesMetricDefinition(object):
+ """
+ The response object representing time series metric details
+ for a specific database at a particular time.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TimeSeriesMetricDefinition object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this TimeSeriesMetricDefinition.
+ :type metric_name: str
+
+ :param datapoints:
+ The value to assign to the datapoints property of this TimeSeriesMetricDefinition.
+ :type datapoints: list[oci.database_management.models.TimeSeriesMetricDataPoint]
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'datapoints': 'list[TimeSeriesMetricDataPoint]'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'datapoints': 'datapoints'
+ }
+
+ self._metric_name = None
+ self._datapoints = None
+
+ @property
+ def metric_name(self):
+ """
+ **[Required]** Gets the metric_name of this TimeSeriesMetricDefinition.
+ The name of the metric the time series data corresponds to.
+
+
+ :return: The metric_name of this TimeSeriesMetricDefinition.
+ :rtype: str
+ """
+ return self._metric_name
+
+ @metric_name.setter
+ def metric_name(self, metric_name):
+ """
+ Sets the metric_name of this TimeSeriesMetricDefinition.
+ The name of the metric the time series data corresponds to.
+
+
+ :param metric_name: The metric_name of this TimeSeriesMetricDefinition.
+ :type: str
+ """
+ self._metric_name = metric_name
+
+ @property
+ def datapoints(self):
+ """
+ **[Required]** Gets the datapoints of this TimeSeriesMetricDefinition.
+ The time series metric data for the given metric.
+
+
+ :return: The datapoints of this TimeSeriesMetricDefinition.
+ :rtype: list[oci.database_management.models.TimeSeriesMetricDataPoint]
+ """
+ return self._datapoints
+
+ @datapoints.setter
+ def datapoints(self, datapoints):
+ """
+ Sets the datapoints of this TimeSeriesMetricDefinition.
+ The time series metric data for the given metric.
+
+
+ :param datapoints: The datapoints of this TimeSeriesMetricDefinition.
+ :type: list[oci.database_management.models.TimeSeriesMetricDataPoint]
+ """
+ self._datapoints = datapoints
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_management/models/update_database_parameters_result.py b/src/oci/database_management/models/update_database_parameters_result.py
index 566a1982bc..a3a954a367 100644
--- a/src/oci/database_management/models/update_database_parameters_result.py
+++ b/src/oci/database_management/models/update_database_parameters_result.py
@@ -10,7 +10,7 @@
@init_model_state_from_kwargs
class UpdateDatabaseParametersResult(object):
"""
- The results of database parameters' update.
+ The results of database parameter update.
"""
def __init__(self, **kwargs):
diff --git a/src/oci/database_migration/__init__.py b/src/oci/database_migration/__init__.py
new file mode 100644
index 0000000000..fd1e76b85a
--- /dev/null
+++ b/src/oci/database_migration/__init__.py
@@ -0,0 +1,12 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from __future__ import absolute_import
+
+
+from .database_migration_client import DatabaseMigrationClient
+from .database_migration_client_composite_operations import DatabaseMigrationClientCompositeOperations
+from . import models
+
+__all__ = ["DatabaseMigrationClient", "DatabaseMigrationClientCompositeOperations", "models"]
diff --git a/src/oci/database_migration/database_migration_client.py b/src/oci/database_migration/database_migration_client.py
new file mode 100644
index 0000000000..90ad211f81
--- /dev/null
+++ b/src/oci/database_migration/database_migration_client.py
@@ -0,0 +1,3365 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from __future__ import absolute_import
+
+from oci._vendor import requests # noqa: F401
+from oci._vendor import six
+
+from oci import retry # noqa: F401
+from oci.base_client import BaseClient
+from oci.config import get_config_value_or_default, validate_config
+from oci.signer import Signer
+from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
+from .models import database_migration_type_mapping
+missing = Sentinel("Missing")
+
+
+class DatabaseMigrationClient(object):
+ """
+ Provides users the ability to perform Zero Downtime migration operations
+ """
+
+ def __init__(self, config, **kwargs):
+ """
+ Creates a new service client
+
+ :param dict config:
+ Configuration keys and values as per `SDK and Tool Configuration `__.
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
+ the dict using :py:meth:`~oci.config.validate_config`
+
+ :param str service_endpoint: (optional)
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
+ need to specify a service endpoint.
+
+ :param timeout: (optional)
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
+ :type timeout: float or tuple(float, float)
+
+ :param signer: (optional)
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
+ provided in the config parameter.
+
+ One use case for this parameter is for `Instance Principals authentication `__
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
+ Any value provided at the operation level will override whatever is specified at the client level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+ """
+ validate_config(config, signer=kwargs.get('signer'))
+ if 'signer' in kwargs:
+ signer = kwargs['signer']
+
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
+ signer = get_signer_from_authentication_type(config)
+
+ else:
+ signer = Signer(
+ tenancy=config["tenancy"],
+ user=config["user"],
+ fingerprint=config["fingerprint"],
+ private_key_file_location=config.get("key_file"),
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
+ private_key_content=config.get("key_content")
+ )
+
+ base_client_init_kwargs = {
+ 'regional_client': True,
+ 'service_endpoint': kwargs.get('service_endpoint'),
+ 'timeout': kwargs.get('timeout'),
+ 'base_path': '/20200720',
+ 'service_endpoint_template': 'https://odms.{region}.oci.{secondLevelDomain}',
+ 'skip_deserialization': kwargs.get('skip_deserialization', False)
+ }
+ self.base_client = BaseClient("database_migration", config, signer, database_migration_type_mapping, **base_client_init_kwargs)
+ self.retry_strategy = kwargs.get('retry_strategy')
+
+ def abort_job(self, job_id, **kwargs):
+ """
+ Aborts a Migration Job (either Evaluation or Migration).
+
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Job`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use abort_job API.
+ """
+ resource_path = "/jobs/{jobId}/actions/abort"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match",
+ "opc_retry_token",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "abort_job got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "jobId": job_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Job")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Job")
+
+ def change_agent_compartment(self, agent_id, change_agent_compartment_details, **kwargs):
+ """
+ Used to configure a ODMS Agent Compartment Id.
+
+
+ :param str agent_id: (required)
+ The OCID of the agent
+
+ :param oci.database_migration.models.ChangeAgentCompartmentDetails change_agent_compartment_details: (required)
+ Details to change the compartment.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use change_agent_compartment API.
+ """
+ resource_path = "/agents/{agentId}/actions/changeCompartment"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "change_agent_compartment got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "agentId": agent_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_agent_compartment_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_agent_compartment_details)
+
+ def change_connection_compartment(self, connection_id, change_connection_compartment_details, **kwargs):
+ """
+ Used to change the Databasee Connection compartment.
+
+
+ :param str connection_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.ChangeConnectionCompartmentDetails change_connection_compartment_details: (required)
+ Details to change the compartment.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use change_connection_compartment API.
+ """
+ resource_path = "/connections/{connectionId}/actions/changeCompartment"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "change_connection_compartment got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "connectionId": connection_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_connection_compartment_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_connection_compartment_details)
+
+ def change_migration_compartment(self, migration_id, change_migration_compartment_details, **kwargs):
+ """
+ Used to change the Migration compartment.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.ChangeMigrationCompartmentDetails change_migration_compartment_details: (required)
+ Details to change the compartment.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use change_migration_compartment API.
+ """
+ resource_path = "/migrations/{migrationId}/actions/changeCompartment"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "change_migration_compartment got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_migration_compartment_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_migration_compartment_details)
+
+ def clone_migration(self, migration_id, clone_migration_details, **kwargs):
+ """
+ Clone a configuration from an existing Migration.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.CloneMigrationDetails clone_migration_details: (required)
+ Clone Migration properties.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Migration`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use clone_migration API.
+ """
+ resource_path = "/migrations/{migrationId}/actions/clone"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match",
+ "opc_retry_token",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "clone_migration got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=clone_migration_details,
+ response_type="Migration")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=clone_migration_details,
+ response_type="Migration")
+
+ def create_connection(self, create_connection_details, **kwargs):
+ """
+ Create a Database Connection resource that contains the details to connect to either a Source or Target Database
+ in the migration.
+
+
+ :param oci.database_migration.models.CreateConnectionDetails create_connection_details: (required)
+ Database Connection properties.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Connection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use create_connection API.
+ """
+ resource_path = "/connections"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "create_connection got unknown kwargs: {!r}".format(extra_kwargs))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_connection_details,
+ response_type="Connection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_connection_details,
+ response_type="Connection")
+
+ def create_migration(self, create_migration_details, **kwargs):
+ """
+ Create a Migration resource that contains all the details to perform the
+ database migration operation like source and destination database
+ details, credentials, etc.
+
+
+ :param oci.database_migration.models.CreateMigrationDetails create_migration_details: (required)
+ Migration properties.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Migration`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use create_migration API.
+ """
+ resource_path = "/migrations"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "create_migration got unknown kwargs: {!r}".format(extra_kwargs))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_migration_details,
+ response_type="Migration")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_migration_details,
+ response_type="Migration")
+
+ def delete_agent(self, agent_id, **kwargs):
+ """
+ Delete the ODMS Agent represented by the given ODMS Agent id.
+
+
+ :param str agent_id: (required)
+ The OCID of the agent
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use delete_agent API.
+ """
+ resource_path = "/agents/{agentId}"
+ method = "DELETE"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "delete_agent got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "agentId": agent_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
+ def delete_connection(self, connection_id, **kwargs):
+ """
+ Deletes the Database Connection represented by the specified connection ID.
+
+
+ :param str connection_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use delete_connection API.
+ """
+ resource_path = "/connections/{connectionId}"
+ method = "DELETE"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "delete_connection got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "connectionId": connection_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
+ def delete_job(self, job_id, **kwargs):
+ """
+ Deletes the migration job represented by the given job ID.
+
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use delete_job API.
+ """
+ resource_path = "/jobs/{jobId}"
+ method = "DELETE"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "delete_job got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "jobId": job_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
+ def delete_migration(self, migration_id, **kwargs):
+ """
+ Deletes the Migration represented by the specified migration ID.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use delete_migration API.
+ """
+ resource_path = "/migrations/{migrationId}"
+ method = "DELETE"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "delete_migration got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
+ def evaluate_migration(self, migration_id, **kwargs):
+ """
+ Start Validate Migration job.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Job`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use evaluate_migration API.
+ """
+ resource_path = "/migrations/{migrationId}/actions/validate"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match",
+ "opc_retry_token",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "evaluate_migration got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Job")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Job")
+
+ def get_agent(self, agent_id, **kwargs):
+ """
+ Display the ODMS Agent configuration.
+
+
+ :param str agent_id: (required)
+ The OCID of the agent
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Agent`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_agent API.
+ """
+ resource_path = "/agents/{agentId}"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_agent got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "agentId": agent_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Agent")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Agent")
+
+ def get_connection(self, connection_id, **kwargs):
+ """
+ Display Database Connection details.
+
+
+ :param str connection_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Connection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_connection API.
+ """
+ resource_path = "/connections/{connectionId}"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_connection got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "connectionId": connection_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Connection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Connection")
+
+ def get_job(self, job_id, **kwargs):
+ """
+ Get a migration job.
+
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Job`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_job API.
+ """
+ resource_path = "/jobs/{jobId}"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_job got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "jobId": job_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Job")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Job")
+
+ def get_job_output_content(self, job_id, **kwargs):
+ """
+ Get the migration Job Output content as a String.
+
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type stream
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_job_output_content API.
+ """
+ resource_path = "/jobs/{jobId}/output/content"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_job_output_content got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "jobId": job_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/x-yaml",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="stream")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="stream")
+
+ def get_migration(self, migration_id, **kwargs):
+ """
+ Display Migration details.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Migration`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_migration API.
+ """
+ resource_path = "/migrations/{migrationId}"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_migration got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Migration")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="Migration")
+
+ def get_work_request(self, work_request_id, **kwargs):
+ """
+ Gets the details of a work request.
+
+
+ :param str work_request_id: (required)
+ The ID of the asynchronous request.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.WorkRequest`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_work_request API.
+ """
+ resource_path = "/workRequests/{workRequestId}"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "get_work_request got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "workRequestId": work_request_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="WorkRequest")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="WorkRequest")
+
+ def list_agent_images(self, **kwargs):
+ """
+ Get details of the ODMS Agent Images available to install on-premises.
+
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.AgentImageCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_agent_images API.
+ """
+ resource_path = "/agentImages"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "sort_order",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_agent_images got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ query_params = {
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortOrder": kwargs.get("sort_order", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="AgentImageCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="AgentImageCollection")
+
+ def list_agents(self, compartment_id, **kwargs):
+ """
+ Display the name of all the existing ODMS Agents in the server.
+
+
+ :param str compartment_id: (required)
+ The ID of the compartment in which to list resources.
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_by: (optional)
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
+ Default order for displayName is ascending. If no value is specified timeCreated is default.
+
+ Allowed values are: "timeCreated", "displayName"
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name given.
+
+ :param str lifecycle_state: (optional)
+ The current state of the Database Migration Deployment.
+
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.AgentCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_agents API.
+ """
+ resource_path = "/agents"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "display_name",
+ "lifecycle_state",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_agents got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
+
+ query_params = {
+ "compartmentId": compartment_id,
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "displayName": kwargs.get("display_name", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="AgentCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="AgentCollection")
+
+ def list_connections(self, compartment_id, **kwargs):
+ """
+ List all Database Connections.
+
+
+ :param str compartment_id: (required)
+ The ID of the compartment in which to list resources.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name given.
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_by: (optional)
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
+ Default order for displayName is ascending. If no value is specified timeCreated is default.
+
+ Allowed values are: "timeCreated", "displayName"
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ The current state of the Database Migration Deployment.
+
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.ConnectionCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_connections API.
+ """
+ resource_path = "/connections"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "display_name",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_connections got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
+
+ query_params = {
+ "compartmentId": compartment_id,
+ "displayName": kwargs.get("display_name", missing),
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="ConnectionCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="ConnectionCollection")
+
+ def list_job_outputs(self, job_id, **kwargs):
+ """
+ List the Job Outputs
+
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.JobOutputSummaryCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_job_outputs API.
+ """
+ resource_path = "/jobs/{jobId}/output"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "limit",
+ "page"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_job_outputs got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "jobId": job_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ query_params = {
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="JobOutputSummaryCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="JobOutputSummaryCollection")
+
+ def list_jobs(self, migration_id, **kwargs):
+ """
+ List all the names of the Migration jobs associated to the specified
+ migration site.
+
+
+ :param str migration_id: (required)
+ The ID of the migration in which to list resources.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name given.
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_by: (optional)
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
+ Default order for displayName is ascending. If no value is specified timeCreated is default.
+
+ Allowed values are: "timeCreated", "displayName"
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ The lifecycle state of the Migration Job.
+
+ Allowed values are: "ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED"
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.JobCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_jobs API.
+ """
+ resource_path = "/jobs"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "display_name",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_jobs got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
+
+ query_params = {
+ "migrationId": migration_id,
+ "displayName": kwargs.get("display_name", missing),
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="JobCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="JobCollection")
+
+ def list_migrations(self, compartment_id, **kwargs):
+ """
+ List all Migrations.
+
+
+ :param str compartment_id: (required)
+ The ID of the compartment in which to list resources.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name given.
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_by: (optional)
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
+ Default order for displayName is ascending. If no value is specified timeCreated is default.
+
+ Allowed values are: "timeCreated", "displayName"
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str lifecycle_state: (optional)
+ The current state of the Database Migration Deployment.
+
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"
+
+ :param str lifecycle_details: (optional)
+ The lifecycle detailed status of the Migration.
+
+ Allowed values are: "READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE"
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.MigrationCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_migrations API.
+ """
+ resource_path = "/migrations"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "display_name",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "lifecycle_state",
+ "lifecycle_details"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_migrations got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_allowed_values)
+ )
+
+ if 'lifecycle_details' in kwargs:
+ lifecycle_details_allowed_values = ["READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE"]
+ if kwargs['lifecycle_details'] not in lifecycle_details_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_details`, must be one of {0}".format(lifecycle_details_allowed_values)
+ )
+
+ query_params = {
+ "compartmentId": compartment_id,
+ "displayName": kwargs.get("display_name", missing),
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
+ "lifecycleDetails": kwargs.get("lifecycle_details", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="MigrationCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="MigrationCollection")
+
+ def list_work_request_errors(self, work_request_id, **kwargs):
+ """
+ Gets the errors for a work request.
+
+
+ :param str work_request_id: (required)
+ The ID of the asynchronous request.
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_by: (optional)
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
+ Default order for displayName is ascending. If no value is specified timeCreated is default.
+
+ Allowed values are: "timeCreated", "displayName"
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name given.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.WorkRequestErrorCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_work_request_errors API.
+ """
+ resource_path = "/workRequests/{workRequestId}/errors"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "display_name",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_work_request_errors got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "workRequestId": work_request_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ query_params = {
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "displayName": kwargs.get("display_name", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="WorkRequestErrorCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="WorkRequestErrorCollection")
+
+ def list_work_request_logs(self, work_request_id, **kwargs):
+ """
+ Gets the logs for a work request.
+
+
+ :param str work_request_id: (required)
+ The ID of the asynchronous request.
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_by: (optional)
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
+ Default order for displayName is ascending. If no value is specified timeCreated is default.
+
+ Allowed values are: "timeCreated", "displayName"
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name given.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.WorkRequestLogEntryCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_work_request_logs API.
+ """
+ resource_path = "/workRequests/{workRequestId}/logs"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "display_name",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_work_request_logs got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "workRequestId": work_request_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ query_params = {
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "displayName": kwargs.get("display_name", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="WorkRequestLogEntryCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="WorkRequestLogEntryCollection")
+
+ def list_work_requests(self, compartment_id, **kwargs):
+ """
+ Lists the work requests in a compartment or for a specified resource.
+
+
+ :param str compartment_id: (required)
+ The ID of the compartment in which to list resources.
+
+ :param str resource_id: (optional)
+ The `OCID`__ of the resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param int limit: (optional)
+ The maximum number of items to return.
+
+ :param str page: (optional)
+ The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
+
+ :param str sort_by: (optional)
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
+ Default order for displayName is ascending. If no value is specified timeCreated is default.
+
+ Allowed values are: "timeCreated", "displayName"
+
+ :param str sort_order: (optional)
+ The sort order to use, either 'asc' or 'desc'.
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name given.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.WorkRequestCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_work_requests API.
+ """
+ resource_path = "/workRequests"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "resource_id",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "display_name",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_work_requests got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ if 'sort_order' in kwargs:
+ sort_order_allowed_values = ["ASC", "DESC"]
+ if kwargs['sort_order'] not in sort_order_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ query_params = {
+ "compartmentId": compartment_id,
+ "resourceId": kwargs.get("resource_id", missing),
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "displayName": kwargs.get("display_name", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="WorkRequestCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="WorkRequestCollection")
+
+ def resume_job(self, job_id, **kwargs):
+ """
+ Resume a migration Job.
+
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param oci.database_migration.models.ResumeJobDetails resume_job_details: (optional)
+ Resume Job options.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Job`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use resume_job API.
+ """
+ resource_path = "/jobs/{jobId}/actions/resume"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match",
+ "opc_retry_token",
+ "opc_request_id",
+ "resume_job_details"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "resume_job got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "jobId": job_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=kwargs.get('resume_job_details'),
+ response_type="Job")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=kwargs.get('resume_job_details'),
+ response_type="Job")
+
+ def retrieve_supported_phases(self, migration_id, **kwargs):
+ """
+ Display Migration Phases for a specified migration.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.MigrationPhaseCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use retrieve_supported_phases API.
+ """
+ resource_path = "/migrations/{migrationId}/actions/getSupportedPhases"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "retrieve_supported_phases got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="MigrationPhaseCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="MigrationPhaseCollection")
+
+ def start_migration(self, migration_id, **kwargs):
+ """
+ Start Migration job.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param oci.database_migration.models.StartMigrationDetails start_migration_details: (optional)
+ Start Migration Job properties.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Job`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use start_migration API.
+ """
+ resource_path = "/migrations/{migrationId}/actions/start"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "if_match",
+ "opc_retry_token",
+ "opc_request_id",
+ "start_migration_details"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "start_migration got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "if-match": kwargs.get("if_match", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=kwargs.get('start_migration_details'),
+ response_type="Job")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=kwargs.get('start_migration_details'),
+ response_type="Job")
+
+ def update_agent(self, agent_id, update_agent_details, **kwargs):
+ """
+ Modifies the ODMS Agent represented by the given ODMS agent Id.
+
+
+ :param str agent_id: (required)
+ The OCID of the agent
+
+ :param oci.database_migration.models.UpdateAgentDetails update_agent_details: (required)
+ Update ODMS Agent properties.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
+ server error without risk of executing that same action again. Retry tokens expire after 24
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
+ has been deleted and purged from the system, then a retry of the original creation request
+ might be rejected.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Agent`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use update_agent API.
+ """
+ resource_path = "/agents/{agentId}"
+ method = "PUT"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "opc_retry_token",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "update_agent got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "agentId": agent_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
+ self.base_client.add_opc_retry_token_if_needed(header_params)
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_agent_details,
+ response_type="Agent")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_agent_details,
+ response_type="Agent")
+
+ def update_connection(self, connection_id, update_connection_details, **kwargs):
+ """
+ Update a Database Connection resource details.
+
+
+ :param str connection_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.UpdateConnectionDetails update_connection_details: (required)
+ Database Connection properties.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use update_connection API.
+ """
+ resource_path = "/connections/{connectionId}"
+ method = "PUT"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "update_connection got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "connectionId": connection_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_connection_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_connection_details)
+
+ def update_job(self, job_id, update_job_details, **kwargs):
+ """
+ Update a Migration Job resource details.
+
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.UpdateJobDetails update_job_details: (required)
+ Migration Job properties.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_migration.models.Job`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use update_job API.
+ """
+ resource_path = "/jobs/{jobId}"
+ method = "PUT"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "update_job got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "jobId": job_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_job_details,
+ response_type="Job")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_job_details,
+ response_type="Job")
+
+ def update_migration(self, migration_id, update_migration_details, **kwargs):
+ """
+ Update a Migration resource details.
+
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.UpdateMigrationDetails update_migration_details: (required)
+ Migration properties.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ particular request, please provide the request ID.
+
+ :param str if_match: (optional)
+ For optimistic concurrency control. In the PUT or DELETE call
+ for a resource, set the `if-match` parameter to the value of the
+ etag from a previous GET or POST response for that resource.
+ The resource will be updated or deleted only if the etag you
+ provide matches the resource's current etag value.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use update_migration API.
+ """
+ resource_path = "/migrations/{migrationId}"
+ method = "PUT"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "update_migration got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "migrationId": migration_id
+ }
+
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
+
+ for (k, v) in six.iteritems(path_params):
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
+ raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing),
+ "if-match": kwargs.get("if_match", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_migration_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_migration_details)
diff --git a/src/oci/database_migration/database_migration_client_composite_operations.py b/src/oci/database_migration/database_migration_client_composite_operations.py
new file mode 100644
index 0000000000..90ad5af575
--- /dev/null
+++ b/src/oci/database_migration/database_migration_client_composite_operations.py
@@ -0,0 +1,642 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+import oci # noqa: F401
+from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
+
+
+class DatabaseMigrationClientCompositeOperations(object):
+ """
+ This class provides a wrapper around :py:class:`~oci.database_migration.DatabaseMigrationClient` and offers convenience methods
+ for operations that would otherwise need to be chained together. For example, instead of performing an action
+ on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
+ to enter a given state, you can call a single method in this class to accomplish the same functionality
+ """
+
+ def __init__(self, client, **kwargs):
+ """
+ Creates a new DatabaseMigrationClientCompositeOperations object
+
+ :param DatabaseMigrationClient client:
+ The service client which will be wrapped by this object
+ """
+ self.client = client
+
+ def abort_job_and_wait_for_state(self, job_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.abort_job` and waits for the :py:class:`~oci.database_migration.models.Job` acted upon
+ to enter the given state(s).
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.Job.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.abort_job`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.abort_job(job_id, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_job(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def clone_migration_and_wait_for_state(self, migration_id, clone_migration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.clone_migration` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.CloneMigrationDetails clone_migration_details: (required)
+ Clone Migration properties.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.clone_migration`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.clone_migration(migration_id, clone_migration_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def create_connection_and_wait_for_state(self, create_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.create_connection` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param oci.database_migration.models.CreateConnectionDetails create_connection_details: (required)
+ Database Connection properties.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.create_connection`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.create_connection(create_connection_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def create_migration_and_wait_for_state(self, create_migration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.create_migration` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param oci.database_migration.models.CreateMigrationDetails create_migration_details: (required)
+ Migration properties.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.create_migration`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.create_migration(create_migration_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def delete_agent_and_wait_for_state(self, agent_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_agent` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str agent_id: (required)
+ The OCID of the agent
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_agent`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = None
+ try:
+ operation_result = self.client.delete_agent(agent_id, **operation_kwargs)
+ except oci.exceptions.ServiceError as e:
+ if e.status == 404:
+ return WAIT_RESOURCE_NOT_FOUND
+ else:
+ raise e
+
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def delete_connection_and_wait_for_state(self, connection_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_connection` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str connection_id: (required)
+ The OCID of the job
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_connection`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = None
+ try:
+ operation_result = self.client.delete_connection(connection_id, **operation_kwargs)
+ except oci.exceptions.ServiceError as e:
+ if e.status == 404:
+ return WAIT_RESOURCE_NOT_FOUND
+ else:
+ raise e
+
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def delete_job_and_wait_for_state(self, job_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_job` and waits for the :py:class:`~oci.database_migration.models.Job` acted upon
+ to enter the given state(s).
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.Job.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_job`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ initial_get_result = self.client.get_job(job_id)
+ operation_result = None
+ try:
+ operation_result = self.client.delete_job(job_id, **operation_kwargs)
+ except oci.exceptions.ServiceError as e:
+ if e.status == 404:
+ return WAIT_RESOURCE_NOT_FOUND
+ else:
+ raise e
+
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ initial_get_result,
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ succeed_on_not_found=True,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def delete_migration_and_wait_for_state(self, migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_migration` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.delete_migration`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = None
+ try:
+ operation_result = self.client.delete_migration(migration_id, **operation_kwargs)
+ except oci.exceptions.ServiceError as e:
+ if e.status == 404:
+ return WAIT_RESOURCE_NOT_FOUND
+ else:
+ raise e
+
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def evaluate_migration_and_wait_for_state(self, migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.evaluate_migration` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.evaluate_migration`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.evaluate_migration(migration_id, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def resume_job_and_wait_for_state(self, job_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.resume_job` and waits for the :py:class:`~oci.database_migration.models.Job` acted upon
+ to enter the given state(s).
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.Job.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.resume_job`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.resume_job(job_id, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_job(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def start_migration_and_wait_for_state(self, migration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.start_migration` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.start_migration`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.start_migration(migration_id, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def update_agent_and_wait_for_state(self, agent_id, update_agent_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.update_agent` and waits for the :py:class:`~oci.database_migration.models.Agent` acted upon
+ to enter the given state(s).
+
+ :param str agent_id: (required)
+ The OCID of the agent
+
+ :param oci.database_migration.models.UpdateAgentDetails update_agent_details: (required)
+ Update ODMS Agent properties.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.Agent.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.update_agent`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.update_agent(agent_id, update_agent_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_agent(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def update_connection_and_wait_for_state(self, connection_id, update_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.update_connection` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str connection_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.UpdateConnectionDetails update_connection_details: (required)
+ Database Connection properties.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.update_connection`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.update_connection(connection_id, update_connection_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def update_job_and_wait_for_state(self, job_id, update_job_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.update_job` and waits for the :py:class:`~oci.database_migration.models.Job` acted upon
+ to enter the given state(s).
+
+ :param str job_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.UpdateJobDetails update_job_details: (required)
+ Migration Job properties.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.Job.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.update_job`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.update_job(job_id, update_job_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_job(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def update_migration_and_wait_for_state(self, migration_id, update_migration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.database_migration.DatabaseMigrationClient.update_migration` and waits for the :py:class:`~oci.database_migration.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str migration_id: (required)
+ The OCID of the job
+
+ :param oci.database_migration.models.UpdateMigrationDetails update_migration_details: (required)
+ Migration properties.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.database_migration.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.database_migration.DatabaseMigrationClient.update_migration`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = self.client.update_migration(migration_id, update_migration_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
diff --git a/src/oci/database_migration/models/__init__.py b/src/oci/database_migration/models/__init__.py
new file mode 100644
index 0000000000..cbacf3844f
--- /dev/null
+++ b/src/oci/database_migration/models/__init__.py
@@ -0,0 +1,200 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from __future__ import absolute_import
+
+from .admin_credentials import AdminCredentials
+from .agent import Agent
+from .agent_collection import AgentCollection
+from .agent_image_collection import AgentImageCollection
+from .agent_image_summary import AgentImageSummary
+from .agent_summary import AgentSummary
+from .change_agent_compartment_details import ChangeAgentCompartmentDetails
+from .change_connection_compartment_details import ChangeConnectionCompartmentDetails
+from .change_migration_compartment_details import ChangeMigrationCompartmentDetails
+from .clone_migration_details import CloneMigrationDetails
+from .connect_descriptor import ConnectDescriptor
+from .connection import Connection
+from .connection_collection import ConnectionCollection
+from .connection_summary import ConnectionSummary
+from .create_admin_credentials import CreateAdminCredentials
+from .create_agent_details import CreateAgentDetails
+from .create_connect_descriptor import CreateConnectDescriptor
+from .create_connection_details import CreateConnectionDetails
+from .create_data_pump_parameters import CreateDataPumpParameters
+from .create_data_pump_settings import CreateDataPumpSettings
+from .create_data_transfer_medium_details import CreateDataTransferMediumDetails
+from .create_database_link_details import CreateDatabaseLinkDetails
+from .create_directory_object import CreateDirectoryObject
+from .create_extract import CreateExtract
+from .create_golden_gate_details import CreateGoldenGateDetails
+from .create_golden_gate_hub import CreateGoldenGateHub
+from .create_golden_gate_settings import CreateGoldenGateSettings
+from .create_migration_details import CreateMigrationDetails
+from .create_object_store_bucket import CreateObjectStoreBucket
+from .create_private_endpoint import CreatePrivateEndpoint
+from .create_replicat import CreateReplicat
+from .create_ssh_details import CreateSshDetails
+from .create_vault_details import CreateVaultDetails
+from .data_pump_parameters import DataPumpParameters
+from .data_pump_settings import DataPumpSettings
+from .data_transfer_medium_details import DataTransferMediumDetails
+from .database_link_details import DatabaseLinkDetails
+from .database_object import DatabaseObject
+from .directory_object import DirectoryObject
+from .extract import Extract
+from .generate_token import GenerateToken
+from .golden_gate_details import GoldenGateDetails
+from .golden_gate_hub import GoldenGateHub
+from .golden_gate_settings import GoldenGateSettings
+from .job import Job
+from .job_collection import JobCollection
+from .job_output_summary import JobOutputSummary
+from .job_output_summary_collection import JobOutputSummaryCollection
+from .job_summary import JobSummary
+from .metadata_remap import MetadataRemap
+from .migration import Migration
+from .migration_collection import MigrationCollection
+from .migration_job_progress_resource import MigrationJobProgressResource
+from .migration_job_progress_summary import MigrationJobProgressSummary
+from .migration_phase_collection import MigrationPhaseCollection
+from .migration_phase_summary import MigrationPhaseSummary
+from .migration_summary import MigrationSummary
+from .object_store_bucket import ObjectStoreBucket
+from .par_link import ParLink
+from .phase_status import PhaseStatus
+from .private_endpoint_details import PrivateEndpointDetails
+from .replicat import Replicat
+from .resume_job_details import ResumeJobDetails
+from .ssh_details import SshDetails
+from .start_migration_details import StartMigrationDetails
+from .unsupported_database_object import UnsupportedDatabaseObject
+from .update_admin_credentials import UpdateAdminCredentials
+from .update_agent_details import UpdateAgentDetails
+from .update_connect_descriptor import UpdateConnectDescriptor
+from .update_connection_details import UpdateConnectionDetails
+from .update_data_pump_parameters import UpdateDataPumpParameters
+from .update_data_pump_settings import UpdateDataPumpSettings
+from .update_data_transfer_medium_details import UpdateDataTransferMediumDetails
+from .update_database_link_details import UpdateDatabaseLinkDetails
+from .update_directory_object import UpdateDirectoryObject
+from .update_extract import UpdateExtract
+from .update_golden_gate_details import UpdateGoldenGateDetails
+from .update_golden_gate_hub import UpdateGoldenGateHub
+from .update_golden_gate_settings import UpdateGoldenGateSettings
+from .update_job_details import UpdateJobDetails
+from .update_migration_details import UpdateMigrationDetails
+from .update_object_store_bucket import UpdateObjectStoreBucket
+from .update_private_endpoint import UpdatePrivateEndpoint
+from .update_replicat import UpdateReplicat
+from .update_ssh_details import UpdateSshDetails
+from .update_vault_details import UpdateVaultDetails
+from .vault_details import VaultDetails
+from .work_request import WorkRequest
+from .work_request_collection import WorkRequestCollection
+from .work_request_error import WorkRequestError
+from .work_request_error_collection import WorkRequestErrorCollection
+from .work_request_log_entry import WorkRequestLogEntry
+from .work_request_log_entry_collection import WorkRequestLogEntryCollection
+from .work_request_resource import WorkRequestResource
+from .work_request_summary import WorkRequestSummary
+
+# Maps type names to classes for database_migration services.
+database_migration_type_mapping = {
+ "AdminCredentials": AdminCredentials,
+ "Agent": Agent,
+ "AgentCollection": AgentCollection,
+ "AgentImageCollection": AgentImageCollection,
+ "AgentImageSummary": AgentImageSummary,
+ "AgentSummary": AgentSummary,
+ "ChangeAgentCompartmentDetails": ChangeAgentCompartmentDetails,
+ "ChangeConnectionCompartmentDetails": ChangeConnectionCompartmentDetails,
+ "ChangeMigrationCompartmentDetails": ChangeMigrationCompartmentDetails,
+ "CloneMigrationDetails": CloneMigrationDetails,
+ "ConnectDescriptor": ConnectDescriptor,
+ "Connection": Connection,
+ "ConnectionCollection": ConnectionCollection,
+ "ConnectionSummary": ConnectionSummary,
+ "CreateAdminCredentials": CreateAdminCredentials,
+ "CreateAgentDetails": CreateAgentDetails,
+ "CreateConnectDescriptor": CreateConnectDescriptor,
+ "CreateConnectionDetails": CreateConnectionDetails,
+ "CreateDataPumpParameters": CreateDataPumpParameters,
+ "CreateDataPumpSettings": CreateDataPumpSettings,
+ "CreateDataTransferMediumDetails": CreateDataTransferMediumDetails,
+ "CreateDatabaseLinkDetails": CreateDatabaseLinkDetails,
+ "CreateDirectoryObject": CreateDirectoryObject,
+ "CreateExtract": CreateExtract,
+ "CreateGoldenGateDetails": CreateGoldenGateDetails,
+ "CreateGoldenGateHub": CreateGoldenGateHub,
+ "CreateGoldenGateSettings": CreateGoldenGateSettings,
+ "CreateMigrationDetails": CreateMigrationDetails,
+ "CreateObjectStoreBucket": CreateObjectStoreBucket,
+ "CreatePrivateEndpoint": CreatePrivateEndpoint,
+ "CreateReplicat": CreateReplicat,
+ "CreateSshDetails": CreateSshDetails,
+ "CreateVaultDetails": CreateVaultDetails,
+ "DataPumpParameters": DataPumpParameters,
+ "DataPumpSettings": DataPumpSettings,
+ "DataTransferMediumDetails": DataTransferMediumDetails,
+ "DatabaseLinkDetails": DatabaseLinkDetails,
+ "DatabaseObject": DatabaseObject,
+ "DirectoryObject": DirectoryObject,
+ "Extract": Extract,
+ "GenerateToken": GenerateToken,
+ "GoldenGateDetails": GoldenGateDetails,
+ "GoldenGateHub": GoldenGateHub,
+ "GoldenGateSettings": GoldenGateSettings,
+ "Job": Job,
+ "JobCollection": JobCollection,
+ "JobOutputSummary": JobOutputSummary,
+ "JobOutputSummaryCollection": JobOutputSummaryCollection,
+ "JobSummary": JobSummary,
+ "MetadataRemap": MetadataRemap,
+ "Migration": Migration,
+ "MigrationCollection": MigrationCollection,
+ "MigrationJobProgressResource": MigrationJobProgressResource,
+ "MigrationJobProgressSummary": MigrationJobProgressSummary,
+ "MigrationPhaseCollection": MigrationPhaseCollection,
+ "MigrationPhaseSummary": MigrationPhaseSummary,
+ "MigrationSummary": MigrationSummary,
+ "ObjectStoreBucket": ObjectStoreBucket,
+ "ParLink": ParLink,
+ "PhaseStatus": PhaseStatus,
+ "PrivateEndpointDetails": PrivateEndpointDetails,
+ "Replicat": Replicat,
+ "ResumeJobDetails": ResumeJobDetails,
+ "SshDetails": SshDetails,
+ "StartMigrationDetails": StartMigrationDetails,
+ "UnsupportedDatabaseObject": UnsupportedDatabaseObject,
+ "UpdateAdminCredentials": UpdateAdminCredentials,
+ "UpdateAgentDetails": UpdateAgentDetails,
+ "UpdateConnectDescriptor": UpdateConnectDescriptor,
+ "UpdateConnectionDetails": UpdateConnectionDetails,
+ "UpdateDataPumpParameters": UpdateDataPumpParameters,
+ "UpdateDataPumpSettings": UpdateDataPumpSettings,
+ "UpdateDataTransferMediumDetails": UpdateDataTransferMediumDetails,
+ "UpdateDatabaseLinkDetails": UpdateDatabaseLinkDetails,
+ "UpdateDirectoryObject": UpdateDirectoryObject,
+ "UpdateExtract": UpdateExtract,
+ "UpdateGoldenGateDetails": UpdateGoldenGateDetails,
+ "UpdateGoldenGateHub": UpdateGoldenGateHub,
+ "UpdateGoldenGateSettings": UpdateGoldenGateSettings,
+ "UpdateJobDetails": UpdateJobDetails,
+ "UpdateMigrationDetails": UpdateMigrationDetails,
+ "UpdateObjectStoreBucket": UpdateObjectStoreBucket,
+ "UpdatePrivateEndpoint": UpdatePrivateEndpoint,
+ "UpdateReplicat": UpdateReplicat,
+ "UpdateSshDetails": UpdateSshDetails,
+ "UpdateVaultDetails": UpdateVaultDetails,
+ "VaultDetails": VaultDetails,
+ "WorkRequest": WorkRequest,
+ "WorkRequestCollection": WorkRequestCollection,
+ "WorkRequestError": WorkRequestError,
+ "WorkRequestErrorCollection": WorkRequestErrorCollection,
+ "WorkRequestLogEntry": WorkRequestLogEntry,
+ "WorkRequestLogEntryCollection": WorkRequestLogEntryCollection,
+ "WorkRequestResource": WorkRequestResource,
+ "WorkRequestSummary": WorkRequestSummary
+}
diff --git a/src/oci/database_migration/models/admin_credentials.py b/src/oci/database_migration/models/admin_credentials.py
new file mode 100644
index 0000000000..7fd979e485
--- /dev/null
+++ b/src/oci/database_migration/models/admin_credentials.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AdminCredentials(object):
+ """
+ Database Admin Credentials details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AdminCredentials object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param username:
+ The value to assign to the username property of this AdminCredentials.
+ :type username: str
+
+ """
+ self.swagger_types = {
+ 'username': 'str'
+ }
+
+ self.attribute_map = {
+ 'username': 'username'
+ }
+
+ self._username = None
+
+ @property
+ def username(self):
+ """
+ **[Required]** Gets the username of this AdminCredentials.
+ Admin username
+
+
+ :return: The username of this AdminCredentials.
+ :rtype: str
+ """
+ return self._username
+
+ @username.setter
+ def username(self, username):
+ """
+ Sets the username of this AdminCredentials.
+ Admin username
+
+
+ :param username: The username of this AdminCredentials.
+ :type: str
+ """
+ self._username = username
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/agent.py b/src/oci/database_migration/models/agent.py
new file mode 100644
index 0000000000..b9ebaf7448
--- /dev/null
+++ b/src/oci/database_migration/models/agent.py
@@ -0,0 +1,484 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class Agent(object):
+ """
+ ODMS Agent Details
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a Agent.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a Agent.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a Agent.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a Agent.
+ #: This constant has a value of "INACTIVE"
+ LIFECYCLE_STATE_INACTIVE = "INACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a Agent.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a Agent.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a Agent.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Agent object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this Agent.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this Agent.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this Agent.
+ :type compartment_id: str
+
+ :param stream_id:
+ The value to assign to the stream_id property of this Agent.
+ :type stream_id: str
+
+ :param public_key:
+ The value to assign to the public_key property of this Agent.
+ :type public_key: str
+
+ :param version:
+ The value to assign to the version property of this Agent.
+ :type version: str
+
+ :param time_created:
+ The value to assign to the time_created property of this Agent.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this Agent.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this Agent.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this Agent.
+ :type lifecycle_details: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this Agent.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this Agent.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this Agent.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'stream_id': 'str',
+ 'public_key': 'str',
+ 'version': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'stream_id': 'streamId',
+ 'public_key': 'publicKey',
+ 'version': 'version',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._compartment_id = None
+ self._stream_id = None
+ self._public_key = None
+ self._version = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this Agent.
+ The OCID of the resource
+
+
+ :return: The id of this Agent.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this Agent.
+ The OCID of the resource
+
+
+ :param id: The id of this Agent.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this Agent.
+ ODMS Agent name
+
+
+ :return: The display_name of this Agent.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this Agent.
+ ODMS Agent name
+
+
+ :param display_name: The display_name of this Agent.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this Agent.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this Agent.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this Agent.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this Agent.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def stream_id(self):
+ """
+ **[Required]** Gets the stream_id of this Agent.
+ The OCID of the Stream
+
+
+ :return: The stream_id of this Agent.
+ :rtype: str
+ """
+ return self._stream_id
+
+ @stream_id.setter
+ def stream_id(self, stream_id):
+ """
+ Sets the stream_id of this Agent.
+ The OCID of the Stream
+
+
+ :param stream_id: The stream_id of this Agent.
+ :type: str
+ """
+ self._stream_id = stream_id
+
+ @property
+ def public_key(self):
+ """
+ Gets the public_key of this Agent.
+ ODMS Agent public key.
+
+
+ :return: The public_key of this Agent.
+ :rtype: str
+ """
+ return self._public_key
+
+ @public_key.setter
+ def public_key(self, public_key):
+ """
+ Sets the public_key of this Agent.
+ ODMS Agent public key.
+
+
+ :param public_key: The public_key of this Agent.
+ :type: str
+ """
+ self._public_key = public_key
+
+ @property
+ def version(self):
+ """
+ **[Required]** Gets the version of this Agent.
+ ODMS Agent version
+
+
+ :return: The version of this Agent.
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """
+ Sets the version of this Agent.
+ ODMS Agent version
+
+
+ :param version: The version of this Agent.
+ :type: str
+ """
+ self._version = version
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this Agent.
+ The time the Agent was created. An RFC3339 formatted datetime string.
+
+
+ :return: The time_created of this Agent.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this Agent.
+ The time the Agent was created. An RFC3339 formatted datetime string.
+
+
+ :param time_created: The time_created of this Agent.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ **[Required]** Gets the time_updated of this Agent.
+ The time of the last Agent details update. An RFC3339 formatted datetime string.
+
+
+ :return: The time_updated of this Agent.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this Agent.
+ The time of the last Agent details update. An RFC3339 formatted datetime string.
+
+
+ :param time_updated: The time_updated of this Agent.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this Agent.
+ The current state of the ODMS On Prem Agent.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this Agent.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this Agent.
+ The current state of the ODMS On Prem Agent.
+
+
+ :param lifecycle_state: The lifecycle_state of this Agent.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this Agent.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this Agent.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this Agent.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this Agent.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this Agent.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this Agent.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this Agent.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this Agent.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this Agent.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this Agent.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this Agent.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this Agent.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this Agent.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this Agent.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this Agent.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this Agent.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/agent_collection.py b/src/oci/database_migration/models/agent_collection.py
new file mode 100644
index 0000000000..67964e1a64
--- /dev/null
+++ b/src/oci/database_migration/models/agent_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AgentCollection(object):
+ """
+ Results of a Agent search. Contains AgentSummary items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AgentCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this AgentCollection.
+ :type items: list[oci.database_migration.models.AgentSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[AgentSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this AgentCollection.
+ Items in collection.
+
+
+ :return: The items of this AgentCollection.
+ :rtype: list[oci.database_migration.models.AgentSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this AgentCollection.
+ Items in collection.
+
+
+ :param items: The items of this AgentCollection.
+ :type: list[oci.database_migration.models.AgentSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/agent_image_collection.py b/src/oci/database_migration/models/agent_image_collection.py
new file mode 100644
index 0000000000..0c529fc872
--- /dev/null
+++ b/src/oci/database_migration/models/agent_image_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AgentImageCollection(object):
+ """
+ Results of a ODMS Agent Image search. Contains AgentImageSummary items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AgentImageCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this AgentImageCollection.
+ :type items: list[oci.database_migration.models.AgentImageSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[AgentImageSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this AgentImageCollection.
+ Items in collection.
+
+
+ :return: The items of this AgentImageCollection.
+ :rtype: list[oci.database_migration.models.AgentImageSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this AgentImageCollection.
+ Items in collection.
+
+
+ :param items: The items of this AgentImageCollection.
+ :type: list[oci.database_migration.models.AgentImageSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/agent_image_summary.py b/src/oci/database_migration/models/agent_image_summary.py
new file mode 100644
index 0000000000..f4611b37ea
--- /dev/null
+++ b/src/oci/database_migration/models/agent_image_summary.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AgentImageSummary(object):
+ """
+ Available ODMS Agent Images.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AgentImageSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param version:
+ The value to assign to the version property of this AgentImageSummary.
+ :type version: str
+
+ :param download_url:
+ The value to assign to the download_url property of this AgentImageSummary.
+ :type download_url: str
+
+ """
+ self.swagger_types = {
+ 'version': 'str',
+ 'download_url': 'str'
+ }
+
+ self.attribute_map = {
+ 'version': 'version',
+ 'download_url': 'downloadUrl'
+ }
+
+ self._version = None
+ self._download_url = None
+
+ @property
+ def version(self):
+ """
+ **[Required]** Gets the version of this AgentImageSummary.
+ ODMS Agent Image version.
+
+
+ :return: The version of this AgentImageSummary.
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """
+ Sets the version of this AgentImageSummary.
+ ODMS Agent Image version.
+
+
+ :param version: The version of this AgentImageSummary.
+ :type: str
+ """
+ self._version = version
+
+ @property
+ def download_url(self):
+ """
+ **[Required]** Gets the download_url of this AgentImageSummary.
+ URL to download Agent Image of the ODMS Agent.
+
+
+ :return: The download_url of this AgentImageSummary.
+ :rtype: str
+ """
+ return self._download_url
+
+ @download_url.setter
+ def download_url(self, download_url):
+ """
+ Sets the download_url of this AgentImageSummary.
+ URL to download Agent Image of the ODMS Agent.
+
+
+ :param download_url: The download_url of this AgentImageSummary.
+ :type: str
+ """
+ self._download_url = download_url
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/agent_summary.py b/src/oci/database_migration/models/agent_summary.py
new file mode 100644
index 0000000000..122f9ff9b3
--- /dev/null
+++ b/src/oci/database_migration/models/agent_summary.py
@@ -0,0 +1,453 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AgentSummary(object):
+ """
+ ODMS Agent Details
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a AgentSummary.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a AgentSummary.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a AgentSummary.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a AgentSummary.
+ #: This constant has a value of "INACTIVE"
+ LIFECYCLE_STATE_INACTIVE = "INACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a AgentSummary.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a AgentSummary.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a AgentSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AgentSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this AgentSummary.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this AgentSummary.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this AgentSummary.
+ :type compartment_id: str
+
+ :param stream_id:
+ The value to assign to the stream_id property of this AgentSummary.
+ :type stream_id: str
+
+ :param version:
+ The value to assign to the version property of this AgentSummary.
+ :type version: str
+
+ :param time_created:
+ The value to assign to the time_created property of this AgentSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this AgentSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this AgentSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this AgentSummary.
+ :type lifecycle_details: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this AgentSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this AgentSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this AgentSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'stream_id': 'str',
+ 'version': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'stream_id': 'streamId',
+ 'version': 'version',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._compartment_id = None
+ self._stream_id = None
+ self._version = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this AgentSummary.
+ The OCID of the resource
+
+
+ :return: The id of this AgentSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this AgentSummary.
+ The OCID of the resource
+
+
+ :param id: The id of this AgentSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this AgentSummary.
+ ODMS Agent name
+
+
+ :return: The display_name of this AgentSummary.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this AgentSummary.
+ ODMS Agent name
+
+
+ :param display_name: The display_name of this AgentSummary.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this AgentSummary.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this AgentSummary.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this AgentSummary.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this AgentSummary.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def stream_id(self):
+ """
+ Gets the stream_id of this AgentSummary.
+ The OCID of the Stream
+
+
+ :return: The stream_id of this AgentSummary.
+ :rtype: str
+ """
+ return self._stream_id
+
+ @stream_id.setter
+ def stream_id(self, stream_id):
+ """
+ Sets the stream_id of this AgentSummary.
+ The OCID of the Stream
+
+
+ :param stream_id: The stream_id of this AgentSummary.
+ :type: str
+ """
+ self._stream_id = stream_id
+
+ @property
+ def version(self):
+ """
+ **[Required]** Gets the version of this AgentSummary.
+ ODMS Agent version
+
+
+ :return: The version of this AgentSummary.
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """
+ Sets the version of this AgentSummary.
+ ODMS Agent version
+
+
+ :param version: The version of this AgentSummary.
+ :type: str
+ """
+ self._version = version
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this AgentSummary.
+ The time the Agent was created. An RFC3339 formatted datetime string.
+
+
+ :return: The time_created of this AgentSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this AgentSummary.
+ The time the Agent was created. An RFC3339 formatted datetime string.
+
+
+ :param time_created: The time_created of this AgentSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this AgentSummary.
+ The time of the last Agent details update. An RFC3339 formatted datetime string.
+
+
+ :return: The time_updated of this AgentSummary.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this AgentSummary.
+ The time of the last Agent details update. An RFC3339 formatted datetime string.
+
+
+ :param time_updated: The time_updated of this AgentSummary.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this AgentSummary.
+ The current state of the ODMS On Prem Agent.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this AgentSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this AgentSummary.
+ The current state of the ODMS On Prem Agent.
+
+
+ :param lifecycle_state: The lifecycle_state of this AgentSummary.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this AgentSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this AgentSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this AgentSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this AgentSummary.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this AgentSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this AgentSummary.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this AgentSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this AgentSummary.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this AgentSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this AgentSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this AgentSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this AgentSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this AgentSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this AgentSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this AgentSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this AgentSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/change_agent_compartment_details.py b/src/oci/database_migration/models/change_agent_compartment_details.py
new file mode 100644
index 0000000000..0ac0c9690c
--- /dev/null
+++ b/src/oci/database_migration/models/change_agent_compartment_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ChangeAgentCompartmentDetails(object):
+ """
+ ChangeAgentCompartmentDetails description
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangeAgentCompartmentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ChangeAgentCompartmentDetails.
+ :type compartment_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId'
+ }
+
+ self._compartment_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ChangeAgentCompartmentDetails.
+ The OCID of the compartment to move the resource to.
+
+
+ :return: The compartment_id of this ChangeAgentCompartmentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ChangeAgentCompartmentDetails.
+ The OCID of the compartment to move the resource to.
+
+
+ :param compartment_id: The compartment_id of this ChangeAgentCompartmentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/change_connection_compartment_details.py b/src/oci/database_migration/models/change_connection_compartment_details.py
new file mode 100644
index 0000000000..edfbe7d79c
--- /dev/null
+++ b/src/oci/database_migration/models/change_connection_compartment_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ChangeConnectionCompartmentDetails(object):
+ """
+ Change Database Connection compartment details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangeConnectionCompartmentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ChangeConnectionCompartmentDetails.
+ :type compartment_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId'
+ }
+
+ self._compartment_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ChangeConnectionCompartmentDetails.
+ The OCID of the compartment to move the resource to.
+
+
+ :return: The compartment_id of this ChangeConnectionCompartmentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ChangeConnectionCompartmentDetails.
+ The OCID of the compartment to move the resource to.
+
+
+ :param compartment_id: The compartment_id of this ChangeConnectionCompartmentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/change_migration_compartment_details.py b/src/oci/database_migration/models/change_migration_compartment_details.py
new file mode 100644
index 0000000000..87cdc577ef
--- /dev/null
+++ b/src/oci/database_migration/models/change_migration_compartment_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ChangeMigrationCompartmentDetails(object):
+ """
+ Change Migration compartment details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangeMigrationCompartmentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ChangeMigrationCompartmentDetails.
+ :type compartment_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId'
+ }
+
+ self._compartment_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ChangeMigrationCompartmentDetails.
+ The OCID of the compartment to move the resource to.
+
+
+ :return: The compartment_id of this ChangeMigrationCompartmentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ChangeMigrationCompartmentDetails.
+ The OCID of the compartment to move the resource to.
+
+
+ :param compartment_id: The compartment_id of this ChangeMigrationCompartmentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/clone_migration_details.py b/src/oci/database_migration/models/clone_migration_details.py
new file mode 100644
index 0000000000..b4ddb5f77e
--- /dev/null
+++ b/src/oci/database_migration/models/clone_migration_details.py
@@ -0,0 +1,351 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CloneMigrationDetails(object):
+ """
+ Details to specify that will override an existing Migration configuration that will be cloned.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CloneMigrationDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param display_name:
+ The value to assign to the display_name property of this CloneMigrationDetails.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CloneMigrationDetails.
+ :type compartment_id: str
+
+ :param agent_id:
+ The value to assign to the agent_id property of this CloneMigrationDetails.
+ :type agent_id: str
+
+ :param source_database_connection_id:
+ The value to assign to the source_database_connection_id property of this CloneMigrationDetails.
+ :type source_database_connection_id: str
+
+ :param source_container_database_connection_id:
+ The value to assign to the source_container_database_connection_id property of this CloneMigrationDetails.
+ :type source_container_database_connection_id: str
+
+ :param target_database_connection_id:
+ The value to assign to the target_database_connection_id property of this CloneMigrationDetails.
+ :type target_database_connection_id: str
+
+ :param exclude_objects:
+ The value to assign to the exclude_objects property of this CloneMigrationDetails.
+ :type exclude_objects: list[oci.database_migration.models.DatabaseObject]
+
+ :param vault_details:
+ The value to assign to the vault_details property of this CloneMigrationDetails.
+ :type vault_details: oci.database_migration.models.CreateVaultDetails
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CloneMigrationDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CloneMigrationDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'agent_id': 'str',
+ 'source_database_connection_id': 'str',
+ 'source_container_database_connection_id': 'str',
+ 'target_database_connection_id': 'str',
+ 'exclude_objects': 'list[DatabaseObject]',
+ 'vault_details': 'CreateVaultDetails',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'agent_id': 'agentId',
+ 'source_database_connection_id': 'sourceDatabaseConnectionId',
+ 'source_container_database_connection_id': 'sourceContainerDatabaseConnectionId',
+ 'target_database_connection_id': 'targetDatabaseConnectionId',
+ 'exclude_objects': 'excludeObjects',
+ 'vault_details': 'vaultDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._display_name = None
+ self._compartment_id = None
+ self._agent_id = None
+ self._source_database_connection_id = None
+ self._source_container_database_connection_id = None
+ self._target_database_connection_id = None
+ self._exclude_objects = None
+ self._vault_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this CloneMigrationDetails.
+ Migration Display Name
+
+
+ :return: The display_name of this CloneMigrationDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CloneMigrationDetails.
+ Migration Display Name
+
+
+ :param display_name: The display_name of this CloneMigrationDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ Gets the compartment_id of this CloneMigrationDetails.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this CloneMigrationDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CloneMigrationDetails.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this CloneMigrationDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def agent_id(self):
+ """
+ Gets the agent_id of this CloneMigrationDetails.
+ The OCID of the registered On-Prem ODMS Agent. Required for OFFLINE Migrations.
+
+
+ :return: The agent_id of this CloneMigrationDetails.
+ :rtype: str
+ """
+ return self._agent_id
+
+ @agent_id.setter
+ def agent_id(self, agent_id):
+ """
+ Sets the agent_id of this CloneMigrationDetails.
+ The OCID of the registered On-Prem ODMS Agent. Required for OFFLINE Migrations.
+
+
+ :param agent_id: The agent_id of this CloneMigrationDetails.
+ :type: str
+ """
+ self._agent_id = agent_id
+
+ @property
+ def source_database_connection_id(self):
+ """
+ **[Required]** Gets the source_database_connection_id of this CloneMigrationDetails.
+ The OCID of the Source Database Connection.
+
+
+ :return: The source_database_connection_id of this CloneMigrationDetails.
+ :rtype: str
+ """
+ return self._source_database_connection_id
+
+ @source_database_connection_id.setter
+ def source_database_connection_id(self, source_database_connection_id):
+ """
+ Sets the source_database_connection_id of this CloneMigrationDetails.
+ The OCID of the Source Database Connection.
+
+
+ :param source_database_connection_id: The source_database_connection_id of this CloneMigrationDetails.
+ :type: str
+ """
+ self._source_database_connection_id = source_database_connection_id
+
+ @property
+ def source_container_database_connection_id(self):
+ """
+ Gets the source_container_database_connection_id of this CloneMigrationDetails.
+ The OCID of the Source Container Database Connection. Only used for ONLINE migrations.
+ Only Connections of type Non-Autonomous can be used as source container databases.
+
+
+ :return: The source_container_database_connection_id of this CloneMigrationDetails.
+ :rtype: str
+ """
+ return self._source_container_database_connection_id
+
+ @source_container_database_connection_id.setter
+ def source_container_database_connection_id(self, source_container_database_connection_id):
+ """
+ Sets the source_container_database_connection_id of this CloneMigrationDetails.
+ The OCID of the Source Container Database Connection. Only used for ONLINE migrations.
+ Only Connections of type Non-Autonomous can be used as source container databases.
+
+
+ :param source_container_database_connection_id: The source_container_database_connection_id of this CloneMigrationDetails.
+ :type: str
+ """
+ self._source_container_database_connection_id = source_container_database_connection_id
+
+ @property
+ def target_database_connection_id(self):
+ """
+ **[Required]** Gets the target_database_connection_id of this CloneMigrationDetails.
+ The OCID of the Target Database Connection.
+
+
+ :return: The target_database_connection_id of this CloneMigrationDetails.
+ :rtype: str
+ """
+ return self._target_database_connection_id
+
+ @target_database_connection_id.setter
+ def target_database_connection_id(self, target_database_connection_id):
+ """
+ Sets the target_database_connection_id of this CloneMigrationDetails.
+ The OCID of the Target Database Connection.
+
+
+ :param target_database_connection_id: The target_database_connection_id of this CloneMigrationDetails.
+ :type: str
+ """
+ self._target_database_connection_id = target_database_connection_id
+
+ @property
+ def exclude_objects(self):
+ """
+ Gets the exclude_objects of this CloneMigrationDetails.
+ Database objects to exclude from migration.
+
+
+ :return: The exclude_objects of this CloneMigrationDetails.
+ :rtype: list[oci.database_migration.models.DatabaseObject]
+ """
+ return self._exclude_objects
+
+ @exclude_objects.setter
+ def exclude_objects(self, exclude_objects):
+ """
+ Sets the exclude_objects of this CloneMigrationDetails.
+ Database objects to exclude from migration.
+
+
+ :param exclude_objects: The exclude_objects of this CloneMigrationDetails.
+ :type: list[oci.database_migration.models.DatabaseObject]
+ """
+ self._exclude_objects = exclude_objects
+
+ @property
+ def vault_details(self):
+ """
+ Gets the vault_details of this CloneMigrationDetails.
+
+ :return: The vault_details of this CloneMigrationDetails.
+ :rtype: oci.database_migration.models.CreateVaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this CloneMigrationDetails.
+
+ :param vault_details: The vault_details of this CloneMigrationDetails.
+ :type: oci.database_migration.models.CreateVaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CloneMigrationDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CloneMigrationDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CloneMigrationDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CloneMigrationDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CloneMigrationDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CloneMigrationDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CloneMigrationDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CloneMigrationDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/connect_descriptor.py b/src/oci/database_migration/models/connect_descriptor.py
new file mode 100644
index 0000000000..8d1629032a
--- /dev/null
+++ b/src/oci/database_migration/models/connect_descriptor.py
@@ -0,0 +1,163 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ConnectDescriptor(object):
+ """
+ Connect Descriptor details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ConnectDescriptor object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host:
+ The value to assign to the host property of this ConnectDescriptor.
+ :type host: str
+
+ :param port:
+ The value to assign to the port property of this ConnectDescriptor.
+ :type port: int
+
+ :param database_service_name:
+ The value to assign to the database_service_name property of this ConnectDescriptor.
+ :type database_service_name: str
+
+ :param connect_string:
+ The value to assign to the connect_string property of this ConnectDescriptor.
+ :type connect_string: str
+
+ """
+ self.swagger_types = {
+ 'host': 'str',
+ 'port': 'int',
+ 'database_service_name': 'str',
+ 'connect_string': 'str'
+ }
+
+ self.attribute_map = {
+ 'host': 'host',
+ 'port': 'port',
+ 'database_service_name': 'databaseServiceName',
+ 'connect_string': 'connectString'
+ }
+
+ self._host = None
+ self._port = None
+ self._database_service_name = None
+ self._connect_string = None
+
+ @property
+ def host(self):
+ """
+ Gets the host of this ConnectDescriptor.
+ Host of the connect descriptor.
+
+
+ :return: The host of this ConnectDescriptor.
+ :rtype: str
+ """
+ return self._host
+
+ @host.setter
+ def host(self, host):
+ """
+ Sets the host of this ConnectDescriptor.
+ Host of the connect descriptor.
+
+
+ :param host: The host of this ConnectDescriptor.
+ :type: str
+ """
+ self._host = host
+
+ @property
+ def port(self):
+ """
+ Gets the port of this ConnectDescriptor.
+ Port of the connect descriptor.
+
+
+ :return: The port of this ConnectDescriptor.
+ :rtype: int
+ """
+ return self._port
+
+ @port.setter
+ def port(self, port):
+ """
+ Sets the port of this ConnectDescriptor.
+ Port of the connect descriptor.
+
+
+ :param port: The port of this ConnectDescriptor.
+ :type: int
+ """
+ self._port = port
+
+ @property
+ def database_service_name(self):
+ """
+ Gets the database_service_name of this ConnectDescriptor.
+ Database service name.
+
+
+ :return: The database_service_name of this ConnectDescriptor.
+ :rtype: str
+ """
+ return self._database_service_name
+
+ @database_service_name.setter
+ def database_service_name(self, database_service_name):
+ """
+ Sets the database_service_name of this ConnectDescriptor.
+ Database service name.
+
+
+ :param database_service_name: The database_service_name of this ConnectDescriptor.
+ :type: str
+ """
+ self._database_service_name = database_service_name
+
+ @property
+ def connect_string(self):
+ """
+ Gets the connect_string of this ConnectDescriptor.
+ Connect string.
+
+
+ :return: The connect_string of this ConnectDescriptor.
+ :rtype: str
+ """
+ return self._connect_string
+
+ @connect_string.setter
+ def connect_string(self, connect_string):
+ """
+ Sets the connect_string of this ConnectDescriptor.
+ Connect string.
+
+
+ :param connect_string: The connect_string of this ConnectDescriptor.
+ :type: str
+ """
+ self._connect_string = connect_string
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/connection.py b/src/oci/database_migration/models/connection.py
new file mode 100644
index 0000000000..2a445bb1ca
--- /dev/null
+++ b/src/oci/database_migration/models/connection.py
@@ -0,0 +1,672 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class Connection(object):
+ """
+ Database Connection resource used for migrations.
+ """
+
+ #: A constant which can be used with the database_type property of a Connection.
+ #: This constant has a value of "MANUAL"
+ DATABASE_TYPE_MANUAL = "MANUAL"
+
+ #: A constant which can be used with the database_type property of a Connection.
+ #: This constant has a value of "AUTONOMOUS"
+ DATABASE_TYPE_AUTONOMOUS = "AUTONOMOUS"
+
+ #: A constant which can be used with the database_type property of a Connection.
+ #: This constant has a value of "USER_MANAGED_OCI"
+ DATABASE_TYPE_USER_MANAGED_OCI = "USER_MANAGED_OCI"
+
+ #: A constant which can be used with the lifecycle_state property of a Connection.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a Connection.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a Connection.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a Connection.
+ #: This constant has a value of "INACTIVE"
+ LIFECYCLE_STATE_INACTIVE = "INACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a Connection.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a Connection.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a Connection.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Connection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this Connection.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this Connection.
+ :type compartment_id: str
+
+ :param database_type:
+ The value to assign to the database_type property of this Connection.
+ Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type database_type: str
+
+ :param display_name:
+ The value to assign to the display_name property of this Connection.
+ :type display_name: str
+
+ :param database_id:
+ The value to assign to the database_id property of this Connection.
+ :type database_id: str
+
+ :param connect_descriptor:
+ The value to assign to the connect_descriptor property of this Connection.
+ :type connect_descriptor: oci.database_migration.models.ConnectDescriptor
+
+ :param credentials_secret_id:
+ The value to assign to the credentials_secret_id property of this Connection.
+ :type credentials_secret_id: str
+
+ :param certificate_tdn:
+ The value to assign to the certificate_tdn property of this Connection.
+ :type certificate_tdn: str
+
+ :param ssh_details:
+ The value to assign to the ssh_details property of this Connection.
+ :type ssh_details: oci.database_migration.models.SshDetails
+
+ :param admin_credentials:
+ The value to assign to the admin_credentials property of this Connection.
+ :type admin_credentials: oci.database_migration.models.AdminCredentials
+
+ :param private_endpoint:
+ The value to assign to the private_endpoint property of this Connection.
+ :type private_endpoint: oci.database_migration.models.PrivateEndpointDetails
+
+ :param vault_details:
+ The value to assign to the vault_details property of this Connection.
+ :type vault_details: oci.database_migration.models.VaultDetails
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this Connection.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this Connection.
+ :type lifecycle_details: str
+
+ :param time_created:
+ The value to assign to the time_created property of this Connection.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this Connection.
+ :type time_updated: datetime
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this Connection.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this Connection.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this Connection.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'database_type': 'str',
+ 'display_name': 'str',
+ 'database_id': 'str',
+ 'connect_descriptor': 'ConnectDescriptor',
+ 'credentials_secret_id': 'str',
+ 'certificate_tdn': 'str',
+ 'ssh_details': 'SshDetails',
+ 'admin_credentials': 'AdminCredentials',
+ 'private_endpoint': 'PrivateEndpointDetails',
+ 'vault_details': 'VaultDetails',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'database_type': 'databaseType',
+ 'display_name': 'displayName',
+ 'database_id': 'databaseId',
+ 'connect_descriptor': 'connectDescriptor',
+ 'credentials_secret_id': 'credentialsSecretId',
+ 'certificate_tdn': 'certificateTdn',
+ 'ssh_details': 'sshDetails',
+ 'admin_credentials': 'adminCredentials',
+ 'private_endpoint': 'privateEndpoint',
+ 'vault_details': 'vaultDetails',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._compartment_id = None
+ self._database_type = None
+ self._display_name = None
+ self._database_id = None
+ self._connect_descriptor = None
+ self._credentials_secret_id = None
+ self._certificate_tdn = None
+ self._ssh_details = None
+ self._admin_credentials = None
+ self._private_endpoint = None
+ self._vault_details = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._time_created = None
+ self._time_updated = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this Connection.
+ The OCID of the resource
+
+
+ :return: The id of this Connection.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this Connection.
+ The OCID of the resource
+
+
+ :param id: The id of this Connection.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this Connection.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this Connection.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this Connection.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this Connection.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def database_type(self):
+ """
+ **[Required]** Gets the database_type of this Connection.
+ Database connection type.
+
+ Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The database_type of this Connection.
+ :rtype: str
+ """
+ return self._database_type
+
+ @database_type.setter
+ def database_type(self, database_type):
+ """
+ Sets the database_type of this Connection.
+ Database connection type.
+
+
+ :param database_type: The database_type of this Connection.
+ :type: str
+ """
+ allowed_values = ["MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI"]
+ if not value_allowed_none_or_none_sentinel(database_type, allowed_values):
+ database_type = 'UNKNOWN_ENUM_VALUE'
+ self._database_type = database_type
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this Connection.
+ Database Connection display name identifier.
+
+
+ :return: The display_name of this Connection.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this Connection.
+ Database Connection display name identifier.
+
+
+ :param display_name: The display_name of this Connection.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def database_id(self):
+ """
+ Gets the database_id of this Connection.
+ The OCID of the cloud database.
+
+
+ :return: The database_id of this Connection.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this Connection.
+ The OCID of the cloud database.
+
+
+ :param database_id: The database_id of this Connection.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def connect_descriptor(self):
+ """
+ Gets the connect_descriptor of this Connection.
+
+ :return: The connect_descriptor of this Connection.
+ :rtype: oci.database_migration.models.ConnectDescriptor
+ """
+ return self._connect_descriptor
+
+ @connect_descriptor.setter
+ def connect_descriptor(self, connect_descriptor):
+ """
+ Sets the connect_descriptor of this Connection.
+
+ :param connect_descriptor: The connect_descriptor of this Connection.
+ :type: oci.database_migration.models.ConnectDescriptor
+ """
+ self._connect_descriptor = connect_descriptor
+
+ @property
+ def credentials_secret_id(self):
+ """
+ Gets the credentials_secret_id of this Connection.
+ OCID of the Secret in the OCI vault containing the Database Connection credentials.
+
+
+ :return: The credentials_secret_id of this Connection.
+ :rtype: str
+ """
+ return self._credentials_secret_id
+
+ @credentials_secret_id.setter
+ def credentials_secret_id(self, credentials_secret_id):
+ """
+ Sets the credentials_secret_id of this Connection.
+ OCID of the Secret in the OCI vault containing the Database Connection credentials.
+
+
+ :param credentials_secret_id: The credentials_secret_id of this Connection.
+ :type: str
+ """
+ self._credentials_secret_id = credentials_secret_id
+
+ @property
+ def certificate_tdn(self):
+ """
+ Gets the certificate_tdn of this Connection.
+ This name is the distinguished name used while creating the certificate on target database.
+
+
+ :return: The certificate_tdn of this Connection.
+ :rtype: str
+ """
+ return self._certificate_tdn
+
+ @certificate_tdn.setter
+ def certificate_tdn(self, certificate_tdn):
+ """
+ Sets the certificate_tdn of this Connection.
+ This name is the distinguished name used while creating the certificate on target database.
+
+
+ :param certificate_tdn: The certificate_tdn of this Connection.
+ :type: str
+ """
+ self._certificate_tdn = certificate_tdn
+
+ @property
+ def ssh_details(self):
+ """
+ Gets the ssh_details of this Connection.
+
+ :return: The ssh_details of this Connection.
+ :rtype: oci.database_migration.models.SshDetails
+ """
+ return self._ssh_details
+
+ @ssh_details.setter
+ def ssh_details(self, ssh_details):
+ """
+ Sets the ssh_details of this Connection.
+
+ :param ssh_details: The ssh_details of this Connection.
+ :type: oci.database_migration.models.SshDetails
+ """
+ self._ssh_details = ssh_details
+
+ @property
+ def admin_credentials(self):
+ """
+ Gets the admin_credentials of this Connection.
+
+ :return: The admin_credentials of this Connection.
+ :rtype: oci.database_migration.models.AdminCredentials
+ """
+ return self._admin_credentials
+
+ @admin_credentials.setter
+ def admin_credentials(self, admin_credentials):
+ """
+ Sets the admin_credentials of this Connection.
+
+ :param admin_credentials: The admin_credentials of this Connection.
+ :type: oci.database_migration.models.AdminCredentials
+ """
+ self._admin_credentials = admin_credentials
+
+ @property
+ def private_endpoint(self):
+ """
+ Gets the private_endpoint of this Connection.
+
+ :return: The private_endpoint of this Connection.
+ :rtype: oci.database_migration.models.PrivateEndpointDetails
+ """
+ return self._private_endpoint
+
+ @private_endpoint.setter
+ def private_endpoint(self, private_endpoint):
+ """
+ Sets the private_endpoint of this Connection.
+
+ :param private_endpoint: The private_endpoint of this Connection.
+ :type: oci.database_migration.models.PrivateEndpointDetails
+ """
+ self._private_endpoint = private_endpoint
+
+ @property
+ def vault_details(self):
+ """
+ Gets the vault_details of this Connection.
+
+ :return: The vault_details of this Connection.
+ :rtype: oci.database_migration.models.VaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this Connection.
+
+ :param vault_details: The vault_details of this Connection.
+ :type: oci.database_migration.models.VaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this Connection.
+ The current state of the Connection resource.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this Connection.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this Connection.
+ The current state of the Connection resource.
+
+
+ :param lifecycle_state: The lifecycle_state of this Connection.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this Connection.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this Connection.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this Connection.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this Connection.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this Connection.
+ The time the Connection resource was created. An RFC3339 formatted datetime string.
+
+
+ :return: The time_created of this Connection.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this Connection.
+ The time the Connection resource was created. An RFC3339 formatted datetime string.
+
+
+ :param time_created: The time_created of this Connection.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this Connection.
+ The time of the last Connection resource details update. An RFC3339 formatted datetime string.
+
+
+ :return: The time_updated of this Connection.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this Connection.
+ The time of the last Connection resource details update. An RFC3339 formatted datetime string.
+
+
+ :param time_updated: The time_updated of this Connection.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this Connection.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this Connection.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this Connection.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this Connection.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this Connection.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this Connection.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this Connection.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this Connection.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this Connection.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this Connection.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this Connection.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this Connection.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/connection_collection.py b/src/oci/database_migration/models/connection_collection.py
new file mode 100644
index 0000000000..c72d76742c
--- /dev/null
+++ b/src/oci/database_migration/models/connection_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ConnectionCollection(object):
+ """
+ Results of a Database Connection search. Contains DatabaseConnectionSummary items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ConnectionCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this ConnectionCollection.
+ :type items: list[oci.database_migration.models.ConnectionSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[ConnectionSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this ConnectionCollection.
+ Items in collection.
+
+
+ :return: The items of this ConnectionCollection.
+ :rtype: list[oci.database_migration.models.ConnectionSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this ConnectionCollection.
+ Items in collection.
+
+
+ :param items: The items of this ConnectionCollection.
+ :type: list[oci.database_migration.models.ConnectionSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/connection_summary.py b/src/oci/database_migration/models/connection_summary.py
new file mode 100644
index 0000000000..e14306edae
--- /dev/null
+++ b/src/oci/database_migration/models/connection_summary.py
@@ -0,0 +1,475 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ConnectionSummary(object):
+ """
+ Database Connection Summary.
+ """
+
+ #: A constant which can be used with the database_type property of a ConnectionSummary.
+ #: This constant has a value of "MANUAL"
+ DATABASE_TYPE_MANUAL = "MANUAL"
+
+ #: A constant which can be used with the database_type property of a ConnectionSummary.
+ #: This constant has a value of "AUTONOMOUS"
+ DATABASE_TYPE_AUTONOMOUS = "AUTONOMOUS"
+
+ #: A constant which can be used with the database_type property of a ConnectionSummary.
+ #: This constant has a value of "USER_MANAGED_OCI"
+ DATABASE_TYPE_USER_MANAGED_OCI = "USER_MANAGED_OCI"
+
+ #: A constant which can be used with the lifecycle_state property of a ConnectionSummary.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a ConnectionSummary.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a ConnectionSummary.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a ConnectionSummary.
+ #: This constant has a value of "INACTIVE"
+ LIFECYCLE_STATE_INACTIVE = "INACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a ConnectionSummary.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a ConnectionSummary.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a ConnectionSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ConnectionSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this ConnectionSummary.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ConnectionSummary.
+ :type compartment_id: str
+
+ :param database_type:
+ The value to assign to the database_type property of this ConnectionSummary.
+ Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type database_type: str
+
+ :param display_name:
+ The value to assign to the display_name property of this ConnectionSummary.
+ :type display_name: str
+
+ :param database_id:
+ The value to assign to the database_id property of this ConnectionSummary.
+ :type database_id: str
+
+ :param time_created:
+ The value to assign to the time_created property of this ConnectionSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this ConnectionSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this ConnectionSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this ConnectionSummary.
+ :type lifecycle_details: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this ConnectionSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this ConnectionSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this ConnectionSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'database_type': 'str',
+ 'display_name': 'str',
+ 'database_id': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'database_type': 'databaseType',
+ 'display_name': 'displayName',
+ 'database_id': 'databaseId',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._compartment_id = None
+ self._database_type = None
+ self._display_name = None
+ self._database_id = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this ConnectionSummary.
+ The OCID of the resource
+
+
+ :return: The id of this ConnectionSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this ConnectionSummary.
+ The OCID of the resource
+
+
+ :param id: The id of this ConnectionSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ConnectionSummary.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this ConnectionSummary.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ConnectionSummary.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this ConnectionSummary.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def database_type(self):
+ """
+ **[Required]** Gets the database_type of this ConnectionSummary.
+ Database connection type.
+
+ Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The database_type of this ConnectionSummary.
+ :rtype: str
+ """
+ return self._database_type
+
+ @database_type.setter
+ def database_type(self, database_type):
+ """
+ Sets the database_type of this ConnectionSummary.
+ Database connection type.
+
+
+ :param database_type: The database_type of this ConnectionSummary.
+ :type: str
+ """
+ allowed_values = ["MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI"]
+ if not value_allowed_none_or_none_sentinel(database_type, allowed_values):
+ database_type = 'UNKNOWN_ENUM_VALUE'
+ self._database_type = database_type
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this ConnectionSummary.
+ Database Connection display name identifier.
+
+
+ :return: The display_name of this ConnectionSummary.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this ConnectionSummary.
+ Database Connection display name identifier.
+
+
+ :param display_name: The display_name of this ConnectionSummary.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def database_id(self):
+ """
+ Gets the database_id of this ConnectionSummary.
+ The OCID of the cloud database.
+
+
+ :return: The database_id of this ConnectionSummary.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this ConnectionSummary.
+ The OCID of the cloud database.
+
+
+ :param database_id: The database_id of this ConnectionSummary.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this ConnectionSummary.
+ The time the Connection resource was created. An RFC3339 formatted datetime string.
+
+
+ :return: The time_created of this ConnectionSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this ConnectionSummary.
+ The time the Connection resource was created. An RFC3339 formatted datetime string.
+
+
+ :param time_created: The time_created of this ConnectionSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this ConnectionSummary.
+ The time of the last Connection resource details update. An RFC3339 formatted datetime string.
+
+
+ :return: The time_updated of this ConnectionSummary.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this ConnectionSummary.
+ The time of the last Connection resource details update. An RFC3339 formatted datetime string.
+
+
+ :param time_updated: The time_updated of this ConnectionSummary.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this ConnectionSummary.
+ The current state of the Connection resource.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this ConnectionSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this ConnectionSummary.
+ The current state of the Connection resource.
+
+
+ :param lifecycle_state: The lifecycle_state of this ConnectionSummary.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this ConnectionSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this ConnectionSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this ConnectionSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this ConnectionSummary.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this ConnectionSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this ConnectionSummary.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this ConnectionSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this ConnectionSummary.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this ConnectionSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this ConnectionSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this ConnectionSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this ConnectionSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this ConnectionSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this ConnectionSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this ConnectionSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this ConnectionSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_admin_credentials.py b/src/oci/database_migration/models/create_admin_credentials.py
new file mode 100644
index 0000000000..1a36856b25
--- /dev/null
+++ b/src/oci/database_migration/models/create_admin_credentials.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateAdminCredentials(object):
+ """
+ Database Admin Credentials details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateAdminCredentials object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param username:
+ The value to assign to the username property of this CreateAdminCredentials.
+ :type username: str
+
+ :param password:
+ The value to assign to the password property of this CreateAdminCredentials.
+ :type password: str
+
+ """
+ self.swagger_types = {
+ 'username': 'str',
+ 'password': 'str'
+ }
+
+ self.attribute_map = {
+ 'username': 'username',
+ 'password': 'password'
+ }
+
+ self._username = None
+ self._password = None
+
+ @property
+ def username(self):
+ """
+ **[Required]** Gets the username of this CreateAdminCredentials.
+ Admin username
+
+
+ :return: The username of this CreateAdminCredentials.
+ :rtype: str
+ """
+ return self._username
+
+ @username.setter
+ def username(self, username):
+ """
+ Sets the username of this CreateAdminCredentials.
+ Admin username
+
+
+ :param username: The username of this CreateAdminCredentials.
+ :type: str
+ """
+ self._username = username
+
+ @property
+ def password(self):
+ """
+ **[Required]** Gets the password of this CreateAdminCredentials.
+ Admin password
+
+
+ :return: The password of this CreateAdminCredentials.
+ :rtype: str
+ """
+ return self._password
+
+ @password.setter
+ def password(self, password):
+ """
+ Sets the password of this CreateAdminCredentials.
+ Admin password
+
+
+ :param password: The password of this CreateAdminCredentials.
+ :type: str
+ """
+ self._password = password
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_agent_details.py b/src/oci/database_migration/models/create_agent_details.py
new file mode 100644
index 0000000000..574ab8806d
--- /dev/null
+++ b/src/oci/database_migration/models/create_agent_details.py
@@ -0,0 +1,260 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateAgentDetails(object):
+ """
+ ODMS Agent Details
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateAgentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateAgentDetails.
+ :type compartment_id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this CreateAgentDetails.
+ :type display_name: str
+
+ :param stream_id:
+ The value to assign to the stream_id property of this CreateAgentDetails.
+ :type stream_id: str
+
+ :param public_key:
+ The value to assign to the public_key property of this CreateAgentDetails.
+ :type public_key: str
+
+ :param version:
+ The value to assign to the version property of this CreateAgentDetails.
+ :type version: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateAgentDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateAgentDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'display_name': 'str',
+ 'stream_id': 'str',
+ 'public_key': 'str',
+ 'version': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'display_name': 'displayName',
+ 'stream_id': 'streamId',
+ 'public_key': 'publicKey',
+ 'version': 'version',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._compartment_id = None
+ self._display_name = None
+ self._stream_id = None
+ self._public_key = None
+ self._version = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateAgentDetails.
+ The OCID of the compartment.
+
+
+ :return: The compartment_id of this CreateAgentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateAgentDetails.
+ The OCID of the compartment.
+
+
+ :param compartment_id: The compartment_id of this CreateAgentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this CreateAgentDetails.
+ ODMS Agent name
+
+
+ :return: The display_name of this CreateAgentDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CreateAgentDetails.
+ ODMS Agent name
+
+
+ :param display_name: The display_name of this CreateAgentDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def stream_id(self):
+ """
+ **[Required]** Gets the stream_id of this CreateAgentDetails.
+ The OCID of the Stream
+
+
+ :return: The stream_id of this CreateAgentDetails.
+ :rtype: str
+ """
+ return self._stream_id
+
+ @stream_id.setter
+ def stream_id(self, stream_id):
+ """
+ Sets the stream_id of this CreateAgentDetails.
+ The OCID of the Stream
+
+
+ :param stream_id: The stream_id of this CreateAgentDetails.
+ :type: str
+ """
+ self._stream_id = stream_id
+
+ @property
+ def public_key(self):
+ """
+ **[Required]** Gets the public_key of this CreateAgentDetails.
+ ODMS Agent public key as a Base64 Encoded string.
+
+
+ :return: The public_key of this CreateAgentDetails.
+ :rtype: str
+ """
+ return self._public_key
+
+ @public_key.setter
+ def public_key(self, public_key):
+ """
+ Sets the public_key of this CreateAgentDetails.
+ ODMS Agent public key as a Base64 Encoded string.
+
+
+ :param public_key: The public_key of this CreateAgentDetails.
+ :type: str
+ """
+ self._public_key = public_key
+
+ @property
+ def version(self):
+ """
+ **[Required]** Gets the version of this CreateAgentDetails.
+ ODMS Agent version
+
+
+ :return: The version of this CreateAgentDetails.
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """
+ Sets the version of this CreateAgentDetails.
+ ODMS Agent version
+
+
+ :param version: The version of this CreateAgentDetails.
+ :type: str
+ """
+ self._version = version
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateAgentDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CreateAgentDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateAgentDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CreateAgentDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateAgentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CreateAgentDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateAgentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CreateAgentDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_connect_descriptor.py b/src/oci/database_migration/models/create_connect_descriptor.py
new file mode 100644
index 0000000000..8c148fb8cf
--- /dev/null
+++ b/src/oci/database_migration/models/create_connect_descriptor.py
@@ -0,0 +1,172 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateConnectDescriptor(object):
+ """
+ Connect Descriptor details. Required for Manual and UserManagerOci connection types.
+ If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateConnectDescriptor object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host:
+ The value to assign to the host property of this CreateConnectDescriptor.
+ :type host: str
+
+ :param port:
+ The value to assign to the port property of this CreateConnectDescriptor.
+ :type port: int
+
+ :param database_service_name:
+ The value to assign to the database_service_name property of this CreateConnectDescriptor.
+ :type database_service_name: str
+
+ :param connect_string:
+ The value to assign to the connect_string property of this CreateConnectDescriptor.
+ :type connect_string: str
+
+ """
+ self.swagger_types = {
+ 'host': 'str',
+ 'port': 'int',
+ 'database_service_name': 'str',
+ 'connect_string': 'str'
+ }
+
+ self.attribute_map = {
+ 'host': 'host',
+ 'port': 'port',
+ 'database_service_name': 'databaseServiceName',
+ 'connect_string': 'connectString'
+ }
+
+ self._host = None
+ self._port = None
+ self._database_service_name = None
+ self._connect_string = None
+
+ @property
+ def host(self):
+ """
+ Gets the host of this CreateConnectDescriptor.
+ Host or IP address of the connect descriptor. Required if no connectString was specified.
+
+
+ :return: The host of this CreateConnectDescriptor.
+ :rtype: str
+ """
+ return self._host
+
+ @host.setter
+ def host(self, host):
+ """
+ Sets the host of this CreateConnectDescriptor.
+ Host or IP address of the connect descriptor. Required if no connectString was specified.
+
+
+ :param host: The host of this CreateConnectDescriptor.
+ :type: str
+ """
+ self._host = host
+
+ @property
+ def port(self):
+ """
+ Gets the port of this CreateConnectDescriptor.
+ Port of the connect descriptor. Required if no connectString was specified.
+
+
+ :return: The port of this CreateConnectDescriptor.
+ :rtype: int
+ """
+ return self._port
+
+ @port.setter
+ def port(self, port):
+ """
+ Sets the port of this CreateConnectDescriptor.
+ Port of the connect descriptor. Required if no connectString was specified.
+
+
+ :param port: The port of this CreateConnectDescriptor.
+ :type: int
+ """
+ self._port = port
+
+ @property
+ def database_service_name(self):
+ """
+ Gets the database_service_name of this CreateConnectDescriptor.
+ Database service name. Required if no connectString was specified.
+
+
+ :return: The database_service_name of this CreateConnectDescriptor.
+ :rtype: str
+ """
+ return self._database_service_name
+
+ @database_service_name.setter
+ def database_service_name(self, database_service_name):
+ """
+ Sets the database_service_name of this CreateConnectDescriptor.
+ Database service name. Required if no connectString was specified.
+
+
+ :param database_service_name: The database_service_name of this CreateConnectDescriptor.
+ :type: str
+ """
+ self._database_service_name = database_service_name
+
+ @property
+ def connect_string(self):
+ """
+ Gets the connect_string of this CreateConnectDescriptor.
+ Connect String. Required if no host, port nor databaseServiceName were specified.
+ If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address.
+ Supported formats:
+ Easy connect: :/
+ Long format: (description= (address=(port=)(host=))(connect_data=(service_name=)))
+
+
+ :return: The connect_string of this CreateConnectDescriptor.
+ :rtype: str
+ """
+ return self._connect_string
+
+ @connect_string.setter
+ def connect_string(self, connect_string):
+ """
+ Sets the connect_string of this CreateConnectDescriptor.
+ Connect String. Required if no host, port nor databaseServiceName were specified.
+ If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address.
+ Supported formats:
+ Easy connect: :/
+ Long format: (description= (address=(port=)(host=))(connect_data=(service_name=)))
+
+
+ :param connect_string: The connect_string of this CreateConnectDescriptor.
+ :type: str
+ """
+ self._connect_string = connect_string
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_connection_details.py b/src/oci/database_migration/models/create_connection_details.py
new file mode 100644
index 0000000000..bd1a4a7df3
--- /dev/null
+++ b/src/oci/database_migration/models/create_connection_details.py
@@ -0,0 +1,480 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateConnectionDetails(object):
+ """
+ Details to create a Database Connection resource.
+ """
+
+ #: A constant which can be used with the database_type property of a CreateConnectionDetails.
+ #: This constant has a value of "MANUAL"
+ DATABASE_TYPE_MANUAL = "MANUAL"
+
+ #: A constant which can be used with the database_type property of a CreateConnectionDetails.
+ #: This constant has a value of "AUTONOMOUS"
+ DATABASE_TYPE_AUTONOMOUS = "AUTONOMOUS"
+
+ #: A constant which can be used with the database_type property of a CreateConnectionDetails.
+ #: This constant has a value of "USER_MANAGED_OCI"
+ DATABASE_TYPE_USER_MANAGED_OCI = "USER_MANAGED_OCI"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateConnectionDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateConnectionDetails.
+ :type compartment_id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this CreateConnectionDetails.
+ :type display_name: str
+
+ :param database_type:
+ The value to assign to the database_type property of this CreateConnectionDetails.
+ Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI"
+ :type database_type: str
+
+ :param database_id:
+ The value to assign to the database_id property of this CreateConnectionDetails.
+ :type database_id: str
+
+ :param connect_descriptor:
+ The value to assign to the connect_descriptor property of this CreateConnectionDetails.
+ :type connect_descriptor: oci.database_migration.models.CreateConnectDescriptor
+
+ :param certificate_tdn:
+ The value to assign to the certificate_tdn property of this CreateConnectionDetails.
+ :type certificate_tdn: str
+
+ :param tls_wallet:
+ The value to assign to the tls_wallet property of this CreateConnectionDetails.
+ :type tls_wallet: str
+
+ :param tls_keystore:
+ The value to assign to the tls_keystore property of this CreateConnectionDetails.
+ :type tls_keystore: str
+
+ :param ssh_details:
+ The value to assign to the ssh_details property of this CreateConnectionDetails.
+ :type ssh_details: oci.database_migration.models.CreateSshDetails
+
+ :param admin_credentials:
+ The value to assign to the admin_credentials property of this CreateConnectionDetails.
+ :type admin_credentials: oci.database_migration.models.CreateAdminCredentials
+
+ :param private_endpoint:
+ The value to assign to the private_endpoint property of this CreateConnectionDetails.
+ :type private_endpoint: oci.database_migration.models.CreatePrivateEndpoint
+
+ :param vault_details:
+ The value to assign to the vault_details property of this CreateConnectionDetails.
+ :type vault_details: oci.database_migration.models.CreateVaultDetails
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateConnectionDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateConnectionDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'display_name': 'str',
+ 'database_type': 'str',
+ 'database_id': 'str',
+ 'connect_descriptor': 'CreateConnectDescriptor',
+ 'certificate_tdn': 'str',
+ 'tls_wallet': 'str',
+ 'tls_keystore': 'str',
+ 'ssh_details': 'CreateSshDetails',
+ 'admin_credentials': 'CreateAdminCredentials',
+ 'private_endpoint': 'CreatePrivateEndpoint',
+ 'vault_details': 'CreateVaultDetails',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'display_name': 'displayName',
+ 'database_type': 'databaseType',
+ 'database_id': 'databaseId',
+ 'connect_descriptor': 'connectDescriptor',
+ 'certificate_tdn': 'certificateTdn',
+ 'tls_wallet': 'tlsWallet',
+ 'tls_keystore': 'tlsKeystore',
+ 'ssh_details': 'sshDetails',
+ 'admin_credentials': 'adminCredentials',
+ 'private_endpoint': 'privateEndpoint',
+ 'vault_details': 'vaultDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._compartment_id = None
+ self._display_name = None
+ self._database_type = None
+ self._database_id = None
+ self._connect_descriptor = None
+ self._certificate_tdn = None
+ self._tls_wallet = None
+ self._tls_keystore = None
+ self._ssh_details = None
+ self._admin_credentials = None
+ self._private_endpoint = None
+ self._vault_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateConnectionDetails.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this CreateConnectionDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateConnectionDetails.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this CreateConnectionDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this CreateConnectionDetails.
+ Database Connection display name identifier.
+
+
+ :return: The display_name of this CreateConnectionDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CreateConnectionDetails.
+ Database Connection display name identifier.
+
+
+ :param display_name: The display_name of this CreateConnectionDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def database_type(self):
+ """
+ **[Required]** Gets the database_type of this CreateConnectionDetails.
+ Database connection type.
+
+ Allowed values for this property are: "MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI"
+
+
+ :return: The database_type of this CreateConnectionDetails.
+ :rtype: str
+ """
+ return self._database_type
+
+ @database_type.setter
+ def database_type(self, database_type):
+ """
+ Sets the database_type of this CreateConnectionDetails.
+ Database connection type.
+
+
+ :param database_type: The database_type of this CreateConnectionDetails.
+ :type: str
+ """
+ allowed_values = ["MANUAL", "AUTONOMOUS", "USER_MANAGED_OCI"]
+ if not value_allowed_none_or_none_sentinel(database_type, allowed_values):
+ raise ValueError(
+ "Invalid value for `database_type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._database_type = database_type
+
+ @property
+ def database_id(self):
+ """
+ Gets the database_id of this CreateConnectionDetails.
+ The OCID of the cloud database. Required if the database connection type is Autonomous.
+
+
+ :return: The database_id of this CreateConnectionDetails.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this CreateConnectionDetails.
+ The OCID of the cloud database. Required if the database connection type is Autonomous.
+
+
+ :param database_id: The database_id of this CreateConnectionDetails.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def connect_descriptor(self):
+ """
+ Gets the connect_descriptor of this CreateConnectionDetails.
+
+ :return: The connect_descriptor of this CreateConnectionDetails.
+ :rtype: oci.database_migration.models.CreateConnectDescriptor
+ """
+ return self._connect_descriptor
+
+ @connect_descriptor.setter
+ def connect_descriptor(self, connect_descriptor):
+ """
+ Sets the connect_descriptor of this CreateConnectionDetails.
+
+ :param connect_descriptor: The connect_descriptor of this CreateConnectionDetails.
+ :type: oci.database_migration.models.CreateConnectDescriptor
+ """
+ self._connect_descriptor = connect_descriptor
+
+ @property
+ def certificate_tdn(self):
+ """
+ Gets the certificate_tdn of this CreateConnectionDetails.
+ This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified.
+ Not required for source container database connections.
+
+
+ :return: The certificate_tdn of this CreateConnectionDetails.
+ :rtype: str
+ """
+ return self._certificate_tdn
+
+ @certificate_tdn.setter
+ def certificate_tdn(self, certificate_tdn):
+ """
+ Sets the certificate_tdn of this CreateConnectionDetails.
+ This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified.
+ Not required for source container database connections.
+
+
+ :param certificate_tdn: The certificate_tdn of this CreateConnectionDetails.
+ :type: str
+ """
+ self._certificate_tdn = certificate_tdn
+
+ @property
+ def tls_wallet(self):
+ """
+ Gets the tls_wallet of this CreateConnectionDetails.
+ cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
+
+
+ :return: The tls_wallet of this CreateConnectionDetails.
+ :rtype: str
+ """
+ return self._tls_wallet
+
+ @tls_wallet.setter
+ def tls_wallet(self, tls_wallet):
+ """
+ Sets the tls_wallet of this CreateConnectionDetails.
+ cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
+
+
+ :param tls_wallet: The tls_wallet of this CreateConnectionDetails.
+ :type: str
+ """
+ self._tls_wallet = tls_wallet
+
+ @property
+ def tls_keystore(self):
+ """
+ Gets the tls_keystore of this CreateConnectionDetails.
+ keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
+
+
+ :return: The tls_keystore of this CreateConnectionDetails.
+ :rtype: str
+ """
+ return self._tls_keystore
+
+ @tls_keystore.setter
+ def tls_keystore(self, tls_keystore):
+ """
+ Sets the tls_keystore of this CreateConnectionDetails.
+ keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
+
+
+ :param tls_keystore: The tls_keystore of this CreateConnectionDetails.
+ :type: str
+ """
+ self._tls_keystore = tls_keystore
+
+ @property
+ def ssh_details(self):
+ """
+ Gets the ssh_details of this CreateConnectionDetails.
+
+ :return: The ssh_details of this CreateConnectionDetails.
+ :rtype: oci.database_migration.models.CreateSshDetails
+ """
+ return self._ssh_details
+
+ @ssh_details.setter
+ def ssh_details(self, ssh_details):
+ """
+ Sets the ssh_details of this CreateConnectionDetails.
+
+ :param ssh_details: The ssh_details of this CreateConnectionDetails.
+ :type: oci.database_migration.models.CreateSshDetails
+ """
+ self._ssh_details = ssh_details
+
+ @property
+ def admin_credentials(self):
+ """
+ **[Required]** Gets the admin_credentials of this CreateConnectionDetails.
+
+ :return: The admin_credentials of this CreateConnectionDetails.
+ :rtype: oci.database_migration.models.CreateAdminCredentials
+ """
+ return self._admin_credentials
+
+ @admin_credentials.setter
+ def admin_credentials(self, admin_credentials):
+ """
+ Sets the admin_credentials of this CreateConnectionDetails.
+
+ :param admin_credentials: The admin_credentials of this CreateConnectionDetails.
+ :type: oci.database_migration.models.CreateAdminCredentials
+ """
+ self._admin_credentials = admin_credentials
+
+ @property
+ def private_endpoint(self):
+ """
+ Gets the private_endpoint of this CreateConnectionDetails.
+
+ :return: The private_endpoint of this CreateConnectionDetails.
+ :rtype: oci.database_migration.models.CreatePrivateEndpoint
+ """
+ return self._private_endpoint
+
+ @private_endpoint.setter
+ def private_endpoint(self, private_endpoint):
+ """
+ Sets the private_endpoint of this CreateConnectionDetails.
+
+ :param private_endpoint: The private_endpoint of this CreateConnectionDetails.
+ :type: oci.database_migration.models.CreatePrivateEndpoint
+ """
+ self._private_endpoint = private_endpoint
+
+ @property
+ def vault_details(self):
+ """
+ **[Required]** Gets the vault_details of this CreateConnectionDetails.
+
+ :return: The vault_details of this CreateConnectionDetails.
+ :rtype: oci.database_migration.models.CreateVaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this CreateConnectionDetails.
+
+ :param vault_details: The vault_details of this CreateConnectionDetails.
+ :type: oci.database_migration.models.CreateVaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateConnectionDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CreateConnectionDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateConnectionDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CreateConnectionDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateConnectionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CreateConnectionDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateConnectionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CreateConnectionDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_data_pump_parameters.py b/src/oci/database_migration/models/create_data_pump_parameters.py
new file mode 100644
index 0000000000..5331556fb5
--- /dev/null
+++ b/src/oci/database_migration/models/create_data_pump_parameters.py
@@ -0,0 +1,269 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDataPumpParameters(object):
+ """
+ Optional parameters for Datapump Export and Import. Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-62324358-2F26-4A94-B69F-1075D53FA96D__BABDECJE
+ """
+
+ #: A constant which can be used with the estimate property of a CreateDataPumpParameters.
+ #: This constant has a value of "BLOCKS"
+ ESTIMATE_BLOCKS = "BLOCKS"
+
+ #: A constant which can be used with the estimate property of a CreateDataPumpParameters.
+ #: This constant has a value of "STATISTICS"
+ ESTIMATE_STATISTICS = "STATISTICS"
+
+ #: A constant which can be used with the table_exists_action property of a CreateDataPumpParameters.
+ #: This constant has a value of "TRUNCATE"
+ TABLE_EXISTS_ACTION_TRUNCATE = "TRUNCATE"
+
+ #: A constant which can be used with the table_exists_action property of a CreateDataPumpParameters.
+ #: This constant has a value of "REPLACE"
+ TABLE_EXISTS_ACTION_REPLACE = "REPLACE"
+
+ #: A constant which can be used with the table_exists_action property of a CreateDataPumpParameters.
+ #: This constant has a value of "APPEND"
+ TABLE_EXISTS_ACTION_APPEND = "APPEND"
+
+ #: A constant which can be used with the table_exists_action property of a CreateDataPumpParameters.
+ #: This constant has a value of "SKIP"
+ TABLE_EXISTS_ACTION_SKIP = "SKIP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDataPumpParameters object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param is_cluster:
+ The value to assign to the is_cluster property of this CreateDataPumpParameters.
+ :type is_cluster: bool
+
+ :param estimate:
+ The value to assign to the estimate property of this CreateDataPumpParameters.
+ Allowed values for this property are: "BLOCKS", "STATISTICS"
+ :type estimate: str
+
+ :param table_exists_action:
+ The value to assign to the table_exists_action property of this CreateDataPumpParameters.
+ Allowed values for this property are: "TRUNCATE", "REPLACE", "APPEND", "SKIP"
+ :type table_exists_action: str
+
+ :param exclude_parameters:
+ The value to assign to the exclude_parameters property of this CreateDataPumpParameters.
+ :type exclude_parameters: list[oci.database_migration.models.DataPumpExcludeParameters]
+
+ :param import_parallelism_degree:
+ The value to assign to the import_parallelism_degree property of this CreateDataPumpParameters.
+ :type import_parallelism_degree: int
+
+ :param export_parallelism_degree:
+ The value to assign to the export_parallelism_degree property of this CreateDataPumpParameters.
+ :type export_parallelism_degree: int
+
+ """
+ self.swagger_types = {
+ 'is_cluster': 'bool',
+ 'estimate': 'str',
+ 'table_exists_action': 'str',
+ 'exclude_parameters': 'list[DataPumpExcludeParameters]',
+ 'import_parallelism_degree': 'int',
+ 'export_parallelism_degree': 'int'
+ }
+
+ self.attribute_map = {
+ 'is_cluster': 'isCluster',
+ 'estimate': 'estimate',
+ 'table_exists_action': 'tableExistsAction',
+ 'exclude_parameters': 'excludeParameters',
+ 'import_parallelism_degree': 'importParallelismDegree',
+ 'export_parallelism_degree': 'exportParallelismDegree'
+ }
+
+ self._is_cluster = None
+ self._estimate = None
+ self._table_exists_action = None
+ self._exclude_parameters = None
+ self._import_parallelism_degree = None
+ self._export_parallelism_degree = None
+
+ @property
+ def is_cluster(self):
+ """
+ Gets the is_cluster of this CreateDataPumpParameters.
+ False to force datapump worker process to run on one instance.
+
+
+ :return: The is_cluster of this CreateDataPumpParameters.
+ :rtype: bool
+ """
+ return self._is_cluster
+
+ @is_cluster.setter
+ def is_cluster(self, is_cluster):
+ """
+ Sets the is_cluster of this CreateDataPumpParameters.
+ False to force datapump worker process to run on one instance.
+
+
+ :param is_cluster: The is_cluster of this CreateDataPumpParameters.
+ :type: bool
+ """
+ self._is_cluster = is_cluster
+
+ @property
+ def estimate(self):
+ """
+ Gets the estimate of this CreateDataPumpParameters.
+ Estimate size of dumps that will be generated.
+
+ Allowed values for this property are: "BLOCKS", "STATISTICS"
+
+
+ :return: The estimate of this CreateDataPumpParameters.
+ :rtype: str
+ """
+ return self._estimate
+
+ @estimate.setter
+ def estimate(self, estimate):
+ """
+ Sets the estimate of this CreateDataPumpParameters.
+ Estimate size of dumps that will be generated.
+
+
+ :param estimate: The estimate of this CreateDataPumpParameters.
+ :type: str
+ """
+ allowed_values = ["BLOCKS", "STATISTICS"]
+ if not value_allowed_none_or_none_sentinel(estimate, allowed_values):
+ raise ValueError(
+ "Invalid value for `estimate`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._estimate = estimate
+
+ @property
+ def table_exists_action(self):
+ """
+ Gets the table_exists_action of this CreateDataPumpParameters.
+ IMPORT: Specifies the action to be performed when data is loaded into a preexisting table.
+
+ Allowed values for this property are: "TRUNCATE", "REPLACE", "APPEND", "SKIP"
+
+
+ :return: The table_exists_action of this CreateDataPumpParameters.
+ :rtype: str
+ """
+ return self._table_exists_action
+
+ @table_exists_action.setter
+ def table_exists_action(self, table_exists_action):
+ """
+ Sets the table_exists_action of this CreateDataPumpParameters.
+ IMPORT: Specifies the action to be performed when data is loaded into a preexisting table.
+
+
+ :param table_exists_action: The table_exists_action of this CreateDataPumpParameters.
+ :type: str
+ """
+ allowed_values = ["TRUNCATE", "REPLACE", "APPEND", "SKIP"]
+ if not value_allowed_none_or_none_sentinel(table_exists_action, allowed_values):
+ raise ValueError(
+ "Invalid value for `table_exists_action`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._table_exists_action = table_exists_action
+
+ @property
+ def exclude_parameters(self):
+ """
+ Gets the exclude_parameters of this CreateDataPumpParameters.
+ Exclude paratemers for export and import.
+
+
+ :return: The exclude_parameters of this CreateDataPumpParameters.
+ :rtype: list[oci.database_migration.models.DataPumpExcludeParameters]
+ """
+ return self._exclude_parameters
+
+ @exclude_parameters.setter
+ def exclude_parameters(self, exclude_parameters):
+ """
+ Sets the exclude_parameters of this CreateDataPumpParameters.
+ Exclude paratemers for export and import.
+
+
+ :param exclude_parameters: The exclude_parameters of this CreateDataPumpParameters.
+ :type: list[oci.database_migration.models.DataPumpExcludeParameters]
+ """
+ self._exclude_parameters = exclude_parameters
+
+ @property
+ def import_parallelism_degree(self):
+ """
+ Gets the import_parallelism_degree of this CreateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Import job.
+ For an Autonomous Database, ODMS will automatically query its CPU core count and set this property.
+
+
+ :return: The import_parallelism_degree of this CreateDataPumpParameters.
+ :rtype: int
+ """
+ return self._import_parallelism_degree
+
+ @import_parallelism_degree.setter
+ def import_parallelism_degree(self, import_parallelism_degree):
+ """
+ Sets the import_parallelism_degree of this CreateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Import job.
+ For an Autonomous Database, ODMS will automatically query its CPU core count and set this property.
+
+
+ :param import_parallelism_degree: The import_parallelism_degree of this CreateDataPumpParameters.
+ :type: int
+ """
+ self._import_parallelism_degree = import_parallelism_degree
+
+ @property
+ def export_parallelism_degree(self):
+ """
+ Gets the export_parallelism_degree of this CreateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Export job.
+
+
+ :return: The export_parallelism_degree of this CreateDataPumpParameters.
+ :rtype: int
+ """
+ return self._export_parallelism_degree
+
+ @export_parallelism_degree.setter
+ def export_parallelism_degree(self, export_parallelism_degree):
+ """
+ Sets the export_parallelism_degree of this CreateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Export job.
+
+
+ :param export_parallelism_degree: The export_parallelism_degree of this CreateDataPumpParameters.
+ :type: int
+ """
+ self._export_parallelism_degree = export_parallelism_degree
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_data_pump_settings.py b/src/oci/database_migration/models/create_data_pump_settings.py
new file mode 100644
index 0000000000..b9533e8787
--- /dev/null
+++ b/src/oci/database_migration/models/create_data_pump_settings.py
@@ -0,0 +1,215 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDataPumpSettings(object):
+ """
+ Optional settings for Datapump Export and Import jobs
+ """
+
+ #: A constant which can be used with the job_mode property of a CreateDataPumpSettings.
+ #: This constant has a value of "FULL"
+ JOB_MODE_FULL = "FULL"
+
+ #: A constant which can be used with the job_mode property of a CreateDataPumpSettings.
+ #: This constant has a value of "SCHEMA"
+ JOB_MODE_SCHEMA = "SCHEMA"
+
+ #: A constant which can be used with the job_mode property of a CreateDataPumpSettings.
+ #: This constant has a value of "TABLE"
+ JOB_MODE_TABLE = "TABLE"
+
+ #: A constant which can be used with the job_mode property of a CreateDataPumpSettings.
+ #: This constant has a value of "TABLESPACE"
+ JOB_MODE_TABLESPACE = "TABLESPACE"
+
+ #: A constant which can be used with the job_mode property of a CreateDataPumpSettings.
+ #: This constant has a value of "TRANSPORTABLE"
+ JOB_MODE_TRANSPORTABLE = "TRANSPORTABLE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDataPumpSettings object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param job_mode:
+ The value to assign to the job_mode property of this CreateDataPumpSettings.
+ Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"
+ :type job_mode: str
+
+ :param data_pump_parameters:
+ The value to assign to the data_pump_parameters property of this CreateDataPumpSettings.
+ :type data_pump_parameters: oci.database_migration.models.CreateDataPumpParameters
+
+ :param metadata_remaps:
+ The value to assign to the metadata_remaps property of this CreateDataPumpSettings.
+ :type metadata_remaps: list[oci.database_migration.models.MetadataRemap]
+
+ :param export_directory_object:
+ The value to assign to the export_directory_object property of this CreateDataPumpSettings.
+ :type export_directory_object: oci.database_migration.models.CreateDirectoryObject
+
+ :param import_directory_object:
+ The value to assign to the import_directory_object property of this CreateDataPumpSettings.
+ :type import_directory_object: oci.database_migration.models.CreateDirectoryObject
+
+ """
+ self.swagger_types = {
+ 'job_mode': 'str',
+ 'data_pump_parameters': 'CreateDataPumpParameters',
+ 'metadata_remaps': 'list[MetadataRemap]',
+ 'export_directory_object': 'CreateDirectoryObject',
+ 'import_directory_object': 'CreateDirectoryObject'
+ }
+
+ self.attribute_map = {
+ 'job_mode': 'jobMode',
+ 'data_pump_parameters': 'dataPumpParameters',
+ 'metadata_remaps': 'metadataRemaps',
+ 'export_directory_object': 'exportDirectoryObject',
+ 'import_directory_object': 'importDirectoryObject'
+ }
+
+ self._job_mode = None
+ self._data_pump_parameters = None
+ self._metadata_remaps = None
+ self._export_directory_object = None
+ self._import_directory_object = None
+
+ @property
+ def job_mode(self):
+ """
+ Gets the job_mode of this CreateDataPumpSettings.
+ DataPump job mode.
+ Refer to docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-92C2CB46-8BC9-414D-B62E-79CD788C1E62__BABBDEHD
+
+ Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"
+
+
+ :return: The job_mode of this CreateDataPumpSettings.
+ :rtype: str
+ """
+ return self._job_mode
+
+ @job_mode.setter
+ def job_mode(self, job_mode):
+ """
+ Sets the job_mode of this CreateDataPumpSettings.
+ DataPump job mode.
+ Refer to docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-92C2CB46-8BC9-414D-B62E-79CD788C1E62__BABBDEHD
+
+
+ :param job_mode: The job_mode of this CreateDataPumpSettings.
+ :type: str
+ """
+ allowed_values = ["FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"]
+ if not value_allowed_none_or_none_sentinel(job_mode, allowed_values):
+ raise ValueError(
+ "Invalid value for `job_mode`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._job_mode = job_mode
+
+ @property
+ def data_pump_parameters(self):
+ """
+ Gets the data_pump_parameters of this CreateDataPumpSettings.
+
+ :return: The data_pump_parameters of this CreateDataPumpSettings.
+ :rtype: oci.database_migration.models.CreateDataPumpParameters
+ """
+ return self._data_pump_parameters
+
+ @data_pump_parameters.setter
+ def data_pump_parameters(self, data_pump_parameters):
+ """
+ Sets the data_pump_parameters of this CreateDataPumpSettings.
+
+ :param data_pump_parameters: The data_pump_parameters of this CreateDataPumpSettings.
+ :type: oci.database_migration.models.CreateDataPumpParameters
+ """
+ self._data_pump_parameters = data_pump_parameters
+
+ @property
+ def metadata_remaps(self):
+ """
+ Gets the metadata_remaps of this CreateDataPumpSettings.
+ Defines remapping to be applied to objects as they are processed.
+ Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D.
+
+
+ :return: The metadata_remaps of this CreateDataPumpSettings.
+ :rtype: list[oci.database_migration.models.MetadataRemap]
+ """
+ return self._metadata_remaps
+
+ @metadata_remaps.setter
+ def metadata_remaps(self, metadata_remaps):
+ """
+ Sets the metadata_remaps of this CreateDataPumpSettings.
+ Defines remapping to be applied to objects as they are processed.
+ Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D.
+
+
+ :param metadata_remaps: The metadata_remaps of this CreateDataPumpSettings.
+ :type: list[oci.database_migration.models.MetadataRemap]
+ """
+ self._metadata_remaps = metadata_remaps
+
+ @property
+ def export_directory_object(self):
+ """
+ Gets the export_directory_object of this CreateDataPumpSettings.
+
+ :return: The export_directory_object of this CreateDataPumpSettings.
+ :rtype: oci.database_migration.models.CreateDirectoryObject
+ """
+ return self._export_directory_object
+
+ @export_directory_object.setter
+ def export_directory_object(self, export_directory_object):
+ """
+ Sets the export_directory_object of this CreateDataPumpSettings.
+
+ :param export_directory_object: The export_directory_object of this CreateDataPumpSettings.
+ :type: oci.database_migration.models.CreateDirectoryObject
+ """
+ self._export_directory_object = export_directory_object
+
+ @property
+ def import_directory_object(self):
+ """
+ Gets the import_directory_object of this CreateDataPumpSettings.
+
+ :return: The import_directory_object of this CreateDataPumpSettings.
+ :rtype: oci.database_migration.models.CreateDirectoryObject
+ """
+ return self._import_directory_object
+
+ @import_directory_object.setter
+ def import_directory_object(self, import_directory_object):
+ """
+ Sets the import_directory_object of this CreateDataPumpSettings.
+
+ :param import_directory_object: The import_directory_object of this CreateDataPumpSettings.
+ :type: oci.database_migration.models.CreateDirectoryObject
+ """
+ self._import_directory_object = import_directory_object
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_data_transfer_medium_details.py b/src/oci/database_migration/models/create_data_transfer_medium_details.py
new file mode 100644
index 0000000000..504d1c9891
--- /dev/null
+++ b/src/oci/database_migration/models/create_data_transfer_medium_details.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDataTransferMediumDetails(object):
+ """
+ Data Transfer Medium details for the Migration. If not specified, it will default to Database Link. Only one type
+ of medium details can be specified.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDataTransferMediumDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param database_link_details:
+ The value to assign to the database_link_details property of this CreateDataTransferMediumDetails.
+ :type database_link_details: oci.database_migration.models.CreateDatabaseLinkDetails
+
+ :param object_storage_details:
+ The value to assign to the object_storage_details property of this CreateDataTransferMediumDetails.
+ :type object_storage_details: oci.database_migration.models.CreateObjectStoreBucket
+
+ """
+ self.swagger_types = {
+ 'database_link_details': 'CreateDatabaseLinkDetails',
+ 'object_storage_details': 'CreateObjectStoreBucket'
+ }
+
+ self.attribute_map = {
+ 'database_link_details': 'databaseLinkDetails',
+ 'object_storage_details': 'objectStorageDetails'
+ }
+
+ self._database_link_details = None
+ self._object_storage_details = None
+
+ @property
+ def database_link_details(self):
+ """
+ Gets the database_link_details of this CreateDataTransferMediumDetails.
+
+ :return: The database_link_details of this CreateDataTransferMediumDetails.
+ :rtype: oci.database_migration.models.CreateDatabaseLinkDetails
+ """
+ return self._database_link_details
+
+ @database_link_details.setter
+ def database_link_details(self, database_link_details):
+ """
+ Sets the database_link_details of this CreateDataTransferMediumDetails.
+
+ :param database_link_details: The database_link_details of this CreateDataTransferMediumDetails.
+ :type: oci.database_migration.models.CreateDatabaseLinkDetails
+ """
+ self._database_link_details = database_link_details
+
+ @property
+ def object_storage_details(self):
+ """
+ Gets the object_storage_details of this CreateDataTransferMediumDetails.
+
+ :return: The object_storage_details of this CreateDataTransferMediumDetails.
+ :rtype: oci.database_migration.models.CreateObjectStoreBucket
+ """
+ return self._object_storage_details
+
+ @object_storage_details.setter
+ def object_storage_details(self, object_storage_details):
+ """
+ Sets the object_storage_details of this CreateDataTransferMediumDetails.
+
+ :param object_storage_details: The object_storage_details of this CreateDataTransferMediumDetails.
+ :type: oci.database_migration.models.CreateObjectStoreBucket
+ """
+ self._object_storage_details = object_storage_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_database_link_details.py b/src/oci/database_migration/models/create_database_link_details.py
new file mode 100644
index 0000000000..362e0d88b7
--- /dev/null
+++ b/src/oci/database_migration/models/create_database_link_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDatabaseLinkDetails(object):
+ """
+ Optional details for creating a network database link from OCI database to on-premise database.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDatabaseLinkDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this CreateDatabaseLinkDetails.
+ :type name: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name'
+ }
+
+ self._name = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this CreateDatabaseLinkDetails.
+ Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist.
+
+
+ :return: The name of this CreateDatabaseLinkDetails.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this CreateDatabaseLinkDetails.
+ Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist.
+
+
+ :param name: The name of this CreateDatabaseLinkDetails.
+ :type: str
+ """
+ self._name = name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_directory_object.py b/src/oci/database_migration/models/create_directory_object.py
new file mode 100644
index 0000000000..73e24ac5b2
--- /dev/null
+++ b/src/oci/database_migration/models/create_directory_object.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDirectoryObject(object):
+ """
+ Directory object details, used to define either import or export directory objects in Data Pump Settings.
+ Import directory is required for Non-Autonomous target connections. If specified for an autonomous target, it will show an error.
+ Export directory will error if there are database link details specified.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDirectoryObject object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this CreateDirectoryObject.
+ :type name: str
+
+ :param path:
+ The value to assign to the path property of this CreateDirectoryObject.
+ :type path: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str',
+ 'path': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name',
+ 'path': 'path'
+ }
+
+ self._name = None
+ self._path = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this CreateDirectoryObject.
+ Name of directory object in database
+
+
+ :return: The name of this CreateDirectoryObject.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this CreateDirectoryObject.
+ Name of directory object in database
+
+
+ :param name: The name of this CreateDirectoryObject.
+ :type: str
+ """
+ self._name = name
+
+ @property
+ def path(self):
+ """
+ **[Required]** Gets the path of this CreateDirectoryObject.
+ Absolute path of directory on database server
+
+
+ :return: The path of this CreateDirectoryObject.
+ :rtype: str
+ """
+ return self._path
+
+ @path.setter
+ def path(self, path):
+ """
+ Sets the path of this CreateDirectoryObject.
+ Absolute path of directory on database server
+
+
+ :param path: The path of this CreateDirectoryObject.
+ :type: str
+ """
+ self._path = path
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_extract.py b/src/oci/database_migration/models/create_extract.py
new file mode 100644
index 0000000000..e87d52bf39
--- /dev/null
+++ b/src/oci/database_migration/models/create_extract.py
@@ -0,0 +1,124 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateExtract(object):
+ """
+ Parameters for Extract processes.
+ """
+
+ #: A constant which can be used with the performance_profile property of a CreateExtract.
+ #: This constant has a value of "LOW"
+ PERFORMANCE_PROFILE_LOW = "LOW"
+
+ #: A constant which can be used with the performance_profile property of a CreateExtract.
+ #: This constant has a value of "MEDIUM"
+ PERFORMANCE_PROFILE_MEDIUM = "MEDIUM"
+
+ #: A constant which can be used with the performance_profile property of a CreateExtract.
+ #: This constant has a value of "HIGH"
+ PERFORMANCE_PROFILE_HIGH = "HIGH"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateExtract object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param performance_profile:
+ The value to assign to the performance_profile property of this CreateExtract.
+ Allowed values for this property are: "LOW", "MEDIUM", "HIGH"
+ :type performance_profile: str
+
+ :param long_trans_duration:
+ The value to assign to the long_trans_duration property of this CreateExtract.
+ :type long_trans_duration: int
+
+ """
+ self.swagger_types = {
+ 'performance_profile': 'str',
+ 'long_trans_duration': 'int'
+ }
+
+ self.attribute_map = {
+ 'performance_profile': 'performanceProfile',
+ 'long_trans_duration': 'longTransDuration'
+ }
+
+ self._performance_profile = None
+ self._long_trans_duration = None
+
+ @property
+ def performance_profile(self):
+ """
+ Gets the performance_profile of this CreateExtract.
+ Extract performance.
+
+ Allowed values for this property are: "LOW", "MEDIUM", "HIGH"
+
+
+ :return: The performance_profile of this CreateExtract.
+ :rtype: str
+ """
+ return self._performance_profile
+
+ @performance_profile.setter
+ def performance_profile(self, performance_profile):
+ """
+ Sets the performance_profile of this CreateExtract.
+ Extract performance.
+
+
+ :param performance_profile: The performance_profile of this CreateExtract.
+ :type: str
+ """
+ allowed_values = ["LOW", "MEDIUM", "HIGH"]
+ if not value_allowed_none_or_none_sentinel(performance_profile, allowed_values):
+ raise ValueError(
+ "Invalid value for `performance_profile`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._performance_profile = performance_profile
+
+ @property
+ def long_trans_duration(self):
+ """
+ Gets the long_trans_duration of this CreateExtract.
+ Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running.
+ If not specified, Extract will not generate a warning on long-running transactions.
+
+
+ :return: The long_trans_duration of this CreateExtract.
+ :rtype: int
+ """
+ return self._long_trans_duration
+
+ @long_trans_duration.setter
+ def long_trans_duration(self, long_trans_duration):
+ """
+ Sets the long_trans_duration of this CreateExtract.
+ Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running.
+ If not specified, Extract will not generate a warning on long-running transactions.
+
+
+ :param long_trans_duration: The long_trans_duration of this CreateExtract.
+ :type: int
+ """
+ self._long_trans_duration = long_trans_duration
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_golden_gate_details.py b/src/oci/database_migration/models/create_golden_gate_details.py
new file mode 100644
index 0000000000..28282059bf
--- /dev/null
+++ b/src/oci/database_migration/models/create_golden_gate_details.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateGoldenGateDetails(object):
+ """
+ Details about Oracle GoldenGate Microservices. Required for online logical migration.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateGoldenGateDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param hub:
+ The value to assign to the hub property of this CreateGoldenGateDetails.
+ :type hub: oci.database_migration.models.CreateGoldenGateHub
+
+ :param settings:
+ The value to assign to the settings property of this CreateGoldenGateDetails.
+ :type settings: oci.database_migration.models.CreateGoldenGateSettings
+
+ """
+ self.swagger_types = {
+ 'hub': 'CreateGoldenGateHub',
+ 'settings': 'CreateGoldenGateSettings'
+ }
+
+ self.attribute_map = {
+ 'hub': 'hub',
+ 'settings': 'settings'
+ }
+
+ self._hub = None
+ self._settings = None
+
+ @property
+ def hub(self):
+ """
+ **[Required]** Gets the hub of this CreateGoldenGateDetails.
+
+ :return: The hub of this CreateGoldenGateDetails.
+ :rtype: oci.database_migration.models.CreateGoldenGateHub
+ """
+ return self._hub
+
+ @hub.setter
+ def hub(self, hub):
+ """
+ Sets the hub of this CreateGoldenGateDetails.
+
+ :param hub: The hub of this CreateGoldenGateDetails.
+ :type: oci.database_migration.models.CreateGoldenGateHub
+ """
+ self._hub = hub
+
+ @property
+ def settings(self):
+ """
+ Gets the settings of this CreateGoldenGateDetails.
+
+ :return: The settings of this CreateGoldenGateDetails.
+ :rtype: oci.database_migration.models.CreateGoldenGateSettings
+ """
+ return self._settings
+
+ @settings.setter
+ def settings(self, settings):
+ """
+ Sets the settings of this CreateGoldenGateDetails.
+
+ :param settings: The settings of this CreateGoldenGateDetails.
+ :type: oci.database_migration.models.CreateGoldenGateSettings
+ """
+ self._settings = settings
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_golden_gate_hub.py b/src/oci/database_migration/models/create_golden_gate_hub.py
new file mode 100644
index 0000000000..cc3a0b4ecb
--- /dev/null
+++ b/src/oci/database_migration/models/create_golden_gate_hub.py
@@ -0,0 +1,273 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateGoldenGateHub(object):
+ """
+ Details about Oracle GoldenGate Microservices. Required for online logical migration.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateGoldenGateHub object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param rest_admin_credentials:
+ The value to assign to the rest_admin_credentials property of this CreateGoldenGateHub.
+ :type rest_admin_credentials: oci.database_migration.models.CreateAdminCredentials
+
+ :param source_db_admin_credentials:
+ The value to assign to the source_db_admin_credentials property of this CreateGoldenGateHub.
+ :type source_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials
+
+ :param source_container_db_admin_credentials:
+ The value to assign to the source_container_db_admin_credentials property of this CreateGoldenGateHub.
+ :type source_container_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials
+
+ :param target_db_admin_credentials:
+ The value to assign to the target_db_admin_credentials property of this CreateGoldenGateHub.
+ :type target_db_admin_credentials: oci.database_migration.models.CreateAdminCredentials
+
+ :param url:
+ The value to assign to the url property of this CreateGoldenGateHub.
+ :type url: str
+
+ :param source_microservices_deployment_name:
+ The value to assign to the source_microservices_deployment_name property of this CreateGoldenGateHub.
+ :type source_microservices_deployment_name: str
+
+ :param target_microservices_deployment_name:
+ The value to assign to the target_microservices_deployment_name property of this CreateGoldenGateHub.
+ :type target_microservices_deployment_name: str
+
+ :param compute_id:
+ The value to assign to the compute_id property of this CreateGoldenGateHub.
+ :type compute_id: str
+
+ """
+ self.swagger_types = {
+ 'rest_admin_credentials': 'CreateAdminCredentials',
+ 'source_db_admin_credentials': 'CreateAdminCredentials',
+ 'source_container_db_admin_credentials': 'CreateAdminCredentials',
+ 'target_db_admin_credentials': 'CreateAdminCredentials',
+ 'url': 'str',
+ 'source_microservices_deployment_name': 'str',
+ 'target_microservices_deployment_name': 'str',
+ 'compute_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'rest_admin_credentials': 'restAdminCredentials',
+ 'source_db_admin_credentials': 'sourceDbAdminCredentials',
+ 'source_container_db_admin_credentials': 'sourceContainerDbAdminCredentials',
+ 'target_db_admin_credentials': 'targetDbAdminCredentials',
+ 'url': 'url',
+ 'source_microservices_deployment_name': 'sourceMicroservicesDeploymentName',
+ 'target_microservices_deployment_name': 'targetMicroservicesDeploymentName',
+ 'compute_id': 'computeId'
+ }
+
+ self._rest_admin_credentials = None
+ self._source_db_admin_credentials = None
+ self._source_container_db_admin_credentials = None
+ self._target_db_admin_credentials = None
+ self._url = None
+ self._source_microservices_deployment_name = None
+ self._target_microservices_deployment_name = None
+ self._compute_id = None
+
+ @property
+ def rest_admin_credentials(self):
+ """
+ **[Required]** Gets the rest_admin_credentials of this CreateGoldenGateHub.
+
+ :return: The rest_admin_credentials of this CreateGoldenGateHub.
+ :rtype: oci.database_migration.models.CreateAdminCredentials
+ """
+ return self._rest_admin_credentials
+
+ @rest_admin_credentials.setter
+ def rest_admin_credentials(self, rest_admin_credentials):
+ """
+ Sets the rest_admin_credentials of this CreateGoldenGateHub.
+
+ :param rest_admin_credentials: The rest_admin_credentials of this CreateGoldenGateHub.
+ :type: oci.database_migration.models.CreateAdminCredentials
+ """
+ self._rest_admin_credentials = rest_admin_credentials
+
+ @property
+ def source_db_admin_credentials(self):
+ """
+ **[Required]** Gets the source_db_admin_credentials of this CreateGoldenGateHub.
+
+ :return: The source_db_admin_credentials of this CreateGoldenGateHub.
+ :rtype: oci.database_migration.models.CreateAdminCredentials
+ """
+ return self._source_db_admin_credentials
+
+ @source_db_admin_credentials.setter
+ def source_db_admin_credentials(self, source_db_admin_credentials):
+ """
+ Sets the source_db_admin_credentials of this CreateGoldenGateHub.
+
+ :param source_db_admin_credentials: The source_db_admin_credentials of this CreateGoldenGateHub.
+ :type: oci.database_migration.models.CreateAdminCredentials
+ """
+ self._source_db_admin_credentials = source_db_admin_credentials
+
+ @property
+ def source_container_db_admin_credentials(self):
+ """
+ Gets the source_container_db_admin_credentials of this CreateGoldenGateHub.
+
+ :return: The source_container_db_admin_credentials of this CreateGoldenGateHub.
+ :rtype: oci.database_migration.models.CreateAdminCredentials
+ """
+ return self._source_container_db_admin_credentials
+
+ @source_container_db_admin_credentials.setter
+ def source_container_db_admin_credentials(self, source_container_db_admin_credentials):
+ """
+ Sets the source_container_db_admin_credentials of this CreateGoldenGateHub.
+
+ :param source_container_db_admin_credentials: The source_container_db_admin_credentials of this CreateGoldenGateHub.
+ :type: oci.database_migration.models.CreateAdminCredentials
+ """
+ self._source_container_db_admin_credentials = source_container_db_admin_credentials
+
+ @property
+ def target_db_admin_credentials(self):
+ """
+ **[Required]** Gets the target_db_admin_credentials of this CreateGoldenGateHub.
+
+ :return: The target_db_admin_credentials of this CreateGoldenGateHub.
+ :rtype: oci.database_migration.models.CreateAdminCredentials
+ """
+ return self._target_db_admin_credentials
+
+ @target_db_admin_credentials.setter
+ def target_db_admin_credentials(self, target_db_admin_credentials):
+ """
+ Sets the target_db_admin_credentials of this CreateGoldenGateHub.
+
+ :param target_db_admin_credentials: The target_db_admin_credentials of this CreateGoldenGateHub.
+ :type: oci.database_migration.models.CreateAdminCredentials
+ """
+ self._target_db_admin_credentials = target_db_admin_credentials
+
+ @property
+ def url(self):
+ """
+ **[Required]** Gets the url of this CreateGoldenGateHub.
+ Oracle GoldenGate hub's REST endpoint.
+ Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
+
+
+ :return: The url of this CreateGoldenGateHub.
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """
+ Sets the url of this CreateGoldenGateHub.
+ Oracle GoldenGate hub's REST endpoint.
+ Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
+
+
+ :param url: The url of this CreateGoldenGateHub.
+ :type: str
+ """
+ self._url = url
+
+ @property
+ def source_microservices_deployment_name(self):
+ """
+ **[Required]** Gets the source_microservices_deployment_name of this CreateGoldenGateHub.
+ Name of Microservices deployment to operate on source DB
+
+
+ :return: The source_microservices_deployment_name of this CreateGoldenGateHub.
+ :rtype: str
+ """
+ return self._source_microservices_deployment_name
+
+ @source_microservices_deployment_name.setter
+ def source_microservices_deployment_name(self, source_microservices_deployment_name):
+ """
+ Sets the source_microservices_deployment_name of this CreateGoldenGateHub.
+ Name of Microservices deployment to operate on source DB
+
+
+ :param source_microservices_deployment_name: The source_microservices_deployment_name of this CreateGoldenGateHub.
+ :type: str
+ """
+ self._source_microservices_deployment_name = source_microservices_deployment_name
+
+ @property
+ def target_microservices_deployment_name(self):
+ """
+ **[Required]** Gets the target_microservices_deployment_name of this CreateGoldenGateHub.
+ Name of Microservices deployment to operate on target DB
+
+
+ :return: The target_microservices_deployment_name of this CreateGoldenGateHub.
+ :rtype: str
+ """
+ return self._target_microservices_deployment_name
+
+ @target_microservices_deployment_name.setter
+ def target_microservices_deployment_name(self, target_microservices_deployment_name):
+ """
+ Sets the target_microservices_deployment_name of this CreateGoldenGateHub.
+ Name of Microservices deployment to operate on target DB
+
+
+ :param target_microservices_deployment_name: The target_microservices_deployment_name of this CreateGoldenGateHub.
+ :type: str
+ """
+ self._target_microservices_deployment_name = target_microservices_deployment_name
+
+ @property
+ def compute_id(self):
+ """
+ Gets the compute_id of this CreateGoldenGateHub.
+ OCID of Golden Gate compute instance.
+
+
+ :return: The compute_id of this CreateGoldenGateHub.
+ :rtype: str
+ """
+ return self._compute_id
+
+ @compute_id.setter
+ def compute_id(self, compute_id):
+ """
+ Sets the compute_id of this CreateGoldenGateHub.
+ OCID of Golden Gate compute instance.
+
+
+ :param compute_id: The compute_id of this CreateGoldenGateHub.
+ :type: str
+ """
+ self._compute_id = compute_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_golden_gate_settings.py b/src/oci/database_migration/models/create_golden_gate_settings.py
new file mode 100644
index 0000000000..b3c65cb17e
--- /dev/null
+++ b/src/oci/database_migration/models/create_golden_gate_settings.py
@@ -0,0 +1,124 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateGoldenGateSettings(object):
+ """
+ Optional settings for Oracle GoldenGate processes
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateGoldenGateSettings object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param extract:
+ The value to assign to the extract property of this CreateGoldenGateSettings.
+ :type extract: oci.database_migration.models.CreateExtract
+
+ :param replicat:
+ The value to assign to the replicat property of this CreateGoldenGateSettings.
+ :type replicat: oci.database_migration.models.CreateReplicat
+
+ :param acceptable_lag:
+ The value to assign to the acceptable_lag property of this CreateGoldenGateSettings.
+ :type acceptable_lag: int
+
+ """
+ self.swagger_types = {
+ 'extract': 'CreateExtract',
+ 'replicat': 'CreateReplicat',
+ 'acceptable_lag': 'int'
+ }
+
+ self.attribute_map = {
+ 'extract': 'extract',
+ 'replicat': 'replicat',
+ 'acceptable_lag': 'acceptableLag'
+ }
+
+ self._extract = None
+ self._replicat = None
+ self._acceptable_lag = None
+
+ @property
+ def extract(self):
+ """
+ Gets the extract of this CreateGoldenGateSettings.
+
+ :return: The extract of this CreateGoldenGateSettings.
+ :rtype: oci.database_migration.models.CreateExtract
+ """
+ return self._extract
+
+ @extract.setter
+ def extract(self, extract):
+ """
+ Sets the extract of this CreateGoldenGateSettings.
+
+ :param extract: The extract of this CreateGoldenGateSettings.
+ :type: oci.database_migration.models.CreateExtract
+ """
+ self._extract = extract
+
+ @property
+ def replicat(self):
+ """
+ Gets the replicat of this CreateGoldenGateSettings.
+
+ :return: The replicat of this CreateGoldenGateSettings.
+ :rtype: oci.database_migration.models.CreateReplicat
+ """
+ return self._replicat
+
+ @replicat.setter
+ def replicat(self, replicat):
+ """
+ Sets the replicat of this CreateGoldenGateSettings.
+
+ :param replicat: The replicat of this CreateGoldenGateSettings.
+ :type: oci.database_migration.models.CreateReplicat
+ """
+ self._replicat = replicat
+
+ @property
+ def acceptable_lag(self):
+ """
+ Gets the acceptable_lag of this CreateGoldenGateSettings.
+ ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds.
+
+
+ :return: The acceptable_lag of this CreateGoldenGateSettings.
+ :rtype: int
+ """
+ return self._acceptable_lag
+
+ @acceptable_lag.setter
+ def acceptable_lag(self, acceptable_lag):
+ """
+ Sets the acceptable_lag of this CreateGoldenGateSettings.
+ ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds.
+
+
+ :param acceptable_lag: The acceptable_lag of this CreateGoldenGateSettings.
+ :type: int
+ """
+ self._acceptable_lag = acceptable_lag
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_migration_details.py b/src/oci/database_migration/models/create_migration_details.py
new file mode 100644
index 0000000000..31d2b2fe2c
--- /dev/null
+++ b/src/oci/database_migration/models/create_migration_details.py
@@ -0,0 +1,480 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateMigrationDetails(object):
+ """
+ Create Migration resource parameters.
+ """
+
+ #: A constant which can be used with the type property of a CreateMigrationDetails.
+ #: This constant has a value of "ONLINE"
+ TYPE_ONLINE = "ONLINE"
+
+ #: A constant which can be used with the type property of a CreateMigrationDetails.
+ #: This constant has a value of "OFFLINE"
+ TYPE_OFFLINE = "OFFLINE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateMigrationDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this CreateMigrationDetails.
+ Allowed values for this property are: "ONLINE", "OFFLINE"
+ :type type: str
+
+ :param display_name:
+ The value to assign to the display_name property of this CreateMigrationDetails.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateMigrationDetails.
+ :type compartment_id: str
+
+ :param agent_id:
+ The value to assign to the agent_id property of this CreateMigrationDetails.
+ :type agent_id: str
+
+ :param source_database_connection_id:
+ The value to assign to the source_database_connection_id property of this CreateMigrationDetails.
+ :type source_database_connection_id: str
+
+ :param source_container_database_connection_id:
+ The value to assign to the source_container_database_connection_id property of this CreateMigrationDetails.
+ :type source_container_database_connection_id: str
+
+ :param target_database_connection_id:
+ The value to assign to the target_database_connection_id property of this CreateMigrationDetails.
+ :type target_database_connection_id: str
+
+ :param data_transfer_medium_details:
+ The value to assign to the data_transfer_medium_details property of this CreateMigrationDetails.
+ :type data_transfer_medium_details: oci.database_migration.models.CreateDataTransferMediumDetails
+
+ :param datapump_settings:
+ The value to assign to the datapump_settings property of this CreateMigrationDetails.
+ :type datapump_settings: oci.database_migration.models.CreateDataPumpSettings
+
+ :param exclude_objects:
+ The value to assign to the exclude_objects property of this CreateMigrationDetails.
+ :type exclude_objects: list[oci.database_migration.models.DatabaseObject]
+
+ :param golden_gate_details:
+ The value to assign to the golden_gate_details property of this CreateMigrationDetails.
+ :type golden_gate_details: oci.database_migration.models.CreateGoldenGateDetails
+
+ :param vault_details:
+ The value to assign to the vault_details property of this CreateMigrationDetails.
+ :type vault_details: oci.database_migration.models.CreateVaultDetails
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateMigrationDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateMigrationDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'agent_id': 'str',
+ 'source_database_connection_id': 'str',
+ 'source_container_database_connection_id': 'str',
+ 'target_database_connection_id': 'str',
+ 'data_transfer_medium_details': 'CreateDataTransferMediumDetails',
+ 'datapump_settings': 'CreateDataPumpSettings',
+ 'exclude_objects': 'list[DatabaseObject]',
+ 'golden_gate_details': 'CreateGoldenGateDetails',
+ 'vault_details': 'CreateVaultDetails',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'agent_id': 'agentId',
+ 'source_database_connection_id': 'sourceDatabaseConnectionId',
+ 'source_container_database_connection_id': 'sourceContainerDatabaseConnectionId',
+ 'target_database_connection_id': 'targetDatabaseConnectionId',
+ 'data_transfer_medium_details': 'dataTransferMediumDetails',
+ 'datapump_settings': 'datapumpSettings',
+ 'exclude_objects': 'excludeObjects',
+ 'golden_gate_details': 'goldenGateDetails',
+ 'vault_details': 'vaultDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._type = None
+ self._display_name = None
+ self._compartment_id = None
+ self._agent_id = None
+ self._source_database_connection_id = None
+ self._source_container_database_connection_id = None
+ self._target_database_connection_id = None
+ self._data_transfer_medium_details = None
+ self._datapump_settings = None
+ self._exclude_objects = None
+ self._golden_gate_details = None
+ self._vault_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this CreateMigrationDetails.
+ Migration type.
+
+ Allowed values for this property are: "ONLINE", "OFFLINE"
+
+
+ :return: The type of this CreateMigrationDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this CreateMigrationDetails.
+ Migration type.
+
+
+ :param type: The type of this CreateMigrationDetails.
+ :type: str
+ """
+ allowed_values = ["ONLINE", "OFFLINE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ "Invalid value for `type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._type = type
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this CreateMigrationDetails.
+ Migration Display Name
+
+
+ :return: The display_name of this CreateMigrationDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CreateMigrationDetails.
+ Migration Display Name
+
+
+ :param display_name: The display_name of this CreateMigrationDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateMigrationDetails.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this CreateMigrationDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateMigrationDetails.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this CreateMigrationDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def agent_id(self):
+ """
+ Gets the agent_id of this CreateMigrationDetails.
+ The OCID of the registered ODMS Agent. Required for OFFLINE Migrations.
+
+
+ :return: The agent_id of this CreateMigrationDetails.
+ :rtype: str
+ """
+ return self._agent_id
+
+ @agent_id.setter
+ def agent_id(self, agent_id):
+ """
+ Sets the agent_id of this CreateMigrationDetails.
+ The OCID of the registered ODMS Agent. Required for OFFLINE Migrations.
+
+
+ :param agent_id: The agent_id of this CreateMigrationDetails.
+ :type: str
+ """
+ self._agent_id = agent_id
+
+ @property
+ def source_database_connection_id(self):
+ """
+ **[Required]** Gets the source_database_connection_id of this CreateMigrationDetails.
+ The OCID of the Source Database Connection.
+
+
+ :return: The source_database_connection_id of this CreateMigrationDetails.
+ :rtype: str
+ """
+ return self._source_database_connection_id
+
+ @source_database_connection_id.setter
+ def source_database_connection_id(self, source_database_connection_id):
+ """
+ Sets the source_database_connection_id of this CreateMigrationDetails.
+ The OCID of the Source Database Connection.
+
+
+ :param source_database_connection_id: The source_database_connection_id of this CreateMigrationDetails.
+ :type: str
+ """
+ self._source_database_connection_id = source_database_connection_id
+
+ @property
+ def source_container_database_connection_id(self):
+ """
+ Gets the source_container_database_connection_id of this CreateMigrationDetails.
+ The OCID of the Source Container Database Connection. Only used for ONLINE migrations.
+ Only Connections of type Non-Autonomous can be used as source container databases.
+
+
+ :return: The source_container_database_connection_id of this CreateMigrationDetails.
+ :rtype: str
+ """
+ return self._source_container_database_connection_id
+
+ @source_container_database_connection_id.setter
+ def source_container_database_connection_id(self, source_container_database_connection_id):
+ """
+ Sets the source_container_database_connection_id of this CreateMigrationDetails.
+ The OCID of the Source Container Database Connection. Only used for ONLINE migrations.
+ Only Connections of type Non-Autonomous can be used as source container databases.
+
+
+ :param source_container_database_connection_id: The source_container_database_connection_id of this CreateMigrationDetails.
+ :type: str
+ """
+ self._source_container_database_connection_id = source_container_database_connection_id
+
+ @property
+ def target_database_connection_id(self):
+ """
+ **[Required]** Gets the target_database_connection_id of this CreateMigrationDetails.
+ The OCID of the Target Database Connection.
+
+
+ :return: The target_database_connection_id of this CreateMigrationDetails.
+ :rtype: str
+ """
+ return self._target_database_connection_id
+
+ @target_database_connection_id.setter
+ def target_database_connection_id(self, target_database_connection_id):
+ """
+ Sets the target_database_connection_id of this CreateMigrationDetails.
+ The OCID of the Target Database Connection.
+
+
+ :param target_database_connection_id: The target_database_connection_id of this CreateMigrationDetails.
+ :type: str
+ """
+ self._target_database_connection_id = target_database_connection_id
+
+ @property
+ def data_transfer_medium_details(self):
+ """
+ Gets the data_transfer_medium_details of this CreateMigrationDetails.
+
+ :return: The data_transfer_medium_details of this CreateMigrationDetails.
+ :rtype: oci.database_migration.models.CreateDataTransferMediumDetails
+ """
+ return self._data_transfer_medium_details
+
+ @data_transfer_medium_details.setter
+ def data_transfer_medium_details(self, data_transfer_medium_details):
+ """
+ Sets the data_transfer_medium_details of this CreateMigrationDetails.
+
+ :param data_transfer_medium_details: The data_transfer_medium_details of this CreateMigrationDetails.
+ :type: oci.database_migration.models.CreateDataTransferMediumDetails
+ """
+ self._data_transfer_medium_details = data_transfer_medium_details
+
+ @property
+ def datapump_settings(self):
+ """
+ Gets the datapump_settings of this CreateMigrationDetails.
+
+ :return: The datapump_settings of this CreateMigrationDetails.
+ :rtype: oci.database_migration.models.CreateDataPumpSettings
+ """
+ return self._datapump_settings
+
+ @datapump_settings.setter
+ def datapump_settings(self, datapump_settings):
+ """
+ Sets the datapump_settings of this CreateMigrationDetails.
+
+ :param datapump_settings: The datapump_settings of this CreateMigrationDetails.
+ :type: oci.database_migration.models.CreateDataPumpSettings
+ """
+ self._datapump_settings = datapump_settings
+
+ @property
+ def exclude_objects(self):
+ """
+ Gets the exclude_objects of this CreateMigrationDetails.
+ Database objects to exclude from migration.
+
+
+ :return: The exclude_objects of this CreateMigrationDetails.
+ :rtype: list[oci.database_migration.models.DatabaseObject]
+ """
+ return self._exclude_objects
+
+ @exclude_objects.setter
+ def exclude_objects(self, exclude_objects):
+ """
+ Sets the exclude_objects of this CreateMigrationDetails.
+ Database objects to exclude from migration.
+
+
+ :param exclude_objects: The exclude_objects of this CreateMigrationDetails.
+ :type: list[oci.database_migration.models.DatabaseObject]
+ """
+ self._exclude_objects = exclude_objects
+
+ @property
+ def golden_gate_details(self):
+ """
+ Gets the golden_gate_details of this CreateMigrationDetails.
+
+ :return: The golden_gate_details of this CreateMigrationDetails.
+ :rtype: oci.database_migration.models.CreateGoldenGateDetails
+ """
+ return self._golden_gate_details
+
+ @golden_gate_details.setter
+ def golden_gate_details(self, golden_gate_details):
+ """
+ Sets the golden_gate_details of this CreateMigrationDetails.
+
+ :param golden_gate_details: The golden_gate_details of this CreateMigrationDetails.
+ :type: oci.database_migration.models.CreateGoldenGateDetails
+ """
+ self._golden_gate_details = golden_gate_details
+
+ @property
+ def vault_details(self):
+ """
+ Gets the vault_details of this CreateMigrationDetails.
+
+ :return: The vault_details of this CreateMigrationDetails.
+ :rtype: oci.database_migration.models.CreateVaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this CreateMigrationDetails.
+
+ :param vault_details: The vault_details of this CreateMigrationDetails.
+ :type: oci.database_migration.models.CreateVaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateMigrationDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CreateMigrationDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateMigrationDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CreateMigrationDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateMigrationDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CreateMigrationDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateMigrationDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CreateMigrationDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_object_store_bucket.py b/src/oci/database_migration/models/create_object_store_bucket.py
new file mode 100644
index 0000000000..4330d9db48
--- /dev/null
+++ b/src/oci/database_migration/models/create_object_store_bucket.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateObjectStoreBucket(object):
+ """
+ In lieu of a network database link, OCI Object Storage bucket will be used to store Datapump dump files for the migration.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateObjectStoreBucket object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param namespace_name:
+ The value to assign to the namespace_name property of this CreateObjectStoreBucket.
+ :type namespace_name: str
+
+ :param bucket_name:
+ The value to assign to the bucket_name property of this CreateObjectStoreBucket.
+ :type bucket_name: str
+
+ """
+ self.swagger_types = {
+ 'namespace_name': 'str',
+ 'bucket_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'namespace_name': 'namespaceName',
+ 'bucket_name': 'bucketName'
+ }
+
+ self._namespace_name = None
+ self._bucket_name = None
+
+ @property
+ def namespace_name(self):
+ """
+ **[Required]** Gets the namespace_name of this CreateObjectStoreBucket.
+ Namespace name of the object store bucket.
+
+
+ :return: The namespace_name of this CreateObjectStoreBucket.
+ :rtype: str
+ """
+ return self._namespace_name
+
+ @namespace_name.setter
+ def namespace_name(self, namespace_name):
+ """
+ Sets the namespace_name of this CreateObjectStoreBucket.
+ Namespace name of the object store bucket.
+
+
+ :param namespace_name: The namespace_name of this CreateObjectStoreBucket.
+ :type: str
+ """
+ self._namespace_name = namespace_name
+
+ @property
+ def bucket_name(self):
+ """
+ **[Required]** Gets the bucket_name of this CreateObjectStoreBucket.
+ Bucket name.
+
+
+ :return: The bucket_name of this CreateObjectStoreBucket.
+ :rtype: str
+ """
+ return self._bucket_name
+
+ @bucket_name.setter
+ def bucket_name(self, bucket_name):
+ """
+ Sets the bucket_name of this CreateObjectStoreBucket.
+ Bucket name.
+
+
+ :param bucket_name: The bucket_name of this CreateObjectStoreBucket.
+ :type: str
+ """
+ self._bucket_name = bucket_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_private_endpoint.py b/src/oci/database_migration/models/create_private_endpoint.py
new file mode 100644
index 0000000000..569506a117
--- /dev/null
+++ b/src/oci/database_migration/models/create_private_endpoint.py
@@ -0,0 +1,151 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreatePrivateEndpoint(object):
+ """
+ OCI Private Endpoint configuration details.
+ Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreatePrivateEndpoint object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreatePrivateEndpoint.
+ :type compartment_id: str
+
+ :param vcn_id:
+ The value to assign to the vcn_id property of this CreatePrivateEndpoint.
+ :type vcn_id: str
+
+ :param subnet_id:
+ The value to assign to the subnet_id property of this CreatePrivateEndpoint.
+ :type subnet_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'vcn_id': 'str',
+ 'subnet_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'vcn_id': 'vcnId',
+ 'subnet_id': 'subnetId'
+ }
+
+ self._compartment_id = None
+ self._vcn_id = None
+ self._subnet_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreatePrivateEndpoint.
+ The `OCID`__ of the compartment to contain the
+ private endpoint. Required if the id was not specified.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this CreatePrivateEndpoint.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreatePrivateEndpoint.
+ The `OCID`__ of the compartment to contain the
+ private endpoint. Required if the id was not specified.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this CreatePrivateEndpoint.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vcn_id(self):
+ """
+ **[Required]** Gets the vcn_id of this CreatePrivateEndpoint.
+ The `OCID`__ of the VCN where the Private Endpoint will be bound to.
+ Required if the id was not specified.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The vcn_id of this CreatePrivateEndpoint.
+ :rtype: str
+ """
+ return self._vcn_id
+
+ @vcn_id.setter
+ def vcn_id(self, vcn_id):
+ """
+ Sets the vcn_id of this CreatePrivateEndpoint.
+ The `OCID`__ of the VCN where the Private Endpoint will be bound to.
+ Required if the id was not specified.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param vcn_id: The vcn_id of this CreatePrivateEndpoint.
+ :type: str
+ """
+ self._vcn_id = vcn_id
+
+ @property
+ def subnet_id(self):
+ """
+ **[Required]** Gets the subnet_id of this CreatePrivateEndpoint.
+ The `OCID`__ of the customer's subnet where the private endpoint VNIC
+ will reside. Required if the id was not specified.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The subnet_id of this CreatePrivateEndpoint.
+ :rtype: str
+ """
+ return self._subnet_id
+
+ @subnet_id.setter
+ def subnet_id(self, subnet_id):
+ """
+ Sets the subnet_id of this CreatePrivateEndpoint.
+ The `OCID`__ of the customer's subnet where the private endpoint VNIC
+ will reside. Required if the id was not specified.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param subnet_id: The subnet_id of this CreatePrivateEndpoint.
+ :type: str
+ """
+ self._subnet_id = subnet_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_replicat.py b/src/oci/database_migration/models/create_replicat.py
new file mode 100644
index 0000000000..58593ce286
--- /dev/null
+++ b/src/oci/database_migration/models/create_replicat.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateReplicat(object):
+ """
+ Parameters for Replicat processes.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateReplicat object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param map_parallelism:
+ The value to assign to the map_parallelism property of this CreateReplicat.
+ :type map_parallelism: int
+
+ :param min_apply_parallelism:
+ The value to assign to the min_apply_parallelism property of this CreateReplicat.
+ :type min_apply_parallelism: int
+
+ :param max_apply_parallelism:
+ The value to assign to the max_apply_parallelism property of this CreateReplicat.
+ :type max_apply_parallelism: int
+
+ """
+ self.swagger_types = {
+ 'map_parallelism': 'int',
+ 'min_apply_parallelism': 'int',
+ 'max_apply_parallelism': 'int'
+ }
+
+ self.attribute_map = {
+ 'map_parallelism': 'mapParallelism',
+ 'min_apply_parallelism': 'minApplyParallelism',
+ 'max_apply_parallelism': 'maxApplyParallelism'
+ }
+
+ self._map_parallelism = None
+ self._min_apply_parallelism = None
+ self._max_apply_parallelism = None
+
+ @property
+ def map_parallelism(self):
+ """
+ Gets the map_parallelism of this CreateReplicat.
+ Number of threads used to read trail files (valid for Parallel Replicat)
+
+
+ :return: The map_parallelism of this CreateReplicat.
+ :rtype: int
+ """
+ return self._map_parallelism
+
+ @map_parallelism.setter
+ def map_parallelism(self, map_parallelism):
+ """
+ Sets the map_parallelism of this CreateReplicat.
+ Number of threads used to read trail files (valid for Parallel Replicat)
+
+
+ :param map_parallelism: The map_parallelism of this CreateReplicat.
+ :type: int
+ """
+ self._map_parallelism = map_parallelism
+
+ @property
+ def min_apply_parallelism(self):
+ """
+ Gets the min_apply_parallelism of this CreateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :return: The min_apply_parallelism of this CreateReplicat.
+ :rtype: int
+ """
+ return self._min_apply_parallelism
+
+ @min_apply_parallelism.setter
+ def min_apply_parallelism(self, min_apply_parallelism):
+ """
+ Sets the min_apply_parallelism of this CreateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :param min_apply_parallelism: The min_apply_parallelism of this CreateReplicat.
+ :type: int
+ """
+ self._min_apply_parallelism = min_apply_parallelism
+
+ @property
+ def max_apply_parallelism(self):
+ """
+ Gets the max_apply_parallelism of this CreateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :return: The max_apply_parallelism of this CreateReplicat.
+ :rtype: int
+ """
+ return self._max_apply_parallelism
+
+ @max_apply_parallelism.setter
+ def max_apply_parallelism(self, max_apply_parallelism):
+ """
+ Sets the max_apply_parallelism of this CreateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :param max_apply_parallelism: The max_apply_parallelism of this CreateReplicat.
+ :type: int
+ """
+ self._max_apply_parallelism = max_apply_parallelism
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_ssh_details.py b/src/oci/database_migration/models/create_ssh_details.py
new file mode 100644
index 0000000000..5f2eb7ed01
--- /dev/null
+++ b/src/oci/database_migration/models/create_ssh_details.py
@@ -0,0 +1,164 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateSshDetails(object):
+ """
+ Details of the ssh key that will be used. Required for source database Manual and UserManagerOci connection types.
+ Not required for source container database connections.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateSshDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host:
+ The value to assign to the host property of this CreateSshDetails.
+ :type host: str
+
+ :param sshkey:
+ The value to assign to the sshkey property of this CreateSshDetails.
+ :type sshkey: str
+
+ :param user:
+ The value to assign to the user property of this CreateSshDetails.
+ :type user: str
+
+ :param sudo_location:
+ The value to assign to the sudo_location property of this CreateSshDetails.
+ :type sudo_location: str
+
+ """
+ self.swagger_types = {
+ 'host': 'str',
+ 'sshkey': 'str',
+ 'user': 'str',
+ 'sudo_location': 'str'
+ }
+
+ self.attribute_map = {
+ 'host': 'host',
+ 'sshkey': 'sshkey',
+ 'user': 'user',
+ 'sudo_location': 'sudoLocation'
+ }
+
+ self._host = None
+ self._sshkey = None
+ self._user = None
+ self._sudo_location = None
+
+ @property
+ def host(self):
+ """
+ **[Required]** Gets the host of this CreateSshDetails.
+ Name of the host the sshkey is valid for.
+
+
+ :return: The host of this CreateSshDetails.
+ :rtype: str
+ """
+ return self._host
+
+ @host.setter
+ def host(self, host):
+ """
+ Sets the host of this CreateSshDetails.
+ Name of the host the sshkey is valid for.
+
+
+ :param host: The host of this CreateSshDetails.
+ :type: str
+ """
+ self._host = host
+
+ @property
+ def sshkey(self):
+ """
+ **[Required]** Gets the sshkey of this CreateSshDetails.
+ Private ssh key string.
+
+
+ :return: The sshkey of this CreateSshDetails.
+ :rtype: str
+ """
+ return self._sshkey
+
+ @sshkey.setter
+ def sshkey(self, sshkey):
+ """
+ Sets the sshkey of this CreateSshDetails.
+ Private ssh key string.
+
+
+ :param sshkey: The sshkey of this CreateSshDetails.
+ :type: str
+ """
+ self._sshkey = sshkey
+
+ @property
+ def user(self):
+ """
+ **[Required]** Gets the user of this CreateSshDetails.
+ SSH user
+
+
+ :return: The user of this CreateSshDetails.
+ :rtype: str
+ """
+ return self._user
+
+ @user.setter
+ def user(self, user):
+ """
+ Sets the user of this CreateSshDetails.
+ SSH user
+
+
+ :param user: The user of this CreateSshDetails.
+ :type: str
+ """
+ self._user = user
+
+ @property
+ def sudo_location(self):
+ """
+ Gets the sudo_location of this CreateSshDetails.
+ Sudo location
+
+
+ :return: The sudo_location of this CreateSshDetails.
+ :rtype: str
+ """
+ return self._sudo_location
+
+ @sudo_location.setter
+ def sudo_location(self, sudo_location):
+ """
+ Sets the sudo_location of this CreateSshDetails.
+ Sudo location
+
+
+ :param sudo_location: The sudo_location of this CreateSshDetails.
+ :type: str
+ """
+ self._sudo_location = sudo_location
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/create_vault_details.py b/src/oci/database_migration/models/create_vault_details.py
new file mode 100644
index 0000000000..6b2c7185c7
--- /dev/null
+++ b/src/oci/database_migration/models/create_vault_details.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateVaultDetails(object):
+ """
+ OCI Vault details to store migration and connection credentials secrets
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateVaultDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateVaultDetails.
+ :type compartment_id: str
+
+ :param vault_id:
+ The value to assign to the vault_id property of this CreateVaultDetails.
+ :type vault_id: str
+
+ :param key_id:
+ The value to assign to the key_id property of this CreateVaultDetails.
+ :type key_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'vault_id': 'str',
+ 'key_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'vault_id': 'vaultId',
+ 'key_id': 'keyId'
+ }
+
+ self._compartment_id = None
+ self._vault_id = None
+ self._key_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateVaultDetails.
+ OCID of the compartment where the secret containing the credentials will be created.
+
+
+ :return: The compartment_id of this CreateVaultDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateVaultDetails.
+ OCID of the compartment where the secret containing the credentials will be created.
+
+
+ :param compartment_id: The compartment_id of this CreateVaultDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vault_id(self):
+ """
+ **[Required]** Gets the vault_id of this CreateVaultDetails.
+ OCID of the vault
+
+
+ :return: The vault_id of this CreateVaultDetails.
+ :rtype: str
+ """
+ return self._vault_id
+
+ @vault_id.setter
+ def vault_id(self, vault_id):
+ """
+ Sets the vault_id of this CreateVaultDetails.
+ OCID of the vault
+
+
+ :param vault_id: The vault_id of this CreateVaultDetails.
+ :type: str
+ """
+ self._vault_id = vault_id
+
+ @property
+ def key_id(self):
+ """
+ **[Required]** Gets the key_id of this CreateVaultDetails.
+ OCID of the vault encryption key
+
+
+ :return: The key_id of this CreateVaultDetails.
+ :rtype: str
+ """
+ return self._key_id
+
+ @key_id.setter
+ def key_id(self, key_id):
+ """
+ Sets the key_id of this CreateVaultDetails.
+ OCID of the vault encryption key
+
+
+ :param key_id: The key_id of this CreateVaultDetails.
+ :type: str
+ """
+ self._key_id = key_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/data_pump_parameters.py b/src/oci/database_migration/models/data_pump_parameters.py
new file mode 100644
index 0000000000..0d3622a88f
--- /dev/null
+++ b/src/oci/database_migration/models/data_pump_parameters.py
@@ -0,0 +1,267 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DataPumpParameters(object):
+ """
+ Optional parameters for Datapump Export and Import. Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-62324358-2F26-4A94-B69F-1075D53FA96D__BABDECJE
+ """
+
+ #: A constant which can be used with the estimate property of a DataPumpParameters.
+ #: This constant has a value of "BLOCKS"
+ ESTIMATE_BLOCKS = "BLOCKS"
+
+ #: A constant which can be used with the estimate property of a DataPumpParameters.
+ #: This constant has a value of "STATISTICS"
+ ESTIMATE_STATISTICS = "STATISTICS"
+
+ #: A constant which can be used with the table_exists_action property of a DataPumpParameters.
+ #: This constant has a value of "TRUNCATE"
+ TABLE_EXISTS_ACTION_TRUNCATE = "TRUNCATE"
+
+ #: A constant which can be used with the table_exists_action property of a DataPumpParameters.
+ #: This constant has a value of "REPLACE"
+ TABLE_EXISTS_ACTION_REPLACE = "REPLACE"
+
+ #: A constant which can be used with the table_exists_action property of a DataPumpParameters.
+ #: This constant has a value of "APPEND"
+ TABLE_EXISTS_ACTION_APPEND = "APPEND"
+
+ #: A constant which can be used with the table_exists_action property of a DataPumpParameters.
+ #: This constant has a value of "SKIP"
+ TABLE_EXISTS_ACTION_SKIP = "SKIP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DataPumpParameters object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param is_cluster:
+ The value to assign to the is_cluster property of this DataPumpParameters.
+ :type is_cluster: bool
+
+ :param estimate:
+ The value to assign to the estimate property of this DataPumpParameters.
+ Allowed values for this property are: "BLOCKS", "STATISTICS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type estimate: str
+
+ :param table_exists_action:
+ The value to assign to the table_exists_action property of this DataPumpParameters.
+ Allowed values for this property are: "TRUNCATE", "REPLACE", "APPEND", "SKIP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type table_exists_action: str
+
+ :param exclude_parameters:
+ The value to assign to the exclude_parameters property of this DataPumpParameters.
+ :type exclude_parameters: list[oci.database_migration.models.DataPumpExcludeParameters]
+
+ :param import_parallelism_degree:
+ The value to assign to the import_parallelism_degree property of this DataPumpParameters.
+ :type import_parallelism_degree: int
+
+ :param export_parallelism_degree:
+ The value to assign to the export_parallelism_degree property of this DataPumpParameters.
+ :type export_parallelism_degree: int
+
+ """
+ self.swagger_types = {
+ 'is_cluster': 'bool',
+ 'estimate': 'str',
+ 'table_exists_action': 'str',
+ 'exclude_parameters': 'list[DataPumpExcludeParameters]',
+ 'import_parallelism_degree': 'int',
+ 'export_parallelism_degree': 'int'
+ }
+
+ self.attribute_map = {
+ 'is_cluster': 'isCluster',
+ 'estimate': 'estimate',
+ 'table_exists_action': 'tableExistsAction',
+ 'exclude_parameters': 'excludeParameters',
+ 'import_parallelism_degree': 'importParallelismDegree',
+ 'export_parallelism_degree': 'exportParallelismDegree'
+ }
+
+ self._is_cluster = None
+ self._estimate = None
+ self._table_exists_action = None
+ self._exclude_parameters = None
+ self._import_parallelism_degree = None
+ self._export_parallelism_degree = None
+
+ @property
+ def is_cluster(self):
+ """
+ Gets the is_cluster of this DataPumpParameters.
+ False to force datapump worker process to run on one instance.
+
+
+ :return: The is_cluster of this DataPumpParameters.
+ :rtype: bool
+ """
+ return self._is_cluster
+
+ @is_cluster.setter
+ def is_cluster(self, is_cluster):
+ """
+ Sets the is_cluster of this DataPumpParameters.
+ False to force datapump worker process to run on one instance.
+
+
+ :param is_cluster: The is_cluster of this DataPumpParameters.
+ :type: bool
+ """
+ self._is_cluster = is_cluster
+
+ @property
+ def estimate(self):
+ """
+ Gets the estimate of this DataPumpParameters.
+ Estimate size of dumps that will be generated.
+
+ Allowed values for this property are: "BLOCKS", "STATISTICS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The estimate of this DataPumpParameters.
+ :rtype: str
+ """
+ return self._estimate
+
+ @estimate.setter
+ def estimate(self, estimate):
+ """
+ Sets the estimate of this DataPumpParameters.
+ Estimate size of dumps that will be generated.
+
+
+ :param estimate: The estimate of this DataPumpParameters.
+ :type: str
+ """
+ allowed_values = ["BLOCKS", "STATISTICS"]
+ if not value_allowed_none_or_none_sentinel(estimate, allowed_values):
+ estimate = 'UNKNOWN_ENUM_VALUE'
+ self._estimate = estimate
+
+ @property
+ def table_exists_action(self):
+ """
+ Gets the table_exists_action of this DataPumpParameters.
+ IMPORT: Specifies the action to be performed when data is loaded into a preexisting table.
+
+ Allowed values for this property are: "TRUNCATE", "REPLACE", "APPEND", "SKIP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The table_exists_action of this DataPumpParameters.
+ :rtype: str
+ """
+ return self._table_exists_action
+
+ @table_exists_action.setter
+ def table_exists_action(self, table_exists_action):
+ """
+ Sets the table_exists_action of this DataPumpParameters.
+ IMPORT: Specifies the action to be performed when data is loaded into a preexisting table.
+
+
+ :param table_exists_action: The table_exists_action of this DataPumpParameters.
+ :type: str
+ """
+ allowed_values = ["TRUNCATE", "REPLACE", "APPEND", "SKIP"]
+ if not value_allowed_none_or_none_sentinel(table_exists_action, allowed_values):
+ table_exists_action = 'UNKNOWN_ENUM_VALUE'
+ self._table_exists_action = table_exists_action
+
+ @property
+ def exclude_parameters(self):
+ """
+ Gets the exclude_parameters of this DataPumpParameters.
+ Exclude paratemers for export and import.
+
+
+ :return: The exclude_parameters of this DataPumpParameters.
+ :rtype: list[oci.database_migration.models.DataPumpExcludeParameters]
+ """
+ return self._exclude_parameters
+
+ @exclude_parameters.setter
+ def exclude_parameters(self, exclude_parameters):
+ """
+ Sets the exclude_parameters of this DataPumpParameters.
+ Exclude paratemers for export and import.
+
+
+ :param exclude_parameters: The exclude_parameters of this DataPumpParameters.
+ :type: list[oci.database_migration.models.DataPumpExcludeParameters]
+ """
+ self._exclude_parameters = exclude_parameters
+
+ @property
+ def import_parallelism_degree(self):
+ """
+ Gets the import_parallelism_degree of this DataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Import job.
+ For an Autonomous Database, ODMS will automatically query its CPU core count and set this property.
+
+
+ :return: The import_parallelism_degree of this DataPumpParameters.
+ :rtype: int
+ """
+ return self._import_parallelism_degree
+
+ @import_parallelism_degree.setter
+ def import_parallelism_degree(self, import_parallelism_degree):
+ """
+ Sets the import_parallelism_degree of this DataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Import job.
+ For an Autonomous Database, ODMS will automatically query its CPU core count and set this property.
+
+
+ :param import_parallelism_degree: The import_parallelism_degree of this DataPumpParameters.
+ :type: int
+ """
+ self._import_parallelism_degree = import_parallelism_degree
+
+ @property
+ def export_parallelism_degree(self):
+ """
+ Gets the export_parallelism_degree of this DataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Export job.
+
+
+ :return: The export_parallelism_degree of this DataPumpParameters.
+ :rtype: int
+ """
+ return self._export_parallelism_degree
+
+ @export_parallelism_degree.setter
+ def export_parallelism_degree(self, export_parallelism_degree):
+ """
+ Sets the export_parallelism_degree of this DataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Export job.
+
+
+ :param export_parallelism_degree: The export_parallelism_degree of this DataPumpParameters.
+ :type: int
+ """
+ self._export_parallelism_degree = export_parallelism_degree
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/data_pump_settings.py b/src/oci/database_migration/models/data_pump_settings.py
new file mode 100644
index 0000000000..f7f1e414f6
--- /dev/null
+++ b/src/oci/database_migration/models/data_pump_settings.py
@@ -0,0 +1,214 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DataPumpSettings(object):
+ """
+ Optional settings for Datapump Export and Import jobs
+ """
+
+ #: A constant which can be used with the job_mode property of a DataPumpSettings.
+ #: This constant has a value of "FULL"
+ JOB_MODE_FULL = "FULL"
+
+ #: A constant which can be used with the job_mode property of a DataPumpSettings.
+ #: This constant has a value of "SCHEMA"
+ JOB_MODE_SCHEMA = "SCHEMA"
+
+ #: A constant which can be used with the job_mode property of a DataPumpSettings.
+ #: This constant has a value of "TABLE"
+ JOB_MODE_TABLE = "TABLE"
+
+ #: A constant which can be used with the job_mode property of a DataPumpSettings.
+ #: This constant has a value of "TABLESPACE"
+ JOB_MODE_TABLESPACE = "TABLESPACE"
+
+ #: A constant which can be used with the job_mode property of a DataPumpSettings.
+ #: This constant has a value of "TRANSPORTABLE"
+ JOB_MODE_TRANSPORTABLE = "TRANSPORTABLE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DataPumpSettings object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param job_mode:
+ The value to assign to the job_mode property of this DataPumpSettings.
+ Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type job_mode: str
+
+ :param data_pump_parameters:
+ The value to assign to the data_pump_parameters property of this DataPumpSettings.
+ :type data_pump_parameters: oci.database_migration.models.DataPumpParameters
+
+ :param metadata_remaps:
+ The value to assign to the metadata_remaps property of this DataPumpSettings.
+ :type metadata_remaps: list[oci.database_migration.models.MetadataRemap]
+
+ :param export_directory_object:
+ The value to assign to the export_directory_object property of this DataPumpSettings.
+ :type export_directory_object: oci.database_migration.models.DirectoryObject
+
+ :param import_directory_object:
+ The value to assign to the import_directory_object property of this DataPumpSettings.
+ :type import_directory_object: oci.database_migration.models.DirectoryObject
+
+ """
+ self.swagger_types = {
+ 'job_mode': 'str',
+ 'data_pump_parameters': 'DataPumpParameters',
+ 'metadata_remaps': 'list[MetadataRemap]',
+ 'export_directory_object': 'DirectoryObject',
+ 'import_directory_object': 'DirectoryObject'
+ }
+
+ self.attribute_map = {
+ 'job_mode': 'jobMode',
+ 'data_pump_parameters': 'dataPumpParameters',
+ 'metadata_remaps': 'metadataRemaps',
+ 'export_directory_object': 'exportDirectoryObject',
+ 'import_directory_object': 'importDirectoryObject'
+ }
+
+ self._job_mode = None
+ self._data_pump_parameters = None
+ self._metadata_remaps = None
+ self._export_directory_object = None
+ self._import_directory_object = None
+
+ @property
+ def job_mode(self):
+ """
+ Gets the job_mode of this DataPumpSettings.
+ DataPump job mode.
+ Refer to docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-92C2CB46-8BC9-414D-B62E-79CD788C1E62__BABBDEHD
+
+ Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The job_mode of this DataPumpSettings.
+ :rtype: str
+ """
+ return self._job_mode
+
+ @job_mode.setter
+ def job_mode(self, job_mode):
+ """
+ Sets the job_mode of this DataPumpSettings.
+ DataPump job mode.
+ Refer to docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-92C2CB46-8BC9-414D-B62E-79CD788C1E62__BABBDEHD
+
+
+ :param job_mode: The job_mode of this DataPumpSettings.
+ :type: str
+ """
+ allowed_values = ["FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"]
+ if not value_allowed_none_or_none_sentinel(job_mode, allowed_values):
+ job_mode = 'UNKNOWN_ENUM_VALUE'
+ self._job_mode = job_mode
+
+ @property
+ def data_pump_parameters(self):
+ """
+ Gets the data_pump_parameters of this DataPumpSettings.
+
+ :return: The data_pump_parameters of this DataPumpSettings.
+ :rtype: oci.database_migration.models.DataPumpParameters
+ """
+ return self._data_pump_parameters
+
+ @data_pump_parameters.setter
+ def data_pump_parameters(self, data_pump_parameters):
+ """
+ Sets the data_pump_parameters of this DataPumpSettings.
+
+ :param data_pump_parameters: The data_pump_parameters of this DataPumpSettings.
+ :type: oci.database_migration.models.DataPumpParameters
+ """
+ self._data_pump_parameters = data_pump_parameters
+
+ @property
+ def metadata_remaps(self):
+ """
+ Gets the metadata_remaps of this DataPumpSettings.
+ Defines remapping to be applied to objects as they are processed.
+ Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D.
+
+
+ :return: The metadata_remaps of this DataPumpSettings.
+ :rtype: list[oci.database_migration.models.MetadataRemap]
+ """
+ return self._metadata_remaps
+
+ @metadata_remaps.setter
+ def metadata_remaps(self, metadata_remaps):
+ """
+ Sets the metadata_remaps of this DataPumpSettings.
+ Defines remapping to be applied to objects as they are processed.
+ Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D.
+
+
+ :param metadata_remaps: The metadata_remaps of this DataPumpSettings.
+ :type: list[oci.database_migration.models.MetadataRemap]
+ """
+ self._metadata_remaps = metadata_remaps
+
+ @property
+ def export_directory_object(self):
+ """
+ Gets the export_directory_object of this DataPumpSettings.
+
+ :return: The export_directory_object of this DataPumpSettings.
+ :rtype: oci.database_migration.models.DirectoryObject
+ """
+ return self._export_directory_object
+
+ @export_directory_object.setter
+ def export_directory_object(self, export_directory_object):
+ """
+ Sets the export_directory_object of this DataPumpSettings.
+
+ :param export_directory_object: The export_directory_object of this DataPumpSettings.
+ :type: oci.database_migration.models.DirectoryObject
+ """
+ self._export_directory_object = export_directory_object
+
+ @property
+ def import_directory_object(self):
+ """
+ Gets the import_directory_object of this DataPumpSettings.
+
+ :return: The import_directory_object of this DataPumpSettings.
+ :rtype: oci.database_migration.models.DirectoryObject
+ """
+ return self._import_directory_object
+
+ @import_directory_object.setter
+ def import_directory_object(self, import_directory_object):
+ """
+ Sets the import_directory_object of this DataPumpSettings.
+
+ :param import_directory_object: The import_directory_object of this DataPumpSettings.
+ :type: oci.database_migration.models.DirectoryObject
+ """
+ self._import_directory_object = import_directory_object
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/data_transfer_medium_details.py b/src/oci/database_migration/models/data_transfer_medium_details.py
new file mode 100644
index 0000000000..5863180d0c
--- /dev/null
+++ b/src/oci/database_migration/models/data_transfer_medium_details.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DataTransferMediumDetails(object):
+ """
+ Data Transfer Medium details for the Migration.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DataTransferMediumDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param database_link_details:
+ The value to assign to the database_link_details property of this DataTransferMediumDetails.
+ :type database_link_details: oci.database_migration.models.DatabaseLinkDetails
+
+ :param object_storage_details:
+ The value to assign to the object_storage_details property of this DataTransferMediumDetails.
+ :type object_storage_details: oci.database_migration.models.ObjectStoreBucket
+
+ """
+ self.swagger_types = {
+ 'database_link_details': 'DatabaseLinkDetails',
+ 'object_storage_details': 'ObjectStoreBucket'
+ }
+
+ self.attribute_map = {
+ 'database_link_details': 'databaseLinkDetails',
+ 'object_storage_details': 'objectStorageDetails'
+ }
+
+ self._database_link_details = None
+ self._object_storage_details = None
+
+ @property
+ def database_link_details(self):
+ """
+ Gets the database_link_details of this DataTransferMediumDetails.
+
+ :return: The database_link_details of this DataTransferMediumDetails.
+ :rtype: oci.database_migration.models.DatabaseLinkDetails
+ """
+ return self._database_link_details
+
+ @database_link_details.setter
+ def database_link_details(self, database_link_details):
+ """
+ Sets the database_link_details of this DataTransferMediumDetails.
+
+ :param database_link_details: The database_link_details of this DataTransferMediumDetails.
+ :type: oci.database_migration.models.DatabaseLinkDetails
+ """
+ self._database_link_details = database_link_details
+
+ @property
+ def object_storage_details(self):
+ """
+ Gets the object_storage_details of this DataTransferMediumDetails.
+
+ :return: The object_storage_details of this DataTransferMediumDetails.
+ :rtype: oci.database_migration.models.ObjectStoreBucket
+ """
+ return self._object_storage_details
+
+ @object_storage_details.setter
+ def object_storage_details(self, object_storage_details):
+ """
+ Sets the object_storage_details of this DataTransferMediumDetails.
+
+ :param object_storage_details: The object_storage_details of this DataTransferMediumDetails.
+ :type: oci.database_migration.models.ObjectStoreBucket
+ """
+ self._object_storage_details = object_storage_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/database_link_details.py b/src/oci/database_migration/models/database_link_details.py
new file mode 100644
index 0000000000..1cefbb9bbc
--- /dev/null
+++ b/src/oci/database_migration/models/database_link_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DatabaseLinkDetails(object):
+ """
+ Optional details for creating a network database link from OCI database to on-premise database.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DatabaseLinkDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this DatabaseLinkDetails.
+ :type name: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name'
+ }
+
+ self._name = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this DatabaseLinkDetails.
+ Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist.
+
+
+ :return: The name of this DatabaseLinkDetails.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this DatabaseLinkDetails.
+ Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist.
+
+
+ :param name: The name of this DatabaseLinkDetails.
+ :type: str
+ """
+ self._name = name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/database_object.py b/src/oci/database_migration/models/database_object.py
new file mode 100644
index 0000000000..13d5507b57
--- /dev/null
+++ b/src/oci/database_migration/models/database_object.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DatabaseObject(object):
+ """
+ Database objects to exclude from migration
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DatabaseObject object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param owner:
+ The value to assign to the owner property of this DatabaseObject.
+ :type owner: str
+
+ :param object_name:
+ The value to assign to the object_name property of this DatabaseObject.
+ :type object_name: str
+
+ """
+ self.swagger_types = {
+ 'owner': 'str',
+ 'object_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'owner': 'owner',
+ 'object_name': 'objectName'
+ }
+
+ self._owner = None
+ self._object_name = None
+
+ @property
+ def owner(self):
+ """
+ **[Required]** Gets the owner of this DatabaseObject.
+ Owner of the object (regular expression is allowed)
+
+
+ :return: The owner of this DatabaseObject.
+ :rtype: str
+ """
+ return self._owner
+
+ @owner.setter
+ def owner(self, owner):
+ """
+ Sets the owner of this DatabaseObject.
+ Owner of the object (regular expression is allowed)
+
+
+ :param owner: The owner of this DatabaseObject.
+ :type: str
+ """
+ self._owner = owner
+
+ @property
+ def object_name(self):
+ """
+ **[Required]** Gets the object_name of this DatabaseObject.
+ Name of the object (regular expression is allowed)
+
+
+ :return: The object_name of this DatabaseObject.
+ :rtype: str
+ """
+ return self._object_name
+
+ @object_name.setter
+ def object_name(self, object_name):
+ """
+ Sets the object_name of this DatabaseObject.
+ Name of the object (regular expression is allowed)
+
+
+ :param object_name: The object_name of this DatabaseObject.
+ :type: str
+ """
+ self._object_name = object_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/directory_object.py b/src/oci/database_migration/models/directory_object.py
new file mode 100644
index 0000000000..e0a5b99a28
--- /dev/null
+++ b/src/oci/database_migration/models/directory_object.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DirectoryObject(object):
+ """
+ Directory object details, used to define either import or export directory objects in Data Pump Settings.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DirectoryObject object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this DirectoryObject.
+ :type name: str
+
+ :param path:
+ The value to assign to the path property of this DirectoryObject.
+ :type path: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str',
+ 'path': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name',
+ 'path': 'path'
+ }
+
+ self._name = None
+ self._path = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this DirectoryObject.
+ Name of directory object in database
+
+
+ :return: The name of this DirectoryObject.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this DirectoryObject.
+ Name of directory object in database
+
+
+ :param name: The name of this DirectoryObject.
+ :type: str
+ """
+ self._name = name
+
+ @property
+ def path(self):
+ """
+ **[Required]** Gets the path of this DirectoryObject.
+ Absolute path of directory on database server
+
+
+ :return: The path of this DirectoryObject.
+ :rtype: str
+ """
+ return self._path
+
+ @path.setter
+ def path(self, path):
+ """
+ Sets the path of this DirectoryObject.
+ Absolute path of directory on database server
+
+
+ :param path: The path of this DirectoryObject.
+ :type: str
+ """
+ self._path = path
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/extract.py b/src/oci/database_migration/models/extract.py
new file mode 100644
index 0000000000..fd49dab3e8
--- /dev/null
+++ b/src/oci/database_migration/models/extract.py
@@ -0,0 +1,123 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class Extract(object):
+ """
+ Parameters for Extract processes.
+ """
+
+ #: A constant which can be used with the performance_profile property of a Extract.
+ #: This constant has a value of "LOW"
+ PERFORMANCE_PROFILE_LOW = "LOW"
+
+ #: A constant which can be used with the performance_profile property of a Extract.
+ #: This constant has a value of "MEDIUM"
+ PERFORMANCE_PROFILE_MEDIUM = "MEDIUM"
+
+ #: A constant which can be used with the performance_profile property of a Extract.
+ #: This constant has a value of "HIGH"
+ PERFORMANCE_PROFILE_HIGH = "HIGH"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Extract object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param performance_profile:
+ The value to assign to the performance_profile property of this Extract.
+ Allowed values for this property are: "LOW", "MEDIUM", "HIGH", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type performance_profile: str
+
+ :param long_trans_duration:
+ The value to assign to the long_trans_duration property of this Extract.
+ :type long_trans_duration: int
+
+ """
+ self.swagger_types = {
+ 'performance_profile': 'str',
+ 'long_trans_duration': 'int'
+ }
+
+ self.attribute_map = {
+ 'performance_profile': 'performanceProfile',
+ 'long_trans_duration': 'longTransDuration'
+ }
+
+ self._performance_profile = None
+ self._long_trans_duration = None
+
+ @property
+ def performance_profile(self):
+ """
+ Gets the performance_profile of this Extract.
+ Extract performance.
+
+ Allowed values for this property are: "LOW", "MEDIUM", "HIGH", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The performance_profile of this Extract.
+ :rtype: str
+ """
+ return self._performance_profile
+
+ @performance_profile.setter
+ def performance_profile(self, performance_profile):
+ """
+ Sets the performance_profile of this Extract.
+ Extract performance.
+
+
+ :param performance_profile: The performance_profile of this Extract.
+ :type: str
+ """
+ allowed_values = ["LOW", "MEDIUM", "HIGH"]
+ if not value_allowed_none_or_none_sentinel(performance_profile, allowed_values):
+ performance_profile = 'UNKNOWN_ENUM_VALUE'
+ self._performance_profile = performance_profile
+
+ @property
+ def long_trans_duration(self):
+ """
+ Gets the long_trans_duration of this Extract.
+ Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running.
+ If not specified, Extract will not generate a warning on long-running transactions.
+
+
+ :return: The long_trans_duration of this Extract.
+ :rtype: int
+ """
+ return self._long_trans_duration
+
+ @long_trans_duration.setter
+ def long_trans_duration(self, long_trans_duration):
+ """
+ Sets the long_trans_duration of this Extract.
+ Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running.
+ If not specified, Extract will not generate a warning on long-running transactions.
+
+
+ :param long_trans_duration: The long_trans_duration of this Extract.
+ :type: int
+ """
+ self._long_trans_duration = long_trans_duration
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/generate_token.py b/src/oci/database_migration/models/generate_token.py
new file mode 100644
index 0000000000..52ab4c3246
--- /dev/null
+++ b/src/oci/database_migration/models/generate_token.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class GenerateToken(object):
+ """
+ ODMS Agent token details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new GenerateToken object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param rpt_blob:
+ The value to assign to the rpt_blob property of this GenerateToken.
+ :type rpt_blob: str
+
+ """
+ self.swagger_types = {
+ 'rpt_blob': 'str'
+ }
+
+ self.attribute_map = {
+ 'rpt_blob': 'rptBlob'
+ }
+
+ self._rpt_blob = None
+
+ @property
+ def rpt_blob(self):
+ """
+ **[Required]** Gets the rpt_blob of this GenerateToken.
+ Resource Principals Token in serialized form.
+
+
+ :return: The rpt_blob of this GenerateToken.
+ :rtype: str
+ """
+ return self._rpt_blob
+
+ @rpt_blob.setter
+ def rpt_blob(self, rpt_blob):
+ """
+ Sets the rpt_blob of this GenerateToken.
+ Resource Principals Token in serialized form.
+
+
+ :param rpt_blob: The rpt_blob of this GenerateToken.
+ :type: str
+ """
+ self._rpt_blob = rpt_blob
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/golden_gate_details.py b/src/oci/database_migration/models/golden_gate_details.py
new file mode 100644
index 0000000000..3153c536fe
--- /dev/null
+++ b/src/oci/database_migration/models/golden_gate_details.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class GoldenGateDetails(object):
+ """
+ Details about Oracle GoldenGate Microservices.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new GoldenGateDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param hub:
+ The value to assign to the hub property of this GoldenGateDetails.
+ :type hub: oci.database_migration.models.GoldenGateHub
+
+ :param settings:
+ The value to assign to the settings property of this GoldenGateDetails.
+ :type settings: oci.database_migration.models.GoldenGateSettings
+
+ """
+ self.swagger_types = {
+ 'hub': 'GoldenGateHub',
+ 'settings': 'GoldenGateSettings'
+ }
+
+ self.attribute_map = {
+ 'hub': 'hub',
+ 'settings': 'settings'
+ }
+
+ self._hub = None
+ self._settings = None
+
+ @property
+ def hub(self):
+ """
+ **[Required]** Gets the hub of this GoldenGateDetails.
+
+ :return: The hub of this GoldenGateDetails.
+ :rtype: oci.database_migration.models.GoldenGateHub
+ """
+ return self._hub
+
+ @hub.setter
+ def hub(self, hub):
+ """
+ Sets the hub of this GoldenGateDetails.
+
+ :param hub: The hub of this GoldenGateDetails.
+ :type: oci.database_migration.models.GoldenGateHub
+ """
+ self._hub = hub
+
+ @property
+ def settings(self):
+ """
+ Gets the settings of this GoldenGateDetails.
+
+ :return: The settings of this GoldenGateDetails.
+ :rtype: oci.database_migration.models.GoldenGateSettings
+ """
+ return self._settings
+
+ @settings.setter
+ def settings(self, settings):
+ """
+ Sets the settings of this GoldenGateDetails.
+
+ :param settings: The settings of this GoldenGateDetails.
+ :type: oci.database_migration.models.GoldenGateSettings
+ """
+ self._settings = settings
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/golden_gate_hub.py b/src/oci/database_migration/models/golden_gate_hub.py
new file mode 100644
index 0000000000..235d942b9a
--- /dev/null
+++ b/src/oci/database_migration/models/golden_gate_hub.py
@@ -0,0 +1,273 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class GoldenGateHub(object):
+ """
+ Details about Oracle GoldenGate Microservices.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new GoldenGateHub object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param rest_admin_credentials:
+ The value to assign to the rest_admin_credentials property of this GoldenGateHub.
+ :type rest_admin_credentials: oci.database_migration.models.AdminCredentials
+
+ :param source_db_admin_credentials:
+ The value to assign to the source_db_admin_credentials property of this GoldenGateHub.
+ :type source_db_admin_credentials: oci.database_migration.models.AdminCredentials
+
+ :param source_container_db_admin_credentials:
+ The value to assign to the source_container_db_admin_credentials property of this GoldenGateHub.
+ :type source_container_db_admin_credentials: oci.database_migration.models.AdminCredentials
+
+ :param target_db_admin_credentials:
+ The value to assign to the target_db_admin_credentials property of this GoldenGateHub.
+ :type target_db_admin_credentials: oci.database_migration.models.AdminCredentials
+
+ :param url:
+ The value to assign to the url property of this GoldenGateHub.
+ :type url: str
+
+ :param source_microservices_deployment_name:
+ The value to assign to the source_microservices_deployment_name property of this GoldenGateHub.
+ :type source_microservices_deployment_name: str
+
+ :param target_microservices_deployment_name:
+ The value to assign to the target_microservices_deployment_name property of this GoldenGateHub.
+ :type target_microservices_deployment_name: str
+
+ :param compute_id:
+ The value to assign to the compute_id property of this GoldenGateHub.
+ :type compute_id: str
+
+ """
+ self.swagger_types = {
+ 'rest_admin_credentials': 'AdminCredentials',
+ 'source_db_admin_credentials': 'AdminCredentials',
+ 'source_container_db_admin_credentials': 'AdminCredentials',
+ 'target_db_admin_credentials': 'AdminCredentials',
+ 'url': 'str',
+ 'source_microservices_deployment_name': 'str',
+ 'target_microservices_deployment_name': 'str',
+ 'compute_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'rest_admin_credentials': 'restAdminCredentials',
+ 'source_db_admin_credentials': 'sourceDbAdminCredentials',
+ 'source_container_db_admin_credentials': 'sourceContainerDbAdminCredentials',
+ 'target_db_admin_credentials': 'targetDbAdminCredentials',
+ 'url': 'url',
+ 'source_microservices_deployment_name': 'sourceMicroservicesDeploymentName',
+ 'target_microservices_deployment_name': 'targetMicroservicesDeploymentName',
+ 'compute_id': 'computeId'
+ }
+
+ self._rest_admin_credentials = None
+ self._source_db_admin_credentials = None
+ self._source_container_db_admin_credentials = None
+ self._target_db_admin_credentials = None
+ self._url = None
+ self._source_microservices_deployment_name = None
+ self._target_microservices_deployment_name = None
+ self._compute_id = None
+
+ @property
+ def rest_admin_credentials(self):
+ """
+ **[Required]** Gets the rest_admin_credentials of this GoldenGateHub.
+
+ :return: The rest_admin_credentials of this GoldenGateHub.
+ :rtype: oci.database_migration.models.AdminCredentials
+ """
+ return self._rest_admin_credentials
+
+ @rest_admin_credentials.setter
+ def rest_admin_credentials(self, rest_admin_credentials):
+ """
+ Sets the rest_admin_credentials of this GoldenGateHub.
+
+ :param rest_admin_credentials: The rest_admin_credentials of this GoldenGateHub.
+ :type: oci.database_migration.models.AdminCredentials
+ """
+ self._rest_admin_credentials = rest_admin_credentials
+
+ @property
+ def source_db_admin_credentials(self):
+ """
+ **[Required]** Gets the source_db_admin_credentials of this GoldenGateHub.
+
+ :return: The source_db_admin_credentials of this GoldenGateHub.
+ :rtype: oci.database_migration.models.AdminCredentials
+ """
+ return self._source_db_admin_credentials
+
+ @source_db_admin_credentials.setter
+ def source_db_admin_credentials(self, source_db_admin_credentials):
+ """
+ Sets the source_db_admin_credentials of this GoldenGateHub.
+
+ :param source_db_admin_credentials: The source_db_admin_credentials of this GoldenGateHub.
+ :type: oci.database_migration.models.AdminCredentials
+ """
+ self._source_db_admin_credentials = source_db_admin_credentials
+
+ @property
+ def source_container_db_admin_credentials(self):
+ """
+ Gets the source_container_db_admin_credentials of this GoldenGateHub.
+
+ :return: The source_container_db_admin_credentials of this GoldenGateHub.
+ :rtype: oci.database_migration.models.AdminCredentials
+ """
+ return self._source_container_db_admin_credentials
+
+ @source_container_db_admin_credentials.setter
+ def source_container_db_admin_credentials(self, source_container_db_admin_credentials):
+ """
+ Sets the source_container_db_admin_credentials of this GoldenGateHub.
+
+ :param source_container_db_admin_credentials: The source_container_db_admin_credentials of this GoldenGateHub.
+ :type: oci.database_migration.models.AdminCredentials
+ """
+ self._source_container_db_admin_credentials = source_container_db_admin_credentials
+
+ @property
+ def target_db_admin_credentials(self):
+ """
+ **[Required]** Gets the target_db_admin_credentials of this GoldenGateHub.
+
+ :return: The target_db_admin_credentials of this GoldenGateHub.
+ :rtype: oci.database_migration.models.AdminCredentials
+ """
+ return self._target_db_admin_credentials
+
+ @target_db_admin_credentials.setter
+ def target_db_admin_credentials(self, target_db_admin_credentials):
+ """
+ Sets the target_db_admin_credentials of this GoldenGateHub.
+
+ :param target_db_admin_credentials: The target_db_admin_credentials of this GoldenGateHub.
+ :type: oci.database_migration.models.AdminCredentials
+ """
+ self._target_db_admin_credentials = target_db_admin_credentials
+
+ @property
+ def url(self):
+ """
+ **[Required]** Gets the url of this GoldenGateHub.
+ Oracle GoldenGate hub's REST endpoint.
+ Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
+
+
+ :return: The url of this GoldenGateHub.
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """
+ Sets the url of this GoldenGateHub.
+ Oracle GoldenGate hub's REST endpoint.
+ Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
+
+
+ :param url: The url of this GoldenGateHub.
+ :type: str
+ """
+ self._url = url
+
+ @property
+ def source_microservices_deployment_name(self):
+ """
+ **[Required]** Gets the source_microservices_deployment_name of this GoldenGateHub.
+ Name of Microservices deployment to operate on source DB
+
+
+ :return: The source_microservices_deployment_name of this GoldenGateHub.
+ :rtype: str
+ """
+ return self._source_microservices_deployment_name
+
+ @source_microservices_deployment_name.setter
+ def source_microservices_deployment_name(self, source_microservices_deployment_name):
+ """
+ Sets the source_microservices_deployment_name of this GoldenGateHub.
+ Name of Microservices deployment to operate on source DB
+
+
+ :param source_microservices_deployment_name: The source_microservices_deployment_name of this GoldenGateHub.
+ :type: str
+ """
+ self._source_microservices_deployment_name = source_microservices_deployment_name
+
+ @property
+ def target_microservices_deployment_name(self):
+ """
+ **[Required]** Gets the target_microservices_deployment_name of this GoldenGateHub.
+ Name of Microservices deployment to operate on target DB
+
+
+ :return: The target_microservices_deployment_name of this GoldenGateHub.
+ :rtype: str
+ """
+ return self._target_microservices_deployment_name
+
+ @target_microservices_deployment_name.setter
+ def target_microservices_deployment_name(self, target_microservices_deployment_name):
+ """
+ Sets the target_microservices_deployment_name of this GoldenGateHub.
+ Name of Microservices deployment to operate on target DB
+
+
+ :param target_microservices_deployment_name: The target_microservices_deployment_name of this GoldenGateHub.
+ :type: str
+ """
+ self._target_microservices_deployment_name = target_microservices_deployment_name
+
+ @property
+ def compute_id(self):
+ """
+ Gets the compute_id of this GoldenGateHub.
+ OCID of Golden Gate compute instance.
+
+
+ :return: The compute_id of this GoldenGateHub.
+ :rtype: str
+ """
+ return self._compute_id
+
+ @compute_id.setter
+ def compute_id(self, compute_id):
+ """
+ Sets the compute_id of this GoldenGateHub.
+ OCID of Golden Gate compute instance.
+
+
+ :param compute_id: The compute_id of this GoldenGateHub.
+ :type: str
+ """
+ self._compute_id = compute_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/golden_gate_settings.py b/src/oci/database_migration/models/golden_gate_settings.py
new file mode 100644
index 0000000000..8241397c11
--- /dev/null
+++ b/src/oci/database_migration/models/golden_gate_settings.py
@@ -0,0 +1,124 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class GoldenGateSettings(object):
+ """
+ Optional settings for Oracle GoldenGate processes
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new GoldenGateSettings object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param extract:
+ The value to assign to the extract property of this GoldenGateSettings.
+ :type extract: oci.database_migration.models.Extract
+
+ :param replicat:
+ The value to assign to the replicat property of this GoldenGateSettings.
+ :type replicat: oci.database_migration.models.Replicat
+
+ :param acceptable_lag:
+ The value to assign to the acceptable_lag property of this GoldenGateSettings.
+ :type acceptable_lag: int
+
+ """
+ self.swagger_types = {
+ 'extract': 'Extract',
+ 'replicat': 'Replicat',
+ 'acceptable_lag': 'int'
+ }
+
+ self.attribute_map = {
+ 'extract': 'extract',
+ 'replicat': 'replicat',
+ 'acceptable_lag': 'acceptableLag'
+ }
+
+ self._extract = None
+ self._replicat = None
+ self._acceptable_lag = None
+
+ @property
+ def extract(self):
+ """
+ Gets the extract of this GoldenGateSettings.
+
+ :return: The extract of this GoldenGateSettings.
+ :rtype: oci.database_migration.models.Extract
+ """
+ return self._extract
+
+ @extract.setter
+ def extract(self, extract):
+ """
+ Sets the extract of this GoldenGateSettings.
+
+ :param extract: The extract of this GoldenGateSettings.
+ :type: oci.database_migration.models.Extract
+ """
+ self._extract = extract
+
+ @property
+ def replicat(self):
+ """
+ Gets the replicat of this GoldenGateSettings.
+
+ :return: The replicat of this GoldenGateSettings.
+ :rtype: oci.database_migration.models.Replicat
+ """
+ return self._replicat
+
+ @replicat.setter
+ def replicat(self, replicat):
+ """
+ Sets the replicat of this GoldenGateSettings.
+
+ :param replicat: The replicat of this GoldenGateSettings.
+ :type: oci.database_migration.models.Replicat
+ """
+ self._replicat = replicat
+
+ @property
+ def acceptable_lag(self):
+ """
+ Gets the acceptable_lag of this GoldenGateSettings.
+ ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds.
+
+
+ :return: The acceptable_lag of this GoldenGateSettings.
+ :rtype: int
+ """
+ return self._acceptable_lag
+
+ @acceptable_lag.setter
+ def acceptable_lag(self, acceptable_lag):
+ """
+ Sets the acceptable_lag of this GoldenGateSettings.
+ ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds.
+
+
+ :param acceptable_lag: The acceptable_lag of this GoldenGateSettings.
+ :type: int
+ """
+ self._acceptable_lag = acceptable_lag
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/job.py b/src/oci/database_migration/models/job.py
new file mode 100644
index 0000000000..2779936d50
--- /dev/null
+++ b/src/oci/database_migration/models/job.py
@@ -0,0 +1,506 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class Job(object):
+ """
+ Results of a Database Connection search. Contains DatabaseConnectionSummary items.
+ """
+
+ #: A constant which can be used with the type property of a Job.
+ #: This constant has a value of "EVALUATION"
+ TYPE_EVALUATION = "EVALUATION"
+
+ #: A constant which can be used with the type property of a Job.
+ #: This constant has a value of "MIGRATION"
+ TYPE_MIGRATION = "MIGRATION"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "ACCEPTED"
+ LIFECYCLE_STATE_ACCEPTED = "ACCEPTED"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "IN_PROGRESS"
+ LIFECYCLE_STATE_IN_PROGRESS = "IN_PROGRESS"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "UNKNOWN"
+ LIFECYCLE_STATE_UNKNOWN = "UNKNOWN"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "TERMINATED"
+ LIFECYCLE_STATE_TERMINATED = "TERMINATED"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "SUCCEEDED"
+ LIFECYCLE_STATE_SUCCEEDED = "SUCCEEDED"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "WAITING"
+ LIFECYCLE_STATE_WAITING = "WAITING"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "CANCELING"
+ LIFECYCLE_STATE_CANCELING = "CANCELING"
+
+ #: A constant which can be used with the lifecycle_state property of a Job.
+ #: This constant has a value of "CANCELED"
+ LIFECYCLE_STATE_CANCELED = "CANCELED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Job object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this Job.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this Job.
+ :type display_name: str
+
+ :param migration_id:
+ The value to assign to the migration_id property of this Job.
+ :type migration_id: str
+
+ :param type:
+ The value to assign to the type property of this Job.
+ Allowed values for this property are: "EVALUATION", "MIGRATION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param time_created:
+ The value to assign to the time_created property of this Job.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this Job.
+ :type time_updated: datetime
+
+ :param progress:
+ The value to assign to the progress property of this Job.
+ :type progress: oci.database_migration.models.MigrationJobProgressResource
+
+ :param unsupported_objects:
+ The value to assign to the unsupported_objects property of this Job.
+ :type unsupported_objects: list[oci.database_migration.models.UnsupportedDatabaseObject]
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this Job.
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this Job.
+ :type lifecycle_details: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this Job.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this Job.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this Job.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'migration_id': 'str',
+ 'type': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'progress': 'MigrationJobProgressResource',
+ 'unsupported_objects': 'list[UnsupportedDatabaseObject]',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'migration_id': 'migrationId',
+ 'type': 'type',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'progress': 'progress',
+ 'unsupported_objects': 'unsupportedObjects',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._migration_id = None
+ self._type = None
+ self._time_created = None
+ self._time_updated = None
+ self._progress = None
+ self._unsupported_objects = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this Job.
+ The OCID of the Migration Job.
+
+
+ :return: The id of this Job.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this Job.
+ The OCID of the Migration Job.
+
+
+ :param id: The id of this Job.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this Job.
+ Name of the job.
+
+
+ :return: The display_name of this Job.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this Job.
+ Name of the job.
+
+
+ :param display_name: The display_name of this Job.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def migration_id(self):
+ """
+ **[Required]** Gets the migration_id of this Job.
+ The OCID of the Migration that this job belongs to.
+
+
+ :return: The migration_id of this Job.
+ :rtype: str
+ """
+ return self._migration_id
+
+ @migration_id.setter
+ def migration_id(self, migration_id):
+ """
+ Sets the migration_id of this Job.
+ The OCID of the Migration that this job belongs to.
+
+
+ :param migration_id: The migration_id of this Job.
+ :type: str
+ """
+ self._migration_id = migration_id
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this Job.
+ The job type.
+
+ Allowed values for this property are: "EVALUATION", "MIGRATION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this Job.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this Job.
+ The job type.
+
+
+ :param type: The type of this Job.
+ :type: str
+ """
+ allowed_values = ["EVALUATION", "MIGRATION"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this Job.
+ The time the DB Migration Job was created. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this Job.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this Job.
+ The time the DB Migration Job was created. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this Job.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this Job.
+ The time the DB Migration Job was last updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this Job.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this Job.
+ The time the DB Migration Job was last updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this Job.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def progress(self):
+ """
+ Gets the progress of this Job.
+
+ :return: The progress of this Job.
+ :rtype: oci.database_migration.models.MigrationJobProgressResource
+ """
+ return self._progress
+
+ @progress.setter
+ def progress(self, progress):
+ """
+ Sets the progress of this Job.
+
+ :param progress: The progress of this Job.
+ :type: oci.database_migration.models.MigrationJobProgressResource
+ """
+ self._progress = progress
+
+ @property
+ def unsupported_objects(self):
+ """
+ Gets the unsupported_objects of this Job.
+ Database objects not supported.
+
+
+ :return: The unsupported_objects of this Job.
+ :rtype: list[oci.database_migration.models.UnsupportedDatabaseObject]
+ """
+ return self._unsupported_objects
+
+ @unsupported_objects.setter
+ def unsupported_objects(self, unsupported_objects):
+ """
+ Sets the unsupported_objects of this Job.
+ Database objects not supported.
+
+
+ :param unsupported_objects: The unsupported_objects of this Job.
+ :type: list[oci.database_migration.models.UnsupportedDatabaseObject]
+ """
+ self._unsupported_objects = unsupported_objects
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this Job.
+ The current state of the migration job.
+
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this Job.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this Job.
+ The current state of the migration job.
+
+
+ :param lifecycle_state: The lifecycle_state of this Job.
+ :type: str
+ """
+ allowed_values = ["ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this Job.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this Job.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this Job.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this Job.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this Job.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this Job.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this Job.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this Job.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this Job.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this Job.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this Job.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this Job.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this Job.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this Job.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this Job.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this Job.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/job_collection.py b/src/oci/database_migration/models/job_collection.py
new file mode 100644
index 0000000000..570a830a73
--- /dev/null
+++ b/src/oci/database_migration/models/job_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class JobCollection(object):
+ """
+ Results of a Job search. Contains JobSummary items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new JobCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this JobCollection.
+ :type items: list[oci.database_migration.models.JobSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[JobSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this JobCollection.
+ Items in collection.
+
+
+ :return: The items of this JobCollection.
+ :rtype: list[oci.database_migration.models.JobSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this JobCollection.
+ Items in collection.
+
+
+ :param items: The items of this JobCollection.
+ :type: list[oci.database_migration.models.JobSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/job_output_summary.py b/src/oci/database_migration/models/job_output_summary.py
new file mode 100644
index 0000000000..81b941608c
--- /dev/null
+++ b/src/oci/database_migration/models/job_output_summary.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class JobOutputSummary(object):
+ """
+ Job output summary line.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new JobOutputSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param message:
+ The value to assign to the message property of this JobOutputSummary.
+ :type message: str
+
+ """
+ self.swagger_types = {
+ 'message': 'str'
+ }
+
+ self.attribute_map = {
+ 'message': 'message'
+ }
+
+ self._message = None
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this JobOutputSummary.
+ Job output line.
+
+
+ :return: The message of this JobOutputSummary.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this JobOutputSummary.
+ Job output line.
+
+
+ :param message: The message of this JobOutputSummary.
+ :type: str
+ """
+ self._message = message
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/job_output_summary_collection.py b/src/oci/database_migration/models/job_output_summary_collection.py
new file mode 100644
index 0000000000..fb36afebbe
--- /dev/null
+++ b/src/oci/database_migration/models/job_output_summary_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class JobOutputSummaryCollection(object):
+ """
+ Results of a Job output listing. Contains JobOutputSummary items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new JobOutputSummaryCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this JobOutputSummaryCollection.
+ :type items: list[oci.database_migration.models.JobOutputSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[JobOutputSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this JobOutputSummaryCollection.
+ Items in collection.
+
+
+ :return: The items of this JobOutputSummaryCollection.
+ :rtype: list[oci.database_migration.models.JobOutputSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this JobOutputSummaryCollection.
+ Items in collection.
+
+
+ :param items: The items of this JobOutputSummaryCollection.
+ :type: list[oci.database_migration.models.JobOutputSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/job_summary.py b/src/oci/database_migration/models/job_summary.py
new file mode 100644
index 0000000000..4af7f5b8c8
--- /dev/null
+++ b/src/oci/database_migration/models/job_summary.py
@@ -0,0 +1,475 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class JobSummary(object):
+ """
+ Job description
+ """
+
+ #: A constant which can be used with the type property of a JobSummary.
+ #: This constant has a value of "EVALUATION"
+ TYPE_EVALUATION = "EVALUATION"
+
+ #: A constant which can be used with the type property of a JobSummary.
+ #: This constant has a value of "MIGRATION"
+ TYPE_MIGRATION = "MIGRATION"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "ACCEPTED"
+ LIFECYCLE_STATE_ACCEPTED = "ACCEPTED"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "IN_PROGRESS"
+ LIFECYCLE_STATE_IN_PROGRESS = "IN_PROGRESS"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "UNKNOWN"
+ LIFECYCLE_STATE_UNKNOWN = "UNKNOWN"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "TERMINATED"
+ LIFECYCLE_STATE_TERMINATED = "TERMINATED"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "SUCCEEDED"
+ LIFECYCLE_STATE_SUCCEEDED = "SUCCEEDED"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "WAITING"
+ LIFECYCLE_STATE_WAITING = "WAITING"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "CANCELING"
+ LIFECYCLE_STATE_CANCELING = "CANCELING"
+
+ #: A constant which can be used with the lifecycle_state property of a JobSummary.
+ #: This constant has a value of "CANCELED"
+ LIFECYCLE_STATE_CANCELED = "CANCELED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new JobSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this JobSummary.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this JobSummary.
+ :type display_name: str
+
+ :param migration_id:
+ The value to assign to the migration_id property of this JobSummary.
+ :type migration_id: str
+
+ :param type:
+ The value to assign to the type property of this JobSummary.
+ Allowed values for this property are: "EVALUATION", "MIGRATION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param progress:
+ The value to assign to the progress property of this JobSummary.
+ :type progress: oci.database_migration.models.MigrationJobProgressSummary
+
+ :param time_created:
+ The value to assign to the time_created property of this JobSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this JobSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this JobSummary.
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this JobSummary.
+ :type lifecycle_details: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this JobSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this JobSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this JobSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'migration_id': 'str',
+ 'type': 'str',
+ 'progress': 'MigrationJobProgressSummary',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'migration_id': 'migrationId',
+ 'type': 'type',
+ 'progress': 'progress',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._migration_id = None
+ self._type = None
+ self._progress = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this JobSummary.
+ The OCID of the Migration Job.
+
+
+ :return: The id of this JobSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this JobSummary.
+ The OCID of the Migration Job.
+
+
+ :param id: The id of this JobSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this JobSummary.
+ Name of the job.
+
+
+ :return: The display_name of this JobSummary.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this JobSummary.
+ Name of the job.
+
+
+ :param display_name: The display_name of this JobSummary.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def migration_id(self):
+ """
+ **[Required]** Gets the migration_id of this JobSummary.
+ The OCID of the Migration that this job belongs to.
+
+
+ :return: The migration_id of this JobSummary.
+ :rtype: str
+ """
+ return self._migration_id
+
+ @migration_id.setter
+ def migration_id(self, migration_id):
+ """
+ Sets the migration_id of this JobSummary.
+ The OCID of the Migration that this job belongs to.
+
+
+ :param migration_id: The migration_id of this JobSummary.
+ :type: str
+ """
+ self._migration_id = migration_id
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this JobSummary.
+ The job type.
+
+ Allowed values for this property are: "EVALUATION", "MIGRATION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this JobSummary.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this JobSummary.
+ The job type.
+
+
+ :param type: The type of this JobSummary.
+ :type: str
+ """
+ allowed_values = ["EVALUATION", "MIGRATION"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def progress(self):
+ """
+ Gets the progress of this JobSummary.
+
+ :return: The progress of this JobSummary.
+ :rtype: oci.database_migration.models.MigrationJobProgressSummary
+ """
+ return self._progress
+
+ @progress.setter
+ def progress(self, progress):
+ """
+ Sets the progress of this JobSummary.
+
+ :param progress: The progress of this JobSummary.
+ :type: oci.database_migration.models.MigrationJobProgressSummary
+ """
+ self._progress = progress
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this JobSummary.
+ The time the DB Migration Job was created. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this JobSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this JobSummary.
+ The time the DB Migration Job was created. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this JobSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this JobSummary.
+ The time the DB Migration Job was last updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this JobSummary.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this JobSummary.
+ The time the DB Migration Job was last updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this JobSummary.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this JobSummary.
+ The current state of the migration Deployment.
+
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this JobSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this JobSummary.
+ The current state of the migration Deployment.
+
+
+ :param lifecycle_state: The lifecycle_state of this JobSummary.
+ :type: str
+ """
+ allowed_values = ["ACCEPTED", "IN_PROGRESS", "UNKNOWN", "TERMINATED", "FAILED", "SUCCEEDED", "WAITING", "CANCELING", "CANCELED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this JobSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this JobSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this JobSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information
+ for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this JobSummary.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this JobSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this JobSummary.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this JobSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this JobSummary.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this JobSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this JobSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this JobSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this JobSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this JobSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this JobSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this JobSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this JobSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/metadata_remap.py b/src/oci/database_migration/models/metadata_remap.py
new file mode 100644
index 0000000000..40d3a841d9
--- /dev/null
+++ b/src/oci/database_migration/models/metadata_remap.py
@@ -0,0 +1,157 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MetadataRemap(object):
+ """
+ Defines remapping to be applied to objects as they are processed.
+ Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D.
+ """
+
+ #: A constant which can be used with the type property of a MetadataRemap.
+ #: This constant has a value of "SCHEMA"
+ TYPE_SCHEMA = "SCHEMA"
+
+ #: A constant which can be used with the type property of a MetadataRemap.
+ #: This constant has a value of "TABLESPACE"
+ TYPE_TABLESPACE = "TABLESPACE"
+
+ #: A constant which can be used with the type property of a MetadataRemap.
+ #: This constant has a value of "DATAFILE"
+ TYPE_DATAFILE = "DATAFILE"
+
+ #: A constant which can be used with the type property of a MetadataRemap.
+ #: This constant has a value of "TABLE"
+ TYPE_TABLE = "TABLE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MetadataRemap object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this MetadataRemap.
+ Allowed values for this property are: "SCHEMA", "TABLESPACE", "DATAFILE", "TABLE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param old_value:
+ The value to assign to the old_value property of this MetadataRemap.
+ :type old_value: str
+
+ :param new_value:
+ The value to assign to the new_value property of this MetadataRemap.
+ :type new_value: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'old_value': 'str',
+ 'new_value': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'old_value': 'oldValue',
+ 'new_value': 'newValue'
+ }
+
+ self._type = None
+ self._old_value = None
+ self._new_value = None
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this MetadataRemap.
+ Type of remap. Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D__BABDJGDI
+
+ Allowed values for this property are: "SCHEMA", "TABLESPACE", "DATAFILE", "TABLE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this MetadataRemap.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this MetadataRemap.
+ Type of remap. Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D__BABDJGDI
+
+
+ :param type: The type of this MetadataRemap.
+ :type: str
+ """
+ allowed_values = ["SCHEMA", "TABLESPACE", "DATAFILE", "TABLE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def old_value(self):
+ """
+ **[Required]** Gets the old_value of this MetadataRemap.
+ Specifies the value which needs to be reset.
+
+
+ :return: The old_value of this MetadataRemap.
+ :rtype: str
+ """
+ return self._old_value
+
+ @old_value.setter
+ def old_value(self, old_value):
+ """
+ Sets the old_value of this MetadataRemap.
+ Specifies the value which needs to be reset.
+
+
+ :param old_value: The old_value of this MetadataRemap.
+ :type: str
+ """
+ self._old_value = old_value
+
+ @property
+ def new_value(self):
+ """
+ **[Required]** Gets the new_value of this MetadataRemap.
+ Specifies the new value that oldValue should be translated into.
+
+
+ :return: The new_value of this MetadataRemap.
+ :rtype: str
+ """
+ return self._new_value
+
+ @new_value.setter
+ def new_value(self, new_value):
+ """
+ Sets the new_value of this MetadataRemap.
+ Specifies the new value that oldValue should be translated into.
+
+
+ :param new_value: The new_value of this MetadataRemap.
+ :type: str
+ """
+ self._new_value = new_value
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/migration.py b/src/oci/database_migration/models/migration.py
new file mode 100644
index 0000000000..6360fe1d3a
--- /dev/null
+++ b/src/oci/database_migration/models/migration.py
@@ -0,0 +1,935 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class Migration(object):
+ """
+ Migration resource
+ """
+
+ #: A constant which can be used with the type property of a Migration.
+ #: This constant has a value of "ONLINE"
+ TYPE_ONLINE = "ONLINE"
+
+ #: A constant which can be used with the type property of a Migration.
+ #: This constant has a value of "OFFLINE"
+ TYPE_OFFLINE = "OFFLINE"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_VALIDATE_TGT"
+ WAIT_AFTER_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_VALIDATE_SRC"
+ WAIT_AFTER_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_VALIDATE_GG_HUB"
+ WAIT_AFTER_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_VALIDATE"
+ WAIT_AFTER_ODMS_VALIDATE = "ODMS_VALIDATE"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_PREPARE"
+ WAIT_AFTER_ODMS_PREPARE = "ODMS_PREPARE"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
+ WAIT_AFTER_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_DATA_UPLOAD"
+ WAIT_AFTER_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
+ WAIT_AFTER_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_POST_INITIAL_LOAD"
+ WAIT_AFTER_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
+ WAIT_AFTER_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
+ WAIT_AFTER_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_SWITCHOVER"
+ WAIT_AFTER_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
+
+ #: A constant which can be used with the wait_after property of a Migration.
+ #: This constant has a value of "ODMS_CLEANUP"
+ WAIT_AFTER_ODMS_CLEANUP = "ODMS_CLEANUP"
+
+ #: A constant which can be used with the lifecycle_state property of a Migration.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a Migration.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a Migration.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a Migration.
+ #: This constant has a value of "INACTIVE"
+ LIFECYCLE_STATE_INACTIVE = "INACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a Migration.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a Migration.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a Migration.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ #: A constant which can be used with the lifecycle_details property of a Migration.
+ #: This constant has a value of "READY"
+ LIFECYCLE_DETAILS_READY = "READY"
+
+ #: A constant which can be used with the lifecycle_details property of a Migration.
+ #: This constant has a value of "ABORTING"
+ LIFECYCLE_DETAILS_ABORTING = "ABORTING"
+
+ #: A constant which can be used with the lifecycle_details property of a Migration.
+ #: This constant has a value of "VALIDATING"
+ LIFECYCLE_DETAILS_VALIDATING = "VALIDATING"
+
+ #: A constant which can be used with the lifecycle_details property of a Migration.
+ #: This constant has a value of "VALIDATED"
+ LIFECYCLE_DETAILS_VALIDATED = "VALIDATED"
+
+ #: A constant which can be used with the lifecycle_details property of a Migration.
+ #: This constant has a value of "WAITING"
+ LIFECYCLE_DETAILS_WAITING = "WAITING"
+
+ #: A constant which can be used with the lifecycle_details property of a Migration.
+ #: This constant has a value of "MIGRATING"
+ LIFECYCLE_DETAILS_MIGRATING = "MIGRATING"
+
+ #: A constant which can be used with the lifecycle_details property of a Migration.
+ #: This constant has a value of "DONE"
+ LIFECYCLE_DETAILS_DONE = "DONE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Migration object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this Migration.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this Migration.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this Migration.
+ :type compartment_id: str
+
+ :param type:
+ The value to assign to the type property of this Migration.
+ Allowed values for this property are: "ONLINE", "OFFLINE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param wait_after:
+ The value to assign to the wait_after property of this Migration.
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type wait_after: str
+
+ :param agent_id:
+ The value to assign to the agent_id property of this Migration.
+ :type agent_id: str
+
+ :param credentials_secret_id:
+ The value to assign to the credentials_secret_id property of this Migration.
+ :type credentials_secret_id: str
+
+ :param source_database_connection_id:
+ The value to assign to the source_database_connection_id property of this Migration.
+ :type source_database_connection_id: str
+
+ :param source_container_database_connection_id:
+ The value to assign to the source_container_database_connection_id property of this Migration.
+ :type source_container_database_connection_id: str
+
+ :param target_database_connection_id:
+ The value to assign to the target_database_connection_id property of this Migration.
+ :type target_database_connection_id: str
+
+ :param executing_job_id:
+ The value to assign to the executing_job_id property of this Migration.
+ :type executing_job_id: str
+
+ :param data_transfer_medium_details:
+ The value to assign to the data_transfer_medium_details property of this Migration.
+ :type data_transfer_medium_details: oci.database_migration.models.DataTransferMediumDetails
+
+ :param datapump_settings:
+ The value to assign to the datapump_settings property of this Migration.
+ :type datapump_settings: oci.database_migration.models.DataPumpSettings
+
+ :param exclude_objects:
+ The value to assign to the exclude_objects property of this Migration.
+ :type exclude_objects: list[oci.database_migration.models.DatabaseObject]
+
+ :param golden_gate_details:
+ The value to assign to the golden_gate_details property of this Migration.
+ :type golden_gate_details: oci.database_migration.models.GoldenGateDetails
+
+ :param vault_details:
+ The value to assign to the vault_details property of this Migration.
+ :type vault_details: oci.database_migration.models.VaultDetails
+
+ :param time_created:
+ The value to assign to the time_created property of this Migration.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this Migration.
+ :type time_updated: datetime
+
+ :param time_last_migration:
+ The value to assign to the time_last_migration property of this Migration.
+ :type time_last_migration: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this Migration.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this Migration.
+ Allowed values for this property are: "READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_details: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this Migration.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this Migration.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this Migration.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'type': 'str',
+ 'wait_after': 'str',
+ 'agent_id': 'str',
+ 'credentials_secret_id': 'str',
+ 'source_database_connection_id': 'str',
+ 'source_container_database_connection_id': 'str',
+ 'target_database_connection_id': 'str',
+ 'executing_job_id': 'str',
+ 'data_transfer_medium_details': 'DataTransferMediumDetails',
+ 'datapump_settings': 'DataPumpSettings',
+ 'exclude_objects': 'list[DatabaseObject]',
+ 'golden_gate_details': 'GoldenGateDetails',
+ 'vault_details': 'VaultDetails',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'time_last_migration': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'type': 'type',
+ 'wait_after': 'waitAfter',
+ 'agent_id': 'agentId',
+ 'credentials_secret_id': 'credentialsSecretId',
+ 'source_database_connection_id': 'sourceDatabaseConnectionId',
+ 'source_container_database_connection_id': 'sourceContainerDatabaseConnectionId',
+ 'target_database_connection_id': 'targetDatabaseConnectionId',
+ 'executing_job_id': 'executingJobId',
+ 'data_transfer_medium_details': 'dataTransferMediumDetails',
+ 'datapump_settings': 'datapumpSettings',
+ 'exclude_objects': 'excludeObjects',
+ 'golden_gate_details': 'goldenGateDetails',
+ 'vault_details': 'vaultDetails',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'time_last_migration': 'timeLastMigration',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._compartment_id = None
+ self._type = None
+ self._wait_after = None
+ self._agent_id = None
+ self._credentials_secret_id = None
+ self._source_database_connection_id = None
+ self._source_container_database_connection_id = None
+ self._target_database_connection_id = None
+ self._executing_job_id = None
+ self._data_transfer_medium_details = None
+ self._datapump_settings = None
+ self._exclude_objects = None
+ self._golden_gate_details = None
+ self._vault_details = None
+ self._time_created = None
+ self._time_updated = None
+ self._time_last_migration = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this Migration.
+ The OCID of the resource
+
+
+ :return: The id of this Migration.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this Migration.
+ The OCID of the resource
+
+
+ :param id: The id of this Migration.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this Migration.
+ Migration Display Name
+
+
+ :return: The display_name of this Migration.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this Migration.
+ Migration Display Name
+
+
+ :param display_name: The display_name of this Migration.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this Migration.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this Migration.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this Migration.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this Migration.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this Migration.
+ Migration type.
+
+ Allowed values for this property are: "ONLINE", "OFFLINE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this Migration.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this Migration.
+ Migration type.
+
+
+ :param type: The type of this Migration.
+ :type: str
+ """
+ allowed_values = ["ONLINE", "OFFLINE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def wait_after(self):
+ """
+ Gets the wait_after of this Migration.
+ Name of a migration phase. The Job will wait after executing this
+ phase until the Resume Job endpoint is called.
+
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The wait_after of this Migration.
+ :rtype: str
+ """
+ return self._wait_after
+
+ @wait_after.setter
+ def wait_after(self, wait_after):
+ """
+ Sets the wait_after of this Migration.
+ Name of a migration phase. The Job will wait after executing this
+ phase until the Resume Job endpoint is called.
+
+
+ :param wait_after: The wait_after of this Migration.
+ :type: str
+ """
+ allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
+ if not value_allowed_none_or_none_sentinel(wait_after, allowed_values):
+ wait_after = 'UNKNOWN_ENUM_VALUE'
+ self._wait_after = wait_after
+
+ @property
+ def agent_id(self):
+ """
+ Gets the agent_id of this Migration.
+ The OCID of the registered On-Prem ODMS Agent. Required for Offline Migrations.
+
+
+ :return: The agent_id of this Migration.
+ :rtype: str
+ """
+ return self._agent_id
+
+ @agent_id.setter
+ def agent_id(self, agent_id):
+ """
+ Sets the agent_id of this Migration.
+ The OCID of the registered On-Prem ODMS Agent. Required for Offline Migrations.
+
+
+ :param agent_id: The agent_id of this Migration.
+ :type: str
+ """
+ self._agent_id = agent_id
+
+ @property
+ def credentials_secret_id(self):
+ """
+ Gets the credentials_secret_id of this Migration.
+ OCID of the Secret in the OCI vault containing the Migration credentials. Used to store Golden Gate admin user credentials.
+
+
+ :return: The credentials_secret_id of this Migration.
+ :rtype: str
+ """
+ return self._credentials_secret_id
+
+ @credentials_secret_id.setter
+ def credentials_secret_id(self, credentials_secret_id):
+ """
+ Sets the credentials_secret_id of this Migration.
+ OCID of the Secret in the OCI vault containing the Migration credentials. Used to store Golden Gate admin user credentials.
+
+
+ :param credentials_secret_id: The credentials_secret_id of this Migration.
+ :type: str
+ """
+ self._credentials_secret_id = credentials_secret_id
+
+ @property
+ def source_database_connection_id(self):
+ """
+ **[Required]** Gets the source_database_connection_id of this Migration.
+ The OCID of the Source Database Connection.
+
+
+ :return: The source_database_connection_id of this Migration.
+ :rtype: str
+ """
+ return self._source_database_connection_id
+
+ @source_database_connection_id.setter
+ def source_database_connection_id(self, source_database_connection_id):
+ """
+ Sets the source_database_connection_id of this Migration.
+ The OCID of the Source Database Connection.
+
+
+ :param source_database_connection_id: The source_database_connection_id of this Migration.
+ :type: str
+ """
+ self._source_database_connection_id = source_database_connection_id
+
+ @property
+ def source_container_database_connection_id(self):
+ """
+ Gets the source_container_database_connection_id of this Migration.
+ The OCID of the Source Container Database Connection.
+
+
+ :return: The source_container_database_connection_id of this Migration.
+ :rtype: str
+ """
+ return self._source_container_database_connection_id
+
+ @source_container_database_connection_id.setter
+ def source_container_database_connection_id(self, source_container_database_connection_id):
+ """
+ Sets the source_container_database_connection_id of this Migration.
+ The OCID of the Source Container Database Connection.
+
+
+ :param source_container_database_connection_id: The source_container_database_connection_id of this Migration.
+ :type: str
+ """
+ self._source_container_database_connection_id = source_container_database_connection_id
+
+ @property
+ def target_database_connection_id(self):
+ """
+ **[Required]** Gets the target_database_connection_id of this Migration.
+ The OCID of the Target Database Connection.
+
+
+ :return: The target_database_connection_id of this Migration.
+ :rtype: str
+ """
+ return self._target_database_connection_id
+
+ @target_database_connection_id.setter
+ def target_database_connection_id(self, target_database_connection_id):
+ """
+ Sets the target_database_connection_id of this Migration.
+ The OCID of the Target Database Connection.
+
+
+ :param target_database_connection_id: The target_database_connection_id of this Migration.
+ :type: str
+ """
+ self._target_database_connection_id = target_database_connection_id
+
+ @property
+ def executing_job_id(self):
+ """
+ Gets the executing_job_id of this Migration.
+ OCID of the current ODMS Job in execution for the Migration, if any.
+
+
+ :return: The executing_job_id of this Migration.
+ :rtype: str
+ """
+ return self._executing_job_id
+
+ @executing_job_id.setter
+ def executing_job_id(self, executing_job_id):
+ """
+ Sets the executing_job_id of this Migration.
+ OCID of the current ODMS Job in execution for the Migration, if any.
+
+
+ :param executing_job_id: The executing_job_id of this Migration.
+ :type: str
+ """
+ self._executing_job_id = executing_job_id
+
+ @property
+ def data_transfer_medium_details(self):
+ """
+ Gets the data_transfer_medium_details of this Migration.
+
+ :return: The data_transfer_medium_details of this Migration.
+ :rtype: oci.database_migration.models.DataTransferMediumDetails
+ """
+ return self._data_transfer_medium_details
+
+ @data_transfer_medium_details.setter
+ def data_transfer_medium_details(self, data_transfer_medium_details):
+ """
+ Sets the data_transfer_medium_details of this Migration.
+
+ :param data_transfer_medium_details: The data_transfer_medium_details of this Migration.
+ :type: oci.database_migration.models.DataTransferMediumDetails
+ """
+ self._data_transfer_medium_details = data_transfer_medium_details
+
+ @property
+ def datapump_settings(self):
+ """
+ Gets the datapump_settings of this Migration.
+
+ :return: The datapump_settings of this Migration.
+ :rtype: oci.database_migration.models.DataPumpSettings
+ """
+ return self._datapump_settings
+
+ @datapump_settings.setter
+ def datapump_settings(self, datapump_settings):
+ """
+ Sets the datapump_settings of this Migration.
+
+ :param datapump_settings: The datapump_settings of this Migration.
+ :type: oci.database_migration.models.DataPumpSettings
+ """
+ self._datapump_settings = datapump_settings
+
+ @property
+ def exclude_objects(self):
+ """
+ Gets the exclude_objects of this Migration.
+ Database objects to exclude from migration.
+
+
+ :return: The exclude_objects of this Migration.
+ :rtype: list[oci.database_migration.models.DatabaseObject]
+ """
+ return self._exclude_objects
+
+ @exclude_objects.setter
+ def exclude_objects(self, exclude_objects):
+ """
+ Sets the exclude_objects of this Migration.
+ Database objects to exclude from migration.
+
+
+ :param exclude_objects: The exclude_objects of this Migration.
+ :type: list[oci.database_migration.models.DatabaseObject]
+ """
+ self._exclude_objects = exclude_objects
+
+ @property
+ def golden_gate_details(self):
+ """
+ Gets the golden_gate_details of this Migration.
+
+ :return: The golden_gate_details of this Migration.
+ :rtype: oci.database_migration.models.GoldenGateDetails
+ """
+ return self._golden_gate_details
+
+ @golden_gate_details.setter
+ def golden_gate_details(self, golden_gate_details):
+ """
+ Sets the golden_gate_details of this Migration.
+
+ :param golden_gate_details: The golden_gate_details of this Migration.
+ :type: oci.database_migration.models.GoldenGateDetails
+ """
+ self._golden_gate_details = golden_gate_details
+
+ @property
+ def vault_details(self):
+ """
+ Gets the vault_details of this Migration.
+
+ :return: The vault_details of this Migration.
+ :rtype: oci.database_migration.models.VaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this Migration.
+
+ :param vault_details: The vault_details of this Migration.
+ :type: oci.database_migration.models.VaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this Migration.
+ The time the Migration was created. An RFC3339 formatted datetime string.
+
+
+ :return: The time_created of this Migration.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this Migration.
+ The time the Migration was created. An RFC3339 formatted datetime string.
+
+
+ :param time_created: The time_created of this Migration.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this Migration.
+ The time of the last Migration details update. An RFC3339 formatted datetime string.
+
+
+ :return: The time_updated of this Migration.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this Migration.
+ The time of the last Migration details update. An RFC3339 formatted datetime string.
+
+
+ :param time_updated: The time_updated of this Migration.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def time_last_migration(self):
+ """
+ Gets the time_last_migration of this Migration.
+ The time of last Migration. An RFC3339 formatted datetime string.
+
+
+ :return: The time_last_migration of this Migration.
+ :rtype: datetime
+ """
+ return self._time_last_migration
+
+ @time_last_migration.setter
+ def time_last_migration(self, time_last_migration):
+ """
+ Sets the time_last_migration of this Migration.
+ The time of last Migration. An RFC3339 formatted datetime string.
+
+
+ :param time_last_migration: The time_last_migration of this Migration.
+ :type: datetime
+ """
+ self._time_last_migration = time_last_migration
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this Migration.
+ The current state of the Migration Resource.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this Migration.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this Migration.
+ The current state of the Migration Resource.
+
+
+ :param lifecycle_state: The lifecycle_state of this Migration.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this Migration.
+ Additional status related to the execution and current state of the Migration.
+
+ Allowed values for this property are: "READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_details of this Migration.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this Migration.
+ Additional status related to the execution and current state of the Migration.
+
+
+ :param lifecycle_details: The lifecycle_details of this Migration.
+ :type: str
+ """
+ allowed_values = ["READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_details, allowed_values):
+ lifecycle_details = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this Migration.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this Migration.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this Migration.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this Migration.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this Migration.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this Migration.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this Migration.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this Migration.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this Migration.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this Migration.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this Migration.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this Migration.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/migration_collection.py b/src/oci/database_migration/models/migration_collection.py
new file mode 100644
index 0000000000..ac7df043a1
--- /dev/null
+++ b/src/oci/database_migration/models/migration_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MigrationCollection(object):
+ """
+ Results of a Migration search. Contains MigrationSummary items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MigrationCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this MigrationCollection.
+ :type items: list[oci.database_migration.models.MigrationSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[MigrationSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this MigrationCollection.
+ Items in collection.
+
+
+ :return: The items of this MigrationCollection.
+ :rtype: list[oci.database_migration.models.MigrationSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this MigrationCollection.
+ Items in collection.
+
+
+ :param items: The items of this MigrationCollection.
+ :type: list[oci.database_migration.models.MigrationSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/migration_job_progress_resource.py b/src/oci/database_migration/models/migration_job_progress_resource.py
new file mode 100644
index 0000000000..1451154aac
--- /dev/null
+++ b/src/oci/database_migration/models/migration_job_progress_resource.py
@@ -0,0 +1,228 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MigrationJobProgressResource(object):
+ """
+ Progress details of a Migration Job.
+ """
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressResource.
+ #: This constant has a value of "PENDING"
+ CURRENT_STATUS_PENDING = "PENDING"
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressResource.
+ #: This constant has a value of "STARTED"
+ CURRENT_STATUS_STARTED = "STARTED"
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressResource.
+ #: This constant has a value of "COMPLETED"
+ CURRENT_STATUS_COMPLETED = "COMPLETED"
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressResource.
+ #: This constant has a value of "FAILED"
+ CURRENT_STATUS_FAILED = "FAILED"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_VALIDATE_TGT"
+ CURRENT_PHASE_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_VALIDATE_SRC"
+ CURRENT_PHASE_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_VALIDATE_GG_HUB"
+ CURRENT_PHASE_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+ CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+ CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+ CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_VALIDATE"
+ CURRENT_PHASE_ODMS_VALIDATE = "ODMS_VALIDATE"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_PREPARE"
+ CURRENT_PHASE_ODMS_PREPARE = "ODMS_PREPARE"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
+ CURRENT_PHASE_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_DATA_UPLOAD"
+ CURRENT_PHASE_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
+ CURRENT_PHASE_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_POST_INITIAL_LOAD"
+ CURRENT_PHASE_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
+ CURRENT_PHASE_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
+ CURRENT_PHASE_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_SWITCHOVER"
+ CURRENT_PHASE_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressResource.
+ #: This constant has a value of "ODMS_CLEANUP"
+ CURRENT_PHASE_ODMS_CLEANUP = "ODMS_CLEANUP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MigrationJobProgressResource object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param current_status:
+ The value to assign to the current_status property of this MigrationJobProgressResource.
+ Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type current_status: str
+
+ :param current_phase:
+ The value to assign to the current_phase property of this MigrationJobProgressResource.
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type current_phase: str
+
+ :param phases:
+ The value to assign to the phases property of this MigrationJobProgressResource.
+ :type phases: list[oci.database_migration.models.PhaseStatus]
+
+ """
+ self.swagger_types = {
+ 'current_status': 'str',
+ 'current_phase': 'str',
+ 'phases': 'list[PhaseStatus]'
+ }
+
+ self.attribute_map = {
+ 'current_status': 'currentStatus',
+ 'current_phase': 'currentPhase',
+ 'phases': 'phases'
+ }
+
+ self._current_status = None
+ self._current_phase = None
+ self._phases = None
+
+ @property
+ def current_status(self):
+ """
+ **[Required]** Gets the current_status of this MigrationJobProgressResource.
+ Current status of the job.
+
+ Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The current_status of this MigrationJobProgressResource.
+ :rtype: str
+ """
+ return self._current_status
+
+ @current_status.setter
+ def current_status(self, current_status):
+ """
+ Sets the current_status of this MigrationJobProgressResource.
+ Current status of the job.
+
+
+ :param current_status: The current_status of this MigrationJobProgressResource.
+ :type: str
+ """
+ allowed_values = ["PENDING", "STARTED", "COMPLETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(current_status, allowed_values):
+ current_status = 'UNKNOWN_ENUM_VALUE'
+ self._current_status = current_status
+
+ @property
+ def current_phase(self):
+ """
+ **[Required]** Gets the current_phase of this MigrationJobProgressResource.
+ Current phase of the job.
+
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The current_phase of this MigrationJobProgressResource.
+ :rtype: str
+ """
+ return self._current_phase
+
+ @current_phase.setter
+ def current_phase(self, current_phase):
+ """
+ Sets the current_phase of this MigrationJobProgressResource.
+ Current phase of the job.
+
+
+ :param current_phase: The current_phase of this MigrationJobProgressResource.
+ :type: str
+ """
+ allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
+ if not value_allowed_none_or_none_sentinel(current_phase, allowed_values):
+ current_phase = 'UNKNOWN_ENUM_VALUE'
+ self._current_phase = current_phase
+
+ @property
+ def phases(self):
+ """
+ **[Required]** Gets the phases of this MigrationJobProgressResource.
+ List of phase status for the job.
+
+
+ :return: The phases of this MigrationJobProgressResource.
+ :rtype: list[oci.database_migration.models.PhaseStatus]
+ """
+ return self._phases
+
+ @phases.setter
+ def phases(self, phases):
+ """
+ Sets the phases of this MigrationJobProgressResource.
+ List of phase status for the job.
+
+
+ :param phases: The phases of this MigrationJobProgressResource.
+ :type: list[oci.database_migration.models.PhaseStatus]
+ """
+ self._phases = phases
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/migration_job_progress_summary.py b/src/oci/database_migration/models/migration_job_progress_summary.py
new file mode 100644
index 0000000000..4b20077b15
--- /dev/null
+++ b/src/oci/database_migration/models/migration_job_progress_summary.py
@@ -0,0 +1,228 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MigrationJobProgressSummary(object):
+ """
+ Summary of the progress of a Migration Job.
+ """
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_VALIDATE_TGT"
+ CURRENT_PHASE_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_VALIDATE_SRC"
+ CURRENT_PHASE_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_VALIDATE_GG_HUB"
+ CURRENT_PHASE_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+ CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+ CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+ CURRENT_PHASE_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_VALIDATE"
+ CURRENT_PHASE_ODMS_VALIDATE = "ODMS_VALIDATE"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_PREPARE"
+ CURRENT_PHASE_ODMS_PREPARE = "ODMS_PREPARE"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
+ CURRENT_PHASE_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_DATA_UPLOAD"
+ CURRENT_PHASE_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
+ CURRENT_PHASE_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_POST_INITIAL_LOAD"
+ CURRENT_PHASE_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
+ CURRENT_PHASE_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
+ CURRENT_PHASE_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_SWITCHOVER"
+ CURRENT_PHASE_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
+
+ #: A constant which can be used with the current_phase property of a MigrationJobProgressSummary.
+ #: This constant has a value of "ODMS_CLEANUP"
+ CURRENT_PHASE_ODMS_CLEANUP = "ODMS_CLEANUP"
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
+ #: This constant has a value of "PENDING"
+ CURRENT_STATUS_PENDING = "PENDING"
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
+ #: This constant has a value of "STARTED"
+ CURRENT_STATUS_STARTED = "STARTED"
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
+ #: This constant has a value of "COMPLETED"
+ CURRENT_STATUS_COMPLETED = "COMPLETED"
+
+ #: A constant which can be used with the current_status property of a MigrationJobProgressSummary.
+ #: This constant has a value of "FAILED"
+ CURRENT_STATUS_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MigrationJobProgressSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param current_phase:
+ The value to assign to the current_phase property of this MigrationJobProgressSummary.
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type current_phase: str
+
+ :param current_status:
+ The value to assign to the current_status property of this MigrationJobProgressSummary.
+ Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type current_status: str
+
+ :param job_progress:
+ The value to assign to the job_progress property of this MigrationJobProgressSummary.
+ :type job_progress: int
+
+ """
+ self.swagger_types = {
+ 'current_phase': 'str',
+ 'current_status': 'str',
+ 'job_progress': 'int'
+ }
+
+ self.attribute_map = {
+ 'current_phase': 'currentPhase',
+ 'current_status': 'currentStatus',
+ 'job_progress': 'jobProgress'
+ }
+
+ self._current_phase = None
+ self._current_status = None
+ self._job_progress = None
+
+ @property
+ def current_phase(self):
+ """
+ **[Required]** Gets the current_phase of this MigrationJobProgressSummary.
+ Current phase of the job.
+
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The current_phase of this MigrationJobProgressSummary.
+ :rtype: str
+ """
+ return self._current_phase
+
+ @current_phase.setter
+ def current_phase(self, current_phase):
+ """
+ Sets the current_phase of this MigrationJobProgressSummary.
+ Current phase of the job.
+
+
+ :param current_phase: The current_phase of this MigrationJobProgressSummary.
+ :type: str
+ """
+ allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
+ if not value_allowed_none_or_none_sentinel(current_phase, allowed_values):
+ current_phase = 'UNKNOWN_ENUM_VALUE'
+ self._current_phase = current_phase
+
+ @property
+ def current_status(self):
+ """
+ **[Required]** Gets the current_status of this MigrationJobProgressSummary.
+ Current status of the job.
+
+ Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The current_status of this MigrationJobProgressSummary.
+ :rtype: str
+ """
+ return self._current_status
+
+ @current_status.setter
+ def current_status(self, current_status):
+ """
+ Sets the current_status of this MigrationJobProgressSummary.
+ Current status of the job.
+
+
+ :param current_status: The current_status of this MigrationJobProgressSummary.
+ :type: str
+ """
+ allowed_values = ["PENDING", "STARTED", "COMPLETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(current_status, allowed_values):
+ current_status = 'UNKNOWN_ENUM_VALUE'
+ self._current_status = current_status
+
+ @property
+ def job_progress(self):
+ """
+ **[Required]** Gets the job_progress of this MigrationJobProgressSummary.
+ Job progress percentage (0 - 100)
+
+
+ :return: The job_progress of this MigrationJobProgressSummary.
+ :rtype: int
+ """
+ return self._job_progress
+
+ @job_progress.setter
+ def job_progress(self, job_progress):
+ """
+ Sets the job_progress of this MigrationJobProgressSummary.
+ Job progress percentage (0 - 100)
+
+
+ :param job_progress: The job_progress of this MigrationJobProgressSummary.
+ :type: int
+ """
+ self._job_progress = job_progress
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/migration_phase_collection.py b/src/oci/database_migration/models/migration_phase_collection.py
new file mode 100644
index 0000000000..1fb98d503e
--- /dev/null
+++ b/src/oci/database_migration/models/migration_phase_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MigrationPhaseCollection(object):
+ """
+ Results of a Migration Phase search. Contains a collection of valid ODMS Job Phases.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MigrationPhaseCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this MigrationPhaseCollection.
+ :type items: list[oci.database_migration.models.MigrationPhaseSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[MigrationPhaseSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this MigrationPhaseCollection.
+ Items in collection.
+
+
+ :return: The items of this MigrationPhaseCollection.
+ :rtype: list[oci.database_migration.models.MigrationPhaseSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this MigrationPhaseCollection.
+ Items in collection.
+
+
+ :param items: The items of this MigrationPhaseCollection.
+ :type: list[oci.database_migration.models.MigrationPhaseSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/migration_phase_summary.py b/src/oci/database_migration/models/migration_phase_summary.py
new file mode 100644
index 0000000000..5f27759f40
--- /dev/null
+++ b/src/oci/database_migration/models/migration_phase_summary.py
@@ -0,0 +1,216 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MigrationPhaseSummary(object):
+ """
+ Migration Phase Summary of details.
+ """
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_VALIDATE_TGT"
+ NAME_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_VALIDATE_SRC"
+ NAME_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_VALIDATE_GG_HUB"
+ NAME_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+ NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+ NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+ NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_VALIDATE"
+ NAME_ODMS_VALIDATE = "ODMS_VALIDATE"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_PREPARE"
+ NAME_ODMS_PREPARE = "ODMS_PREPARE"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
+ NAME_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_DATA_UPLOAD"
+ NAME_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
+ NAME_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_POST_INITIAL_LOAD"
+ NAME_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
+ NAME_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
+ NAME_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_SWITCHOVER"
+ NAME_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
+
+ #: A constant which can be used with the name property of a MigrationPhaseSummary.
+ #: This constant has a value of "ODMS_CLEANUP"
+ NAME_ODMS_CLEANUP = "ODMS_CLEANUP"
+
+ #: A constant which can be used with the recommended_action property of a MigrationPhaseSummary.
+ #: This constant has a value of "WAIT"
+ RECOMMENDED_ACTION_WAIT = "WAIT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MigrationPhaseSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this MigrationPhaseSummary.
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type name: str
+
+ :param recommended_action:
+ The value to assign to the recommended_action property of this MigrationPhaseSummary.
+ Allowed values for this property are: "WAIT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type recommended_action: str
+
+ :param supported_actions:
+ The value to assign to the supported_actions property of this MigrationPhaseSummary.
+ :type supported_actions: list[oci.database_migration.models.OdmsPhaseActions]
+
+ """
+ self.swagger_types = {
+ 'name': 'str',
+ 'recommended_action': 'str',
+ 'supported_actions': 'list[OdmsPhaseActions]'
+ }
+
+ self.attribute_map = {
+ 'name': 'name',
+ 'recommended_action': 'recommendedAction',
+ 'supported_actions': 'supportedActions'
+ }
+
+ self._name = None
+ self._recommended_action = None
+ self._supported_actions = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this MigrationPhaseSummary.
+ ODMS Job phase name
+
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The name of this MigrationPhaseSummary.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this MigrationPhaseSummary.
+ ODMS Job phase name
+
+
+ :param name: The name of this MigrationPhaseSummary.
+ :type: str
+ """
+ allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
+ if not value_allowed_none_or_none_sentinel(name, allowed_values):
+ name = 'UNKNOWN_ENUM_VALUE'
+ self._name = name
+
+ @property
+ def recommended_action(self):
+ """
+ Gets the recommended_action of this MigrationPhaseSummary.
+ Action recommended for this phase. If not included in the response, there is no recommended action for the phase.
+
+ Allowed values for this property are: "WAIT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The recommended_action of this MigrationPhaseSummary.
+ :rtype: str
+ """
+ return self._recommended_action
+
+ @recommended_action.setter
+ def recommended_action(self, recommended_action):
+ """
+ Sets the recommended_action of this MigrationPhaseSummary.
+ Action recommended for this phase. If not included in the response, there is no recommended action for the phase.
+
+
+ :param recommended_action: The recommended_action of this MigrationPhaseSummary.
+ :type: str
+ """
+ allowed_values = ["WAIT"]
+ if not value_allowed_none_or_none_sentinel(recommended_action, allowed_values):
+ recommended_action = 'UNKNOWN_ENUM_VALUE'
+ self._recommended_action = recommended_action
+
+ @property
+ def supported_actions(self):
+ """
+ **[Required]** Gets the supported_actions of this MigrationPhaseSummary.
+ Array of actions for the corresponding phase. Empty array would indicate there is no supported action for the phase.
+
+
+ :return: The supported_actions of this MigrationPhaseSummary.
+ :rtype: list[oci.database_migration.models.OdmsPhaseActions]
+ """
+ return self._supported_actions
+
+ @supported_actions.setter
+ def supported_actions(self, supported_actions):
+ """
+ Sets the supported_actions of this MigrationPhaseSummary.
+ Array of actions for the corresponding phase. Empty array would indicate there is no supported action for the phase.
+
+
+ :param supported_actions: The supported_actions of this MigrationPhaseSummary.
+ :type: list[oci.database_migration.models.OdmsPhaseActions]
+ """
+ self._supported_actions = supported_actions
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/migration_summary.py b/src/oci/database_migration/models/migration_summary.py
new file mode 100644
index 0000000000..eefbf447c2
--- /dev/null
+++ b/src/oci/database_migration/models/migration_summary.py
@@ -0,0 +1,687 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MigrationSummary(object):
+ """
+ Migration resource
+ """
+
+ #: A constant which can be used with the type property of a MigrationSummary.
+ #: This constant has a value of "ONLINE"
+ TYPE_ONLINE = "ONLINE"
+
+ #: A constant which can be used with the type property of a MigrationSummary.
+ #: This constant has a value of "OFFLINE"
+ TYPE_OFFLINE = "OFFLINE"
+
+ #: A constant which can be used with the lifecycle_state property of a MigrationSummary.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a MigrationSummary.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a MigrationSummary.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a MigrationSummary.
+ #: This constant has a value of "INACTIVE"
+ LIFECYCLE_STATE_INACTIVE = "INACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a MigrationSummary.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a MigrationSummary.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a MigrationSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ #: A constant which can be used with the lifecycle_details property of a MigrationSummary.
+ #: This constant has a value of "READY"
+ LIFECYCLE_DETAILS_READY = "READY"
+
+ #: A constant which can be used with the lifecycle_details property of a MigrationSummary.
+ #: This constant has a value of "ABORTING"
+ LIFECYCLE_DETAILS_ABORTING = "ABORTING"
+
+ #: A constant which can be used with the lifecycle_details property of a MigrationSummary.
+ #: This constant has a value of "VALIDATING"
+ LIFECYCLE_DETAILS_VALIDATING = "VALIDATING"
+
+ #: A constant which can be used with the lifecycle_details property of a MigrationSummary.
+ #: This constant has a value of "VALIDATED"
+ LIFECYCLE_DETAILS_VALIDATED = "VALIDATED"
+
+ #: A constant which can be used with the lifecycle_details property of a MigrationSummary.
+ #: This constant has a value of "WAITING"
+ LIFECYCLE_DETAILS_WAITING = "WAITING"
+
+ #: A constant which can be used with the lifecycle_details property of a MigrationSummary.
+ #: This constant has a value of "MIGRATING"
+ LIFECYCLE_DETAILS_MIGRATING = "MIGRATING"
+
+ #: A constant which can be used with the lifecycle_details property of a MigrationSummary.
+ #: This constant has a value of "DONE"
+ LIFECYCLE_DETAILS_DONE = "DONE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MigrationSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this MigrationSummary.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this MigrationSummary.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this MigrationSummary.
+ :type compartment_id: str
+
+ :param type:
+ The value to assign to the type property of this MigrationSummary.
+ Allowed values for this property are: "ONLINE", "OFFLINE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param source_database_connection_id:
+ The value to assign to the source_database_connection_id property of this MigrationSummary.
+ :type source_database_connection_id: str
+
+ :param source_container_database_connection_id:
+ The value to assign to the source_container_database_connection_id property of this MigrationSummary.
+ :type source_container_database_connection_id: str
+
+ :param target_database_connection_id:
+ The value to assign to the target_database_connection_id property of this MigrationSummary.
+ :type target_database_connection_id: str
+
+ :param executing_job_id:
+ The value to assign to the executing_job_id property of this MigrationSummary.
+ :type executing_job_id: str
+
+ :param agent_id:
+ The value to assign to the agent_id property of this MigrationSummary.
+ :type agent_id: str
+
+ :param vault_details:
+ The value to assign to the vault_details property of this MigrationSummary.
+ :type vault_details: oci.database_migration.models.VaultDetails
+
+ :param time_created:
+ The value to assign to the time_created property of this MigrationSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this MigrationSummary.
+ :type time_updated: datetime
+
+ :param time_last_migration:
+ The value to assign to the time_last_migration property of this MigrationSummary.
+ :type time_last_migration: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this MigrationSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this MigrationSummary.
+ Allowed values for this property are: "READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_details: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this MigrationSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this MigrationSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this MigrationSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'type': 'str',
+ 'source_database_connection_id': 'str',
+ 'source_container_database_connection_id': 'str',
+ 'target_database_connection_id': 'str',
+ 'executing_job_id': 'str',
+ 'agent_id': 'str',
+ 'vault_details': 'VaultDetails',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'time_last_migration': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'type': 'type',
+ 'source_database_connection_id': 'sourceDatabaseConnectionId',
+ 'source_container_database_connection_id': 'sourceContainerDatabaseConnectionId',
+ 'target_database_connection_id': 'targetDatabaseConnectionId',
+ 'executing_job_id': 'executingJobId',
+ 'agent_id': 'agentId',
+ 'vault_details': 'vaultDetails',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'time_last_migration': 'timeLastMigration',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._compartment_id = None
+ self._type = None
+ self._source_database_connection_id = None
+ self._source_container_database_connection_id = None
+ self._target_database_connection_id = None
+ self._executing_job_id = None
+ self._agent_id = None
+ self._vault_details = None
+ self._time_created = None
+ self._time_updated = None
+ self._time_last_migration = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this MigrationSummary.
+ The OCID of the resource
+
+
+ :return: The id of this MigrationSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this MigrationSummary.
+ The OCID of the resource
+
+
+ :param id: The id of this MigrationSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this MigrationSummary.
+ Migration Display Name
+
+
+ :return: The display_name of this MigrationSummary.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this MigrationSummary.
+ Migration Display Name
+
+
+ :param display_name: The display_name of this MigrationSummary.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this MigrationSummary.
+ OCID of the compartment
+
+
+ :return: The compartment_id of this MigrationSummary.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this MigrationSummary.
+ OCID of the compartment
+
+
+ :param compartment_id: The compartment_id of this MigrationSummary.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this MigrationSummary.
+ Migration type.
+
+ Allowed values for this property are: "ONLINE", "OFFLINE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this MigrationSummary.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this MigrationSummary.
+ Migration type.
+
+
+ :param type: The type of this MigrationSummary.
+ :type: str
+ """
+ allowed_values = ["ONLINE", "OFFLINE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def source_database_connection_id(self):
+ """
+ **[Required]** Gets the source_database_connection_id of this MigrationSummary.
+ The OCID of the Source Database Connection.
+
+
+ :return: The source_database_connection_id of this MigrationSummary.
+ :rtype: str
+ """
+ return self._source_database_connection_id
+
+ @source_database_connection_id.setter
+ def source_database_connection_id(self, source_database_connection_id):
+ """
+ Sets the source_database_connection_id of this MigrationSummary.
+ The OCID of the Source Database Connection.
+
+
+ :param source_database_connection_id: The source_database_connection_id of this MigrationSummary.
+ :type: str
+ """
+ self._source_database_connection_id = source_database_connection_id
+
+ @property
+ def source_container_database_connection_id(self):
+ """
+ Gets the source_container_database_connection_id of this MigrationSummary.
+ The OCID of the Source Container Database Connection.
+
+
+ :return: The source_container_database_connection_id of this MigrationSummary.
+ :rtype: str
+ """
+ return self._source_container_database_connection_id
+
+ @source_container_database_connection_id.setter
+ def source_container_database_connection_id(self, source_container_database_connection_id):
+ """
+ Sets the source_container_database_connection_id of this MigrationSummary.
+ The OCID of the Source Container Database Connection.
+
+
+ :param source_container_database_connection_id: The source_container_database_connection_id of this MigrationSummary.
+ :type: str
+ """
+ self._source_container_database_connection_id = source_container_database_connection_id
+
+ @property
+ def target_database_connection_id(self):
+ """
+ **[Required]** Gets the target_database_connection_id of this MigrationSummary.
+ The OCID of the Target Database Connection.
+
+
+ :return: The target_database_connection_id of this MigrationSummary.
+ :rtype: str
+ """
+ return self._target_database_connection_id
+
+ @target_database_connection_id.setter
+ def target_database_connection_id(self, target_database_connection_id):
+ """
+ Sets the target_database_connection_id of this MigrationSummary.
+ The OCID of the Target Database Connection.
+
+
+ :param target_database_connection_id: The target_database_connection_id of this MigrationSummary.
+ :type: str
+ """
+ self._target_database_connection_id = target_database_connection_id
+
+ @property
+ def executing_job_id(self):
+ """
+ Gets the executing_job_id of this MigrationSummary.
+ OCID of the current ODMS Job in execution for the Migration, if any.
+
+
+ :return: The executing_job_id of this MigrationSummary.
+ :rtype: str
+ """
+ return self._executing_job_id
+
+ @executing_job_id.setter
+ def executing_job_id(self, executing_job_id):
+ """
+ Sets the executing_job_id of this MigrationSummary.
+ OCID of the current ODMS Job in execution for the Migration, if any.
+
+
+ :param executing_job_id: The executing_job_id of this MigrationSummary.
+ :type: str
+ """
+ self._executing_job_id = executing_job_id
+
+ @property
+ def agent_id(self):
+ """
+ Gets the agent_id of this MigrationSummary.
+ The OCID of the registered On-Prem ODMS Agent. Required for Offline Migrations.
+
+
+ :return: The agent_id of this MigrationSummary.
+ :rtype: str
+ """
+ return self._agent_id
+
+ @agent_id.setter
+ def agent_id(self, agent_id):
+ """
+ Sets the agent_id of this MigrationSummary.
+ The OCID of the registered On-Prem ODMS Agent. Required for Offline Migrations.
+
+
+ :param agent_id: The agent_id of this MigrationSummary.
+ :type: str
+ """
+ self._agent_id = agent_id
+
+ @property
+ def vault_details(self):
+ """
+ Gets the vault_details of this MigrationSummary.
+
+ :return: The vault_details of this MigrationSummary.
+ :rtype: oci.database_migration.models.VaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this MigrationSummary.
+
+ :param vault_details: The vault_details of this MigrationSummary.
+ :type: oci.database_migration.models.VaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this MigrationSummary.
+ The time the Migration was created. An RFC3339 formatted datetime string.
+
+
+ :return: The time_created of this MigrationSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this MigrationSummary.
+ The time the Migration was created. An RFC3339 formatted datetime string.
+
+
+ :param time_created: The time_created of this MigrationSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this MigrationSummary.
+ The time of the last Migration details update. An RFC3339 formatted datetime string.
+
+
+ :return: The time_updated of this MigrationSummary.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this MigrationSummary.
+ The time of the last Migration details update. An RFC3339 formatted datetime string.
+
+
+ :param time_updated: The time_updated of this MigrationSummary.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def time_last_migration(self):
+ """
+ Gets the time_last_migration of this MigrationSummary.
+ The time of last Migration. An RFC3339 formatted datetime string.
+
+
+ :return: The time_last_migration of this MigrationSummary.
+ :rtype: datetime
+ """
+ return self._time_last_migration
+
+ @time_last_migration.setter
+ def time_last_migration(self, time_last_migration):
+ """
+ Sets the time_last_migration of this MigrationSummary.
+ The time of last Migration. An RFC3339 formatted datetime string.
+
+
+ :param time_last_migration: The time_last_migration of this MigrationSummary.
+ :type: datetime
+ """
+ self._time_last_migration = time_last_migration
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this MigrationSummary.
+ The current state of the Migration.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this MigrationSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this MigrationSummary.
+ The current state of the Migration.
+
+
+ :param lifecycle_state: The lifecycle_state of this MigrationSummary.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this MigrationSummary.
+ Additional status related to the execution and current state of the Migration.
+
+ Allowed values for this property are: "READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_details of this MigrationSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this MigrationSummary.
+ Additional status related to the execution and current state of the Migration.
+
+
+ :param lifecycle_details: The lifecycle_details of this MigrationSummary.
+ :type: str
+ """
+ allowed_values = ["READY", "ABORTING", "VALIDATING", "VALIDATED", "WAITING", "MIGRATING", "DONE"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_details, allowed_values):
+ lifecycle_details = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this MigrationSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this MigrationSummary.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this MigrationSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this MigrationSummary.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this MigrationSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this MigrationSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this MigrationSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this MigrationSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this MigrationSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this MigrationSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this MigrationSummary.
+ Usage of system tag keys. These predefined keys are scoped to namespaces.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this MigrationSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/object_store_bucket.py b/src/oci/database_migration/models/object_store_bucket.py
new file mode 100644
index 0000000000..d0cbe2b19c
--- /dev/null
+++ b/src/oci/database_migration/models/object_store_bucket.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ObjectStoreBucket(object):
+ """
+ In lieu of a network database link, OCI Object Storage bucket will be used to store Datapump dump files for the migration.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ObjectStoreBucket object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param namespace_name:
+ The value to assign to the namespace_name property of this ObjectStoreBucket.
+ :type namespace_name: str
+
+ :param bucket_name:
+ The value to assign to the bucket_name property of this ObjectStoreBucket.
+ :type bucket_name: str
+
+ """
+ self.swagger_types = {
+ 'namespace_name': 'str',
+ 'bucket_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'namespace_name': 'namespaceName',
+ 'bucket_name': 'bucketName'
+ }
+
+ self._namespace_name = None
+ self._bucket_name = None
+
+ @property
+ def namespace_name(self):
+ """
+ **[Required]** Gets the namespace_name of this ObjectStoreBucket.
+ Namespace name of the object store bucket.
+
+
+ :return: The namespace_name of this ObjectStoreBucket.
+ :rtype: str
+ """
+ return self._namespace_name
+
+ @namespace_name.setter
+ def namespace_name(self, namespace_name):
+ """
+ Sets the namespace_name of this ObjectStoreBucket.
+ Namespace name of the object store bucket.
+
+
+ :param namespace_name: The namespace_name of this ObjectStoreBucket.
+ :type: str
+ """
+ self._namespace_name = namespace_name
+
+ @property
+ def bucket_name(self):
+ """
+ **[Required]** Gets the bucket_name of this ObjectStoreBucket.
+ Bucket name.
+
+
+ :return: The bucket_name of this ObjectStoreBucket.
+ :rtype: str
+ """
+ return self._bucket_name
+
+ @bucket_name.setter
+ def bucket_name(self, bucket_name):
+ """
+ Sets the bucket_name of this ObjectStoreBucket.
+ Bucket name.
+
+
+ :param bucket_name: The bucket_name of this ObjectStoreBucket.
+ :type: str
+ """
+ self._bucket_name = bucket_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/par_link.py b/src/oci/database_migration/models/par_link.py
new file mode 100644
index 0000000000..f34ed91556
--- /dev/null
+++ b/src/oci/database_migration/models/par_link.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ParLink(object):
+ """
+ Pre-Authenticated Request Link for ODMS Agent log use.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ParLink object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param par_link:
+ The value to assign to the par_link property of this ParLink.
+ :type par_link: str
+
+ """
+ self.swagger_types = {
+ 'par_link': 'str'
+ }
+
+ self.attribute_map = {
+ 'par_link': 'parLink'
+ }
+
+ self._par_link = None
+
+ @property
+ def par_link(self):
+ """
+ **[Required]** Gets the par_link of this ParLink.
+ Pre-Authenticated Request URI.
+
+
+ :return: The par_link of this ParLink.
+ :rtype: str
+ """
+ return self._par_link
+
+ @par_link.setter
+ def par_link(self, par_link):
+ """
+ Sets the par_link of this ParLink.
+ Pre-Authenticated Request URI.
+
+
+ :param par_link: The par_link of this ParLink.
+ :type: str
+ """
+ self._par_link = par_link
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/phase_status.py b/src/oci/database_migration/models/phase_status.py
new file mode 100644
index 0000000000..94d72eaeca
--- /dev/null
+++ b/src/oci/database_migration/models/phase_status.py
@@ -0,0 +1,259 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class PhaseStatus(object):
+ """
+ Job phase status details.
+ """
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_VALIDATE_TGT"
+ NAME_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_VALIDATE_SRC"
+ NAME_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_VALIDATE_GG_HUB"
+ NAME_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+ NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+ NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+ NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_VALIDATE"
+ NAME_ODMS_VALIDATE = "ODMS_VALIDATE"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_PREPARE"
+ NAME_ODMS_PREPARE = "ODMS_PREPARE"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
+ NAME_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_DATA_UPLOAD"
+ NAME_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
+ NAME_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_POST_INITIAL_LOAD"
+ NAME_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
+ NAME_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
+ NAME_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_SWITCHOVER"
+ NAME_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
+
+ #: A constant which can be used with the name property of a PhaseStatus.
+ #: This constant has a value of "ODMS_CLEANUP"
+ NAME_ODMS_CLEANUP = "ODMS_CLEANUP"
+
+ #: A constant which can be used with the status property of a PhaseStatus.
+ #: This constant has a value of "PENDING"
+ STATUS_PENDING = "PENDING"
+
+ #: A constant which can be used with the status property of a PhaseStatus.
+ #: This constant has a value of "STARTED"
+ STATUS_STARTED = "STARTED"
+
+ #: A constant which can be used with the status property of a PhaseStatus.
+ #: This constant has a value of "COMPLETED"
+ STATUS_COMPLETED = "COMPLETED"
+
+ #: A constant which can be used with the status property of a PhaseStatus.
+ #: This constant has a value of "FAILED"
+ STATUS_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PhaseStatus object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this PhaseStatus.
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type name: str
+
+ :param status:
+ The value to assign to the status property of this PhaseStatus.
+ Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param duration_in_ms:
+ The value to assign to the duration_in_ms property of this PhaseStatus.
+ :type duration_in_ms: int
+
+ :param progress:
+ The value to assign to the progress property of this PhaseStatus.
+ :type progress: int
+
+ """
+ self.swagger_types = {
+ 'name': 'str',
+ 'status': 'str',
+ 'duration_in_ms': 'int',
+ 'progress': 'int'
+ }
+
+ self.attribute_map = {
+ 'name': 'name',
+ 'status': 'status',
+ 'duration_in_ms': 'durationInMs',
+ 'progress': 'progress'
+ }
+
+ self._name = None
+ self._status = None
+ self._duration_in_ms = None
+ self._progress = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this PhaseStatus.
+ Phase name
+
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The name of this PhaseStatus.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this PhaseStatus.
+ Phase name
+
+
+ :param name: The name of this PhaseStatus.
+ :type: str
+ """
+ allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
+ if not value_allowed_none_or_none_sentinel(name, allowed_values):
+ name = 'UNKNOWN_ENUM_VALUE'
+ self._name = name
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this PhaseStatus.
+ Phase status
+
+ Allowed values for this property are: "PENDING", "STARTED", "COMPLETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this PhaseStatus.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this PhaseStatus.
+ Phase status
+
+
+ :param status: The status of this PhaseStatus.
+ :type: str
+ """
+ allowed_values = ["PENDING", "STARTED", "COMPLETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def duration_in_ms(self):
+ """
+ **[Required]** Gets the duration_in_ms of this PhaseStatus.
+ Duration of the phase in milliseconds
+
+
+ :return: The duration_in_ms of this PhaseStatus.
+ :rtype: int
+ """
+ return self._duration_in_ms
+
+ @duration_in_ms.setter
+ def duration_in_ms(self, duration_in_ms):
+ """
+ Sets the duration_in_ms of this PhaseStatus.
+ Duration of the phase in milliseconds
+
+
+ :param duration_in_ms: The duration_in_ms of this PhaseStatus.
+ :type: int
+ """
+ self._duration_in_ms = duration_in_ms
+
+ @property
+ def progress(self):
+ """
+ Gets the progress of this PhaseStatus.
+ Percent progress of job phase.
+
+
+ :return: The progress of this PhaseStatus.
+ :rtype: int
+ """
+ return self._progress
+
+ @progress.setter
+ def progress(self, progress):
+ """
+ Sets the progress of this PhaseStatus.
+ Percent progress of job phase.
+
+
+ :param progress: The progress of this PhaseStatus.
+ :type: int
+ """
+ self._progress = progress
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/private_endpoint_details.py b/src/oci/database_migration/models/private_endpoint_details.py
new file mode 100644
index 0000000000..9b743280fe
--- /dev/null
+++ b/src/oci/database_migration/models/private_endpoint_details.py
@@ -0,0 +1,183 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class PrivateEndpointDetails(object):
+ """
+ OCI Private Endpoint configuration details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PrivateEndpointDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this PrivateEndpointDetails.
+ :type compartment_id: str
+
+ :param vcn_id:
+ The value to assign to the vcn_id property of this PrivateEndpointDetails.
+ :type vcn_id: str
+
+ :param subnet_id:
+ The value to assign to the subnet_id property of this PrivateEndpointDetails.
+ :type subnet_id: str
+
+ :param id:
+ The value to assign to the id property of this PrivateEndpointDetails.
+ :type id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'vcn_id': 'str',
+ 'subnet_id': 'str',
+ 'id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'vcn_id': 'vcnId',
+ 'subnet_id': 'subnetId',
+ 'id': 'id'
+ }
+
+ self._compartment_id = None
+ self._vcn_id = None
+ self._subnet_id = None
+ self._id = None
+
+ @property
+ def compartment_id(self):
+ """
+ Gets the compartment_id of this PrivateEndpointDetails.
+ The `OCID`__ of the compartment to contain the
+ private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this PrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this PrivateEndpointDetails.
+ The `OCID`__ of the compartment to contain the
+ private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this PrivateEndpointDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vcn_id(self):
+ """
+ Gets the vcn_id of this PrivateEndpointDetails.
+ The `OCID`__ of the VCN where the Private Endpoint will be bound to.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The vcn_id of this PrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._vcn_id
+
+ @vcn_id.setter
+ def vcn_id(self, vcn_id):
+ """
+ Sets the vcn_id of this PrivateEndpointDetails.
+ The `OCID`__ of the VCN where the Private Endpoint will be bound to.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param vcn_id: The vcn_id of this PrivateEndpointDetails.
+ :type: str
+ """
+ self._vcn_id = vcn_id
+
+ @property
+ def subnet_id(self):
+ """
+ Gets the subnet_id of this PrivateEndpointDetails.
+ The `OCID`__ of the customer's
+ subnet where the private endpoint VNIC will reside.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The subnet_id of this PrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._subnet_id
+
+ @subnet_id.setter
+ def subnet_id(self, subnet_id):
+ """
+ Sets the subnet_id of this PrivateEndpointDetails.
+ The `OCID`__ of the customer's
+ subnet where the private endpoint VNIC will reside.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param subnet_id: The subnet_id of this PrivateEndpointDetails.
+ :type: str
+ """
+ self._subnet_id = subnet_id
+
+ @property
+ def id(self):
+ """
+ Gets the id of this PrivateEndpointDetails.
+ `OCID`__ of a previously created Private Endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this PrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this PrivateEndpointDetails.
+ `OCID`__ of a previously created Private Endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this PrivateEndpointDetails.
+ :type: str
+ """
+ self._id = id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/replicat.py b/src/oci/database_migration/models/replicat.py
new file mode 100644
index 0000000000..4cdba63802
--- /dev/null
+++ b/src/oci/database_migration/models/replicat.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class Replicat(object):
+ """
+ Parameters for Replicat processes.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Replicat object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param map_parallelism:
+ The value to assign to the map_parallelism property of this Replicat.
+ :type map_parallelism: int
+
+ :param min_apply_parallelism:
+ The value to assign to the min_apply_parallelism property of this Replicat.
+ :type min_apply_parallelism: int
+
+ :param max_apply_parallelism:
+ The value to assign to the max_apply_parallelism property of this Replicat.
+ :type max_apply_parallelism: int
+
+ """
+ self.swagger_types = {
+ 'map_parallelism': 'int',
+ 'min_apply_parallelism': 'int',
+ 'max_apply_parallelism': 'int'
+ }
+
+ self.attribute_map = {
+ 'map_parallelism': 'mapParallelism',
+ 'min_apply_parallelism': 'minApplyParallelism',
+ 'max_apply_parallelism': 'maxApplyParallelism'
+ }
+
+ self._map_parallelism = None
+ self._min_apply_parallelism = None
+ self._max_apply_parallelism = None
+
+ @property
+ def map_parallelism(self):
+ """
+ Gets the map_parallelism of this Replicat.
+ Number of threads used to read trail files (valid for Parallel Replicat)
+
+
+ :return: The map_parallelism of this Replicat.
+ :rtype: int
+ """
+ return self._map_parallelism
+
+ @map_parallelism.setter
+ def map_parallelism(self, map_parallelism):
+ """
+ Sets the map_parallelism of this Replicat.
+ Number of threads used to read trail files (valid for Parallel Replicat)
+
+
+ :param map_parallelism: The map_parallelism of this Replicat.
+ :type: int
+ """
+ self._map_parallelism = map_parallelism
+
+ @property
+ def min_apply_parallelism(self):
+ """
+ Gets the min_apply_parallelism of this Replicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :return: The min_apply_parallelism of this Replicat.
+ :rtype: int
+ """
+ return self._min_apply_parallelism
+
+ @min_apply_parallelism.setter
+ def min_apply_parallelism(self, min_apply_parallelism):
+ """
+ Sets the min_apply_parallelism of this Replicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :param min_apply_parallelism: The min_apply_parallelism of this Replicat.
+ :type: int
+ """
+ self._min_apply_parallelism = min_apply_parallelism
+
+ @property
+ def max_apply_parallelism(self):
+ """
+ Gets the max_apply_parallelism of this Replicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :return: The max_apply_parallelism of this Replicat.
+ :rtype: int
+ """
+ return self._max_apply_parallelism
+
+ @max_apply_parallelism.setter
+ def max_apply_parallelism(self, max_apply_parallelism):
+ """
+ Sets the max_apply_parallelism of this Replicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :param max_apply_parallelism: The max_apply_parallelism of this Replicat.
+ :type: int
+ """
+ self._max_apply_parallelism = max_apply_parallelism
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/resume_job_details.py b/src/oci/database_migration/models/resume_job_details.py
new file mode 100644
index 0000000000..5734fa072a
--- /dev/null
+++ b/src/oci/database_migration/models/resume_job_details.py
@@ -0,0 +1,145 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ResumeJobDetails(object):
+ """
+ Parameters to specify to resume a Migration Job.
+ """
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_VALIDATE_TGT"
+ WAIT_AFTER_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_VALIDATE_SRC"
+ WAIT_AFTER_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_VALIDATE_GG_HUB"
+ WAIT_AFTER_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_VALIDATE"
+ WAIT_AFTER_ODMS_VALIDATE = "ODMS_VALIDATE"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_PREPARE"
+ WAIT_AFTER_ODMS_PREPARE = "ODMS_PREPARE"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
+ WAIT_AFTER_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_DATA_UPLOAD"
+ WAIT_AFTER_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
+ WAIT_AFTER_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_POST_INITIAL_LOAD"
+ WAIT_AFTER_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
+ WAIT_AFTER_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
+ WAIT_AFTER_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_SWITCHOVER"
+ WAIT_AFTER_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
+
+ #: A constant which can be used with the wait_after property of a ResumeJobDetails.
+ #: This constant has a value of "ODMS_CLEANUP"
+ WAIT_AFTER_ODMS_CLEANUP = "ODMS_CLEANUP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ResumeJobDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param wait_after:
+ The value to assign to the wait_after property of this ResumeJobDetails.
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"
+ :type wait_after: str
+
+ """
+ self.swagger_types = {
+ 'wait_after': 'str'
+ }
+
+ self.attribute_map = {
+ 'wait_after': 'waitAfter'
+ }
+
+ self._wait_after = None
+
+ @property
+ def wait_after(self):
+ """
+ Gets the wait_after of this ResumeJobDetails.
+ Name of a migration phase. The Job will wait after executing this
+ phase until Resume Job endpoint is called again.
+
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"
+
+
+ :return: The wait_after of this ResumeJobDetails.
+ :rtype: str
+ """
+ return self._wait_after
+
+ @wait_after.setter
+ def wait_after(self, wait_after):
+ """
+ Sets the wait_after of this ResumeJobDetails.
+ Name of a migration phase. The Job will wait after executing this
+ phase until Resume Job endpoint is called again.
+
+
+ :param wait_after: The wait_after of this ResumeJobDetails.
+ :type: str
+ """
+ allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
+ if not value_allowed_none_or_none_sentinel(wait_after, allowed_values):
+ raise ValueError(
+ "Invalid value for `wait_after`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._wait_after = wait_after
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/ssh_details.py b/src/oci/database_migration/models/ssh_details.py
new file mode 100644
index 0000000000..708f689fe9
--- /dev/null
+++ b/src/oci/database_migration/models/ssh_details.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SshDetails(object):
+ """
+ Details of the ssh key that will be used.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SshDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host:
+ The value to assign to the host property of this SshDetails.
+ :type host: str
+
+ :param user:
+ The value to assign to the user property of this SshDetails.
+ :type user: str
+
+ :param sudo_location:
+ The value to assign to the sudo_location property of this SshDetails.
+ :type sudo_location: str
+
+ """
+ self.swagger_types = {
+ 'host': 'str',
+ 'user': 'str',
+ 'sudo_location': 'str'
+ }
+
+ self.attribute_map = {
+ 'host': 'host',
+ 'user': 'user',
+ 'sudo_location': 'sudoLocation'
+ }
+
+ self._host = None
+ self._user = None
+ self._sudo_location = None
+
+ @property
+ def host(self):
+ """
+ **[Required]** Gets the host of this SshDetails.
+ Name of the host the sshkey is valid for.
+
+
+ :return: The host of this SshDetails.
+ :rtype: str
+ """
+ return self._host
+
+ @host.setter
+ def host(self, host):
+ """
+ Sets the host of this SshDetails.
+ Name of the host the sshkey is valid for.
+
+
+ :param host: The host of this SshDetails.
+ :type: str
+ """
+ self._host = host
+
+ @property
+ def user(self):
+ """
+ **[Required]** Gets the user of this SshDetails.
+ SSH user
+
+
+ :return: The user of this SshDetails.
+ :rtype: str
+ """
+ return self._user
+
+ @user.setter
+ def user(self, user):
+ """
+ Sets the user of this SshDetails.
+ SSH user
+
+
+ :param user: The user of this SshDetails.
+ :type: str
+ """
+ self._user = user
+
+ @property
+ def sudo_location(self):
+ """
+ **[Required]** Gets the sudo_location of this SshDetails.
+ Sudo location
+
+
+ :return: The sudo_location of this SshDetails.
+ :rtype: str
+ """
+ return self._sudo_location
+
+ @sudo_location.setter
+ def sudo_location(self, sudo_location):
+ """
+ Sets the sudo_location of this SshDetails.
+ Sudo location
+
+
+ :param sudo_location: The sudo_location of this SshDetails.
+ :type: str
+ """
+ self._sudo_location = sudo_location
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/start_migration_details.py b/src/oci/database_migration/models/start_migration_details.py
new file mode 100644
index 0000000000..75e16f51cf
--- /dev/null
+++ b/src/oci/database_migration/models/start_migration_details.py
@@ -0,0 +1,145 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class StartMigrationDetails(object):
+ """
+ Parameters to specify to a Migration job operation.
+ """
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_VALIDATE_TGT"
+ WAIT_AFTER_ODMS_VALIDATE_TGT = "ODMS_VALIDATE_TGT"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_VALIDATE_SRC"
+ WAIT_AFTER_ODMS_VALIDATE_SRC = "ODMS_VALIDATE_SRC"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_VALIDATE_GG_HUB"
+ WAIT_AFTER_ODMS_VALIDATE_GG_HUB = "ODMS_VALIDATE_GG_HUB"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS = "ODMS_VALIDATE_DATAPUMP_SETTINGS"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+ WAIT_AFTER_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_VALIDATE"
+ WAIT_AFTER_ODMS_VALIDATE = "ODMS_VALIDATE"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_PREPARE"
+ WAIT_AFTER_ODMS_PREPARE = "ODMS_PREPARE"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_EXPORT"
+ WAIT_AFTER_ODMS_INITIAL_LOAD_EXPORT = "ODMS_INITIAL_LOAD_EXPORT"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_DATA_UPLOAD"
+ WAIT_AFTER_ODMS_DATA_UPLOAD = "ODMS_DATA_UPLOAD"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_INITIAL_LOAD_IMPORT"
+ WAIT_AFTER_ODMS_INITIAL_LOAD_IMPORT = "ODMS_INITIAL_LOAD_IMPORT"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_POST_INITIAL_LOAD"
+ WAIT_AFTER_ODMS_POST_INITIAL_LOAD = "ODMS_POST_INITIAL_LOAD"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_PREPARE_REPLICATION_TARGET"
+ WAIT_AFTER_ODMS_PREPARE_REPLICATION_TARGET = "ODMS_PREPARE_REPLICATION_TARGET"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_MONITOR_REPLICATION_LAG"
+ WAIT_AFTER_ODMS_MONITOR_REPLICATION_LAG = "ODMS_MONITOR_REPLICATION_LAG"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_SWITCHOVER"
+ WAIT_AFTER_ODMS_SWITCHOVER = "ODMS_SWITCHOVER"
+
+ #: A constant which can be used with the wait_after property of a StartMigrationDetails.
+ #: This constant has a value of "ODMS_CLEANUP"
+ WAIT_AFTER_ODMS_CLEANUP = "ODMS_CLEANUP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new StartMigrationDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param wait_after:
+ The value to assign to the wait_after property of this StartMigrationDetails.
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"
+ :type wait_after: str
+
+ """
+ self.swagger_types = {
+ 'wait_after': 'str'
+ }
+
+ self.attribute_map = {
+ 'wait_after': 'waitAfter'
+ }
+
+ self._wait_after = None
+
+ @property
+ def wait_after(self):
+ """
+ Gets the wait_after of this StartMigrationDetails.
+ Name of a migration phase. The Job will wait after executing this
+ phase until the Resume Job endpoint is called.
+
+ Allowed values for this property are: "ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"
+
+
+ :return: The wait_after of this StartMigrationDetails.
+ :rtype: str
+ """
+ return self._wait_after
+
+ @wait_after.setter
+ def wait_after(self, wait_after):
+ """
+ Sets the wait_after of this StartMigrationDetails.
+ Name of a migration phase. The Job will wait after executing this
+ phase until the Resume Job endpoint is called.
+
+
+ :param wait_after: The wait_after of this StartMigrationDetails.
+ :type: str
+ """
+ allowed_values = ["ODMS_VALIDATE_TGT", "ODMS_VALIDATE_SRC", "ODMS_VALIDATE_GG_HUB", "ODMS_VALIDATE_DATAPUMP_SETTINGS", "ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC", "ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT", "ODMS_VALIDATE", "ODMS_PREPARE", "ODMS_INITIAL_LOAD_EXPORT", "ODMS_DATA_UPLOAD", "ODMS_INITIAL_LOAD_IMPORT", "ODMS_POST_INITIAL_LOAD", "ODMS_PREPARE_REPLICATION_TARGET", "ODMS_MONITOR_REPLICATION_LAG", "ODMS_SWITCHOVER", "ODMS_CLEANUP"]
+ if not value_allowed_none_or_none_sentinel(wait_after, allowed_values):
+ raise ValueError(
+ "Invalid value for `wait_after`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._wait_after = wait_after
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/unsupported_database_object.py b/src/oci/database_migration/models/unsupported_database_object.py
new file mode 100644
index 0000000000..70c6965b91
--- /dev/null
+++ b/src/oci/database_migration/models/unsupported_database_object.py
@@ -0,0 +1,144 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UnsupportedDatabaseObject(object):
+ """
+ Database objects to exclude from migration
+ """
+
+ #: A constant which can be used with the type property of a UnsupportedDatabaseObject.
+ #: This constant has a value of "GOLDEN_GATE"
+ TYPE_GOLDEN_GATE = "GOLDEN_GATE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UnsupportedDatabaseObject object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this UnsupportedDatabaseObject.
+ Allowed values for this property are: "GOLDEN_GATE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param owner:
+ The value to assign to the owner property of this UnsupportedDatabaseObject.
+ :type owner: str
+
+ :param object_name:
+ The value to assign to the object_name property of this UnsupportedDatabaseObject.
+ :type object_name: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'owner': 'str',
+ 'object_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'owner': 'owner',
+ 'object_name': 'objectName'
+ }
+
+ self._type = None
+ self._owner = None
+ self._object_name = None
+
+ @property
+ def type(self):
+ """
+ Gets the type of this UnsupportedDatabaseObject.
+ Type of unsupported object
+
+ Allowed values for this property are: "GOLDEN_GATE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this UnsupportedDatabaseObject.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this UnsupportedDatabaseObject.
+ Type of unsupported object
+
+
+ :param type: The type of this UnsupportedDatabaseObject.
+ :type: str
+ """
+ allowed_values = ["GOLDEN_GATE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def owner(self):
+ """
+ **[Required]** Gets the owner of this UnsupportedDatabaseObject.
+ Owner of the object (regular expression is allowed)
+
+
+ :return: The owner of this UnsupportedDatabaseObject.
+ :rtype: str
+ """
+ return self._owner
+
+ @owner.setter
+ def owner(self, owner):
+ """
+ Sets the owner of this UnsupportedDatabaseObject.
+ Owner of the object (regular expression is allowed)
+
+
+ :param owner: The owner of this UnsupportedDatabaseObject.
+ :type: str
+ """
+ self._owner = owner
+
+ @property
+ def object_name(self):
+ """
+ **[Required]** Gets the object_name of this UnsupportedDatabaseObject.
+ Name of the object (regular expression is allowed)
+
+
+ :return: The object_name of this UnsupportedDatabaseObject.
+ :rtype: str
+ """
+ return self._object_name
+
+ @object_name.setter
+ def object_name(self, object_name):
+ """
+ Sets the object_name of this UnsupportedDatabaseObject.
+ Name of the object (regular expression is allowed)
+
+
+ :param object_name: The object_name of this UnsupportedDatabaseObject.
+ :type: str
+ """
+ self._object_name = object_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_admin_credentials.py b/src/oci/database_migration/models/update_admin_credentials.py
new file mode 100644
index 0000000000..c4b4c1449c
--- /dev/null
+++ b/src/oci/database_migration/models/update_admin_credentials.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateAdminCredentials(object):
+ """
+ Database Admin Credentials details. An empty object would result in the removal of the stored details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateAdminCredentials object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param username:
+ The value to assign to the username property of this UpdateAdminCredentials.
+ :type username: str
+
+ :param password:
+ The value to assign to the password property of this UpdateAdminCredentials.
+ :type password: str
+
+ """
+ self.swagger_types = {
+ 'username': 'str',
+ 'password': 'str'
+ }
+
+ self.attribute_map = {
+ 'username': 'username',
+ 'password': 'password'
+ }
+
+ self._username = None
+ self._password = None
+
+ @property
+ def username(self):
+ """
+ Gets the username of this UpdateAdminCredentials.
+ Admin username
+
+
+ :return: The username of this UpdateAdminCredentials.
+ :rtype: str
+ """
+ return self._username
+
+ @username.setter
+ def username(self, username):
+ """
+ Sets the username of this UpdateAdminCredentials.
+ Admin username
+
+
+ :param username: The username of this UpdateAdminCredentials.
+ :type: str
+ """
+ self._username = username
+
+ @property
+ def password(self):
+ """
+ Gets the password of this UpdateAdminCredentials.
+ Admin password
+
+
+ :return: The password of this UpdateAdminCredentials.
+ :rtype: str
+ """
+ return self._password
+
+ @password.setter
+ def password(self, password):
+ """
+ Sets the password of this UpdateAdminCredentials.
+ Admin password
+
+
+ :param password: The password of this UpdateAdminCredentials.
+ :type: str
+ """
+ self._password = password
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_agent_details.py b/src/oci/database_migration/models/update_agent_details.py
new file mode 100644
index 0000000000..d0f7f0f746
--- /dev/null
+++ b/src/oci/database_migration/models/update_agent_details.py
@@ -0,0 +1,260 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateAgentDetails(object):
+ """
+ ODMS Agent Details
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateAgentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this UpdateAgentDetails.
+ :type compartment_id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateAgentDetails.
+ :type display_name: str
+
+ :param stream_id:
+ The value to assign to the stream_id property of this UpdateAgentDetails.
+ :type stream_id: str
+
+ :param public_key:
+ The value to assign to the public_key property of this UpdateAgentDetails.
+ :type public_key: str
+
+ :param version:
+ The value to assign to the version property of this UpdateAgentDetails.
+ :type version: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateAgentDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateAgentDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'display_name': 'str',
+ 'stream_id': 'str',
+ 'public_key': 'str',
+ 'version': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'display_name': 'displayName',
+ 'stream_id': 'streamId',
+ 'public_key': 'publicKey',
+ 'version': 'version',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._compartment_id = None
+ self._display_name = None
+ self._stream_id = None
+ self._public_key = None
+ self._version = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def compartment_id(self):
+ """
+ Gets the compartment_id of this UpdateAgentDetails.
+ The OCID of the compartment.
+
+
+ :return: The compartment_id of this UpdateAgentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this UpdateAgentDetails.
+ The OCID of the compartment.
+
+
+ :param compartment_id: The compartment_id of this UpdateAgentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateAgentDetails.
+ ODMS Agent name
+
+
+ :return: The display_name of this UpdateAgentDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateAgentDetails.
+ ODMS Agent name
+
+
+ :param display_name: The display_name of this UpdateAgentDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def stream_id(self):
+ """
+ Gets the stream_id of this UpdateAgentDetails.
+ The OCID of the Stream
+
+
+ :return: The stream_id of this UpdateAgentDetails.
+ :rtype: str
+ """
+ return self._stream_id
+
+ @stream_id.setter
+ def stream_id(self, stream_id):
+ """
+ Sets the stream_id of this UpdateAgentDetails.
+ The OCID of the Stream
+
+
+ :param stream_id: The stream_id of this UpdateAgentDetails.
+ :type: str
+ """
+ self._stream_id = stream_id
+
+ @property
+ def public_key(self):
+ """
+ Gets the public_key of this UpdateAgentDetails.
+ ODMS Agent public key.
+
+
+ :return: The public_key of this UpdateAgentDetails.
+ :rtype: str
+ """
+ return self._public_key
+
+ @public_key.setter
+ def public_key(self, public_key):
+ """
+ Sets the public_key of this UpdateAgentDetails.
+ ODMS Agent public key.
+
+
+ :param public_key: The public_key of this UpdateAgentDetails.
+ :type: str
+ """
+ self._public_key = public_key
+
+ @property
+ def version(self):
+ """
+ Gets the version of this UpdateAgentDetails.
+ ODMS Agent version
+
+
+ :return: The version of this UpdateAgentDetails.
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """
+ Sets the version of this UpdateAgentDetails.
+ ODMS Agent version
+
+
+ :param version: The version of this UpdateAgentDetails.
+ :type: str
+ """
+ self._version = version
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateAgentDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateAgentDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateAgentDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateAgentDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateAgentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateAgentDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateAgentDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateAgentDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_connect_descriptor.py b/src/oci/database_migration/models/update_connect_descriptor.py
new file mode 100644
index 0000000000..503d5b5c16
--- /dev/null
+++ b/src/oci/database_migration/models/update_connect_descriptor.py
@@ -0,0 +1,171 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateConnectDescriptor(object):
+ """
+ Connect Descriptor details. If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateConnectDescriptor object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host:
+ The value to assign to the host property of this UpdateConnectDescriptor.
+ :type host: str
+
+ :param port:
+ The value to assign to the port property of this UpdateConnectDescriptor.
+ :type port: int
+
+ :param database_service_name:
+ The value to assign to the database_service_name property of this UpdateConnectDescriptor.
+ :type database_service_name: str
+
+ :param connect_string:
+ The value to assign to the connect_string property of this UpdateConnectDescriptor.
+ :type connect_string: str
+
+ """
+ self.swagger_types = {
+ 'host': 'str',
+ 'port': 'int',
+ 'database_service_name': 'str',
+ 'connect_string': 'str'
+ }
+
+ self.attribute_map = {
+ 'host': 'host',
+ 'port': 'port',
+ 'database_service_name': 'databaseServiceName',
+ 'connect_string': 'connectString'
+ }
+
+ self._host = None
+ self._port = None
+ self._database_service_name = None
+ self._connect_string = None
+
+ @property
+ def host(self):
+ """
+ Gets the host of this UpdateConnectDescriptor.
+ Host or IP address of the connect descriptor.
+
+
+ :return: The host of this UpdateConnectDescriptor.
+ :rtype: str
+ """
+ return self._host
+
+ @host.setter
+ def host(self, host):
+ """
+ Sets the host of this UpdateConnectDescriptor.
+ Host or IP address of the connect descriptor.
+
+
+ :param host: The host of this UpdateConnectDescriptor.
+ :type: str
+ """
+ self._host = host
+
+ @property
+ def port(self):
+ """
+ Gets the port of this UpdateConnectDescriptor.
+ Port of the connect descriptor.
+
+
+ :return: The port of this UpdateConnectDescriptor.
+ :rtype: int
+ """
+ return self._port
+
+ @port.setter
+ def port(self, port):
+ """
+ Sets the port of this UpdateConnectDescriptor.
+ Port of the connect descriptor.
+
+
+ :param port: The port of this UpdateConnectDescriptor.
+ :type: int
+ """
+ self._port = port
+
+ @property
+ def database_service_name(self):
+ """
+ Gets the database_service_name of this UpdateConnectDescriptor.
+ Database service name.
+
+
+ :return: The database_service_name of this UpdateConnectDescriptor.
+ :rtype: str
+ """
+ return self._database_service_name
+
+ @database_service_name.setter
+ def database_service_name(self, database_service_name):
+ """
+ Sets the database_service_name of this UpdateConnectDescriptor.
+ Database service name.
+
+
+ :param database_service_name: The database_service_name of this UpdateConnectDescriptor.
+ :type: str
+ """
+ self._database_service_name = database_service_name
+
+ @property
+ def connect_string(self):
+ """
+ Gets the connect_string of this UpdateConnectDescriptor.
+ Connect String. If specified, this will override the stored connect descriptor details.
+ If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address.
+ Supported formats:
+ Easy connect: :/
+ Long format: (description= (address=(port=)(host=))(connect_data=(service_name=)))
+
+
+ :return: The connect_string of this UpdateConnectDescriptor.
+ :rtype: str
+ """
+ return self._connect_string
+
+ @connect_string.setter
+ def connect_string(self, connect_string):
+ """
+ Sets the connect_string of this UpdateConnectDescriptor.
+ Connect String. If specified, this will override the stored connect descriptor details.
+ If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address.
+ Supported formats:
+ Easy connect: :/
+ Long format: (description= (address=(port=)(host=))(connect_data=(service_name=)))
+
+
+ :param connect_string: The connect_string of this UpdateConnectDescriptor.
+ :type: str
+ """
+ self._connect_string = connect_string
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_connection_details.py b/src/oci/database_migration/models/update_connection_details.py
new file mode 100644
index 0000000000..51433e62bb
--- /dev/null
+++ b/src/oci/database_migration/models/update_connection_details.py
@@ -0,0 +1,395 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateConnectionDetails(object):
+ """
+ Details to update in a Database Connection resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateConnectionDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateConnectionDetails.
+ :type display_name: str
+
+ :param database_id:
+ The value to assign to the database_id property of this UpdateConnectionDetails.
+ :type database_id: str
+
+ :param connect_descriptor:
+ The value to assign to the connect_descriptor property of this UpdateConnectionDetails.
+ :type connect_descriptor: oci.database_migration.models.UpdateConnectDescriptor
+
+ :param certificate_tdn:
+ The value to assign to the certificate_tdn property of this UpdateConnectionDetails.
+ :type certificate_tdn: str
+
+ :param tls_wallet:
+ The value to assign to the tls_wallet property of this UpdateConnectionDetails.
+ :type tls_wallet: str
+
+ :param tls_keystore:
+ The value to assign to the tls_keystore property of this UpdateConnectionDetails.
+ :type tls_keystore: str
+
+ :param ssh_details:
+ The value to assign to the ssh_details property of this UpdateConnectionDetails.
+ :type ssh_details: oci.database_migration.models.UpdateSshDetails
+
+ :param admin_credentials:
+ The value to assign to the admin_credentials property of this UpdateConnectionDetails.
+ :type admin_credentials: oci.database_migration.models.UpdateAdminCredentials
+
+ :param private_endpoint:
+ The value to assign to the private_endpoint property of this UpdateConnectionDetails.
+ :type private_endpoint: oci.database_migration.models.UpdatePrivateEndpoint
+
+ :param vault_details:
+ The value to assign to the vault_details property of this UpdateConnectionDetails.
+ :type vault_details: oci.database_migration.models.UpdateVaultDetails
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateConnectionDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateConnectionDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'display_name': 'str',
+ 'database_id': 'str',
+ 'connect_descriptor': 'UpdateConnectDescriptor',
+ 'certificate_tdn': 'str',
+ 'tls_wallet': 'str',
+ 'tls_keystore': 'str',
+ 'ssh_details': 'UpdateSshDetails',
+ 'admin_credentials': 'UpdateAdminCredentials',
+ 'private_endpoint': 'UpdatePrivateEndpoint',
+ 'vault_details': 'UpdateVaultDetails',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'display_name': 'displayName',
+ 'database_id': 'databaseId',
+ 'connect_descriptor': 'connectDescriptor',
+ 'certificate_tdn': 'certificateTdn',
+ 'tls_wallet': 'tlsWallet',
+ 'tls_keystore': 'tlsKeystore',
+ 'ssh_details': 'sshDetails',
+ 'admin_credentials': 'adminCredentials',
+ 'private_endpoint': 'privateEndpoint',
+ 'vault_details': 'vaultDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._display_name = None
+ self._database_id = None
+ self._connect_descriptor = None
+ self._certificate_tdn = None
+ self._tls_wallet = None
+ self._tls_keystore = None
+ self._ssh_details = None
+ self._admin_credentials = None
+ self._private_endpoint = None
+ self._vault_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateConnectionDetails.
+ Database Connection display name identifier.
+
+
+ :return: The display_name of this UpdateConnectionDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateConnectionDetails.
+ Database Connection display name identifier.
+
+
+ :param display_name: The display_name of this UpdateConnectionDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def database_id(self):
+ """
+ Gets the database_id of this UpdateConnectionDetails.
+ The OCID of the cloud database.
+
+
+ :return: The database_id of this UpdateConnectionDetails.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this UpdateConnectionDetails.
+ The OCID of the cloud database.
+
+
+ :param database_id: The database_id of this UpdateConnectionDetails.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def connect_descriptor(self):
+ """
+ Gets the connect_descriptor of this UpdateConnectionDetails.
+
+ :return: The connect_descriptor of this UpdateConnectionDetails.
+ :rtype: oci.database_migration.models.UpdateConnectDescriptor
+ """
+ return self._connect_descriptor
+
+ @connect_descriptor.setter
+ def connect_descriptor(self, connect_descriptor):
+ """
+ Sets the connect_descriptor of this UpdateConnectionDetails.
+
+ :param connect_descriptor: The connect_descriptor of this UpdateConnectionDetails.
+ :type: oci.database_migration.models.UpdateConnectDescriptor
+ """
+ self._connect_descriptor = connect_descriptor
+
+ @property
+ def certificate_tdn(self):
+ """
+ Gets the certificate_tdn of this UpdateConnectionDetails.
+ This name is the distinguished name used while creating the certificate on target database. Not required for source container database connections.
+
+
+ :return: The certificate_tdn of this UpdateConnectionDetails.
+ :rtype: str
+ """
+ return self._certificate_tdn
+
+ @certificate_tdn.setter
+ def certificate_tdn(self, certificate_tdn):
+ """
+ Sets the certificate_tdn of this UpdateConnectionDetails.
+ This name is the distinguished name used while creating the certificate on target database. Not required for source container database connections.
+
+
+ :param certificate_tdn: The certificate_tdn of this UpdateConnectionDetails.
+ :type: str
+ """
+ self._certificate_tdn = certificate_tdn
+
+ @property
+ def tls_wallet(self):
+ """
+ Gets the tls_wallet of this UpdateConnectionDetails.
+ cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
+
+
+ :return: The tls_wallet of this UpdateConnectionDetails.
+ :rtype: str
+ """
+ return self._tls_wallet
+
+ @tls_wallet.setter
+ def tls_wallet(self, tls_wallet):
+ """
+ Sets the tls_wallet of this UpdateConnectionDetails.
+ cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
+
+
+ :param tls_wallet: The tls_wallet of this UpdateConnectionDetails.
+ :type: str
+ """
+ self._tls_wallet = tls_wallet
+
+ @property
+ def tls_keystore(self):
+ """
+ Gets the tls_keystore of this UpdateConnectionDetails.
+ keystore.jks file contents; base64 encoded String. Not required for source container database connections.
+
+
+ :return: The tls_keystore of this UpdateConnectionDetails.
+ :rtype: str
+ """
+ return self._tls_keystore
+
+ @tls_keystore.setter
+ def tls_keystore(self, tls_keystore):
+ """
+ Sets the tls_keystore of this UpdateConnectionDetails.
+ keystore.jks file contents; base64 encoded String. Not required for source container database connections.
+
+
+ :param tls_keystore: The tls_keystore of this UpdateConnectionDetails.
+ :type: str
+ """
+ self._tls_keystore = tls_keystore
+
+ @property
+ def ssh_details(self):
+ """
+ Gets the ssh_details of this UpdateConnectionDetails.
+
+ :return: The ssh_details of this UpdateConnectionDetails.
+ :rtype: oci.database_migration.models.UpdateSshDetails
+ """
+ return self._ssh_details
+
+ @ssh_details.setter
+ def ssh_details(self, ssh_details):
+ """
+ Sets the ssh_details of this UpdateConnectionDetails.
+
+ :param ssh_details: The ssh_details of this UpdateConnectionDetails.
+ :type: oci.database_migration.models.UpdateSshDetails
+ """
+ self._ssh_details = ssh_details
+
+ @property
+ def admin_credentials(self):
+ """
+ Gets the admin_credentials of this UpdateConnectionDetails.
+
+ :return: The admin_credentials of this UpdateConnectionDetails.
+ :rtype: oci.database_migration.models.UpdateAdminCredentials
+ """
+ return self._admin_credentials
+
+ @admin_credentials.setter
+ def admin_credentials(self, admin_credentials):
+ """
+ Sets the admin_credentials of this UpdateConnectionDetails.
+
+ :param admin_credentials: The admin_credentials of this UpdateConnectionDetails.
+ :type: oci.database_migration.models.UpdateAdminCredentials
+ """
+ self._admin_credentials = admin_credentials
+
+ @property
+ def private_endpoint(self):
+ """
+ Gets the private_endpoint of this UpdateConnectionDetails.
+
+ :return: The private_endpoint of this UpdateConnectionDetails.
+ :rtype: oci.database_migration.models.UpdatePrivateEndpoint
+ """
+ return self._private_endpoint
+
+ @private_endpoint.setter
+ def private_endpoint(self, private_endpoint):
+ """
+ Sets the private_endpoint of this UpdateConnectionDetails.
+
+ :param private_endpoint: The private_endpoint of this UpdateConnectionDetails.
+ :type: oci.database_migration.models.UpdatePrivateEndpoint
+ """
+ self._private_endpoint = private_endpoint
+
+ @property
+ def vault_details(self):
+ """
+ Gets the vault_details of this UpdateConnectionDetails.
+
+ :return: The vault_details of this UpdateConnectionDetails.
+ :rtype: oci.database_migration.models.UpdateVaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this UpdateConnectionDetails.
+
+ :param vault_details: The vault_details of this UpdateConnectionDetails.
+ :type: oci.database_migration.models.UpdateVaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateConnectionDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateConnectionDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateConnectionDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateConnectionDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateConnectionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateConnectionDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateConnectionDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateConnectionDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_data_pump_parameters.py b/src/oci/database_migration/models/update_data_pump_parameters.py
new file mode 100644
index 0000000000..e34873aeee
--- /dev/null
+++ b/src/oci/database_migration/models/update_data_pump_parameters.py
@@ -0,0 +1,270 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDataPumpParameters(object):
+ """
+ Optional parameters for Datapump Export and Import. Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-62324358-2F26-4A94-B69F-1075D53FA96D__BABDECJE
+ If an empty object is specified, the stored Data Pump Parameter details will be removed.
+ """
+
+ #: A constant which can be used with the estimate property of a UpdateDataPumpParameters.
+ #: This constant has a value of "BLOCKS"
+ ESTIMATE_BLOCKS = "BLOCKS"
+
+ #: A constant which can be used with the estimate property of a UpdateDataPumpParameters.
+ #: This constant has a value of "STATISTICS"
+ ESTIMATE_STATISTICS = "STATISTICS"
+
+ #: A constant which can be used with the table_exists_action property of a UpdateDataPumpParameters.
+ #: This constant has a value of "TRUNCATE"
+ TABLE_EXISTS_ACTION_TRUNCATE = "TRUNCATE"
+
+ #: A constant which can be used with the table_exists_action property of a UpdateDataPumpParameters.
+ #: This constant has a value of "REPLACE"
+ TABLE_EXISTS_ACTION_REPLACE = "REPLACE"
+
+ #: A constant which can be used with the table_exists_action property of a UpdateDataPumpParameters.
+ #: This constant has a value of "APPEND"
+ TABLE_EXISTS_ACTION_APPEND = "APPEND"
+
+ #: A constant which can be used with the table_exists_action property of a UpdateDataPumpParameters.
+ #: This constant has a value of "SKIP"
+ TABLE_EXISTS_ACTION_SKIP = "SKIP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDataPumpParameters object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param is_cluster:
+ The value to assign to the is_cluster property of this UpdateDataPumpParameters.
+ :type is_cluster: bool
+
+ :param estimate:
+ The value to assign to the estimate property of this UpdateDataPumpParameters.
+ Allowed values for this property are: "BLOCKS", "STATISTICS"
+ :type estimate: str
+
+ :param table_exists_action:
+ The value to assign to the table_exists_action property of this UpdateDataPumpParameters.
+ Allowed values for this property are: "TRUNCATE", "REPLACE", "APPEND", "SKIP"
+ :type table_exists_action: str
+
+ :param exclude_parameters:
+ The value to assign to the exclude_parameters property of this UpdateDataPumpParameters.
+ :type exclude_parameters: list[oci.database_migration.models.DataPumpExcludeParameters]
+
+ :param import_parallelism_degree:
+ The value to assign to the import_parallelism_degree property of this UpdateDataPumpParameters.
+ :type import_parallelism_degree: int
+
+ :param export_parallelism_degree:
+ The value to assign to the export_parallelism_degree property of this UpdateDataPumpParameters.
+ :type export_parallelism_degree: int
+
+ """
+ self.swagger_types = {
+ 'is_cluster': 'bool',
+ 'estimate': 'str',
+ 'table_exists_action': 'str',
+ 'exclude_parameters': 'list[DataPumpExcludeParameters]',
+ 'import_parallelism_degree': 'int',
+ 'export_parallelism_degree': 'int'
+ }
+
+ self.attribute_map = {
+ 'is_cluster': 'isCluster',
+ 'estimate': 'estimate',
+ 'table_exists_action': 'tableExistsAction',
+ 'exclude_parameters': 'excludeParameters',
+ 'import_parallelism_degree': 'importParallelismDegree',
+ 'export_parallelism_degree': 'exportParallelismDegree'
+ }
+
+ self._is_cluster = None
+ self._estimate = None
+ self._table_exists_action = None
+ self._exclude_parameters = None
+ self._import_parallelism_degree = None
+ self._export_parallelism_degree = None
+
+ @property
+ def is_cluster(self):
+ """
+ Gets the is_cluster of this UpdateDataPumpParameters.
+ False to force datapump worker process to run on one instance.
+
+
+ :return: The is_cluster of this UpdateDataPumpParameters.
+ :rtype: bool
+ """
+ return self._is_cluster
+
+ @is_cluster.setter
+ def is_cluster(self, is_cluster):
+ """
+ Sets the is_cluster of this UpdateDataPumpParameters.
+ False to force datapump worker process to run on one instance.
+
+
+ :param is_cluster: The is_cluster of this UpdateDataPumpParameters.
+ :type: bool
+ """
+ self._is_cluster = is_cluster
+
+ @property
+ def estimate(self):
+ """
+ Gets the estimate of this UpdateDataPumpParameters.
+ Estimate size of dumps that will be generated.
+
+ Allowed values for this property are: "BLOCKS", "STATISTICS"
+
+
+ :return: The estimate of this UpdateDataPumpParameters.
+ :rtype: str
+ """
+ return self._estimate
+
+ @estimate.setter
+ def estimate(self, estimate):
+ """
+ Sets the estimate of this UpdateDataPumpParameters.
+ Estimate size of dumps that will be generated.
+
+
+ :param estimate: The estimate of this UpdateDataPumpParameters.
+ :type: str
+ """
+ allowed_values = ["BLOCKS", "STATISTICS"]
+ if not value_allowed_none_or_none_sentinel(estimate, allowed_values):
+ raise ValueError(
+ "Invalid value for `estimate`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._estimate = estimate
+
+ @property
+ def table_exists_action(self):
+ """
+ Gets the table_exists_action of this UpdateDataPumpParameters.
+ IMPORT: Specifies the action to be performed when data is loaded into a preexisting table.
+
+ Allowed values for this property are: "TRUNCATE", "REPLACE", "APPEND", "SKIP"
+
+
+ :return: The table_exists_action of this UpdateDataPumpParameters.
+ :rtype: str
+ """
+ return self._table_exists_action
+
+ @table_exists_action.setter
+ def table_exists_action(self, table_exists_action):
+ """
+ Sets the table_exists_action of this UpdateDataPumpParameters.
+ IMPORT: Specifies the action to be performed when data is loaded into a preexisting table.
+
+
+ :param table_exists_action: The table_exists_action of this UpdateDataPumpParameters.
+ :type: str
+ """
+ allowed_values = ["TRUNCATE", "REPLACE", "APPEND", "SKIP"]
+ if not value_allowed_none_or_none_sentinel(table_exists_action, allowed_values):
+ raise ValueError(
+ "Invalid value for `table_exists_action`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._table_exists_action = table_exists_action
+
+ @property
+ def exclude_parameters(self):
+ """
+ Gets the exclude_parameters of this UpdateDataPumpParameters.
+ Exclude paratemers for export and import. If specified, the stored list will be replaced.
+
+
+ :return: The exclude_parameters of this UpdateDataPumpParameters.
+ :rtype: list[oci.database_migration.models.DataPumpExcludeParameters]
+ """
+ return self._exclude_parameters
+
+ @exclude_parameters.setter
+ def exclude_parameters(self, exclude_parameters):
+ """
+ Sets the exclude_parameters of this UpdateDataPumpParameters.
+ Exclude paratemers for export and import. If specified, the stored list will be replaced.
+
+
+ :param exclude_parameters: The exclude_parameters of this UpdateDataPumpParameters.
+ :type: list[oci.database_migration.models.DataPumpExcludeParameters]
+ """
+ self._exclude_parameters = exclude_parameters
+
+ @property
+ def import_parallelism_degree(self):
+ """
+ Gets the import_parallelism_degree of this UpdateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Import job.
+ For an Autonomous Database, ODMS will automatically query its CPU core count and set this property.
+
+
+ :return: The import_parallelism_degree of this UpdateDataPumpParameters.
+ :rtype: int
+ """
+ return self._import_parallelism_degree
+
+ @import_parallelism_degree.setter
+ def import_parallelism_degree(self, import_parallelism_degree):
+ """
+ Sets the import_parallelism_degree of this UpdateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Import job.
+ For an Autonomous Database, ODMS will automatically query its CPU core count and set this property.
+
+
+ :param import_parallelism_degree: The import_parallelism_degree of this UpdateDataPumpParameters.
+ :type: int
+ """
+ self._import_parallelism_degree = import_parallelism_degree
+
+ @property
+ def export_parallelism_degree(self):
+ """
+ Gets the export_parallelism_degree of this UpdateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Export job.
+
+
+ :return: The export_parallelism_degree of this UpdateDataPumpParameters.
+ :rtype: int
+ """
+ return self._export_parallelism_degree
+
+ @export_parallelism_degree.setter
+ def export_parallelism_degree(self, export_parallelism_degree):
+ """
+ Sets the export_parallelism_degree of this UpdateDataPumpParameters.
+ Maximum number of worker processes that can be used for a Datapump Export job.
+
+
+ :param export_parallelism_degree: The export_parallelism_degree of this UpdateDataPumpParameters.
+ :type: int
+ """
+ self._export_parallelism_degree = export_parallelism_degree
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_data_pump_settings.py b/src/oci/database_migration/models/update_data_pump_settings.py
new file mode 100644
index 0000000000..6deb5992e1
--- /dev/null
+++ b/src/oci/database_migration/models/update_data_pump_settings.py
@@ -0,0 +1,217 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDataPumpSettings(object):
+ """
+ Optional settings for Datapump Export and Import jobs
+ """
+
+ #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings.
+ #: This constant has a value of "FULL"
+ JOB_MODE_FULL = "FULL"
+
+ #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings.
+ #: This constant has a value of "SCHEMA"
+ JOB_MODE_SCHEMA = "SCHEMA"
+
+ #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings.
+ #: This constant has a value of "TABLE"
+ JOB_MODE_TABLE = "TABLE"
+
+ #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings.
+ #: This constant has a value of "TABLESPACE"
+ JOB_MODE_TABLESPACE = "TABLESPACE"
+
+ #: A constant which can be used with the job_mode property of a UpdateDataPumpSettings.
+ #: This constant has a value of "TRANSPORTABLE"
+ JOB_MODE_TRANSPORTABLE = "TRANSPORTABLE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDataPumpSettings object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param job_mode:
+ The value to assign to the job_mode property of this UpdateDataPumpSettings.
+ Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"
+ :type job_mode: str
+
+ :param data_pump_parameters:
+ The value to assign to the data_pump_parameters property of this UpdateDataPumpSettings.
+ :type data_pump_parameters: oci.database_migration.models.UpdateDataPumpParameters
+
+ :param metadata_remaps:
+ The value to assign to the metadata_remaps property of this UpdateDataPumpSettings.
+ :type metadata_remaps: list[oci.database_migration.models.MetadataRemap]
+
+ :param export_directory_object:
+ The value to assign to the export_directory_object property of this UpdateDataPumpSettings.
+ :type export_directory_object: oci.database_migration.models.UpdateDirectoryObject
+
+ :param import_directory_object:
+ The value to assign to the import_directory_object property of this UpdateDataPumpSettings.
+ :type import_directory_object: oci.database_migration.models.UpdateDirectoryObject
+
+ """
+ self.swagger_types = {
+ 'job_mode': 'str',
+ 'data_pump_parameters': 'UpdateDataPumpParameters',
+ 'metadata_remaps': 'list[MetadataRemap]',
+ 'export_directory_object': 'UpdateDirectoryObject',
+ 'import_directory_object': 'UpdateDirectoryObject'
+ }
+
+ self.attribute_map = {
+ 'job_mode': 'jobMode',
+ 'data_pump_parameters': 'dataPumpParameters',
+ 'metadata_remaps': 'metadataRemaps',
+ 'export_directory_object': 'exportDirectoryObject',
+ 'import_directory_object': 'importDirectoryObject'
+ }
+
+ self._job_mode = None
+ self._data_pump_parameters = None
+ self._metadata_remaps = None
+ self._export_directory_object = None
+ self._import_directory_object = None
+
+ @property
+ def job_mode(self):
+ """
+ Gets the job_mode of this UpdateDataPumpSettings.
+ DataPump job mode.
+ Refer to docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-92C2CB46-8BC9-414D-B62E-79CD788C1E62__BABBDEHD
+
+ Allowed values for this property are: "FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"
+
+
+ :return: The job_mode of this UpdateDataPumpSettings.
+ :rtype: str
+ """
+ return self._job_mode
+
+ @job_mode.setter
+ def job_mode(self, job_mode):
+ """
+ Sets the job_mode of this UpdateDataPumpSettings.
+ DataPump job mode.
+ Refer to docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-92C2CB46-8BC9-414D-B62E-79CD788C1E62__BABBDEHD
+
+
+ :param job_mode: The job_mode of this UpdateDataPumpSettings.
+ :type: str
+ """
+ allowed_values = ["FULL", "SCHEMA", "TABLE", "TABLESPACE", "TRANSPORTABLE"]
+ if not value_allowed_none_or_none_sentinel(job_mode, allowed_values):
+ raise ValueError(
+ "Invalid value for `job_mode`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._job_mode = job_mode
+
+ @property
+ def data_pump_parameters(self):
+ """
+ Gets the data_pump_parameters of this UpdateDataPumpSettings.
+
+ :return: The data_pump_parameters of this UpdateDataPumpSettings.
+ :rtype: oci.database_migration.models.UpdateDataPumpParameters
+ """
+ return self._data_pump_parameters
+
+ @data_pump_parameters.setter
+ def data_pump_parameters(self, data_pump_parameters):
+ """
+ Sets the data_pump_parameters of this UpdateDataPumpSettings.
+
+ :param data_pump_parameters: The data_pump_parameters of this UpdateDataPumpSettings.
+ :type: oci.database_migration.models.UpdateDataPumpParameters
+ """
+ self._data_pump_parameters = data_pump_parameters
+
+ @property
+ def metadata_remaps(self):
+ """
+ Gets the metadata_remaps of this UpdateDataPumpSettings.
+ Defines remapping to be applied to objects as they are processed.
+ Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D.
+ If specified, the list will be replaced entirely. Empty list will remove stored Metadata Remap details.
+
+
+ :return: The metadata_remaps of this UpdateDataPumpSettings.
+ :rtype: list[oci.database_migration.models.MetadataRemap]
+ """
+ return self._metadata_remaps
+
+ @metadata_remaps.setter
+ def metadata_remaps(self, metadata_remaps):
+ """
+ Sets the metadata_remaps of this UpdateDataPumpSettings.
+ Defines remapping to be applied to objects as they are processed.
+ Refer to https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/ODMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D.
+ If specified, the list will be replaced entirely. Empty list will remove stored Metadata Remap details.
+
+
+ :param metadata_remaps: The metadata_remaps of this UpdateDataPumpSettings.
+ :type: list[oci.database_migration.models.MetadataRemap]
+ """
+ self._metadata_remaps = metadata_remaps
+
+ @property
+ def export_directory_object(self):
+ """
+ Gets the export_directory_object of this UpdateDataPumpSettings.
+
+ :return: The export_directory_object of this UpdateDataPumpSettings.
+ :rtype: oci.database_migration.models.UpdateDirectoryObject
+ """
+ return self._export_directory_object
+
+ @export_directory_object.setter
+ def export_directory_object(self, export_directory_object):
+ """
+ Sets the export_directory_object of this UpdateDataPumpSettings.
+
+ :param export_directory_object: The export_directory_object of this UpdateDataPumpSettings.
+ :type: oci.database_migration.models.UpdateDirectoryObject
+ """
+ self._export_directory_object = export_directory_object
+
+ @property
+ def import_directory_object(self):
+ """
+ Gets the import_directory_object of this UpdateDataPumpSettings.
+
+ :return: The import_directory_object of this UpdateDataPumpSettings.
+ :rtype: oci.database_migration.models.UpdateDirectoryObject
+ """
+ return self._import_directory_object
+
+ @import_directory_object.setter
+ def import_directory_object(self, import_directory_object):
+ """
+ Sets the import_directory_object of this UpdateDataPumpSettings.
+
+ :param import_directory_object: The import_directory_object of this UpdateDataPumpSettings.
+ :type: oci.database_migration.models.UpdateDirectoryObject
+ """
+ self._import_directory_object = import_directory_object
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_data_transfer_medium_details.py b/src/oci/database_migration/models/update_data_transfer_medium_details.py
new file mode 100644
index 0000000000..7f49735c30
--- /dev/null
+++ b/src/oci/database_migration/models/update_data_transfer_medium_details.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDataTransferMediumDetails(object):
+ """
+ Data Transfer Medium details for the Migration.
+ Only one type of medium details can be specified and will replace the stored Data Transfer Medium details.
+ If an empty object is specified, the stored Data Transfer Medium details will be removed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDataTransferMediumDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param database_link_details:
+ The value to assign to the database_link_details property of this UpdateDataTransferMediumDetails.
+ :type database_link_details: oci.database_migration.models.UpdateDatabaseLinkDetails
+
+ :param object_storage_details:
+ The value to assign to the object_storage_details property of this UpdateDataTransferMediumDetails.
+ :type object_storage_details: oci.database_migration.models.UpdateObjectStoreBucket
+
+ """
+ self.swagger_types = {
+ 'database_link_details': 'UpdateDatabaseLinkDetails',
+ 'object_storage_details': 'UpdateObjectStoreBucket'
+ }
+
+ self.attribute_map = {
+ 'database_link_details': 'databaseLinkDetails',
+ 'object_storage_details': 'objectStorageDetails'
+ }
+
+ self._database_link_details = None
+ self._object_storage_details = None
+
+ @property
+ def database_link_details(self):
+ """
+ Gets the database_link_details of this UpdateDataTransferMediumDetails.
+
+ :return: The database_link_details of this UpdateDataTransferMediumDetails.
+ :rtype: oci.database_migration.models.UpdateDatabaseLinkDetails
+ """
+ return self._database_link_details
+
+ @database_link_details.setter
+ def database_link_details(self, database_link_details):
+ """
+ Sets the database_link_details of this UpdateDataTransferMediumDetails.
+
+ :param database_link_details: The database_link_details of this UpdateDataTransferMediumDetails.
+ :type: oci.database_migration.models.UpdateDatabaseLinkDetails
+ """
+ self._database_link_details = database_link_details
+
+ @property
+ def object_storage_details(self):
+ """
+ Gets the object_storage_details of this UpdateDataTransferMediumDetails.
+
+ :return: The object_storage_details of this UpdateDataTransferMediumDetails.
+ :rtype: oci.database_migration.models.UpdateObjectStoreBucket
+ """
+ return self._object_storage_details
+
+ @object_storage_details.setter
+ def object_storage_details(self, object_storage_details):
+ """
+ Sets the object_storage_details of this UpdateDataTransferMediumDetails.
+
+ :param object_storage_details: The object_storage_details of this UpdateDataTransferMediumDetails.
+ :type: oci.database_migration.models.UpdateObjectStoreBucket
+ """
+ self._object_storage_details = object_storage_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_database_link_details.py b/src/oci/database_migration/models/update_database_link_details.py
new file mode 100644
index 0000000000..6448fa3444
--- /dev/null
+++ b/src/oci/database_migration/models/update_database_link_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDatabaseLinkDetails(object):
+ """
+ Optional details for updating a network database link from OCI database to on-premise database.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDatabaseLinkDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this UpdateDatabaseLinkDetails.
+ :type name: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name'
+ }
+
+ self._name = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this UpdateDatabaseLinkDetails.
+ Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist.
+
+
+ :return: The name of this UpdateDatabaseLinkDetails.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this UpdateDatabaseLinkDetails.
+ Name of database link from OCI database to on-premise database. ODMS will create link, if the link does not already exist.
+
+
+ :param name: The name of this UpdateDatabaseLinkDetails.
+ :type: str
+ """
+ self._name = name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_directory_object.py b/src/oci/database_migration/models/update_directory_object.py
new file mode 100644
index 0000000000..670158d867
--- /dev/null
+++ b/src/oci/database_migration/models/update_directory_object.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDirectoryObject(object):
+ """
+ Directory object details, used to define either import or export directory objects in Data Pump Settings.
+ Import directory is required for Non-Autonomous target connections. If specified for an autonomous target, it will show an error.
+ Export directory will error if there are database link details specified.
+ If an empty object is specified, the stored Directory Object details will be removed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDirectoryObject object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this UpdateDirectoryObject.
+ :type name: str
+
+ :param path:
+ The value to assign to the path property of this UpdateDirectoryObject.
+ :type path: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str',
+ 'path': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name',
+ 'path': 'path'
+ }
+
+ self._name = None
+ self._path = None
+
+ @property
+ def name(self):
+ """
+ Gets the name of this UpdateDirectoryObject.
+ Name of directory object in database
+
+
+ :return: The name of this UpdateDirectoryObject.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this UpdateDirectoryObject.
+ Name of directory object in database
+
+
+ :param name: The name of this UpdateDirectoryObject.
+ :type: str
+ """
+ self._name = name
+
+ @property
+ def path(self):
+ """
+ Gets the path of this UpdateDirectoryObject.
+ Absolute path of directory on database server
+
+
+ :return: The path of this UpdateDirectoryObject.
+ :rtype: str
+ """
+ return self._path
+
+ @path.setter
+ def path(self, path):
+ """
+ Sets the path of this UpdateDirectoryObject.
+ Absolute path of directory on database server
+
+
+ :param path: The path of this UpdateDirectoryObject.
+ :type: str
+ """
+ self._path = path
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_extract.py b/src/oci/database_migration/models/update_extract.py
new file mode 100644
index 0000000000..3af3af5150
--- /dev/null
+++ b/src/oci/database_migration/models/update_extract.py
@@ -0,0 +1,125 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateExtract(object):
+ """
+ Parameters for Extract processes.
+ If an empty object is specified, the stored Extract details will be removed.
+ """
+
+ #: A constant which can be used with the performance_profile property of a UpdateExtract.
+ #: This constant has a value of "LOW"
+ PERFORMANCE_PROFILE_LOW = "LOW"
+
+ #: A constant which can be used with the performance_profile property of a UpdateExtract.
+ #: This constant has a value of "MEDIUM"
+ PERFORMANCE_PROFILE_MEDIUM = "MEDIUM"
+
+ #: A constant which can be used with the performance_profile property of a UpdateExtract.
+ #: This constant has a value of "HIGH"
+ PERFORMANCE_PROFILE_HIGH = "HIGH"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateExtract object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param performance_profile:
+ The value to assign to the performance_profile property of this UpdateExtract.
+ Allowed values for this property are: "LOW", "MEDIUM", "HIGH"
+ :type performance_profile: str
+
+ :param long_trans_duration:
+ The value to assign to the long_trans_duration property of this UpdateExtract.
+ :type long_trans_duration: int
+
+ """
+ self.swagger_types = {
+ 'performance_profile': 'str',
+ 'long_trans_duration': 'int'
+ }
+
+ self.attribute_map = {
+ 'performance_profile': 'performanceProfile',
+ 'long_trans_duration': 'longTransDuration'
+ }
+
+ self._performance_profile = None
+ self._long_trans_duration = None
+
+ @property
+ def performance_profile(self):
+ """
+ Gets the performance_profile of this UpdateExtract.
+ Extract performance.
+
+ Allowed values for this property are: "LOW", "MEDIUM", "HIGH"
+
+
+ :return: The performance_profile of this UpdateExtract.
+ :rtype: str
+ """
+ return self._performance_profile
+
+ @performance_profile.setter
+ def performance_profile(self, performance_profile):
+ """
+ Sets the performance_profile of this UpdateExtract.
+ Extract performance.
+
+
+ :param performance_profile: The performance_profile of this UpdateExtract.
+ :type: str
+ """
+ allowed_values = ["LOW", "MEDIUM", "HIGH"]
+ if not value_allowed_none_or_none_sentinel(performance_profile, allowed_values):
+ raise ValueError(
+ "Invalid value for `performance_profile`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._performance_profile = performance_profile
+
+ @property
+ def long_trans_duration(self):
+ """
+ Gets the long_trans_duration of this UpdateExtract.
+ Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running.
+ If not specified, Extract will not generate a warning on long-running transactions.
+
+
+ :return: The long_trans_duration of this UpdateExtract.
+ :rtype: int
+ """
+ return self._long_trans_duration
+
+ @long_trans_duration.setter
+ def long_trans_duration(self, long_trans_duration):
+ """
+ Sets the long_trans_duration of this UpdateExtract.
+ Length of time (in seconds) that a transaction can be open before Extract generates a warning message that the transaction is long-running.
+ If not specified, Extract will not generate a warning on long-running transactions.
+
+
+ :param long_trans_duration: The long_trans_duration of this UpdateExtract.
+ :type: int
+ """
+ self._long_trans_duration = long_trans_duration
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_golden_gate_details.py b/src/oci/database_migration/models/update_golden_gate_details.py
new file mode 100644
index 0000000000..a10d666e4b
--- /dev/null
+++ b/src/oci/database_migration/models/update_golden_gate_details.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateGoldenGateDetails(object):
+ """
+ Details about Oracle GoldenGate Microservices. If an empty object is specified, the stored Golden Gate details will be removed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateGoldenGateDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param hub:
+ The value to assign to the hub property of this UpdateGoldenGateDetails.
+ :type hub: oci.database_migration.models.UpdateGoldenGateHub
+
+ :param settings:
+ The value to assign to the settings property of this UpdateGoldenGateDetails.
+ :type settings: oci.database_migration.models.UpdateGoldenGateSettings
+
+ """
+ self.swagger_types = {
+ 'hub': 'UpdateGoldenGateHub',
+ 'settings': 'UpdateGoldenGateSettings'
+ }
+
+ self.attribute_map = {
+ 'hub': 'hub',
+ 'settings': 'settings'
+ }
+
+ self._hub = None
+ self._settings = None
+
+ @property
+ def hub(self):
+ """
+ Gets the hub of this UpdateGoldenGateDetails.
+
+ :return: The hub of this UpdateGoldenGateDetails.
+ :rtype: oci.database_migration.models.UpdateGoldenGateHub
+ """
+ return self._hub
+
+ @hub.setter
+ def hub(self, hub):
+ """
+ Sets the hub of this UpdateGoldenGateDetails.
+
+ :param hub: The hub of this UpdateGoldenGateDetails.
+ :type: oci.database_migration.models.UpdateGoldenGateHub
+ """
+ self._hub = hub
+
+ @property
+ def settings(self):
+ """
+ Gets the settings of this UpdateGoldenGateDetails.
+
+ :return: The settings of this UpdateGoldenGateDetails.
+ :rtype: oci.database_migration.models.UpdateGoldenGateSettings
+ """
+ return self._settings
+
+ @settings.setter
+ def settings(self, settings):
+ """
+ Sets the settings of this UpdateGoldenGateDetails.
+
+ :param settings: The settings of this UpdateGoldenGateDetails.
+ :type: oci.database_migration.models.UpdateGoldenGateSettings
+ """
+ self._settings = settings
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_golden_gate_hub.py b/src/oci/database_migration/models/update_golden_gate_hub.py
new file mode 100644
index 0000000000..54b8c480d3
--- /dev/null
+++ b/src/oci/database_migration/models/update_golden_gate_hub.py
@@ -0,0 +1,273 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateGoldenGateHub(object):
+ """
+ Details about Oracle GoldenGate Microservices.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateGoldenGateHub object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param rest_admin_credentials:
+ The value to assign to the rest_admin_credentials property of this UpdateGoldenGateHub.
+ :type rest_admin_credentials: oci.database_migration.models.UpdateAdminCredentials
+
+ :param source_db_admin_credentials:
+ The value to assign to the source_db_admin_credentials property of this UpdateGoldenGateHub.
+ :type source_db_admin_credentials: oci.database_migration.models.UpdateAdminCredentials
+
+ :param source_container_db_admin_credentials:
+ The value to assign to the source_container_db_admin_credentials property of this UpdateGoldenGateHub.
+ :type source_container_db_admin_credentials: oci.database_migration.models.UpdateAdminCredentials
+
+ :param target_db_admin_credentials:
+ The value to assign to the target_db_admin_credentials property of this UpdateGoldenGateHub.
+ :type target_db_admin_credentials: oci.database_migration.models.UpdateAdminCredentials
+
+ :param url:
+ The value to assign to the url property of this UpdateGoldenGateHub.
+ :type url: str
+
+ :param source_microservices_deployment_name:
+ The value to assign to the source_microservices_deployment_name property of this UpdateGoldenGateHub.
+ :type source_microservices_deployment_name: str
+
+ :param target_microservices_deployment_name:
+ The value to assign to the target_microservices_deployment_name property of this UpdateGoldenGateHub.
+ :type target_microservices_deployment_name: str
+
+ :param compute_id:
+ The value to assign to the compute_id property of this UpdateGoldenGateHub.
+ :type compute_id: str
+
+ """
+ self.swagger_types = {
+ 'rest_admin_credentials': 'UpdateAdminCredentials',
+ 'source_db_admin_credentials': 'UpdateAdminCredentials',
+ 'source_container_db_admin_credentials': 'UpdateAdminCredentials',
+ 'target_db_admin_credentials': 'UpdateAdminCredentials',
+ 'url': 'str',
+ 'source_microservices_deployment_name': 'str',
+ 'target_microservices_deployment_name': 'str',
+ 'compute_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'rest_admin_credentials': 'restAdminCredentials',
+ 'source_db_admin_credentials': 'sourceDbAdminCredentials',
+ 'source_container_db_admin_credentials': 'sourceContainerDbAdminCredentials',
+ 'target_db_admin_credentials': 'targetDbAdminCredentials',
+ 'url': 'url',
+ 'source_microservices_deployment_name': 'sourceMicroservicesDeploymentName',
+ 'target_microservices_deployment_name': 'targetMicroservicesDeploymentName',
+ 'compute_id': 'computeId'
+ }
+
+ self._rest_admin_credentials = None
+ self._source_db_admin_credentials = None
+ self._source_container_db_admin_credentials = None
+ self._target_db_admin_credentials = None
+ self._url = None
+ self._source_microservices_deployment_name = None
+ self._target_microservices_deployment_name = None
+ self._compute_id = None
+
+ @property
+ def rest_admin_credentials(self):
+ """
+ Gets the rest_admin_credentials of this UpdateGoldenGateHub.
+
+ :return: The rest_admin_credentials of this UpdateGoldenGateHub.
+ :rtype: oci.database_migration.models.UpdateAdminCredentials
+ """
+ return self._rest_admin_credentials
+
+ @rest_admin_credentials.setter
+ def rest_admin_credentials(self, rest_admin_credentials):
+ """
+ Sets the rest_admin_credentials of this UpdateGoldenGateHub.
+
+ :param rest_admin_credentials: The rest_admin_credentials of this UpdateGoldenGateHub.
+ :type: oci.database_migration.models.UpdateAdminCredentials
+ """
+ self._rest_admin_credentials = rest_admin_credentials
+
+ @property
+ def source_db_admin_credentials(self):
+ """
+ Gets the source_db_admin_credentials of this UpdateGoldenGateHub.
+
+ :return: The source_db_admin_credentials of this UpdateGoldenGateHub.
+ :rtype: oci.database_migration.models.UpdateAdminCredentials
+ """
+ return self._source_db_admin_credentials
+
+ @source_db_admin_credentials.setter
+ def source_db_admin_credentials(self, source_db_admin_credentials):
+ """
+ Sets the source_db_admin_credentials of this UpdateGoldenGateHub.
+
+ :param source_db_admin_credentials: The source_db_admin_credentials of this UpdateGoldenGateHub.
+ :type: oci.database_migration.models.UpdateAdminCredentials
+ """
+ self._source_db_admin_credentials = source_db_admin_credentials
+
+ @property
+ def source_container_db_admin_credentials(self):
+ """
+ Gets the source_container_db_admin_credentials of this UpdateGoldenGateHub.
+
+ :return: The source_container_db_admin_credentials of this UpdateGoldenGateHub.
+ :rtype: oci.database_migration.models.UpdateAdminCredentials
+ """
+ return self._source_container_db_admin_credentials
+
+ @source_container_db_admin_credentials.setter
+ def source_container_db_admin_credentials(self, source_container_db_admin_credentials):
+ """
+ Sets the source_container_db_admin_credentials of this UpdateGoldenGateHub.
+
+ :param source_container_db_admin_credentials: The source_container_db_admin_credentials of this UpdateGoldenGateHub.
+ :type: oci.database_migration.models.UpdateAdminCredentials
+ """
+ self._source_container_db_admin_credentials = source_container_db_admin_credentials
+
+ @property
+ def target_db_admin_credentials(self):
+ """
+ Gets the target_db_admin_credentials of this UpdateGoldenGateHub.
+
+ :return: The target_db_admin_credentials of this UpdateGoldenGateHub.
+ :rtype: oci.database_migration.models.UpdateAdminCredentials
+ """
+ return self._target_db_admin_credentials
+
+ @target_db_admin_credentials.setter
+ def target_db_admin_credentials(self, target_db_admin_credentials):
+ """
+ Sets the target_db_admin_credentials of this UpdateGoldenGateHub.
+
+ :param target_db_admin_credentials: The target_db_admin_credentials of this UpdateGoldenGateHub.
+ :type: oci.database_migration.models.UpdateAdminCredentials
+ """
+ self._target_db_admin_credentials = target_db_admin_credentials
+
+ @property
+ def url(self):
+ """
+ Gets the url of this UpdateGoldenGateHub.
+ Oracle GoldenGate hub's REST endpoint.
+ Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
+
+
+ :return: The url of this UpdateGoldenGateHub.
+ :rtype: str
+ """
+ return self._url
+
+ @url.setter
+ def url(self, url):
+ """
+ Sets the url of this UpdateGoldenGateHub.
+ Oracle GoldenGate hub's REST endpoint.
+ Refer to https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA
+
+
+ :param url: The url of this UpdateGoldenGateHub.
+ :type: str
+ """
+ self._url = url
+
+ @property
+ def source_microservices_deployment_name(self):
+ """
+ Gets the source_microservices_deployment_name of this UpdateGoldenGateHub.
+ Name of Microservices deployment to operate on source DB
+
+
+ :return: The source_microservices_deployment_name of this UpdateGoldenGateHub.
+ :rtype: str
+ """
+ return self._source_microservices_deployment_name
+
+ @source_microservices_deployment_name.setter
+ def source_microservices_deployment_name(self, source_microservices_deployment_name):
+ """
+ Sets the source_microservices_deployment_name of this UpdateGoldenGateHub.
+ Name of Microservices deployment to operate on source DB
+
+
+ :param source_microservices_deployment_name: The source_microservices_deployment_name of this UpdateGoldenGateHub.
+ :type: str
+ """
+ self._source_microservices_deployment_name = source_microservices_deployment_name
+
+ @property
+ def target_microservices_deployment_name(self):
+ """
+ Gets the target_microservices_deployment_name of this UpdateGoldenGateHub.
+ Name of Microservices deployment to operate on target DB
+
+
+ :return: The target_microservices_deployment_name of this UpdateGoldenGateHub.
+ :rtype: str
+ """
+ return self._target_microservices_deployment_name
+
+ @target_microservices_deployment_name.setter
+ def target_microservices_deployment_name(self, target_microservices_deployment_name):
+ """
+ Sets the target_microservices_deployment_name of this UpdateGoldenGateHub.
+ Name of Microservices deployment to operate on target DB
+
+
+ :param target_microservices_deployment_name: The target_microservices_deployment_name of this UpdateGoldenGateHub.
+ :type: str
+ """
+ self._target_microservices_deployment_name = target_microservices_deployment_name
+
+ @property
+ def compute_id(self):
+ """
+ Gets the compute_id of this UpdateGoldenGateHub.
+ OCID of Golden Gate compute instance. An empty value will remove the stored computeId.
+
+
+ :return: The compute_id of this UpdateGoldenGateHub.
+ :rtype: str
+ """
+ return self._compute_id
+
+ @compute_id.setter
+ def compute_id(self, compute_id):
+ """
+ Sets the compute_id of this UpdateGoldenGateHub.
+ OCID of Golden Gate compute instance. An empty value will remove the stored computeId.
+
+
+ :param compute_id: The compute_id of this UpdateGoldenGateHub.
+ :type: str
+ """
+ self._compute_id = compute_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_golden_gate_settings.py b/src/oci/database_migration/models/update_golden_gate_settings.py
new file mode 100644
index 0000000000..4e7fb3aaf2
--- /dev/null
+++ b/src/oci/database_migration/models/update_golden_gate_settings.py
@@ -0,0 +1,125 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateGoldenGateSettings(object):
+ """
+ Optional settings for Oracle GoldenGate processes
+ If an empty object is specified, the stored Golden Gate Settings details will be removed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateGoldenGateSettings object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param extract:
+ The value to assign to the extract property of this UpdateGoldenGateSettings.
+ :type extract: oci.database_migration.models.UpdateExtract
+
+ :param replicat:
+ The value to assign to the replicat property of this UpdateGoldenGateSettings.
+ :type replicat: oci.database_migration.models.UpdateReplicat
+
+ :param acceptable_lag:
+ The value to assign to the acceptable_lag property of this UpdateGoldenGateSettings.
+ :type acceptable_lag: int
+
+ """
+ self.swagger_types = {
+ 'extract': 'UpdateExtract',
+ 'replicat': 'UpdateReplicat',
+ 'acceptable_lag': 'int'
+ }
+
+ self.attribute_map = {
+ 'extract': 'extract',
+ 'replicat': 'replicat',
+ 'acceptable_lag': 'acceptableLag'
+ }
+
+ self._extract = None
+ self._replicat = None
+ self._acceptable_lag = None
+
+ @property
+ def extract(self):
+ """
+ Gets the extract of this UpdateGoldenGateSettings.
+
+ :return: The extract of this UpdateGoldenGateSettings.
+ :rtype: oci.database_migration.models.UpdateExtract
+ """
+ return self._extract
+
+ @extract.setter
+ def extract(self, extract):
+ """
+ Sets the extract of this UpdateGoldenGateSettings.
+
+ :param extract: The extract of this UpdateGoldenGateSettings.
+ :type: oci.database_migration.models.UpdateExtract
+ """
+ self._extract = extract
+
+ @property
+ def replicat(self):
+ """
+ Gets the replicat of this UpdateGoldenGateSettings.
+
+ :return: The replicat of this UpdateGoldenGateSettings.
+ :rtype: oci.database_migration.models.UpdateReplicat
+ """
+ return self._replicat
+
+ @replicat.setter
+ def replicat(self, replicat):
+ """
+ Sets the replicat of this UpdateGoldenGateSettings.
+
+ :param replicat: The replicat of this UpdateGoldenGateSettings.
+ :type: oci.database_migration.models.UpdateReplicat
+ """
+ self._replicat = replicat
+
+ @property
+ def acceptable_lag(self):
+ """
+ Gets the acceptable_lag of this UpdateGoldenGateSettings.
+ ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds.
+
+
+ :return: The acceptable_lag of this UpdateGoldenGateSettings.
+ :rtype: int
+ """
+ return self._acceptable_lag
+
+ @acceptable_lag.setter
+ def acceptable_lag(self, acceptable_lag):
+ """
+ Sets the acceptable_lag of this UpdateGoldenGateSettings.
+ ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the specified value in seconds.
+
+
+ :param acceptable_lag: The acceptable_lag of this UpdateGoldenGateSettings.
+ :type: int
+ """
+ self._acceptable_lag = acceptable_lag
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_job_details.py b/src/oci/database_migration/models/update_job_details.py
new file mode 100644
index 0000000000..d6837255df
--- /dev/null
+++ b/src/oci/database_migration/models/update_job_details.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateJobDetails(object):
+ """
+ Update Job Details
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateJobDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateJobDetails.
+ :type display_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateJobDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateJobDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'display_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'display_name': 'displayName',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._display_name = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateJobDetails.
+ Name of the job.
+
+
+ :return: The display_name of this UpdateJobDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateJobDetails.
+ Name of the job.
+
+
+ :param display_name: The display_name of this UpdateJobDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateJobDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateJobDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateJobDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateJobDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateJobDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateJobDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateJobDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateJobDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_migration_details.py b/src/oci/database_migration/models/update_migration_details.py
new file mode 100644
index 0000000000..7413b28e0c
--- /dev/null
+++ b/src/oci/database_migration/models/update_migration_details.py
@@ -0,0 +1,453 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateMigrationDetails(object):
+ """
+ Update Migration resource parameters.
+ """
+
+ #: A constant which can be used with the type property of a UpdateMigrationDetails.
+ #: This constant has a value of "ONLINE"
+ TYPE_ONLINE = "ONLINE"
+
+ #: A constant which can be used with the type property of a UpdateMigrationDetails.
+ #: This constant has a value of "OFFLINE"
+ TYPE_OFFLINE = "OFFLINE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateMigrationDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this UpdateMigrationDetails.
+ Allowed values for this property are: "ONLINE", "OFFLINE"
+ :type type: str
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateMigrationDetails.
+ :type display_name: str
+
+ :param agent_id:
+ The value to assign to the agent_id property of this UpdateMigrationDetails.
+ :type agent_id: str
+
+ :param source_database_connection_id:
+ The value to assign to the source_database_connection_id property of this UpdateMigrationDetails.
+ :type source_database_connection_id: str
+
+ :param source_container_database_connection_id:
+ The value to assign to the source_container_database_connection_id property of this UpdateMigrationDetails.
+ :type source_container_database_connection_id: str
+
+ :param target_database_connection_id:
+ The value to assign to the target_database_connection_id property of this UpdateMigrationDetails.
+ :type target_database_connection_id: str
+
+ :param data_transfer_medium_details:
+ The value to assign to the data_transfer_medium_details property of this UpdateMigrationDetails.
+ :type data_transfer_medium_details: oci.database_migration.models.UpdateDataTransferMediumDetails
+
+ :param datapump_settings:
+ The value to assign to the datapump_settings property of this UpdateMigrationDetails.
+ :type datapump_settings: oci.database_migration.models.UpdateDataPumpSettings
+
+ :param exclude_objects:
+ The value to assign to the exclude_objects property of this UpdateMigrationDetails.
+ :type exclude_objects: list[oci.database_migration.models.DatabaseObject]
+
+ :param golden_gate_details:
+ The value to assign to the golden_gate_details property of this UpdateMigrationDetails.
+ :type golden_gate_details: oci.database_migration.models.UpdateGoldenGateDetails
+
+ :param vault_details:
+ The value to assign to the vault_details property of this UpdateMigrationDetails.
+ :type vault_details: oci.database_migration.models.UpdateVaultDetails
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateMigrationDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateMigrationDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'display_name': 'str',
+ 'agent_id': 'str',
+ 'source_database_connection_id': 'str',
+ 'source_container_database_connection_id': 'str',
+ 'target_database_connection_id': 'str',
+ 'data_transfer_medium_details': 'UpdateDataTransferMediumDetails',
+ 'datapump_settings': 'UpdateDataPumpSettings',
+ 'exclude_objects': 'list[DatabaseObject]',
+ 'golden_gate_details': 'UpdateGoldenGateDetails',
+ 'vault_details': 'UpdateVaultDetails',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'display_name': 'displayName',
+ 'agent_id': 'agentId',
+ 'source_database_connection_id': 'sourceDatabaseConnectionId',
+ 'source_container_database_connection_id': 'sourceContainerDatabaseConnectionId',
+ 'target_database_connection_id': 'targetDatabaseConnectionId',
+ 'data_transfer_medium_details': 'dataTransferMediumDetails',
+ 'datapump_settings': 'datapumpSettings',
+ 'exclude_objects': 'excludeObjects',
+ 'golden_gate_details': 'goldenGateDetails',
+ 'vault_details': 'vaultDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._type = None
+ self._display_name = None
+ self._agent_id = None
+ self._source_database_connection_id = None
+ self._source_container_database_connection_id = None
+ self._target_database_connection_id = None
+ self._data_transfer_medium_details = None
+ self._datapump_settings = None
+ self._exclude_objects = None
+ self._golden_gate_details = None
+ self._vault_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def type(self):
+ """
+ Gets the type of this UpdateMigrationDetails.
+ Migration type.
+
+ Allowed values for this property are: "ONLINE", "OFFLINE"
+
+
+ :return: The type of this UpdateMigrationDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this UpdateMigrationDetails.
+ Migration type.
+
+
+ :param type: The type of this UpdateMigrationDetails.
+ :type: str
+ """
+ allowed_values = ["ONLINE", "OFFLINE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ "Invalid value for `type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._type = type
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateMigrationDetails.
+ Migration Display Name
+
+
+ :return: The display_name of this UpdateMigrationDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateMigrationDetails.
+ Migration Display Name
+
+
+ :param display_name: The display_name of this UpdateMigrationDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def agent_id(self):
+ """
+ Gets the agent_id of this UpdateMigrationDetails.
+ The OCID of the registered ODMS Agent.
+
+
+ :return: The agent_id of this UpdateMigrationDetails.
+ :rtype: str
+ """
+ return self._agent_id
+
+ @agent_id.setter
+ def agent_id(self, agent_id):
+ """
+ Sets the agent_id of this UpdateMigrationDetails.
+ The OCID of the registered ODMS Agent.
+
+
+ :param agent_id: The agent_id of this UpdateMigrationDetails.
+ :type: str
+ """
+ self._agent_id = agent_id
+
+ @property
+ def source_database_connection_id(self):
+ """
+ Gets the source_database_connection_id of this UpdateMigrationDetails.
+ The OCID of the Source Database Connection.
+
+
+ :return: The source_database_connection_id of this UpdateMigrationDetails.
+ :rtype: str
+ """
+ return self._source_database_connection_id
+
+ @source_database_connection_id.setter
+ def source_database_connection_id(self, source_database_connection_id):
+ """
+ Sets the source_database_connection_id of this UpdateMigrationDetails.
+ The OCID of the Source Database Connection.
+
+
+ :param source_database_connection_id: The source_database_connection_id of this UpdateMigrationDetails.
+ :type: str
+ """
+ self._source_database_connection_id = source_database_connection_id
+
+ @property
+ def source_container_database_connection_id(self):
+ """
+ Gets the source_container_database_connection_id of this UpdateMigrationDetails.
+ The OCID of the Source Container Database Connection. Only used for ONLINE migrations.
+ Only Connections of type Non-Autonomous can be used as source container databases.
+ An empty value would remove the stored Connection Id.
+
+
+ :return: The source_container_database_connection_id of this UpdateMigrationDetails.
+ :rtype: str
+ """
+ return self._source_container_database_connection_id
+
+ @source_container_database_connection_id.setter
+ def source_container_database_connection_id(self, source_container_database_connection_id):
+ """
+ Sets the source_container_database_connection_id of this UpdateMigrationDetails.
+ The OCID of the Source Container Database Connection. Only used for ONLINE migrations.
+ Only Connections of type Non-Autonomous can be used as source container databases.
+ An empty value would remove the stored Connection Id.
+
+
+ :param source_container_database_connection_id: The source_container_database_connection_id of this UpdateMigrationDetails.
+ :type: str
+ """
+ self._source_container_database_connection_id = source_container_database_connection_id
+
+ @property
+ def target_database_connection_id(self):
+ """
+ Gets the target_database_connection_id of this UpdateMigrationDetails.
+ The OCID of the Target Database Connection.
+
+
+ :return: The target_database_connection_id of this UpdateMigrationDetails.
+ :rtype: str
+ """
+ return self._target_database_connection_id
+
+ @target_database_connection_id.setter
+ def target_database_connection_id(self, target_database_connection_id):
+ """
+ Sets the target_database_connection_id of this UpdateMigrationDetails.
+ The OCID of the Target Database Connection.
+
+
+ :param target_database_connection_id: The target_database_connection_id of this UpdateMigrationDetails.
+ :type: str
+ """
+ self._target_database_connection_id = target_database_connection_id
+
+ @property
+ def data_transfer_medium_details(self):
+ """
+ Gets the data_transfer_medium_details of this UpdateMigrationDetails.
+
+ :return: The data_transfer_medium_details of this UpdateMigrationDetails.
+ :rtype: oci.database_migration.models.UpdateDataTransferMediumDetails
+ """
+ return self._data_transfer_medium_details
+
+ @data_transfer_medium_details.setter
+ def data_transfer_medium_details(self, data_transfer_medium_details):
+ """
+ Sets the data_transfer_medium_details of this UpdateMigrationDetails.
+
+ :param data_transfer_medium_details: The data_transfer_medium_details of this UpdateMigrationDetails.
+ :type: oci.database_migration.models.UpdateDataTransferMediumDetails
+ """
+ self._data_transfer_medium_details = data_transfer_medium_details
+
+ @property
+ def datapump_settings(self):
+ """
+ Gets the datapump_settings of this UpdateMigrationDetails.
+
+ :return: The datapump_settings of this UpdateMigrationDetails.
+ :rtype: oci.database_migration.models.UpdateDataPumpSettings
+ """
+ return self._datapump_settings
+
+ @datapump_settings.setter
+ def datapump_settings(self, datapump_settings):
+ """
+ Sets the datapump_settings of this UpdateMigrationDetails.
+
+ :param datapump_settings: The datapump_settings of this UpdateMigrationDetails.
+ :type: oci.database_migration.models.UpdateDataPumpSettings
+ """
+ self._datapump_settings = datapump_settings
+
+ @property
+ def exclude_objects(self):
+ """
+ Gets the exclude_objects of this UpdateMigrationDetails.
+ Database objects to exclude from migration.
+ If specified, the list will be replaced entirely. Empty list will remove stored excludeObjects details.
+
+
+ :return: The exclude_objects of this UpdateMigrationDetails.
+ :rtype: list[oci.database_migration.models.DatabaseObject]
+ """
+ return self._exclude_objects
+
+ @exclude_objects.setter
+ def exclude_objects(self, exclude_objects):
+ """
+ Sets the exclude_objects of this UpdateMigrationDetails.
+ Database objects to exclude from migration.
+ If specified, the list will be replaced entirely. Empty list will remove stored excludeObjects details.
+
+
+ :param exclude_objects: The exclude_objects of this UpdateMigrationDetails.
+ :type: list[oci.database_migration.models.DatabaseObject]
+ """
+ self._exclude_objects = exclude_objects
+
+ @property
+ def golden_gate_details(self):
+ """
+ Gets the golden_gate_details of this UpdateMigrationDetails.
+
+ :return: The golden_gate_details of this UpdateMigrationDetails.
+ :rtype: oci.database_migration.models.UpdateGoldenGateDetails
+ """
+ return self._golden_gate_details
+
+ @golden_gate_details.setter
+ def golden_gate_details(self, golden_gate_details):
+ """
+ Sets the golden_gate_details of this UpdateMigrationDetails.
+
+ :param golden_gate_details: The golden_gate_details of this UpdateMigrationDetails.
+ :type: oci.database_migration.models.UpdateGoldenGateDetails
+ """
+ self._golden_gate_details = golden_gate_details
+
+ @property
+ def vault_details(self):
+ """
+ Gets the vault_details of this UpdateMigrationDetails.
+
+ :return: The vault_details of this UpdateMigrationDetails.
+ :rtype: oci.database_migration.models.UpdateVaultDetails
+ """
+ return self._vault_details
+
+ @vault_details.setter
+ def vault_details(self, vault_details):
+ """
+ Sets the vault_details of this UpdateMigrationDetails.
+
+ :param vault_details: The vault_details of this UpdateMigrationDetails.
+ :type: oci.database_migration.models.UpdateVaultDetails
+ """
+ self._vault_details = vault_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateMigrationDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateMigrationDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateMigrationDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateMigrationDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateMigrationDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateMigrationDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateMigrationDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateMigrationDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_object_store_bucket.py b/src/oci/database_migration/models/update_object_store_bucket.py
new file mode 100644
index 0000000000..a6f05de074
--- /dev/null
+++ b/src/oci/database_migration/models/update_object_store_bucket.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateObjectStoreBucket(object):
+ """
+ OCI Object Storage bucket details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateObjectStoreBucket object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param namespace_name:
+ The value to assign to the namespace_name property of this UpdateObjectStoreBucket.
+ :type namespace_name: str
+
+ :param bucket_name:
+ The value to assign to the bucket_name property of this UpdateObjectStoreBucket.
+ :type bucket_name: str
+
+ """
+ self.swagger_types = {
+ 'namespace_name': 'str',
+ 'bucket_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'namespace_name': 'namespaceName',
+ 'bucket_name': 'bucketName'
+ }
+
+ self._namespace_name = None
+ self._bucket_name = None
+
+ @property
+ def namespace_name(self):
+ """
+ Gets the namespace_name of this UpdateObjectStoreBucket.
+ Namespace name of the object store bucket.
+
+
+ :return: The namespace_name of this UpdateObjectStoreBucket.
+ :rtype: str
+ """
+ return self._namespace_name
+
+ @namespace_name.setter
+ def namespace_name(self, namespace_name):
+ """
+ Sets the namespace_name of this UpdateObjectStoreBucket.
+ Namespace name of the object store bucket.
+
+
+ :param namespace_name: The namespace_name of this UpdateObjectStoreBucket.
+ :type: str
+ """
+ self._namespace_name = namespace_name
+
+ @property
+ def bucket_name(self):
+ """
+ Gets the bucket_name of this UpdateObjectStoreBucket.
+ Bucket name.
+
+
+ :return: The bucket_name of this UpdateObjectStoreBucket.
+ :rtype: str
+ """
+ return self._bucket_name
+
+ @bucket_name.setter
+ def bucket_name(self, bucket_name):
+ """
+ Sets the bucket_name of this UpdateObjectStoreBucket.
+ Bucket name.
+
+
+ :param bucket_name: The bucket_name of this UpdateObjectStoreBucket.
+ :type: str
+ """
+ self._bucket_name = bucket_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_private_endpoint.py b/src/oci/database_migration/models/update_private_endpoint.py
new file mode 100644
index 0000000000..22b0f8374c
--- /dev/null
+++ b/src/oci/database_migration/models/update_private_endpoint.py
@@ -0,0 +1,149 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdatePrivateEndpoint(object):
+ """
+ OCI Private Endpoint configuration details.
+ An empty object would result in the removal of the stored details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdatePrivateEndpoint object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this UpdatePrivateEndpoint.
+ :type compartment_id: str
+
+ :param vcn_id:
+ The value to assign to the vcn_id property of this UpdatePrivateEndpoint.
+ :type vcn_id: str
+
+ :param subnet_id:
+ The value to assign to the subnet_id property of this UpdatePrivateEndpoint.
+ :type subnet_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'vcn_id': 'str',
+ 'subnet_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'vcn_id': 'vcnId',
+ 'subnet_id': 'subnetId'
+ }
+
+ self._compartment_id = None
+ self._vcn_id = None
+ self._subnet_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ Gets the compartment_id of this UpdatePrivateEndpoint.
+ The `OCID`__ of the compartment to contain the
+ private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this UpdatePrivateEndpoint.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this UpdatePrivateEndpoint.
+ The `OCID`__ of the compartment to contain the
+ private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this UpdatePrivateEndpoint.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vcn_id(self):
+ """
+ Gets the vcn_id of this UpdatePrivateEndpoint.
+ The `OCID`__ of the VCN where the Private Endpoint will be bound to.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The vcn_id of this UpdatePrivateEndpoint.
+ :rtype: str
+ """
+ return self._vcn_id
+
+ @vcn_id.setter
+ def vcn_id(self, vcn_id):
+ """
+ Sets the vcn_id of this UpdatePrivateEndpoint.
+ The `OCID`__ of the VCN where the Private Endpoint will be bound to.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param vcn_id: The vcn_id of this UpdatePrivateEndpoint.
+ :type: str
+ """
+ self._vcn_id = vcn_id
+
+ @property
+ def subnet_id(self):
+ """
+ Gets the subnet_id of this UpdatePrivateEndpoint.
+ The `OCID`__ of the customer's subnet where the private endpoint VNIC
+ will reside.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The subnet_id of this UpdatePrivateEndpoint.
+ :rtype: str
+ """
+ return self._subnet_id
+
+ @subnet_id.setter
+ def subnet_id(self, subnet_id):
+ """
+ Sets the subnet_id of this UpdatePrivateEndpoint.
+ The `OCID`__ of the customer's subnet where the private endpoint VNIC
+ will reside.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param subnet_id: The subnet_id of this UpdatePrivateEndpoint.
+ :type: str
+ """
+ self._subnet_id = subnet_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_replicat.py b/src/oci/database_migration/models/update_replicat.py
new file mode 100644
index 0000000000..e8af2e6bce
--- /dev/null
+++ b/src/oci/database_migration/models/update_replicat.py
@@ -0,0 +1,133 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateReplicat(object):
+ """
+ Parameters for Replicat processes.
+ If an empty object is specified, the stored Replicat details will be removed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateReplicat object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param map_parallelism:
+ The value to assign to the map_parallelism property of this UpdateReplicat.
+ :type map_parallelism: int
+
+ :param min_apply_parallelism:
+ The value to assign to the min_apply_parallelism property of this UpdateReplicat.
+ :type min_apply_parallelism: int
+
+ :param max_apply_parallelism:
+ The value to assign to the max_apply_parallelism property of this UpdateReplicat.
+ :type max_apply_parallelism: int
+
+ """
+ self.swagger_types = {
+ 'map_parallelism': 'int',
+ 'min_apply_parallelism': 'int',
+ 'max_apply_parallelism': 'int'
+ }
+
+ self.attribute_map = {
+ 'map_parallelism': 'mapParallelism',
+ 'min_apply_parallelism': 'minApplyParallelism',
+ 'max_apply_parallelism': 'maxApplyParallelism'
+ }
+
+ self._map_parallelism = None
+ self._min_apply_parallelism = None
+ self._max_apply_parallelism = None
+
+ @property
+ def map_parallelism(self):
+ """
+ Gets the map_parallelism of this UpdateReplicat.
+ Number of threads used to read trail files (valid for Parallel Replicat)
+
+
+ :return: The map_parallelism of this UpdateReplicat.
+ :rtype: int
+ """
+ return self._map_parallelism
+
+ @map_parallelism.setter
+ def map_parallelism(self, map_parallelism):
+ """
+ Sets the map_parallelism of this UpdateReplicat.
+ Number of threads used to read trail files (valid for Parallel Replicat)
+
+
+ :param map_parallelism: The map_parallelism of this UpdateReplicat.
+ :type: int
+ """
+ self._map_parallelism = map_parallelism
+
+ @property
+ def min_apply_parallelism(self):
+ """
+ Gets the min_apply_parallelism of this UpdateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :return: The min_apply_parallelism of this UpdateReplicat.
+ :rtype: int
+ """
+ return self._min_apply_parallelism
+
+ @min_apply_parallelism.setter
+ def min_apply_parallelism(self, min_apply_parallelism):
+ """
+ Sets the min_apply_parallelism of this UpdateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :param min_apply_parallelism: The min_apply_parallelism of this UpdateReplicat.
+ :type: int
+ """
+ self._min_apply_parallelism = min_apply_parallelism
+
+ @property
+ def max_apply_parallelism(self):
+ """
+ Gets the max_apply_parallelism of this UpdateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :return: The max_apply_parallelism of this UpdateReplicat.
+ :rtype: int
+ """
+ return self._max_apply_parallelism
+
+ @max_apply_parallelism.setter
+ def max_apply_parallelism(self, max_apply_parallelism):
+ """
+ Sets the max_apply_parallelism of this UpdateReplicat.
+ Defines the range in which the Replicat automatically adjusts its apply parallelism (valid for Parallel Replicat)
+
+
+ :param max_apply_parallelism: The max_apply_parallelism of this UpdateReplicat.
+ :type: int
+ """
+ self._max_apply_parallelism = max_apply_parallelism
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_ssh_details.py b/src/oci/database_migration/models/update_ssh_details.py
new file mode 100644
index 0000000000..eaeec70653
--- /dev/null
+++ b/src/oci/database_migration/models/update_ssh_details.py
@@ -0,0 +1,163 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateSshDetails(object):
+ """
+ Details of the ssh key that will be used.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateSshDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host:
+ The value to assign to the host property of this UpdateSshDetails.
+ :type host: str
+
+ :param sshkey:
+ The value to assign to the sshkey property of this UpdateSshDetails.
+ :type sshkey: str
+
+ :param user:
+ The value to assign to the user property of this UpdateSshDetails.
+ :type user: str
+
+ :param sudo_location:
+ The value to assign to the sudo_location property of this UpdateSshDetails.
+ :type sudo_location: str
+
+ """
+ self.swagger_types = {
+ 'host': 'str',
+ 'sshkey': 'str',
+ 'user': 'str',
+ 'sudo_location': 'str'
+ }
+
+ self.attribute_map = {
+ 'host': 'host',
+ 'sshkey': 'sshkey',
+ 'user': 'user',
+ 'sudo_location': 'sudoLocation'
+ }
+
+ self._host = None
+ self._sshkey = None
+ self._user = None
+ self._sudo_location = None
+
+ @property
+ def host(self):
+ """
+ Gets the host of this UpdateSshDetails.
+ Name of the host the sshkey is valid for.
+
+
+ :return: The host of this UpdateSshDetails.
+ :rtype: str
+ """
+ return self._host
+
+ @host.setter
+ def host(self, host):
+ """
+ Sets the host of this UpdateSshDetails.
+ Name of the host the sshkey is valid for.
+
+
+ :param host: The host of this UpdateSshDetails.
+ :type: str
+ """
+ self._host = host
+
+ @property
+ def sshkey(self):
+ """
+ Gets the sshkey of this UpdateSshDetails.
+ Private ssh key string.
+
+
+ :return: The sshkey of this UpdateSshDetails.
+ :rtype: str
+ """
+ return self._sshkey
+
+ @sshkey.setter
+ def sshkey(self, sshkey):
+ """
+ Sets the sshkey of this UpdateSshDetails.
+ Private ssh key string.
+
+
+ :param sshkey: The sshkey of this UpdateSshDetails.
+ :type: str
+ """
+ self._sshkey = sshkey
+
+ @property
+ def user(self):
+ """
+ Gets the user of this UpdateSshDetails.
+ SSH user
+
+
+ :return: The user of this UpdateSshDetails.
+ :rtype: str
+ """
+ return self._user
+
+ @user.setter
+ def user(self, user):
+ """
+ Sets the user of this UpdateSshDetails.
+ SSH user
+
+
+ :param user: The user of this UpdateSshDetails.
+ :type: str
+ """
+ self._user = user
+
+ @property
+ def sudo_location(self):
+ """
+ Gets the sudo_location of this UpdateSshDetails.
+ Sudo location
+
+
+ :return: The sudo_location of this UpdateSshDetails.
+ :rtype: str
+ """
+ return self._sudo_location
+
+ @sudo_location.setter
+ def sudo_location(self, sudo_location):
+ """
+ Sets the sudo_location of this UpdateSshDetails.
+ Sudo location
+
+
+ :param sudo_location: The sudo_location of this UpdateSshDetails.
+ :type: str
+ """
+ self._sudo_location = sudo_location
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/update_vault_details.py b/src/oci/database_migration/models/update_vault_details.py
new file mode 100644
index 0000000000..827f84874e
--- /dev/null
+++ b/src/oci/database_migration/models/update_vault_details.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateVaultDetails(object):
+ """
+ OCI Vault details to store migration and connection credentials secrets. An empty object would result in the removal of the stored details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateVaultDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this UpdateVaultDetails.
+ :type compartment_id: str
+
+ :param vault_id:
+ The value to assign to the vault_id property of this UpdateVaultDetails.
+ :type vault_id: str
+
+ :param key_id:
+ The value to assign to the key_id property of this UpdateVaultDetails.
+ :type key_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'vault_id': 'str',
+ 'key_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'vault_id': 'vaultId',
+ 'key_id': 'keyId'
+ }
+
+ self._compartment_id = None
+ self._vault_id = None
+ self._key_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ Gets the compartment_id of this UpdateVaultDetails.
+ OCID of the compartment where the secret containing the credentials will be created.
+
+
+ :return: The compartment_id of this UpdateVaultDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this UpdateVaultDetails.
+ OCID of the compartment where the secret containing the credentials will be created.
+
+
+ :param compartment_id: The compartment_id of this UpdateVaultDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vault_id(self):
+ """
+ Gets the vault_id of this UpdateVaultDetails.
+ OCID of the vault
+
+
+ :return: The vault_id of this UpdateVaultDetails.
+ :rtype: str
+ """
+ return self._vault_id
+
+ @vault_id.setter
+ def vault_id(self, vault_id):
+ """
+ Sets the vault_id of this UpdateVaultDetails.
+ OCID of the vault
+
+
+ :param vault_id: The vault_id of this UpdateVaultDetails.
+ :type: str
+ """
+ self._vault_id = vault_id
+
+ @property
+ def key_id(self):
+ """
+ Gets the key_id of this UpdateVaultDetails.
+ OCID of the vault encryption key
+
+
+ :return: The key_id of this UpdateVaultDetails.
+ :rtype: str
+ """
+ return self._key_id
+
+ @key_id.setter
+ def key_id(self, key_id):
+ """
+ Sets the key_id of this UpdateVaultDetails.
+ OCID of the vault encryption key
+
+
+ :param key_id: The key_id of this UpdateVaultDetails.
+ :type: str
+ """
+ self._key_id = key_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/vault_details.py b/src/oci/database_migration/models/vault_details.py
new file mode 100644
index 0000000000..ff1906d913
--- /dev/null
+++ b/src/oci/database_migration/models/vault_details.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class VaultDetails(object):
+ """
+ OCI Vault details to store migration and connection credentials secrets
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new VaultDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this VaultDetails.
+ :type compartment_id: str
+
+ :param vault_id:
+ The value to assign to the vault_id property of this VaultDetails.
+ :type vault_id: str
+
+ :param key_id:
+ The value to assign to the key_id property of this VaultDetails.
+ :type key_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'vault_id': 'str',
+ 'key_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'vault_id': 'vaultId',
+ 'key_id': 'keyId'
+ }
+
+ self._compartment_id = None
+ self._vault_id = None
+ self._key_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this VaultDetails.
+ OCID of the compartment where the secret containing the credentials will be created.
+
+
+ :return: The compartment_id of this VaultDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this VaultDetails.
+ OCID of the compartment where the secret containing the credentials will be created.
+
+
+ :param compartment_id: The compartment_id of this VaultDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vault_id(self):
+ """
+ **[Required]** Gets the vault_id of this VaultDetails.
+ OCID of the vault
+
+
+ :return: The vault_id of this VaultDetails.
+ :rtype: str
+ """
+ return self._vault_id
+
+ @vault_id.setter
+ def vault_id(self, vault_id):
+ """
+ Sets the vault_id of this VaultDetails.
+ OCID of the vault
+
+
+ :param vault_id: The vault_id of this VaultDetails.
+ :type: str
+ """
+ self._vault_id = vault_id
+
+ @property
+ def key_id(self):
+ """
+ **[Required]** Gets the key_id of this VaultDetails.
+ OCID of the vault encryption key
+
+
+ :return: The key_id of this VaultDetails.
+ :rtype: str
+ """
+ return self._key_id
+
+ @key_id.setter
+ def key_id(self, key_id):
+ """
+ Sets the key_id of this VaultDetails.
+ OCID of the vault encryption key
+
+
+ :param key_id: The key_id of this VaultDetails.
+ :type: str
+ """
+ self._key_id = key_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request.py b/src/oci/database_migration/models/work_request.py
new file mode 100644
index 0000000000..f920d145c5
--- /dev/null
+++ b/src/oci/database_migration/models/work_request.py
@@ -0,0 +1,416 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequest(object):
+ """
+ An asynchronous work request.
+ """
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CREATE_AGENT"
+ OPERATION_TYPE_CREATE_AGENT = "CREATE_AGENT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DELETE_AGENT"
+ OPERATION_TYPE_DELETE_AGENT = "DELETE_AGENT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CREATE_MIGRATION"
+ OPERATION_TYPE_CREATE_MIGRATION = "CREATE_MIGRATION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CLONE_MIGRATION"
+ OPERATION_TYPE_CLONE_MIGRATION = "CLONE_MIGRATION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DELETE_MIGRATION"
+ OPERATION_TYPE_DELETE_MIGRATION = "DELETE_MIGRATION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "UPDATE_MIGRATION"
+ OPERATION_TYPE_UPDATE_MIGRATION = "UPDATE_MIGRATION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "START_MIGRATION"
+ OPERATION_TYPE_START_MIGRATION = "START_MIGRATION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "VALIDATE_MIGRATION"
+ OPERATION_TYPE_VALIDATE_MIGRATION = "VALIDATE_MIGRATION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CREATE_CONNECTION"
+ OPERATION_TYPE_CREATE_CONNECTION = "CREATE_CONNECTION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DELETE_CONNECTION"
+ OPERATION_TYPE_DELETE_CONNECTION = "DELETE_CONNECTION"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "UPDATE_CONNECTION"
+ OPERATION_TYPE_UPDATE_CONNECTION = "UPDATE_CONNECTION"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "ACCEPTED"
+ STATUS_ACCEPTED = "ACCEPTED"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "IN_PROGRESS"
+ STATUS_IN_PROGRESS = "IN_PROGRESS"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "FAILED"
+ STATUS_FAILED = "FAILED"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "SUCCEEDED"
+ STATUS_SUCCEEDED = "SUCCEEDED"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "CANCELING"
+ STATUS_CANCELING = "CANCELING"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "CANCELED"
+ STATUS_CANCELED = "CANCELED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequest object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param operation_type:
+ The value to assign to the operation_type property of this WorkRequest.
+ Allowed values for this property are: "CREATE_AGENT", "DELETE_AGENT", "CREATE_MIGRATION", "CLONE_MIGRATION", "DELETE_MIGRATION", "UPDATE_MIGRATION", "START_MIGRATION", "VALIDATE_MIGRATION", "CREATE_CONNECTION", "DELETE_CONNECTION", "UPDATE_CONNECTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type operation_type: str
+
+ :param status:
+ The value to assign to the status property of this WorkRequest.
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param id:
+ The value to assign to the id property of this WorkRequest.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this WorkRequest.
+ :type compartment_id: str
+
+ :param resources:
+ The value to assign to the resources property of this WorkRequest.
+ :type resources: list[oci.database_migration.models.WorkRequestResource]
+
+ :param percent_complete:
+ The value to assign to the percent_complete property of this WorkRequest.
+ :type percent_complete: float
+
+ :param time_accepted:
+ The value to assign to the time_accepted property of this WorkRequest.
+ :type time_accepted: datetime
+
+ :param time_started:
+ The value to assign to the time_started property of this WorkRequest.
+ :type time_started: datetime
+
+ :param time_finished:
+ The value to assign to the time_finished property of this WorkRequest.
+ :type time_finished: datetime
+
+ """
+ self.swagger_types = {
+ 'operation_type': 'str',
+ 'status': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'resources': 'list[WorkRequestResource]',
+ 'percent_complete': 'float',
+ 'time_accepted': 'datetime',
+ 'time_started': 'datetime',
+ 'time_finished': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'operation_type': 'operationType',
+ 'status': 'status',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'resources': 'resources',
+ 'percent_complete': 'percentComplete',
+ 'time_accepted': 'timeAccepted',
+ 'time_started': 'timeStarted',
+ 'time_finished': 'timeFinished'
+ }
+
+ self._operation_type = None
+ self._status = None
+ self._id = None
+ self._compartment_id = None
+ self._resources = None
+ self._percent_complete = None
+ self._time_accepted = None
+ self._time_started = None
+ self._time_finished = None
+
+ @property
+ def operation_type(self):
+ """
+ **[Required]** Gets the operation_type of this WorkRequest.
+ Type of the work request
+
+ Allowed values for this property are: "CREATE_AGENT", "DELETE_AGENT", "CREATE_MIGRATION", "CLONE_MIGRATION", "DELETE_MIGRATION", "UPDATE_MIGRATION", "START_MIGRATION", "VALIDATE_MIGRATION", "CREATE_CONNECTION", "DELETE_CONNECTION", "UPDATE_CONNECTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The operation_type of this WorkRequest.
+ :rtype: str
+ """
+ return self._operation_type
+
+ @operation_type.setter
+ def operation_type(self, operation_type):
+ """
+ Sets the operation_type of this WorkRequest.
+ Type of the work request
+
+
+ :param operation_type: The operation_type of this WorkRequest.
+ :type: str
+ """
+ allowed_values = ["CREATE_AGENT", "DELETE_AGENT", "CREATE_MIGRATION", "CLONE_MIGRATION", "DELETE_MIGRATION", "UPDATE_MIGRATION", "START_MIGRATION", "VALIDATE_MIGRATION", "CREATE_CONNECTION", "DELETE_CONNECTION", "UPDATE_CONNECTION"]
+ if not value_allowed_none_or_none_sentinel(operation_type, allowed_values):
+ operation_type = 'UNKNOWN_ENUM_VALUE'
+ self._operation_type = operation_type
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this WorkRequest.
+ Status of current work request.
+
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this WorkRequest.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this WorkRequest.
+ Status of current work request.
+
+
+ :param status: The status of this WorkRequest.
+ :type: str
+ """
+ allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this WorkRequest.
+ The `OCID`__ of the work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this WorkRequest.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this WorkRequest.
+ The `OCID`__ of the work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this WorkRequest.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this WorkRequest.
+ The `OCID`__ of the compartment
+ that contains the work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this WorkRequest.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this WorkRequest.
+ The `OCID`__ of the compartment
+ that contains the work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this WorkRequest.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def resources(self):
+ """
+ **[Required]** Gets the resources of this WorkRequest.
+ The resources that are affected by this work request.
+
+
+ :return: The resources of this WorkRequest.
+ :rtype: list[oci.database_migration.models.WorkRequestResource]
+ """
+ return self._resources
+
+ @resources.setter
+ def resources(self, resources):
+ """
+ Sets the resources of this WorkRequest.
+ The resources that are affected by this work request.
+
+
+ :param resources: The resources of this WorkRequest.
+ :type: list[oci.database_migration.models.WorkRequestResource]
+ """
+ self._resources = resources
+
+ @property
+ def percent_complete(self):
+ """
+ **[Required]** Gets the percent_complete of this WorkRequest.
+ The percentage complete of the operation tracked by this work request.
+
+
+ :return: The percent_complete of this WorkRequest.
+ :rtype: float
+ """
+ return self._percent_complete
+
+ @percent_complete.setter
+ def percent_complete(self, percent_complete):
+ """
+ Sets the percent_complete of this WorkRequest.
+ The percentage complete of the operation tracked by this work request.
+
+
+ :param percent_complete: The percent_complete of this WorkRequest.
+ :type: float
+ """
+ self._percent_complete = percent_complete
+
+ @property
+ def time_accepted(self):
+ """
+ **[Required]** Gets the time_accepted of this WorkRequest.
+ The date and time the work request was created, in the format defined by RFC3339.
+
+
+ :return: The time_accepted of this WorkRequest.
+ :rtype: datetime
+ """
+ return self._time_accepted
+
+ @time_accepted.setter
+ def time_accepted(self, time_accepted):
+ """
+ Sets the time_accepted of this WorkRequest.
+ The date and time the work request was created, in the format defined by RFC3339.
+
+
+ :param time_accepted: The time_accepted of this WorkRequest.
+ :type: datetime
+ """
+ self._time_accepted = time_accepted
+
+ @property
+ def time_started(self):
+ """
+ Gets the time_started of this WorkRequest.
+ The date and time the work request transitioned from `ACCEPTED` to `IN_PROGRESS`,
+ in the format defined by RFC3339.
+
+
+ :return: The time_started of this WorkRequest.
+ :rtype: datetime
+ """
+ return self._time_started
+
+ @time_started.setter
+ def time_started(self, time_started):
+ """
+ Sets the time_started of this WorkRequest.
+ The date and time the work request transitioned from `ACCEPTED` to `IN_PROGRESS`,
+ in the format defined by RFC3339.
+
+
+ :param time_started: The time_started of this WorkRequest.
+ :type: datetime
+ """
+ self._time_started = time_started
+
+ @property
+ def time_finished(self):
+ """
+ Gets the time_finished of this WorkRequest.
+ The date and time the work request reached a terminal state, either `FAILED` or `SUCCEEDED`.
+ Format is defined by RFC3339.
+
+
+ :return: The time_finished of this WorkRequest.
+ :rtype: datetime
+ """
+ return self._time_finished
+
+ @time_finished.setter
+ def time_finished(self, time_finished):
+ """
+ Sets the time_finished of this WorkRequest.
+ The date and time the work request reached a terminal state, either `FAILED` or `SUCCEEDED`.
+ Format is defined by RFC3339.
+
+
+ :param time_finished: The time_finished of this WorkRequest.
+ :type: datetime
+ """
+ self._time_finished = time_finished
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request_collection.py b/src/oci/database_migration/models/work_request_collection.py
new file mode 100644
index 0000000000..e98c471e5d
--- /dev/null
+++ b/src/oci/database_migration/models/work_request_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestCollection(object):
+ """
+ Results of a Work Request search. Contains WorkRequestSummary items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this WorkRequestCollection.
+ :type items: list[oci.database_migration.models.WorkRequestSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[WorkRequestSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this WorkRequestCollection.
+ Items in collection.
+
+
+ :return: The items of this WorkRequestCollection.
+ :rtype: list[oci.database_migration.models.WorkRequestSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this WorkRequestCollection.
+ Items in collection.
+
+
+ :param items: The items of this WorkRequestCollection.
+ :type: list[oci.database_migration.models.WorkRequestSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request_error.py b/src/oci/database_migration/models/work_request_error.py
new file mode 100644
index 0000000000..4789d2b39e
--- /dev/null
+++ b/src/oci/database_migration/models/work_request_error.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestError(object):
+ """
+ An error encountered while executing an operation that is tracked by a work request.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestError object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param code:
+ The value to assign to the code property of this WorkRequestError.
+ :type code: str
+
+ :param message:
+ The value to assign to the message property of this WorkRequestError.
+ :type message: str
+
+ :param time_stamp:
+ The value to assign to the time_stamp property of this WorkRequestError.
+ :type time_stamp: datetime
+
+ """
+ self.swagger_types = {
+ 'code': 'str',
+ 'message': 'str',
+ 'time_stamp': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'code': 'code',
+ 'message': 'message',
+ 'time_stamp': 'timeStamp'
+ }
+
+ self._code = None
+ self._message = None
+ self._time_stamp = None
+
+ @property
+ def code(self):
+ """
+ **[Required]** Gets the code of this WorkRequestError.
+ A machine-usable code for the error that occured. Error codes are listed on
+ (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm)
+
+
+ :return: The code of this WorkRequestError.
+ :rtype: str
+ """
+ return self._code
+
+ @code.setter
+ def code(self, code):
+ """
+ Sets the code of this WorkRequestError.
+ A machine-usable code for the error that occured. Error codes are listed on
+ (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm)
+
+
+ :param code: The code of this WorkRequestError.
+ :type: str
+ """
+ self._code = code
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this WorkRequestError.
+ A human-readable error string.
+
+
+ :return: The message of this WorkRequestError.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this WorkRequestError.
+ A human-readable error string.
+
+
+ :param message: The message of this WorkRequestError.
+ :type: str
+ """
+ self._message = message
+
+ @property
+ def time_stamp(self):
+ """
+ **[Required]** Gets the time_stamp of this WorkRequestError.
+ The time the error occured. An RFC3339 formatted datetime string.
+
+
+ :return: The time_stamp of this WorkRequestError.
+ :rtype: datetime
+ """
+ return self._time_stamp
+
+ @time_stamp.setter
+ def time_stamp(self, time_stamp):
+ """
+ Sets the time_stamp of this WorkRequestError.
+ The time the error occured. An RFC3339 formatted datetime string.
+
+
+ :param time_stamp: The time_stamp of this WorkRequestError.
+ :type: datetime
+ """
+ self._time_stamp = time_stamp
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request_error_collection.py b/src/oci/database_migration/models/work_request_error_collection.py
new file mode 100644
index 0000000000..a474b24c28
--- /dev/null
+++ b/src/oci/database_migration/models/work_request_error_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestErrorCollection(object):
+ """
+ Results of a Work Request search. Contains WorkRequestError items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestErrorCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this WorkRequestErrorCollection.
+ :type items: list[oci.database_migration.models.WorkRequestError]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[WorkRequestError]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this WorkRequestErrorCollection.
+ Items in collection.
+
+
+ :return: The items of this WorkRequestErrorCollection.
+ :rtype: list[oci.database_migration.models.WorkRequestError]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this WorkRequestErrorCollection.
+ Items in collection.
+
+
+ :param items: The items of this WorkRequestErrorCollection.
+ :type: list[oci.database_migration.models.WorkRequestError]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request_log_entry.py b/src/oci/database_migration/models/work_request_log_entry.py
new file mode 100644
index 0000000000..72f4fee3a1
--- /dev/null
+++ b/src/oci/database_migration/models/work_request_log_entry.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestLogEntry(object):
+ """
+ A log message from executing an operation that is tracked by a work request.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestLogEntry object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param message:
+ The value to assign to the message property of this WorkRequestLogEntry.
+ :type message: str
+
+ :param time_stamp:
+ The value to assign to the time_stamp property of this WorkRequestLogEntry.
+ :type time_stamp: datetime
+
+ """
+ self.swagger_types = {
+ 'message': 'str',
+ 'time_stamp': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'message': 'message',
+ 'time_stamp': 'timeStamp'
+ }
+
+ self._message = None
+ self._time_stamp = None
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this WorkRequestLogEntry.
+ A human-readable log message.
+
+
+ :return: The message of this WorkRequestLogEntry.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this WorkRequestLogEntry.
+ A human-readable log message.
+
+
+ :param message: The message of this WorkRequestLogEntry.
+ :type: str
+ """
+ self._message = message
+
+ @property
+ def time_stamp(self):
+ """
+ **[Required]** Gets the time_stamp of this WorkRequestLogEntry.
+ The time the log message was written. An RFC3339 formatted datetime string
+
+
+ :return: The time_stamp of this WorkRequestLogEntry.
+ :rtype: datetime
+ """
+ return self._time_stamp
+
+ @time_stamp.setter
+ def time_stamp(self, time_stamp):
+ """
+ Sets the time_stamp of this WorkRequestLogEntry.
+ The time the log message was written. An RFC3339 formatted datetime string
+
+
+ :param time_stamp: The time_stamp of this WorkRequestLogEntry.
+ :type: datetime
+ """
+ self._time_stamp = time_stamp
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request_log_entry_collection.py b/src/oci/database_migration/models/work_request_log_entry_collection.py
new file mode 100644
index 0000000000..0d08219efd
--- /dev/null
+++ b/src/oci/database_migration/models/work_request_log_entry_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestLogEntryCollection(object):
+ """
+ Results of a Work Request search. Contains WorkRequestLogEntry items.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestLogEntryCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this WorkRequestLogEntryCollection.
+ :type items: list[oci.database_migration.models.WorkRequestLogEntry]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[WorkRequestLogEntry]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this WorkRequestLogEntryCollection.
+ Items in collection.
+
+
+ :return: The items of this WorkRequestLogEntryCollection.
+ :rtype: list[oci.database_migration.models.WorkRequestLogEntry]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this WorkRequestLogEntryCollection.
+ Items in collection.
+
+
+ :param items: The items of this WorkRequestLogEntryCollection.
+ :type: list[oci.database_migration.models.WorkRequestLogEntry]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request_resource.py b/src/oci/database_migration/models/work_request_resource.py
new file mode 100644
index 0000000000..20a5ccc2ce
--- /dev/null
+++ b/src/oci/database_migration/models/work_request_resource.py
@@ -0,0 +1,200 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestResource(object):
+ """
+ A resource that is created or operated on by an asynchronous operation that is tracked by
+ a work request.
+ """
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "CREATED"
+ ACTION_TYPE_CREATED = "CREATED"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "UPDATED"
+ ACTION_TYPE_UPDATED = "UPDATED"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "DELETED"
+ ACTION_TYPE_DELETED = "DELETED"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "RELATED"
+ ACTION_TYPE_RELATED = "RELATED"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "IN_PROGRESS"
+ ACTION_TYPE_IN_PROGRESS = "IN_PROGRESS"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestResource object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param action_type:
+ The value to assign to the action_type property of this WorkRequestResource.
+ Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "RELATED", "IN_PROGRESS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type action_type: str
+
+ :param entity_type:
+ The value to assign to the entity_type property of this WorkRequestResource.
+ :type entity_type: str
+
+ :param identifier:
+ The value to assign to the identifier property of this WorkRequestResource.
+ :type identifier: str
+
+ :param entity_uri:
+ The value to assign to the entity_uri property of this WorkRequestResource.
+ :type entity_uri: str
+
+ """
+ self.swagger_types = {
+ 'action_type': 'str',
+ 'entity_type': 'str',
+ 'identifier': 'str',
+ 'entity_uri': 'str'
+ }
+
+ self.attribute_map = {
+ 'action_type': 'actionType',
+ 'entity_type': 'entityType',
+ 'identifier': 'identifier',
+ 'entity_uri': 'entityUri'
+ }
+
+ self._action_type = None
+ self._entity_type = None
+ self._identifier = None
+ self._entity_uri = None
+
+ @property
+ def action_type(self):
+ """
+ **[Required]** Gets the action_type of this WorkRequestResource.
+ The way in which this resource was affected by the operation that spawned the work
+ request.
+
+ Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "RELATED", "IN_PROGRESS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The action_type of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._action_type
+
+ @action_type.setter
+ def action_type(self, action_type):
+ """
+ Sets the action_type of this WorkRequestResource.
+ The way in which this resource was affected by the operation that spawned the work
+ request.
+
+
+ :param action_type: The action_type of this WorkRequestResource.
+ :type: str
+ """
+ allowed_values = ["CREATED", "UPDATED", "DELETED", "RELATED", "IN_PROGRESS"]
+ if not value_allowed_none_or_none_sentinel(action_type, allowed_values):
+ action_type = 'UNKNOWN_ENUM_VALUE'
+ self._action_type = action_type
+
+ @property
+ def entity_type(self):
+ """
+ **[Required]** Gets the entity_type of this WorkRequestResource.
+ The resource type the work request affects.
+
+
+ :return: The entity_type of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._entity_type
+
+ @entity_type.setter
+ def entity_type(self, entity_type):
+ """
+ Sets the entity_type of this WorkRequestResource.
+ The resource type the work request affects.
+
+
+ :param entity_type: The entity_type of this WorkRequestResource.
+ :type: str
+ """
+ self._entity_type = entity_type
+
+ @property
+ def identifier(self):
+ """
+ **[Required]** Gets the identifier of this WorkRequestResource.
+ An `OCID`__ or other unique identifier for the
+ resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The identifier of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._identifier
+
+ @identifier.setter
+ def identifier(self, identifier):
+ """
+ Sets the identifier of this WorkRequestResource.
+ An `OCID`__ or other unique identifier for the
+ resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param identifier: The identifier of this WorkRequestResource.
+ :type: str
+ """
+ self._identifier = identifier
+
+ @property
+ def entity_uri(self):
+ """
+ Gets the entity_uri of this WorkRequestResource.
+ The URI path that you can use for a GET request to access the resource metadata.
+
+
+ :return: The entity_uri of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._entity_uri
+
+ @entity_uri.setter
+ def entity_uri(self, entity_uri):
+ """
+ Sets the entity_uri of this WorkRequestResource.
+ The URI path that you can use for a GET request to access the resource metadata.
+
+
+ :param entity_uri: The entity_uri of this WorkRequestResource.
+ :type: str
+ """
+ self._entity_uri = entity_uri
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/database_migration/models/work_request_summary.py b/src/oci/database_migration/models/work_request_summary.py
new file mode 100644
index 0000000000..82a7b7e4e9
--- /dev/null
+++ b/src/oci/database_migration/models/work_request_summary.py
@@ -0,0 +1,333 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestSummary(object):
+ """
+ A summary of the status of a work request.
+ """
+
+ #: A constant which can be used with the status property of a WorkRequestSummary.
+ #: This constant has a value of "ACCEPTED"
+ STATUS_ACCEPTED = "ACCEPTED"
+
+ #: A constant which can be used with the status property of a WorkRequestSummary.
+ #: This constant has a value of "IN_PROGRESS"
+ STATUS_IN_PROGRESS = "IN_PROGRESS"
+
+ #: A constant which can be used with the status property of a WorkRequestSummary.
+ #: This constant has a value of "FAILED"
+ STATUS_FAILED = "FAILED"
+
+ #: A constant which can be used with the status property of a WorkRequestSummary.
+ #: This constant has a value of "SUCCEEDED"
+ STATUS_SUCCEEDED = "SUCCEEDED"
+
+ #: A constant which can be used with the status property of a WorkRequestSummary.
+ #: This constant has a value of "CANCELING"
+ STATUS_CANCELING = "CANCELING"
+
+ #: A constant which can be used with the status property of a WorkRequestSummary.
+ #: This constant has a value of "CANCELED"
+ STATUS_CANCELED = "CANCELED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param operation_type:
+ The value to assign to the operation_type property of this WorkRequestSummary.
+ :type operation_type: str
+
+ :param status:
+ The value to assign to the status property of this WorkRequestSummary.
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param id:
+ The value to assign to the id property of this WorkRequestSummary.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this WorkRequestSummary.
+ :type compartment_id: str
+
+ :param percent_complete:
+ The value to assign to the percent_complete property of this WorkRequestSummary.
+ :type percent_complete: float
+
+ :param time_accepted:
+ The value to assign to the time_accepted property of this WorkRequestSummary.
+ :type time_accepted: datetime
+
+ :param time_started:
+ The value to assign to the time_started property of this WorkRequestSummary.
+ :type time_started: datetime
+
+ :param time_finished:
+ The value to assign to the time_finished property of this WorkRequestSummary.
+ :type time_finished: datetime
+
+ """
+ self.swagger_types = {
+ 'operation_type': 'str',
+ 'status': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'percent_complete': 'float',
+ 'time_accepted': 'datetime',
+ 'time_started': 'datetime',
+ 'time_finished': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'operation_type': 'operationType',
+ 'status': 'status',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'percent_complete': 'percentComplete',
+ 'time_accepted': 'timeAccepted',
+ 'time_started': 'timeStarted',
+ 'time_finished': 'timeFinished'
+ }
+
+ self._operation_type = None
+ self._status = None
+ self._id = None
+ self._compartment_id = None
+ self._percent_complete = None
+ self._time_accepted = None
+ self._time_started = None
+ self._time_finished = None
+
+ @property
+ def operation_type(self):
+ """
+ **[Required]** Gets the operation_type of this WorkRequestSummary.
+ The asynchronous operation tracked by this work request.
+
+
+ :return: The operation_type of this WorkRequestSummary.
+ :rtype: str
+ """
+ return self._operation_type
+
+ @operation_type.setter
+ def operation_type(self, operation_type):
+ """
+ Sets the operation_type of this WorkRequestSummary.
+ The asynchronous operation tracked by this work request.
+
+
+ :param operation_type: The operation_type of this WorkRequestSummary.
+ :type: str
+ """
+ self._operation_type = operation_type
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this WorkRequestSummary.
+ The status of the work request.
+
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this WorkRequestSummary.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this WorkRequestSummary.
+ The status of the work request.
+
+
+ :param status: The status of this WorkRequestSummary.
+ :type: str
+ """
+ allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this WorkRequestSummary.
+ The `OCID`__ of the work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this WorkRequestSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this WorkRequestSummary.
+ The `OCID`__ of the work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this WorkRequestSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this WorkRequestSummary.
+ The `OCID`__ of the compartment containing
+ this work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this WorkRequestSummary.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this WorkRequestSummary.
+ The `OCID`__ of the compartment containing
+ this work request.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this WorkRequestSummary.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def percent_complete(self):
+ """
+ **[Required]** Gets the percent_complete of this WorkRequestSummary.
+ The percentage complete of the operation tracked by this work request.
+
+
+ :return: The percent_complete of this WorkRequestSummary.
+ :rtype: float
+ """
+ return self._percent_complete
+
+ @percent_complete.setter
+ def percent_complete(self, percent_complete):
+ """
+ Sets the percent_complete of this WorkRequestSummary.
+ The percentage complete of the operation tracked by this work request.
+
+
+ :param percent_complete: The percent_complete of this WorkRequestSummary.
+ :type: float
+ """
+ self._percent_complete = percent_complete
+
+ @property
+ def time_accepted(self):
+ """
+ **[Required]** Gets the time_accepted of this WorkRequestSummary.
+ The date and time the work request was created, in the format defined by RFC3339.
+
+
+ :return: The time_accepted of this WorkRequestSummary.
+ :rtype: datetime
+ """
+ return self._time_accepted
+
+ @time_accepted.setter
+ def time_accepted(self, time_accepted):
+ """
+ Sets the time_accepted of this WorkRequestSummary.
+ The date and time the work request was created, in the format defined by RFC3339.
+
+
+ :param time_accepted: The time_accepted of this WorkRequestSummary.
+ :type: datetime
+ """
+ self._time_accepted = time_accepted
+
+ @property
+ def time_started(self):
+ """
+ Gets the time_started of this WorkRequestSummary.
+ The date and time the work request transitioned from `ACCEPTED` to `IN_PROGRESS`, in
+ the format defined by RFC3339.
+
+
+ :return: The time_started of this WorkRequestSummary.
+ :rtype: datetime
+ """
+ return self._time_started
+
+ @time_started.setter
+ def time_started(self, time_started):
+ """
+ Sets the time_started of this WorkRequestSummary.
+ The date and time the work request transitioned from `ACCEPTED` to `IN_PROGRESS`, in
+ the format defined by RFC3339.
+
+
+ :param time_started: The time_started of this WorkRequestSummary.
+ :type: datetime
+ """
+ self._time_started = time_started
+
+ @property
+ def time_finished(self):
+ """
+ Gets the time_finished of this WorkRequestSummary.
+ The date and time the work request reached a terminal state, either `FAILED` or `SUCCEEDED`.
+ Format is defined by RFC3339.
+
+
+ :return: The time_finished of this WorkRequestSummary.
+ :rtype: datetime
+ """
+ return self._time_finished
+
+ @time_finished.setter
+ def time_finished(self, time_finished):
+ """
+ Sets the time_finished of this WorkRequestSummary.
+ The date and time the work request reached a terminal state, either `FAILED` or `SUCCEEDED`.
+ Format is defined by RFC3339.
+
+
+ :param time_finished: The time_finished of this WorkRequestSummary.
+ :type: datetime
+ """
+ self._time_finished = time_finished
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/functions/models/__init__.py b/src/oci/functions/models/__init__.py
index ae3fda9d94..c5168e1192 100644
--- a/src/oci/functions/models/__init__.py
+++ b/src/oci/functions/models/__init__.py
@@ -6,11 +6,13 @@
from .application import Application
from .application_summary import ApplicationSummary
+from .application_trace_config import ApplicationTraceConfig
from .change_application_compartment_details import ChangeApplicationCompartmentDetails
from .create_application_details import CreateApplicationDetails
from .create_function_details import CreateFunctionDetails
from .function import Function
from .function_summary import FunctionSummary
+from .function_trace_config import FunctionTraceConfig
from .update_application_details import UpdateApplicationDetails
from .update_function_details import UpdateFunctionDetails
@@ -18,11 +20,13 @@
functions_type_mapping = {
"Application": Application,
"ApplicationSummary": ApplicationSummary,
+ "ApplicationTraceConfig": ApplicationTraceConfig,
"ChangeApplicationCompartmentDetails": ChangeApplicationCompartmentDetails,
"CreateApplicationDetails": CreateApplicationDetails,
"CreateFunctionDetails": CreateFunctionDetails,
"Function": Function,
"FunctionSummary": FunctionSummary,
+ "FunctionTraceConfig": FunctionTraceConfig,
"UpdateApplicationDetails": UpdateApplicationDetails,
"UpdateFunctionDetails": UpdateFunctionDetails
}
diff --git a/src/oci/functions/models/application.py b/src/oci/functions/models/application.py
index bad80128bb..6ab0babf0b 100644
--- a/src/oci/functions/models/application.py
+++ b/src/oci/functions/models/application.py
@@ -76,6 +76,10 @@ def __init__(self, **kwargs):
The value to assign to the syslog_url property of this Application.
:type syslog_url: str
+ :param trace_config:
+ The value to assign to the trace_config property of this Application.
+ :type trace_config: oci.functions.models.ApplicationTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this Application.
:type freeform_tags: dict(str, str)
@@ -101,6 +105,7 @@ def __init__(self, **kwargs):
'config': 'dict(str, str)',
'subnet_ids': 'list[str]',
'syslog_url': 'str',
+ 'trace_config': 'ApplicationTraceConfig',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
'time_created': 'datetime',
@@ -115,6 +120,7 @@ def __init__(self, **kwargs):
'config': 'config',
'subnet_ids': 'subnetIds',
'syslog_url': 'syslogUrl',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
'time_created': 'timeCreated',
@@ -128,6 +134,7 @@ def __init__(self, **kwargs):
self._config = None
self._subnet_ids = None
self._syslog_url = None
+ self._trace_config = None
self._freeform_tags = None
self._defined_tags = None
self._time_created = None
@@ -333,6 +340,26 @@ def syslog_url(self, syslog_url):
"""
self._syslog_url = syslog_url
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this Application.
+
+ :return: The trace_config of this Application.
+ :rtype: oci.functions.models.ApplicationTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this Application.
+
+ :param trace_config: The trace_config of this Application.
+ :type: oci.functions.models.ApplicationTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/functions/models/application_summary.py b/src/oci/functions/models/application_summary.py
index 9c4d143a1c..4564da91d9 100644
--- a/src/oci/functions/models/application_summary.py
+++ b/src/oci/functions/models/application_summary.py
@@ -38,6 +38,10 @@ def __init__(self, **kwargs):
The value to assign to the subnet_ids property of this ApplicationSummary.
:type subnet_ids: list[str]
+ :param trace_config:
+ The value to assign to the trace_config property of this ApplicationSummary.
+ :type trace_config: oci.functions.models.ApplicationTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this ApplicationSummary.
:type freeform_tags: dict(str, str)
@@ -61,6 +65,7 @@ def __init__(self, **kwargs):
'display_name': 'str',
'lifecycle_state': 'str',
'subnet_ids': 'list[str]',
+ 'trace_config': 'ApplicationTraceConfig',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
'time_created': 'datetime',
@@ -73,6 +78,7 @@ def __init__(self, **kwargs):
'display_name': 'displayName',
'lifecycle_state': 'lifecycleState',
'subnet_ids': 'subnetIds',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
'time_created': 'timeCreated',
@@ -84,6 +90,7 @@ def __init__(self, **kwargs):
self._display_name = None
self._lifecycle_state = None
self._subnet_ids = None
+ self._trace_config = None
self._freeform_tags = None
self._defined_tags = None
self._time_created = None
@@ -217,6 +224,26 @@ def subnet_ids(self, subnet_ids):
"""
self._subnet_ids = subnet_ids
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this ApplicationSummary.
+
+ :return: The trace_config of this ApplicationSummary.
+ :rtype: oci.functions.models.ApplicationTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this ApplicationSummary.
+
+ :param trace_config: The trace_config of this ApplicationSummary.
+ :type: oci.functions.models.ApplicationTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/functions/models/application_trace_config.py b/src/oci/functions/models/application_trace_config.py
new file mode 100644
index 0000000000..e240b4d79e
--- /dev/null
+++ b/src/oci/functions/models/application_trace_config.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ApplicationTraceConfig(object):
+ """
+ Define the tracing configuration for an application.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ApplicationTraceConfig object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param is_enabled:
+ The value to assign to the is_enabled property of this ApplicationTraceConfig.
+ :type is_enabled: bool
+
+ :param domain_id:
+ The value to assign to the domain_id property of this ApplicationTraceConfig.
+ :type domain_id: str
+
+ """
+ self.swagger_types = {
+ 'is_enabled': 'bool',
+ 'domain_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'is_enabled': 'isEnabled',
+ 'domain_id': 'domainId'
+ }
+
+ self._is_enabled = None
+ self._domain_id = None
+
+ @property
+ def is_enabled(self):
+ """
+ Gets the is_enabled of this ApplicationTraceConfig.
+ Define if tracing is enabled for the resource.
+
+
+ :return: The is_enabled of this ApplicationTraceConfig.
+ :rtype: bool
+ """
+ return self._is_enabled
+
+ @is_enabled.setter
+ def is_enabled(self, is_enabled):
+ """
+ Sets the is_enabled of this ApplicationTraceConfig.
+ Define if tracing is enabled for the resource.
+
+
+ :param is_enabled: The is_enabled of this ApplicationTraceConfig.
+ :type: bool
+ """
+ self._is_enabled = is_enabled
+
+ @property
+ def domain_id(self):
+ """
+ Gets the domain_id of this ApplicationTraceConfig.
+ The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
+
+
+ :return: The domain_id of this ApplicationTraceConfig.
+ :rtype: str
+ """
+ return self._domain_id
+
+ @domain_id.setter
+ def domain_id(self, domain_id):
+ """
+ Sets the domain_id of this ApplicationTraceConfig.
+ The OCID of the collector (e.g. an APM Domain) trace events will be sent to.
+
+
+ :param domain_id: The domain_id of this ApplicationTraceConfig.
+ :type: str
+ """
+ self._domain_id = domain_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/functions/models/create_application_details.py b/src/oci/functions/models/create_application_details.py
index 66fba6cc30..32bca3348d 100644
--- a/src/oci/functions/models/create_application_details.py
+++ b/src/oci/functions/models/create_application_details.py
@@ -38,6 +38,10 @@ def __init__(self, **kwargs):
The value to assign to the syslog_url property of this CreateApplicationDetails.
:type syslog_url: str
+ :param trace_config:
+ The value to assign to the trace_config property of this CreateApplicationDetails.
+ :type trace_config: oci.functions.models.ApplicationTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this CreateApplicationDetails.
:type freeform_tags: dict(str, str)
@@ -53,6 +57,7 @@ def __init__(self, **kwargs):
'config': 'dict(str, str)',
'subnet_ids': 'list[str]',
'syslog_url': 'str',
+ 'trace_config': 'ApplicationTraceConfig',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -63,6 +68,7 @@ def __init__(self, **kwargs):
'config': 'config',
'subnet_ids': 'subnetIds',
'syslog_url': 'syslogUrl',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
@@ -72,6 +78,7 @@ def __init__(self, **kwargs):
self._config = None
self._subnet_ids = None
self._syslog_url = None
+ self._trace_config = None
self._freeform_tags = None
self._defined_tags = None
@@ -217,6 +224,26 @@ def syslog_url(self, syslog_url):
"""
self._syslog_url = syslog_url
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this CreateApplicationDetails.
+
+ :return: The trace_config of this CreateApplicationDetails.
+ :rtype: oci.functions.models.ApplicationTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this CreateApplicationDetails.
+
+ :param trace_config: The trace_config of this CreateApplicationDetails.
+ :type: oci.functions.models.ApplicationTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/functions/models/create_function_details.py b/src/oci/functions/models/create_function_details.py
index 4d91e3687b..1832231823 100644
--- a/src/oci/functions/models/create_function_details.py
+++ b/src/oci/functions/models/create_function_details.py
@@ -46,6 +46,10 @@ def __init__(self, **kwargs):
The value to assign to the timeout_in_seconds property of this CreateFunctionDetails.
:type timeout_in_seconds: int
+ :param trace_config:
+ The value to assign to the trace_config property of this CreateFunctionDetails.
+ :type trace_config: oci.functions.models.FunctionTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this CreateFunctionDetails.
:type freeform_tags: dict(str, str)
@@ -63,6 +67,7 @@ def __init__(self, **kwargs):
'memory_in_mbs': 'int',
'config': 'dict(str, str)',
'timeout_in_seconds': 'int',
+ 'trace_config': 'FunctionTraceConfig',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -75,6 +80,7 @@ def __init__(self, **kwargs):
'memory_in_mbs': 'memoryInMBs',
'config': 'config',
'timeout_in_seconds': 'timeoutInSeconds',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
@@ -86,6 +92,7 @@ def __init__(self, **kwargs):
self._memory_in_mbs = None
self._config = None
self._timeout_in_seconds = None
+ self._trace_config = None
self._freeform_tags = None
self._defined_tags = None
@@ -275,6 +282,26 @@ def timeout_in_seconds(self, timeout_in_seconds):
"""
self._timeout_in_seconds = timeout_in_seconds
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this CreateFunctionDetails.
+
+ :return: The trace_config of this CreateFunctionDetails.
+ :rtype: oci.functions.models.FunctionTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this CreateFunctionDetails.
+
+ :param trace_config: The trace_config of this CreateFunctionDetails.
+ :type: oci.functions.models.FunctionTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/functions/models/function.py b/src/oci/functions/models/function.py
index 5d8ed3df36..daf13bde27 100644
--- a/src/oci/functions/models/function.py
+++ b/src/oci/functions/models/function.py
@@ -88,6 +88,10 @@ def __init__(self, **kwargs):
The value to assign to the timeout_in_seconds property of this Function.
:type timeout_in_seconds: int
+ :param trace_config:
+ The value to assign to the trace_config property of this Function.
+ :type trace_config: oci.functions.models.FunctionTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this Function.
:type freeform_tags: dict(str, str)
@@ -120,6 +124,7 @@ def __init__(self, **kwargs):
'memory_in_mbs': 'int',
'config': 'dict(str, str)',
'timeout_in_seconds': 'int',
+ 'trace_config': 'FunctionTraceConfig',
'freeform_tags': 'dict(str, str)',
'invoke_endpoint': 'str',
'defined_tags': 'dict(str, dict(str, object))',
@@ -138,6 +143,7 @@ def __init__(self, **kwargs):
'memory_in_mbs': 'memoryInMBs',
'config': 'config',
'timeout_in_seconds': 'timeoutInSeconds',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'invoke_endpoint': 'invokeEndpoint',
'defined_tags': 'definedTags',
@@ -155,6 +161,7 @@ def __init__(self, **kwargs):
self._memory_in_mbs = None
self._config = None
self._timeout_in_seconds = None
+ self._trace_config = None
self._freeform_tags = None
self._invoke_endpoint = None
self._defined_tags = None
@@ -429,6 +436,26 @@ def timeout_in_seconds(self, timeout_in_seconds):
"""
self._timeout_in_seconds = timeout_in_seconds
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this Function.
+
+ :return: The trace_config of this Function.
+ :rtype: oci.functions.models.FunctionTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this Function.
+
+ :param trace_config: The trace_config of this Function.
+ :type: oci.functions.models.FunctionTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/functions/models/function_summary.py b/src/oci/functions/models/function_summary.py
index b8c9a7ef13..15d86542dd 100644
--- a/src/oci/functions/models/function_summary.py
+++ b/src/oci/functions/models/function_summary.py
@@ -84,6 +84,10 @@ def __init__(self, **kwargs):
The value to assign to the timeout_in_seconds property of this FunctionSummary.
:type timeout_in_seconds: int
+ :param trace_config:
+ The value to assign to the trace_config property of this FunctionSummary.
+ :type trace_config: oci.functions.models.FunctionTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this FunctionSummary.
:type freeform_tags: dict(str, str)
@@ -115,6 +119,7 @@ def __init__(self, **kwargs):
'image_digest': 'str',
'memory_in_mbs': 'int',
'timeout_in_seconds': 'int',
+ 'trace_config': 'FunctionTraceConfig',
'freeform_tags': 'dict(str, str)',
'invoke_endpoint': 'str',
'defined_tags': 'dict(str, dict(str, object))',
@@ -132,6 +137,7 @@ def __init__(self, **kwargs):
'image_digest': 'imageDigest',
'memory_in_mbs': 'memoryInMBs',
'timeout_in_seconds': 'timeoutInSeconds',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'invoke_endpoint': 'invokeEndpoint',
'defined_tags': 'definedTags',
@@ -148,6 +154,7 @@ def __init__(self, **kwargs):
self._image_digest = None
self._memory_in_mbs = None
self._timeout_in_seconds = None
+ self._trace_config = None
self._freeform_tags = None
self._invoke_endpoint = None
self._defined_tags = None
@@ -388,6 +395,26 @@ def timeout_in_seconds(self, timeout_in_seconds):
"""
self._timeout_in_seconds = timeout_in_seconds
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this FunctionSummary.
+
+ :return: The trace_config of this FunctionSummary.
+ :rtype: oci.functions.models.FunctionTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this FunctionSummary.
+
+ :param trace_config: The trace_config of this FunctionSummary.
+ :type: oci.functions.models.FunctionTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/functions/models/function_trace_config.py b/src/oci/functions/models/function_trace_config.py
new file mode 100644
index 0000000000..70a7f2913c
--- /dev/null
+++ b/src/oci/functions/models/function_trace_config.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class FunctionTraceConfig(object):
+ """
+ Define the tracing configuration for a function.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new FunctionTraceConfig object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param is_enabled:
+ The value to assign to the is_enabled property of this FunctionTraceConfig.
+ :type is_enabled: bool
+
+ """
+ self.swagger_types = {
+ 'is_enabled': 'bool'
+ }
+
+ self.attribute_map = {
+ 'is_enabled': 'isEnabled'
+ }
+
+ self._is_enabled = None
+
+ @property
+ def is_enabled(self):
+ """
+ Gets the is_enabled of this FunctionTraceConfig.
+ Define if tracing is enabled for the resource.
+
+
+ :return: The is_enabled of this FunctionTraceConfig.
+ :rtype: bool
+ """
+ return self._is_enabled
+
+ @is_enabled.setter
+ def is_enabled(self, is_enabled):
+ """
+ Sets the is_enabled of this FunctionTraceConfig.
+ Define if tracing is enabled for the resource.
+
+
+ :param is_enabled: The is_enabled of this FunctionTraceConfig.
+ :type: bool
+ """
+ self._is_enabled = is_enabled
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/functions/models/update_application_details.py b/src/oci/functions/models/update_application_details.py
index c8b4a61f2d..93e9f50350 100644
--- a/src/oci/functions/models/update_application_details.py
+++ b/src/oci/functions/models/update_application_details.py
@@ -26,6 +26,10 @@ def __init__(self, **kwargs):
The value to assign to the syslog_url property of this UpdateApplicationDetails.
:type syslog_url: str
+ :param trace_config:
+ The value to assign to the trace_config property of this UpdateApplicationDetails.
+ :type trace_config: oci.functions.models.ApplicationTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this UpdateApplicationDetails.
:type freeform_tags: dict(str, str)
@@ -38,6 +42,7 @@ def __init__(self, **kwargs):
self.swagger_types = {
'config': 'dict(str, str)',
'syslog_url': 'str',
+ 'trace_config': 'ApplicationTraceConfig',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -45,12 +50,14 @@ def __init__(self, **kwargs):
self.attribute_map = {
'config': 'config',
'syslog_url': 'syslogUrl',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
self._config = None
self._syslog_url = None
+ self._trace_config = None
self._freeform_tags = None
self._defined_tags = None
@@ -120,6 +127,26 @@ def syslog_url(self, syslog_url):
"""
self._syslog_url = syslog_url
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this UpdateApplicationDetails.
+
+ :return: The trace_config of this UpdateApplicationDetails.
+ :rtype: oci.functions.models.ApplicationTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this UpdateApplicationDetails.
+
+ :param trace_config: The trace_config of this UpdateApplicationDetails.
+ :type: oci.functions.models.ApplicationTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/functions/models/update_function_details.py b/src/oci/functions/models/update_function_details.py
index 255b16a0fa..fd22acab80 100644
--- a/src/oci/functions/models/update_function_details.py
+++ b/src/oci/functions/models/update_function_details.py
@@ -38,6 +38,10 @@ def __init__(self, **kwargs):
The value to assign to the timeout_in_seconds property of this UpdateFunctionDetails.
:type timeout_in_seconds: int
+ :param trace_config:
+ The value to assign to the trace_config property of this UpdateFunctionDetails.
+ :type trace_config: oci.functions.models.FunctionTraceConfig
+
:param freeform_tags:
The value to assign to the freeform_tags property of this UpdateFunctionDetails.
:type freeform_tags: dict(str, str)
@@ -53,6 +57,7 @@ def __init__(self, **kwargs):
'memory_in_mbs': 'int',
'config': 'dict(str, str)',
'timeout_in_seconds': 'int',
+ 'trace_config': 'FunctionTraceConfig',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -63,6 +68,7 @@ def __init__(self, **kwargs):
'memory_in_mbs': 'memoryInMBs',
'config': 'config',
'timeout_in_seconds': 'timeoutInSeconds',
+ 'trace_config': 'traceConfig',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
@@ -72,6 +78,7 @@ def __init__(self, **kwargs):
self._memory_in_mbs = None
self._config = None
self._timeout_in_seconds = None
+ self._trace_config = None
self._freeform_tags = None
self._defined_tags = None
@@ -213,6 +220,26 @@ def timeout_in_seconds(self, timeout_in_seconds):
"""
self._timeout_in_seconds = timeout_in_seconds
+ @property
+ def trace_config(self):
+ """
+ Gets the trace_config of this UpdateFunctionDetails.
+
+ :return: The trace_config of this UpdateFunctionDetails.
+ :rtype: oci.functions.models.FunctionTraceConfig
+ """
+ return self._trace_config
+
+ @trace_config.setter
+ def trace_config(self, trace_config):
+ """
+ Sets the trace_config of this UpdateFunctionDetails.
+
+ :param trace_config: The trace_config of this UpdateFunctionDetails.
+ :type: oci.functions.models.FunctionTraceConfig
+ """
+ self._trace_config = trace_config
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/limits/models/limit_definition_summary.py b/src/oci/limits/models/limit_definition_summary.py
index 661ebc7aed..2653603aef 100644
--- a/src/oci/limits/models/limit_definition_summary.py
+++ b/src/oci/limits/models/limit_definition_summary.py
@@ -56,6 +56,14 @@ def __init__(self, **kwargs):
The value to assign to the is_resource_availability_supported property of this LimitDefinitionSummary.
:type is_resource_availability_supported: bool
+ :param is_deprecated:
+ The value to assign to the is_deprecated property of this LimitDefinitionSummary.
+ :type is_deprecated: bool
+
+ :param is_eligible_for_limit_increase:
+ The value to assign to the is_eligible_for_limit_increase property of this LimitDefinitionSummary.
+ :type is_eligible_for_limit_increase: bool
+
"""
self.swagger_types = {
'name': 'str',
@@ -63,7 +71,9 @@ def __init__(self, **kwargs):
'description': 'str',
'scope_type': 'str',
'are_quotas_supported': 'bool',
- 'is_resource_availability_supported': 'bool'
+ 'is_resource_availability_supported': 'bool',
+ 'is_deprecated': 'bool',
+ 'is_eligible_for_limit_increase': 'bool'
}
self.attribute_map = {
@@ -72,7 +82,9 @@ def __init__(self, **kwargs):
'description': 'description',
'scope_type': 'scopeType',
'are_quotas_supported': 'areQuotasSupported',
- 'is_resource_availability_supported': 'isResourceAvailabilitySupported'
+ 'is_resource_availability_supported': 'isResourceAvailabilitySupported',
+ 'is_deprecated': 'isDeprecated',
+ 'is_eligible_for_limit_increase': 'isEligibleForLimitIncrease'
}
self._name = None
@@ -81,6 +93,8 @@ def __init__(self, **kwargs):
self._scope_type = None
self._are_quotas_supported = None
self._is_resource_availability_supported = None
+ self._is_deprecated = None
+ self._is_eligible_for_limit_increase = None
@property
def name(self):
@@ -234,6 +248,54 @@ def is_resource_availability_supported(self, is_resource_availability_supported)
"""
self._is_resource_availability_supported = is_resource_availability_supported
+ @property
+ def is_deprecated(self):
+ """
+ Gets the is_deprecated of this LimitDefinitionSummary.
+ Indicates if the limit has been deprecated.
+
+
+ :return: The is_deprecated of this LimitDefinitionSummary.
+ :rtype: bool
+ """
+ return self._is_deprecated
+
+ @is_deprecated.setter
+ def is_deprecated(self, is_deprecated):
+ """
+ Sets the is_deprecated of this LimitDefinitionSummary.
+ Indicates if the limit has been deprecated.
+
+
+ :param is_deprecated: The is_deprecated of this LimitDefinitionSummary.
+ :type: bool
+ """
+ self._is_deprecated = is_deprecated
+
+ @property
+ def is_eligible_for_limit_increase(self):
+ """
+ Gets the is_eligible_for_limit_increase of this LimitDefinitionSummary.
+ Indicates if the customer can request a limit increase for this resource.
+
+
+ :return: The is_eligible_for_limit_increase of this LimitDefinitionSummary.
+ :rtype: bool
+ """
+ return self._is_eligible_for_limit_increase
+
+ @is_eligible_for_limit_increase.setter
+ def is_eligible_for_limit_increase(self, is_eligible_for_limit_increase):
+ """
+ Sets the is_eligible_for_limit_increase of this LimitDefinitionSummary.
+ Indicates if the customer can request a limit increase for this resource.
+
+
+ :param is_eligible_for_limit_increase: The is_eligible_for_limit_increase of this LimitDefinitionSummary.
+ :type: bool
+ """
+ self._is_eligible_for_limit_increase = is_eligible_for_limit_increase
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/limits/models/resource_availability.py b/src/oci/limits/models/resource_availability.py
index bd8b1b559d..ca3797944a 100644
--- a/src/oci/limits/models/resource_availability.py
+++ b/src/oci/limits/models/resource_availability.py
@@ -27,25 +27,47 @@ def __init__(self, **kwargs):
The value to assign to the available property of this ResourceAvailability.
:type available: int
+ :param fractional_usage:
+ The value to assign to the fractional_usage property of this ResourceAvailability.
+ :type fractional_usage: float
+
+ :param fractional_availability:
+ The value to assign to the fractional_availability property of this ResourceAvailability.
+ :type fractional_availability: float
+
+ :param effective_quota_value:
+ The value to assign to the effective_quota_value property of this ResourceAvailability.
+ :type effective_quota_value: float
+
"""
self.swagger_types = {
'used': 'int',
- 'available': 'int'
+ 'available': 'int',
+ 'fractional_usage': 'float',
+ 'fractional_availability': 'float',
+ 'effective_quota_value': 'float'
}
self.attribute_map = {
'used': 'used',
- 'available': 'available'
+ 'available': 'available',
+ 'fractional_usage': 'fractionalUsage',
+ 'fractional_availability': 'fractionalAvailability',
+ 'effective_quota_value': 'effectiveQuotaValue'
}
self._used = None
self._available = None
+ self._fractional_usage = None
+ self._fractional_availability = None
+ self._effective_quota_value = None
@property
def used(self):
"""
Gets the used of this ResourceAvailability.
- The current usage in the given compartment.
+ The current usage in the given compartment. Because we have introduced resources with fractional counts,
+ the field will round up to the nearest integer.
:return: The used of this ResourceAvailability.
@@ -57,7 +79,8 @@ def used(self):
def used(self, used):
"""
Sets the used of this ResourceAvailability.
- The current usage in the given compartment.
+ The current usage in the given compartment. Because we have introduced resources with fractional counts,
+ the field will round up to the nearest integer.
:param used: The used of this ResourceAvailability.
@@ -69,7 +92,8 @@ def used(self, used):
def available(self):
"""
Gets the available of this ResourceAvailability.
- The count of available resources.
+ The count of available resources. Because we have introduced resources with fractional counts,
+ the field will round down to the nearest integer.
:return: The available of this ResourceAvailability.
@@ -81,7 +105,8 @@ def available(self):
def available(self, available):
"""
Sets the available of this ResourceAvailability.
- The count of available resources.
+ The count of available resources. Because we have introduced resources with fractional counts,
+ the field will round down to the nearest integer.
:param available: The available of this ResourceAvailability.
@@ -89,6 +114,80 @@ def available(self, available):
"""
self._available = available
+ @property
+ def fractional_usage(self):
+ """
+ Gets the fractional_usage of this ResourceAvailability.
+ The current most accurate usage in the given compartment.
+
+
+ :return: The fractional_usage of this ResourceAvailability.
+ :rtype: float
+ """
+ return self._fractional_usage
+
+ @fractional_usage.setter
+ def fractional_usage(self, fractional_usage):
+ """
+ Sets the fractional_usage of this ResourceAvailability.
+ The current most accurate usage in the given compartment.
+
+
+ :param fractional_usage: The fractional_usage of this ResourceAvailability.
+ :type: float
+ """
+ self._fractional_usage = fractional_usage
+
+ @property
+ def fractional_availability(self):
+ """
+ Gets the fractional_availability of this ResourceAvailability.
+ The most accurate count of available resources.
+
+
+ :return: The fractional_availability of this ResourceAvailability.
+ :rtype: float
+ """
+ return self._fractional_availability
+
+ @fractional_availability.setter
+ def fractional_availability(self, fractional_availability):
+ """
+ Sets the fractional_availability of this ResourceAvailability.
+ The most accurate count of available resources.
+
+
+ :param fractional_availability: The fractional_availability of this ResourceAvailability.
+ :type: float
+ """
+ self._fractional_availability = fractional_availability
+
+ @property
+ def effective_quota_value(self):
+ """
+ Gets the effective_quota_value of this ResourceAvailability.
+ The effective quota value for given compartment. This field is only present if there is a
+ current quota policy affecting the current resource in the target region or availability domain.
+
+
+ :return: The effective_quota_value of this ResourceAvailability.
+ :rtype: float
+ """
+ return self._effective_quota_value
+
+ @effective_quota_value.setter
+ def effective_quota_value(self, effective_quota_value):
+ """
+ Sets the effective_quota_value of this ResourceAvailability.
+ The effective quota value for given compartment. This field is only present if there is a
+ current quota policy affecting the current resource in the target region or availability domain.
+
+
+ :param effective_quota_value: The effective_quota_value of this ResourceAvailability.
+ :type: float
+ """
+ self._effective_quota_value = effective_quota_value
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/ocvp/models/__init__.py b/src/oci/ocvp/models/__init__.py
index a858149d08..b75fda01cb 100644
--- a/src/oci/ocvp/models/__init__.py
+++ b/src/oci/ocvp/models/__init__.py
@@ -13,6 +13,8 @@
from .sddc import Sddc
from .sddc_collection import SddcCollection
from .sddc_summary import SddcSummary
+from .supported_sku_summary import SupportedSkuSummary
+from .supported_sku_summary_collection import SupportedSkuSummaryCollection
from .supported_vmware_software_version_collection import SupportedVmwareSoftwareVersionCollection
from .supported_vmware_software_version_summary import SupportedVmwareSoftwareVersionSummary
from .update_esxi_host_details import UpdateEsxiHostDetails
@@ -36,6 +38,8 @@
"Sddc": Sddc,
"SddcCollection": SddcCollection,
"SddcSummary": SddcSummary,
+ "SupportedSkuSummary": SupportedSkuSummary,
+ "SupportedSkuSummaryCollection": SupportedSkuSummaryCollection,
"SupportedVmwareSoftwareVersionCollection": SupportedVmwareSoftwareVersionCollection,
"SupportedVmwareSoftwareVersionSummary": SupportedVmwareSoftwareVersionSummary,
"UpdateEsxiHostDetails": UpdateEsxiHostDetails,
diff --git a/src/oci/ocvp/models/create_esxi_host_details.py b/src/oci/ocvp/models/create_esxi_host_details.py
index 0686066aeb..e4d21eb0d4 100644
--- a/src/oci/ocvp/models/create_esxi_host_details.py
+++ b/src/oci/ocvp/models/create_esxi_host_details.py
@@ -13,6 +13,38 @@ class CreateEsxiHostDetails(object):
Details of the ESXi host to add to the SDDC.
"""
+ #: A constant which can be used with the current_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "HOUR"
+ CURRENT_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the current_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "MONTH"
+ CURRENT_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the current_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "ONE_YEAR"
+ CURRENT_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the current_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "THREE_YEARS"
+ CURRENT_SKU_THREE_YEARS = "THREE_YEARS"
+
+ #: A constant which can be used with the next_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "HOUR"
+ NEXT_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the next_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "MONTH"
+ NEXT_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the next_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "ONE_YEAR"
+ NEXT_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the next_sku property of a CreateEsxiHostDetails.
+ #: This constant has a value of "THREE_YEARS"
+ NEXT_SKU_THREE_YEARS = "THREE_YEARS"
+
def __init__(self, **kwargs):
"""
Initializes a new CreateEsxiHostDetails object with values from keyword arguments.
@@ -26,6 +58,16 @@ def __init__(self, **kwargs):
The value to assign to the display_name property of this CreateEsxiHostDetails.
:type display_name: str
+ :param current_sku:
+ The value to assign to the current_sku property of this CreateEsxiHostDetails.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+ :type current_sku: str
+
+ :param next_sku:
+ The value to assign to the next_sku property of this CreateEsxiHostDetails.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+ :type next_sku: str
+
:param freeform_tags:
The value to assign to the freeform_tags property of this CreateEsxiHostDetails.
:type freeform_tags: dict(str, str)
@@ -38,6 +80,8 @@ def __init__(self, **kwargs):
self.swagger_types = {
'sddc_id': 'str',
'display_name': 'str',
+ 'current_sku': 'str',
+ 'next_sku': 'str',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -45,12 +89,16 @@ def __init__(self, **kwargs):
self.attribute_map = {
'sddc_id': 'sddcId',
'display_name': 'displayName',
+ 'current_sku': 'currentSku',
+ 'next_sku': 'nextSku',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
self._sddc_id = None
self._display_name = None
+ self._current_sku = None
+ self._next_sku = None
self._freeform_tags = None
self._defined_tags = None
@@ -124,6 +172,76 @@ def display_name(self, display_name):
"""
self._display_name = display_name
+ @property
+ def current_sku(self):
+ """
+ **[Required]** Gets the current_sku of this CreateEsxiHostDetails.
+ Billing option selected during SDDC creation.
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+
+
+ :return: The current_sku of this CreateEsxiHostDetails.
+ :rtype: str
+ """
+ return self._current_sku
+
+ @current_sku.setter
+ def current_sku(self, current_sku):
+ """
+ Sets the current_sku of this CreateEsxiHostDetails.
+ Billing option selected during SDDC creation.
+ :func:`list_supported_skus`.
+
+
+ :param current_sku: The current_sku of this CreateEsxiHostDetails.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(current_sku, allowed_values):
+ raise ValueError(
+ "Invalid value for `current_sku`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._current_sku = current_sku
+
+ @property
+ def next_sku(self):
+ """
+ Gets the next_sku of this CreateEsxiHostDetails.
+ Billing option to switch to once existing billing cycle ends.
+ If nextSku is null or empty, currentSku will be used to continue with next billing term.
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+
+
+ :return: The next_sku of this CreateEsxiHostDetails.
+ :rtype: str
+ """
+ return self._next_sku
+
+ @next_sku.setter
+ def next_sku(self, next_sku):
+ """
+ Sets the next_sku of this CreateEsxiHostDetails.
+ Billing option to switch to once existing billing cycle ends.
+ If nextSku is null or empty, currentSku will be used to continue with next billing term.
+ :func:`list_supported_skus`.
+
+
+ :param next_sku: The next_sku of this CreateEsxiHostDetails.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(next_sku, allowed_values):
+ raise ValueError(
+ "Invalid value for `next_sku`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._next_sku = next_sku
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/ocvp/models/create_sddc_details.py b/src/oci/ocvp/models/create_sddc_details.py
index 33056036a3..b50d8092c0 100644
--- a/src/oci/ocvp/models/create_sddc_details.py
+++ b/src/oci/ocvp/models/create_sddc_details.py
@@ -13,6 +13,22 @@ class CreateSddcDetails(object):
Details of the SDDC.
"""
+ #: A constant which can be used with the initial_sku property of a CreateSddcDetails.
+ #: This constant has a value of "HOUR"
+ INITIAL_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the initial_sku property of a CreateSddcDetails.
+ #: This constant has a value of "MONTH"
+ INITIAL_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the initial_sku property of a CreateSddcDetails.
+ #: This constant has a value of "ONE_YEAR"
+ INITIAL_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the initial_sku property of a CreateSddcDetails.
+ #: This constant has a value of "THREE_YEARS"
+ INITIAL_SKU_THREE_YEARS = "THREE_YEARS"
+
def __init__(self, **kwargs):
"""
Initializes a new CreateSddcDetails object with values from keyword arguments.
@@ -42,6 +58,11 @@ def __init__(self, **kwargs):
The value to assign to the esxi_hosts_count property of this CreateSddcDetails.
:type esxi_hosts_count: int
+ :param initial_sku:
+ The value to assign to the initial_sku property of this CreateSddcDetails.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+ :type initial_sku: str
+
:param is_hcx_enabled:
The value to assign to the is_hcx_enabled property of this CreateSddcDetails.
:type is_hcx_enabled: bool
@@ -114,6 +135,7 @@ def __init__(self, **kwargs):
'compartment_id': 'str',
'instance_display_name_prefix': 'str',
'esxi_hosts_count': 'int',
+ 'initial_sku': 'str',
'is_hcx_enabled': 'bool',
'hcx_vlan_id': 'str',
'ssh_authorized_keys': 'str',
@@ -139,6 +161,7 @@ def __init__(self, **kwargs):
'compartment_id': 'compartmentId',
'instance_display_name_prefix': 'instanceDisplayNamePrefix',
'esxi_hosts_count': 'esxiHostsCount',
+ 'initial_sku': 'initialSku',
'is_hcx_enabled': 'isHcxEnabled',
'hcx_vlan_id': 'hcxVlanId',
'ssh_authorized_keys': 'sshAuthorizedKeys',
@@ -163,6 +186,7 @@ def __init__(self, **kwargs):
self._compartment_id = None
self._instance_display_name_prefix = None
self._esxi_hosts_count = None
+ self._initial_sku = None
self._is_hcx_enabled = None
self._hcx_vlan_id = None
self._ssh_authorized_keys = None
@@ -356,6 +380,40 @@ def esxi_hosts_count(self, esxi_hosts_count):
"""
self._esxi_hosts_count = esxi_hosts_count
+ @property
+ def initial_sku(self):
+ """
+ **[Required]** Gets the initial_sku of this CreateSddcDetails.
+ Billing option selected during SDDC creation
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+
+
+ :return: The initial_sku of this CreateSddcDetails.
+ :rtype: str
+ """
+ return self._initial_sku
+
+ @initial_sku.setter
+ def initial_sku(self, initial_sku):
+ """
+ Sets the initial_sku of this CreateSddcDetails.
+ Billing option selected during SDDC creation
+ :func:`list_supported_skus`.
+
+
+ :param initial_sku: The initial_sku of this CreateSddcDetails.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(initial_sku, allowed_values):
+ raise ValueError(
+ "Invalid value for `initial_sku`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._initial_sku = initial_sku
+
@property
def is_hcx_enabled(self):
"""
diff --git a/src/oci/ocvp/models/esxi_host.py b/src/oci/ocvp/models/esxi_host.py
index 4766a6a847..c1433c30b3 100644
--- a/src/oci/ocvp/models/esxi_host.py
+++ b/src/oci/ocvp/models/esxi_host.py
@@ -44,6 +44,38 @@ class EsxiHost(object):
#: This constant has a value of "FAILED"
LIFECYCLE_STATE_FAILED = "FAILED"
+ #: A constant which can be used with the current_sku property of a EsxiHost.
+ #: This constant has a value of "HOUR"
+ CURRENT_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the current_sku property of a EsxiHost.
+ #: This constant has a value of "MONTH"
+ CURRENT_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the current_sku property of a EsxiHost.
+ #: This constant has a value of "ONE_YEAR"
+ CURRENT_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the current_sku property of a EsxiHost.
+ #: This constant has a value of "THREE_YEARS"
+ CURRENT_SKU_THREE_YEARS = "THREE_YEARS"
+
+ #: A constant which can be used with the next_sku property of a EsxiHost.
+ #: This constant has a value of "HOUR"
+ NEXT_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the next_sku property of a EsxiHost.
+ #: This constant has a value of "MONTH"
+ NEXT_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the next_sku property of a EsxiHost.
+ #: This constant has a value of "ONE_YEAR"
+ NEXT_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the next_sku property of a EsxiHost.
+ #: This constant has a value of "THREE_YEARS"
+ NEXT_SKU_THREE_YEARS = "THREE_YEARS"
+
def __init__(self, **kwargs):
"""
Initializes a new EsxiHost object with values from keyword arguments.
@@ -83,6 +115,22 @@ def __init__(self, **kwargs):
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type lifecycle_state: str
+ :param current_sku:
+ The value to assign to the current_sku property of this EsxiHost.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type current_sku: str
+
+ :param next_sku:
+ The value to assign to the next_sku property of this EsxiHost.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type next_sku: str
+
+ :param billing_contract_end_date:
+ The value to assign to the billing_contract_end_date property of this EsxiHost.
+ :type billing_contract_end_date: datetime
+
:param freeform_tags:
The value to assign to the freeform_tags property of this EsxiHost.
:type freeform_tags: dict(str, str)
@@ -101,6 +149,9 @@ def __init__(self, **kwargs):
'time_created': 'datetime',
'time_updated': 'datetime',
'lifecycle_state': 'str',
+ 'current_sku': 'str',
+ 'next_sku': 'str',
+ 'billing_contract_end_date': 'datetime',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -114,6 +165,9 @@ def __init__(self, **kwargs):
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
+ 'current_sku': 'currentSku',
+ 'next_sku': 'nextSku',
+ 'billing_contract_end_date': 'billingContractEndDate',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
@@ -126,6 +180,9 @@ def __init__(self, **kwargs):
self._time_created = None
self._time_updated = None
self._lifecycle_state = None
+ self._current_sku = None
+ self._next_sku = None
+ self._billing_contract_end_date = None
self._freeform_tags = None
self._defined_tags = None
@@ -369,6 +426,98 @@ def lifecycle_state(self, lifecycle_state):
lifecycle_state = 'UNKNOWN_ENUM_VALUE'
self._lifecycle_state = lifecycle_state
+ @property
+ def current_sku(self):
+ """
+ **[Required]** Gets the current_sku of this EsxiHost.
+ Billing option selected during SDDC creation.
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The current_sku of this EsxiHost.
+ :rtype: str
+ """
+ return self._current_sku
+
+ @current_sku.setter
+ def current_sku(self, current_sku):
+ """
+ Sets the current_sku of this EsxiHost.
+ Billing option selected during SDDC creation.
+ :func:`list_supported_skus`.
+
+
+ :param current_sku: The current_sku of this EsxiHost.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(current_sku, allowed_values):
+ current_sku = 'UNKNOWN_ENUM_VALUE'
+ self._current_sku = current_sku
+
+ @property
+ def next_sku(self):
+ """
+ **[Required]** Gets the next_sku of this EsxiHost.
+ Billing option to switch to once existing billing cycle ends.
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The next_sku of this EsxiHost.
+ :rtype: str
+ """
+ return self._next_sku
+
+ @next_sku.setter
+ def next_sku(self, next_sku):
+ """
+ Sets the next_sku of this EsxiHost.
+ Billing option to switch to once existing billing cycle ends.
+ :func:`list_supported_skus`.
+
+
+ :param next_sku: The next_sku of this EsxiHost.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(next_sku, allowed_values):
+ next_sku = 'UNKNOWN_ENUM_VALUE'
+ self._next_sku = next_sku
+
+ @property
+ def billing_contract_end_date(self):
+ """
+ **[Required]** Gets the billing_contract_end_date of this EsxiHost.
+ Current billing cycle end date. If nextSku is different from existing SKU, then we switch to newSKu
+ after this contractEndDate
+ Example: `2016-08-25T21:10:29.600Z`
+
+
+ :return: The billing_contract_end_date of this EsxiHost.
+ :rtype: datetime
+ """
+ return self._billing_contract_end_date
+
+ @billing_contract_end_date.setter
+ def billing_contract_end_date(self, billing_contract_end_date):
+ """
+ Sets the billing_contract_end_date of this EsxiHost.
+ Current billing cycle end date. If nextSku is different from existing SKU, then we switch to newSKu
+ after this contractEndDate
+ Example: `2016-08-25T21:10:29.600Z`
+
+
+ :param billing_contract_end_date: The billing_contract_end_date of this EsxiHost.
+ :type: datetime
+ """
+ self._billing_contract_end_date = billing_contract_end_date
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/ocvp/models/esxi_host_summary.py b/src/oci/ocvp/models/esxi_host_summary.py
index 4facbedc75..b99b4a1afb 100644
--- a/src/oci/ocvp/models/esxi_host_summary.py
+++ b/src/oci/ocvp/models/esxi_host_summary.py
@@ -37,6 +37,38 @@ class EsxiHostSummary(object):
#: This constant has a value of "FAILED"
LIFECYCLE_STATE_FAILED = "FAILED"
+ #: A constant which can be used with the current_sku property of a EsxiHostSummary.
+ #: This constant has a value of "HOUR"
+ CURRENT_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the current_sku property of a EsxiHostSummary.
+ #: This constant has a value of "MONTH"
+ CURRENT_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the current_sku property of a EsxiHostSummary.
+ #: This constant has a value of "ONE_YEAR"
+ CURRENT_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the current_sku property of a EsxiHostSummary.
+ #: This constant has a value of "THREE_YEARS"
+ CURRENT_SKU_THREE_YEARS = "THREE_YEARS"
+
+ #: A constant which can be used with the next_sku property of a EsxiHostSummary.
+ #: This constant has a value of "HOUR"
+ NEXT_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the next_sku property of a EsxiHostSummary.
+ #: This constant has a value of "MONTH"
+ NEXT_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the next_sku property of a EsxiHostSummary.
+ #: This constant has a value of "ONE_YEAR"
+ NEXT_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the next_sku property of a EsxiHostSummary.
+ #: This constant has a value of "THREE_YEARS"
+ NEXT_SKU_THREE_YEARS = "THREE_YEARS"
+
def __init__(self, **kwargs):
"""
Initializes a new EsxiHostSummary object with values from keyword arguments.
@@ -76,6 +108,22 @@ def __init__(self, **kwargs):
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type lifecycle_state: str
+ :param current_sku:
+ The value to assign to the current_sku property of this EsxiHostSummary.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type current_sku: str
+
+ :param next_sku:
+ The value to assign to the next_sku property of this EsxiHostSummary.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type next_sku: str
+
+ :param billing_contract_end_date:
+ The value to assign to the billing_contract_end_date property of this EsxiHostSummary.
+ :type billing_contract_end_date: datetime
+
:param freeform_tags:
The value to assign to the freeform_tags property of this EsxiHostSummary.
:type freeform_tags: dict(str, str)
@@ -94,6 +142,9 @@ def __init__(self, **kwargs):
'time_created': 'datetime',
'time_updated': 'datetime',
'lifecycle_state': 'str',
+ 'current_sku': 'str',
+ 'next_sku': 'str',
+ 'billing_contract_end_date': 'datetime',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
@@ -107,6 +158,9 @@ def __init__(self, **kwargs):
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
+ 'current_sku': 'currentSku',
+ 'next_sku': 'nextSku',
+ 'billing_contract_end_date': 'billingContractEndDate',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
@@ -119,6 +173,9 @@ def __init__(self, **kwargs):
self._time_created = None
self._time_updated = None
self._lifecycle_state = None
+ self._current_sku = None
+ self._next_sku = None
+ self._billing_contract_end_date = None
self._freeform_tags = None
self._defined_tags = None
@@ -362,6 +419,98 @@ def lifecycle_state(self, lifecycle_state):
lifecycle_state = 'UNKNOWN_ENUM_VALUE'
self._lifecycle_state = lifecycle_state
+ @property
+ def current_sku(self):
+ """
+ **[Required]** Gets the current_sku of this EsxiHostSummary.
+ Billing option selected during SDDC creation.
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The current_sku of this EsxiHostSummary.
+ :rtype: str
+ """
+ return self._current_sku
+
+ @current_sku.setter
+ def current_sku(self, current_sku):
+ """
+ Sets the current_sku of this EsxiHostSummary.
+ Billing option selected during SDDC creation.
+ :func:`list_supported_skus`.
+
+
+ :param current_sku: The current_sku of this EsxiHostSummary.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(current_sku, allowed_values):
+ current_sku = 'UNKNOWN_ENUM_VALUE'
+ self._current_sku = current_sku
+
+ @property
+ def next_sku(self):
+ """
+ **[Required]** Gets the next_sku of this EsxiHostSummary.
+ Billing option to switch to once existing billing cycle ends.
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The next_sku of this EsxiHostSummary.
+ :rtype: str
+ """
+ return self._next_sku
+
+ @next_sku.setter
+ def next_sku(self, next_sku):
+ """
+ Sets the next_sku of this EsxiHostSummary.
+ Billing option to switch to once existing billing cycle ends.
+ :func:`list_supported_skus`.
+
+
+ :param next_sku: The next_sku of this EsxiHostSummary.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(next_sku, allowed_values):
+ next_sku = 'UNKNOWN_ENUM_VALUE'
+ self._next_sku = next_sku
+
+ @property
+ def billing_contract_end_date(self):
+ """
+ **[Required]** Gets the billing_contract_end_date of this EsxiHostSummary.
+ Current billing cycle end date. If nextSku is different from existing SKU, then we switch to newSKu
+ after this contractEndDate
+ Example: `2016-08-25T21:10:29.600Z`
+
+
+ :return: The billing_contract_end_date of this EsxiHostSummary.
+ :rtype: datetime
+ """
+ return self._billing_contract_end_date
+
+ @billing_contract_end_date.setter
+ def billing_contract_end_date(self, billing_contract_end_date):
+ """
+ Sets the billing_contract_end_date of this EsxiHostSummary.
+ Current billing cycle end date. If nextSku is different from existing SKU, then we switch to newSKu
+ after this contractEndDate
+ Example: `2016-08-25T21:10:29.600Z`
+
+
+ :param billing_contract_end_date: The billing_contract_end_date of this EsxiHostSummary.
+ :type: datetime
+ """
+ self._billing_contract_end_date = billing_contract_end_date
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/ocvp/models/sddc.py b/src/oci/ocvp/models/sddc.py
index 09e7f3bcdd..a736eae573 100644
--- a/src/oci/ocvp/models/sddc.py
+++ b/src/oci/ocvp/models/sddc.py
@@ -23,6 +23,22 @@ class Sddc(object):
__ https://docs.cloud.oracle.com/iaas/Content/VMware/Concepts/ocvsoverview.htm
"""
+ #: A constant which can be used with the initial_sku property of a Sddc.
+ #: This constant has a value of "HOUR"
+ INITIAL_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the initial_sku property of a Sddc.
+ #: This constant has a value of "MONTH"
+ INITIAL_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the initial_sku property of a Sddc.
+ #: This constant has a value of "ONE_YEAR"
+ INITIAL_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the initial_sku property of a Sddc.
+ #: This constant has a value of "THREE_YEARS"
+ INITIAL_SKU_THREE_YEARS = "THREE_YEARS"
+
#: A constant which can be used with the lifecycle_state property of a Sddc.
#: This constant has a value of "CREATING"
LIFECYCLE_STATE_CREATING = "CREATING"
@@ -80,6 +96,12 @@ def __init__(self, **kwargs):
The value to assign to the esxi_hosts_count property of this Sddc.
:type esxi_hosts_count: int
+ :param initial_sku:
+ The value to assign to the initial_sku property of this Sddc.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type initial_sku: str
+
:param vcenter_fqdn:
The value to assign to the vcenter_fqdn property of this Sddc.
:type vcenter_fqdn: str
@@ -223,6 +245,7 @@ def __init__(self, **kwargs):
'vmware_software_version': 'str',
'compartment_id': 'str',
'esxi_hosts_count': 'int',
+ 'initial_sku': 'str',
'vcenter_fqdn': 'str',
'nsx_manager_fqdn': 'str',
'vcenter_private_ip_id': 'str',
@@ -266,6 +289,7 @@ def __init__(self, **kwargs):
'vmware_software_version': 'vmwareSoftwareVersion',
'compartment_id': 'compartmentId',
'esxi_hosts_count': 'esxiHostsCount',
+ 'initial_sku': 'initialSku',
'vcenter_fqdn': 'vcenterFqdn',
'nsx_manager_fqdn': 'nsxManagerFqdn',
'vcenter_private_ip_id': 'vcenterPrivateIpId',
@@ -308,6 +332,7 @@ def __init__(self, **kwargs):
self._vmware_software_version = None
self._compartment_id = None
self._esxi_hosts_count = None
+ self._initial_sku = None
self._vcenter_fqdn = None
self._nsx_manager_fqdn = None
self._vcenter_private_ip_id = None
@@ -562,6 +587,38 @@ def esxi_hosts_count(self, esxi_hosts_count):
"""
self._esxi_hosts_count = esxi_hosts_count
+ @property
+ def initial_sku(self):
+ """
+ **[Required]** Gets the initial_sku of this Sddc.
+ Billing option selected during SDDC creation
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The initial_sku of this Sddc.
+ :rtype: str
+ """
+ return self._initial_sku
+
+ @initial_sku.setter
+ def initial_sku(self, initial_sku):
+ """
+ Sets the initial_sku of this Sddc.
+ Billing option selected during SDDC creation
+ :func:`list_supported_skus`.
+
+
+ :param initial_sku: The initial_sku of this Sddc.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(initial_sku, allowed_values):
+ initial_sku = 'UNKNOWN_ENUM_VALUE'
+ self._initial_sku = initial_sku
+
@property
def vcenter_fqdn(self):
"""
diff --git a/src/oci/ocvp/models/supported_sku_summary.py b/src/oci/ocvp/models/supported_sku_summary.py
new file mode 100644
index 0000000000..94792f0c0c
--- /dev/null
+++ b/src/oci/ocvp/models/supported_sku_summary.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SupportedSkuSummary(object):
+ """
+ A specific SKU. HOUR, MONTH, ONE_YEAR and THREE_YEARS supported by the Oracle Cloud VMware Solution.
+ """
+
+ #: A constant which can be used with the name property of a SupportedSkuSummary.
+ #: This constant has a value of "HOUR"
+ NAME_HOUR = "HOUR"
+
+ #: A constant which can be used with the name property of a SupportedSkuSummary.
+ #: This constant has a value of "MONTH"
+ NAME_MONTH = "MONTH"
+
+ #: A constant which can be used with the name property of a SupportedSkuSummary.
+ #: This constant has a value of "ONE_YEAR"
+ NAME_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the name property of a SupportedSkuSummary.
+ #: This constant has a value of "THREE_YEARS"
+ NAME_THREE_YEARS = "THREE_YEARS"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SupportedSkuSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param name:
+ The value to assign to the name property of this SupportedSkuSummary.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type name: str
+
+ """
+ self.swagger_types = {
+ 'name': 'str'
+ }
+
+ self.attribute_map = {
+ 'name': 'name'
+ }
+
+ self._name = None
+
+ @property
+ def name(self):
+ """
+ **[Required]** Gets the name of this SupportedSkuSummary.
+ name of SKU
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The name of this SupportedSkuSummary.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this SupportedSkuSummary.
+ name of SKU
+
+
+ :param name: The name of this SupportedSkuSummary.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(name, allowed_values):
+ name = 'UNKNOWN_ENUM_VALUE'
+ self._name = name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/ocvp/models/supported_sku_summary_collection.py b/src/oci/ocvp/models/supported_sku_summary_collection.py
new file mode 100644
index 0000000000..366187f46d
--- /dev/null
+++ b/src/oci/ocvp/models/supported_sku_summary_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SupportedSkuSummaryCollection(object):
+ """
+ A specific SKU. HOUR, MONTH, ONE_YEAR and THREE_YEARS supported by the Oracle Cloud VMware Solution.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SupportedSkuSummaryCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this SupportedSkuSummaryCollection.
+ :type items: list[oci.ocvp.models.SupportedSkuSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[SupportedSkuSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this SupportedSkuSummaryCollection.
+ A list of the supported SKUs.
+
+
+ :return: The items of this SupportedSkuSummaryCollection.
+ :rtype: list[oci.ocvp.models.SupportedSkuSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this SupportedSkuSummaryCollection.
+ A list of the supported SKUs.
+
+
+ :param items: The items of this SupportedSkuSummaryCollection.
+ :type: list[oci.ocvp.models.SupportedSkuSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/ocvp/models/update_esxi_host_details.py b/src/oci/ocvp/models/update_esxi_host_details.py
index d5bb6cfc39..207bc2e26d 100644
--- a/src/oci/ocvp/models/update_esxi_host_details.py
+++ b/src/oci/ocvp/models/update_esxi_host_details.py
@@ -13,6 +13,22 @@ class UpdateEsxiHostDetails(object):
The ESXi host information to be updated.
"""
+ #: A constant which can be used with the next_sku property of a UpdateEsxiHostDetails.
+ #: This constant has a value of "HOUR"
+ NEXT_SKU_HOUR = "HOUR"
+
+ #: A constant which can be used with the next_sku property of a UpdateEsxiHostDetails.
+ #: This constant has a value of "MONTH"
+ NEXT_SKU_MONTH = "MONTH"
+
+ #: A constant which can be used with the next_sku property of a UpdateEsxiHostDetails.
+ #: This constant has a value of "ONE_YEAR"
+ NEXT_SKU_ONE_YEAR = "ONE_YEAR"
+
+ #: A constant which can be used with the next_sku property of a UpdateEsxiHostDetails.
+ #: This constant has a value of "THREE_YEARS"
+ NEXT_SKU_THREE_YEARS = "THREE_YEARS"
+
def __init__(self, **kwargs):
"""
Initializes a new UpdateEsxiHostDetails object with values from keyword arguments.
@@ -22,6 +38,11 @@ def __init__(self, **kwargs):
The value to assign to the display_name property of this UpdateEsxiHostDetails.
:type display_name: str
+ :param next_sku:
+ The value to assign to the next_sku property of this UpdateEsxiHostDetails.
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+ :type next_sku: str
+
:param freeform_tags:
The value to assign to the freeform_tags property of this UpdateEsxiHostDetails.
:type freeform_tags: dict(str, str)
@@ -33,17 +54,20 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'display_name': 'str',
+ 'next_sku': 'str',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))'
}
self.attribute_map = {
'display_name': 'displayName',
+ 'next_sku': 'nextSku',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags'
}
self._display_name = None
+ self._next_sku = None
self._freeform_tags = None
self._defined_tags = None
@@ -77,6 +101,40 @@ def display_name(self, display_name):
"""
self._display_name = display_name
+ @property
+ def next_sku(self):
+ """
+ Gets the next_sku of this UpdateEsxiHostDetails.
+ Billing option to switch to once existing billing cycle ends.
+ :func:`list_supported_skus`.
+
+ Allowed values for this property are: "HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"
+
+
+ :return: The next_sku of this UpdateEsxiHostDetails.
+ :rtype: str
+ """
+ return self._next_sku
+
+ @next_sku.setter
+ def next_sku(self, next_sku):
+ """
+ Sets the next_sku of this UpdateEsxiHostDetails.
+ Billing option to switch to once existing billing cycle ends.
+ :func:`list_supported_skus`.
+
+
+ :param next_sku: The next_sku of this UpdateEsxiHostDetails.
+ :type: str
+ """
+ allowed_values = ["HOUR", "MONTH", "ONE_YEAR", "THREE_YEARS"]
+ if not value_allowed_none_or_none_sentinel(next_sku, allowed_values):
+ raise ValueError(
+ "Invalid value for `next_sku`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._next_sku = next_sku
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/ocvp/sddc_client.py b/src/oci/ocvp/sddc_client.py
index 178de41ba0..b4f235bc06 100644
--- a/src/oci/ocvp/sddc_client.py
+++ b/src/oci/ocvp/sddc_client.py
@@ -594,6 +594,98 @@ def list_sddcs(self, compartment_id, **kwargs):
header_params=header_params,
response_type="SddcCollection")
+ def list_supported_skus(self, compartment_id, **kwargs):
+ """
+ Lists supported SKUs. HHOUR, MONTH, ONE_YEAR and THREE_YEARS supported by the Oracle Cloud
+ VMware Solution.
+
+
+ :param str compartment_id: (required)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to return in a paginated
+ \"List\" call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
+ call. For important details about how pagination works, see
+ `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request. If you need to contact Oracle about a particular
+ request, please provide the request ID.
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
+
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.SupportedSkuSummaryCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_supported_skus API.
+ """
+ resource_path = "/supportedSkus"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "retry_strategy",
+ "limit",
+ "page",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_supported_skus got unknown kwargs: {!r}".format(extra_kwargs))
+
+ query_params = {
+ "compartmentId": compartment_id,
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.retry_strategy
+ if kwargs.get('retry_strategy'):
+ retry_strategy = kwargs.get('retry_strategy')
+
+ if retry_strategy:
+ return retry_strategy.make_retrying_call(
+ self.base_client.call_api,
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="SupportedSkuSummaryCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="SupportedSkuSummaryCollection")
+
def list_supported_vmware_software_versions(self, compartment_id, **kwargs):
"""
Lists the versions of bundled VMware software supported by the Oracle Cloud
diff --git a/src/oci/opsi/models/__init__.py b/src/oci/opsi/models/__init__.py
index de84ee527b..c463c45de6 100644
--- a/src/oci/opsi/models/__init__.py
+++ b/src/oci/opsi/models/__init__.py
@@ -4,17 +4,82 @@
from __future__ import absolute_import
+from .autonomous_database_insight import AutonomousDatabaseInsight
+from .autonomous_database_insight_summary import AutonomousDatabaseInsightSummary
+from .change_database_insight_compartment_details import ChangeDatabaseInsightCompartmentDetails
+from .change_enterprise_manager_bridge_compartment_details import ChangeEnterpriseManagerBridgeCompartmentDetails
+from .change_host_insight_compartment_details import ChangeHostInsightCompartmentDetails
+from .connection_details import ConnectionDetails
+from .create_database_insight_details import CreateDatabaseInsightDetails
+from .create_em_managed_external_database_insight_details import CreateEmManagedExternalDatabaseInsightDetails
+from .create_enterprise_manager_bridge_details import CreateEnterpriseManagerBridgeDetails
+from .create_host_insight_details import CreateHostInsightDetails
+from .create_macs_managed_external_host_insight_details import CreateMacsManagedExternalHostInsightDetails
+from .credential_details import CredentialDetails
+from .credentials_by_source import CredentialsBySource
+from .db_external_instance import DBExternalInstance
+from .db_external_properties import DBExternalProperties
+from .dbos_config_instance import DBOSConfigInstance
+from .database_configuration_metric_group import DatabaseConfigurationMetricGroup
from .database_details import DatabaseDetails
+from .database_insight import DatabaseInsight
from .database_insight_summary import DatabaseInsightSummary
from .database_insights import DatabaseInsights
from .database_insights_collection import DatabaseInsightsCollection
+from .em_managed_external_database_insight import EmManagedExternalDatabaseInsight
+from .em_managed_external_database_insight_summary import EmManagedExternalDatabaseInsightSummary
+from .enable_database_insight_details import EnableDatabaseInsightDetails
+from .enable_em_managed_external_database_insight_details import EnableEmManagedExternalDatabaseInsightDetails
+from .enable_host_insight_details import EnableHostInsightDetails
+from .enable_macs_managed_external_host_insight_details import EnableMacsManagedExternalHostInsightDetails
+from .enterprise_manager_bridge import EnterpriseManagerBridge
+from .enterprise_manager_bridge_collection import EnterpriseManagerBridgeCollection
+from .enterprise_manager_bridge_summary import EnterpriseManagerBridgeSummary
+from .enterprise_manager_bridges import EnterpriseManagerBridges
from .historical_data_item import HistoricalDataItem
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from .host_cpu_hardware_configuration import HostCpuHardwareConfiguration
+from .host_cpu_statistics import HostCpuStatistics
+from .host_cpu_usage import HostCpuUsage
+from .host_details import HostDetails
+from .host_entities import HostEntities
+from .host_hardware_configuration import HostHardwareConfiguration
+from .host_insight import HostInsight
+from .host_insight_resource_statistics_aggregation import HostInsightResourceStatisticsAggregation
+from .host_insight_summary import HostInsightSummary
+from .host_insight_summary_collection import HostInsightSummaryCollection
+from .host_insights import HostInsights
+from .host_instance_map import HostInstanceMap
+from .host_memory_configuration import HostMemoryConfiguration
+from .host_memory_statistics import HostMemoryStatistics
+from .host_memory_usage import HostMemoryUsage
+from .host_network_activity_summary import HostNetworkActivitySummary
+from .host_network_configuration import HostNetworkConfiguration
+from .host_performance_metric_group import HostPerformanceMetricGroup
+from .host_product import HostProduct
+from .host_resource_allocation import HostResourceAllocation
+from .host_resource_capacity_trend_aggregation import HostResourceCapacityTrendAggregation
+from .host_resource_statistics import HostResourceStatistics
+from .hosted_entity_collection import HostedEntityCollection
+from .hosted_entity_summary import HostedEntitySummary
+from .importable_enterprise_manager_entity import ImportableEnterpriseManagerEntity
+from .importable_enterprise_manager_entity_collection import ImportableEnterpriseManagerEntityCollection
+from .ingest_database_configuration_details import IngestDatabaseConfigurationDetails
+from .ingest_database_configuration_response_details import IngestDatabaseConfigurationResponseDetails
+from .ingest_host_configuration_details import IngestHostConfigurationDetails
+from .ingest_host_configuration_response_details import IngestHostConfigurationResponseDetails
+from .ingest_host_metrics_details import IngestHostMetricsDetails
+from .ingest_host_metrics_response_details import IngestHostMetricsResponseDetails
from .ingest_sql_bucket_details import IngestSqlBucketDetails
from .ingest_sql_bucket_response_details import IngestSqlBucketResponseDetails
from .ingest_sql_plan_lines_details import IngestSqlPlanLinesDetails
from .ingest_sql_plan_lines_response_details import IngestSqlPlanLinesResponseDetails
from .ingest_sql_text_details import IngestSqlTextDetails
from .ingest_sql_text_response_details import IngestSqlTextResponseDetails
+from .macs_managed_external_database_insight import MacsManagedExternalDatabaseInsight
+from .macs_managed_external_database_insight_summary import MacsManagedExternalDatabaseInsightSummary
+from .macs_managed_external_host_insight import MacsManagedExternalHostInsight
+from .macs_managed_external_host_insight_summary import MacsManagedExternalHostInsightSummary
from .projected_data_item import ProjectedDataItem
from .resource_capacity_trend_aggregation import ResourceCapacityTrendAggregation
from .resource_insight_current_utilization import ResourceInsightCurrentUtilization
@@ -55,20 +120,110 @@
from .summarize_database_insight_resource_usage_aggregation import SummarizeDatabaseInsightResourceUsageAggregation
from .summarize_database_insight_resource_usage_trend_aggregation_collection import SummarizeDatabaseInsightResourceUsageTrendAggregationCollection
from .summarize_database_insight_resource_utilization_insight_aggregation import SummarizeDatabaseInsightResourceUtilizationInsightAggregation
+from .summarize_database_insight_tablespace_usage_trend_aggregation_collection import SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection
+from .summarize_host_insight_resource_capacity_trend_aggregation_collection import SummarizeHostInsightResourceCapacityTrendAggregationCollection
+from .summarize_host_insight_resource_forecast_trend_aggregation import SummarizeHostInsightResourceForecastTrendAggregation
+from .summarize_host_insight_resource_statistics_aggregation_collection import SummarizeHostInsightResourceStatisticsAggregationCollection
+from .summarize_host_insight_resource_usage_aggregation import SummarizeHostInsightResourceUsageAggregation
+from .summarize_host_insight_resource_usage_trend_aggregation_collection import SummarizeHostInsightResourceUsageTrendAggregationCollection
+from .summarize_host_insight_resource_utilization_insight_aggregation import SummarizeHostInsightResourceUtilizationInsightAggregation
+from .summary_statistics import SummaryStatistics
+from .tablespace_usage_trend import TablespaceUsageTrend
+from .tablespace_usage_trend_aggregation import TablespaceUsageTrendAggregation
+from .update_autonomous_database_insight_details import UpdateAutonomousDatabaseInsightDetails
+from .update_database_insight_details import UpdateDatabaseInsightDetails
+from .update_em_managed_external_database_insight_details import UpdateEmManagedExternalDatabaseInsightDetails
+from .update_enterprise_manager_bridge_details import UpdateEnterpriseManagerBridgeDetails
+from .update_host_insight_details import UpdateHostInsightDetails
+from .update_macs_managed_external_database_insight_details import UpdateMacsManagedExternalDatabaseInsightDetails
+from .update_macs_managed_external_host_insight_details import UpdateMacsManagedExternalHostInsightDetails
+from .work_request import WorkRequest
+from .work_request_collection import WorkRequestCollection
+from .work_request_error import WorkRequestError
+from .work_request_error_collection import WorkRequestErrorCollection
+from .work_request_log_entry import WorkRequestLogEntry
+from .work_request_log_entry_collection import WorkRequestLogEntryCollection
+from .work_request_resource import WorkRequestResource
+from .work_requests import WorkRequests
# Maps type names to classes for opsi services.
opsi_type_mapping = {
+ "AutonomousDatabaseInsight": AutonomousDatabaseInsight,
+ "AutonomousDatabaseInsightSummary": AutonomousDatabaseInsightSummary,
+ "ChangeDatabaseInsightCompartmentDetails": ChangeDatabaseInsightCompartmentDetails,
+ "ChangeEnterpriseManagerBridgeCompartmentDetails": ChangeEnterpriseManagerBridgeCompartmentDetails,
+ "ChangeHostInsightCompartmentDetails": ChangeHostInsightCompartmentDetails,
+ "ConnectionDetails": ConnectionDetails,
+ "CreateDatabaseInsightDetails": CreateDatabaseInsightDetails,
+ "CreateEmManagedExternalDatabaseInsightDetails": CreateEmManagedExternalDatabaseInsightDetails,
+ "CreateEnterpriseManagerBridgeDetails": CreateEnterpriseManagerBridgeDetails,
+ "CreateHostInsightDetails": CreateHostInsightDetails,
+ "CreateMacsManagedExternalHostInsightDetails": CreateMacsManagedExternalHostInsightDetails,
+ "CredentialDetails": CredentialDetails,
+ "CredentialsBySource": CredentialsBySource,
+ "DBExternalInstance": DBExternalInstance,
+ "DBExternalProperties": DBExternalProperties,
+ "DBOSConfigInstance": DBOSConfigInstance,
+ "DatabaseConfigurationMetricGroup": DatabaseConfigurationMetricGroup,
"DatabaseDetails": DatabaseDetails,
+ "DatabaseInsight": DatabaseInsight,
"DatabaseInsightSummary": DatabaseInsightSummary,
"DatabaseInsights": DatabaseInsights,
"DatabaseInsightsCollection": DatabaseInsightsCollection,
+ "EmManagedExternalDatabaseInsight": EmManagedExternalDatabaseInsight,
+ "EmManagedExternalDatabaseInsightSummary": EmManagedExternalDatabaseInsightSummary,
+ "EnableDatabaseInsightDetails": EnableDatabaseInsightDetails,
+ "EnableEmManagedExternalDatabaseInsightDetails": EnableEmManagedExternalDatabaseInsightDetails,
+ "EnableHostInsightDetails": EnableHostInsightDetails,
+ "EnableMacsManagedExternalHostInsightDetails": EnableMacsManagedExternalHostInsightDetails,
+ "EnterpriseManagerBridge": EnterpriseManagerBridge,
+ "EnterpriseManagerBridgeCollection": EnterpriseManagerBridgeCollection,
+ "EnterpriseManagerBridgeSummary": EnterpriseManagerBridgeSummary,
+ "EnterpriseManagerBridges": EnterpriseManagerBridges,
"HistoricalDataItem": HistoricalDataItem,
+ "HostConfigurationMetricGroup": HostConfigurationMetricGroup,
+ "HostCpuHardwareConfiguration": HostCpuHardwareConfiguration,
+ "HostCpuStatistics": HostCpuStatistics,
+ "HostCpuUsage": HostCpuUsage,
+ "HostDetails": HostDetails,
+ "HostEntities": HostEntities,
+ "HostHardwareConfiguration": HostHardwareConfiguration,
+ "HostInsight": HostInsight,
+ "HostInsightResourceStatisticsAggregation": HostInsightResourceStatisticsAggregation,
+ "HostInsightSummary": HostInsightSummary,
+ "HostInsightSummaryCollection": HostInsightSummaryCollection,
+ "HostInsights": HostInsights,
+ "HostInstanceMap": HostInstanceMap,
+ "HostMemoryConfiguration": HostMemoryConfiguration,
+ "HostMemoryStatistics": HostMemoryStatistics,
+ "HostMemoryUsage": HostMemoryUsage,
+ "HostNetworkActivitySummary": HostNetworkActivitySummary,
+ "HostNetworkConfiguration": HostNetworkConfiguration,
+ "HostPerformanceMetricGroup": HostPerformanceMetricGroup,
+ "HostProduct": HostProduct,
+ "HostResourceAllocation": HostResourceAllocation,
+ "HostResourceCapacityTrendAggregation": HostResourceCapacityTrendAggregation,
+ "HostResourceStatistics": HostResourceStatistics,
+ "HostedEntityCollection": HostedEntityCollection,
+ "HostedEntitySummary": HostedEntitySummary,
+ "ImportableEnterpriseManagerEntity": ImportableEnterpriseManagerEntity,
+ "ImportableEnterpriseManagerEntityCollection": ImportableEnterpriseManagerEntityCollection,
+ "IngestDatabaseConfigurationDetails": IngestDatabaseConfigurationDetails,
+ "IngestDatabaseConfigurationResponseDetails": IngestDatabaseConfigurationResponseDetails,
+ "IngestHostConfigurationDetails": IngestHostConfigurationDetails,
+ "IngestHostConfigurationResponseDetails": IngestHostConfigurationResponseDetails,
+ "IngestHostMetricsDetails": IngestHostMetricsDetails,
+ "IngestHostMetricsResponseDetails": IngestHostMetricsResponseDetails,
"IngestSqlBucketDetails": IngestSqlBucketDetails,
"IngestSqlBucketResponseDetails": IngestSqlBucketResponseDetails,
"IngestSqlPlanLinesDetails": IngestSqlPlanLinesDetails,
"IngestSqlPlanLinesResponseDetails": IngestSqlPlanLinesResponseDetails,
"IngestSqlTextDetails": IngestSqlTextDetails,
"IngestSqlTextResponseDetails": IngestSqlTextResponseDetails,
+ "MacsManagedExternalDatabaseInsight": MacsManagedExternalDatabaseInsight,
+ "MacsManagedExternalDatabaseInsightSummary": MacsManagedExternalDatabaseInsightSummary,
+ "MacsManagedExternalHostInsight": MacsManagedExternalHostInsight,
+ "MacsManagedExternalHostInsightSummary": MacsManagedExternalHostInsightSummary,
"ProjectedDataItem": ProjectedDataItem,
"ResourceCapacityTrendAggregation": ResourceCapacityTrendAggregation,
"ResourceInsightCurrentUtilization": ResourceInsightCurrentUtilization,
@@ -108,5 +263,30 @@
"SummarizeDatabaseInsightResourceStatisticsAggregationCollection": SummarizeDatabaseInsightResourceStatisticsAggregationCollection,
"SummarizeDatabaseInsightResourceUsageAggregation": SummarizeDatabaseInsightResourceUsageAggregation,
"SummarizeDatabaseInsightResourceUsageTrendAggregationCollection": SummarizeDatabaseInsightResourceUsageTrendAggregationCollection,
- "SummarizeDatabaseInsightResourceUtilizationInsightAggregation": SummarizeDatabaseInsightResourceUtilizationInsightAggregation
+ "SummarizeDatabaseInsightResourceUtilizationInsightAggregation": SummarizeDatabaseInsightResourceUtilizationInsightAggregation,
+ "SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection": SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection,
+ "SummarizeHostInsightResourceCapacityTrendAggregationCollection": SummarizeHostInsightResourceCapacityTrendAggregationCollection,
+ "SummarizeHostInsightResourceForecastTrendAggregation": SummarizeHostInsightResourceForecastTrendAggregation,
+ "SummarizeHostInsightResourceStatisticsAggregationCollection": SummarizeHostInsightResourceStatisticsAggregationCollection,
+ "SummarizeHostInsightResourceUsageAggregation": SummarizeHostInsightResourceUsageAggregation,
+ "SummarizeHostInsightResourceUsageTrendAggregationCollection": SummarizeHostInsightResourceUsageTrendAggregationCollection,
+ "SummarizeHostInsightResourceUtilizationInsightAggregation": SummarizeHostInsightResourceUtilizationInsightAggregation,
+ "SummaryStatistics": SummaryStatistics,
+ "TablespaceUsageTrend": TablespaceUsageTrend,
+ "TablespaceUsageTrendAggregation": TablespaceUsageTrendAggregation,
+ "UpdateAutonomousDatabaseInsightDetails": UpdateAutonomousDatabaseInsightDetails,
+ "UpdateDatabaseInsightDetails": UpdateDatabaseInsightDetails,
+ "UpdateEmManagedExternalDatabaseInsightDetails": UpdateEmManagedExternalDatabaseInsightDetails,
+ "UpdateEnterpriseManagerBridgeDetails": UpdateEnterpriseManagerBridgeDetails,
+ "UpdateHostInsightDetails": UpdateHostInsightDetails,
+ "UpdateMacsManagedExternalDatabaseInsightDetails": UpdateMacsManagedExternalDatabaseInsightDetails,
+ "UpdateMacsManagedExternalHostInsightDetails": UpdateMacsManagedExternalHostInsightDetails,
+ "WorkRequest": WorkRequest,
+ "WorkRequestCollection": WorkRequestCollection,
+ "WorkRequestError": WorkRequestError,
+ "WorkRequestErrorCollection": WorkRequestErrorCollection,
+ "WorkRequestLogEntry": WorkRequestLogEntry,
+ "WorkRequestLogEntryCollection": WorkRequestLogEntryCollection,
+ "WorkRequestResource": WorkRequestResource,
+ "WorkRequests": WorkRequests
}
diff --git a/src/oci/opsi/models/autonomous_database_insight.py b/src/oci/opsi/models/autonomous_database_insight.py
new file mode 100644
index 0000000000..f894297294
--- /dev/null
+++ b/src/oci/opsi/models/autonomous_database_insight.py
@@ -0,0 +1,301 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_insight import DatabaseInsight
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AutonomousDatabaseInsight(DatabaseInsight):
+ """
+ Database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AutonomousDatabaseInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.AutonomousDatabaseInsight.entity_source` attribute
+ of this class is ``AUTONOMOUS_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this AutonomousDatabaseInsight.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this AutonomousDatabaseInsight.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this AutonomousDatabaseInsight.
+ :type compartment_id: str
+
+ :param status:
+ The value to assign to the status property of this AutonomousDatabaseInsight.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param database_type:
+ The value to assign to the database_type property of this AutonomousDatabaseInsight.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this AutonomousDatabaseInsight.
+ :type database_version: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this AutonomousDatabaseInsight.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this AutonomousDatabaseInsight.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this AutonomousDatabaseInsight.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this AutonomousDatabaseInsight.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param time_created:
+ The value to assign to the time_created property of this AutonomousDatabaseInsight.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this AutonomousDatabaseInsight.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this AutonomousDatabaseInsight.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this AutonomousDatabaseInsight.
+ :type lifecycle_details: str
+
+ :param database_id:
+ The value to assign to the database_id property of this AutonomousDatabaseInsight.
+ :type database_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this AutonomousDatabaseInsight.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this AutonomousDatabaseInsight.
+ :type database_display_name: str
+
+ :param database_resource_type:
+ The value to assign to the database_resource_type property of this AutonomousDatabaseInsight.
+ :type database_resource_type: str
+
+ :param db_additional_details:
+ The value to assign to the db_additional_details property of this AutonomousDatabaseInsight.
+ :type db_additional_details: object
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'status': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'database_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_resource_type': 'str',
+ 'db_additional_details': 'object'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'status': 'status',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'database_id': 'databaseId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_resource_type': 'databaseResourceType',
+ 'db_additional_details': 'dbAdditionalDetails'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._status = None
+ self._database_type = None
+ self._database_version = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._database_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_resource_type = None
+ self._db_additional_details = None
+ self._entity_source = 'AUTONOMOUS_DATABASE'
+
+ @property
+ def database_id(self):
+ """
+ **[Required]** Gets the database_id of this AutonomousDatabaseInsight.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The database_id of this AutonomousDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this AutonomousDatabaseInsight.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param database_id: The database_id of this AutonomousDatabaseInsight.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def database_name(self):
+ """
+ **[Required]** Gets the database_name of this AutonomousDatabaseInsight.
+ Name of database
+
+
+ :return: The database_name of this AutonomousDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_name
+
+ @database_name.setter
+ def database_name(self, database_name):
+ """
+ Sets the database_name of this AutonomousDatabaseInsight.
+ Name of database
+
+
+ :param database_name: The database_name of this AutonomousDatabaseInsight.
+ :type: str
+ """
+ self._database_name = database_name
+
+ @property
+ def database_display_name(self):
+ """
+ Gets the database_display_name of this AutonomousDatabaseInsight.
+ Display name of database
+
+
+ :return: The database_display_name of this AutonomousDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_display_name
+
+ @database_display_name.setter
+ def database_display_name(self, database_display_name):
+ """
+ Sets the database_display_name of this AutonomousDatabaseInsight.
+ Display name of database
+
+
+ :param database_display_name: The database_display_name of this AutonomousDatabaseInsight.
+ :type: str
+ """
+ self._database_display_name = database_display_name
+
+ @property
+ def database_resource_type(self):
+ """
+ **[Required]** Gets the database_resource_type of this AutonomousDatabaseInsight.
+ OCI database resource type
+
+
+ :return: The database_resource_type of this AutonomousDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_resource_type
+
+ @database_resource_type.setter
+ def database_resource_type(self, database_resource_type):
+ """
+ Sets the database_resource_type of this AutonomousDatabaseInsight.
+ OCI database resource type
+
+
+ :param database_resource_type: The database_resource_type of this AutonomousDatabaseInsight.
+ :type: str
+ """
+ self._database_resource_type = database_resource_type
+
+ @property
+ def db_additional_details(self):
+ """
+ Gets the db_additional_details of this AutonomousDatabaseInsight.
+ Additional details of a database in JSON format. For autonomous databases, this is the AutonomousDatabase object serialized as a JSON string as defined in https://docs.cloud.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/. For EM, pass in null or an empty string. Note that this string needs to be escaped when specified in the curl command.
+
+
+ :return: The db_additional_details of this AutonomousDatabaseInsight.
+ :rtype: object
+ """
+ return self._db_additional_details
+
+ @db_additional_details.setter
+ def db_additional_details(self, db_additional_details):
+ """
+ Sets the db_additional_details of this AutonomousDatabaseInsight.
+ Additional details of a database in JSON format. For autonomous databases, this is the AutonomousDatabase object serialized as a JSON string as defined in https://docs.cloud.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/. For EM, pass in null or an empty string. Note that this string needs to be escaped when specified in the curl command.
+
+
+ :param db_additional_details: The db_additional_details of this AutonomousDatabaseInsight.
+ :type: object
+ """
+ self._db_additional_details = db_additional_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/autonomous_database_insight_summary.py b/src/oci/opsi/models/autonomous_database_insight_summary.py
new file mode 100644
index 0000000000..595069d079
--- /dev/null
+++ b/src/oci/opsi/models/autonomous_database_insight_summary.py
@@ -0,0 +1,201 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_insight_summary import DatabaseInsightSummary
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class AutonomousDatabaseInsightSummary(DatabaseInsightSummary):
+ """
+ Summary of a database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AutonomousDatabaseInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.AutonomousDatabaseInsightSummary.entity_source` attribute
+ of this class is ``AUTONOMOUS_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this AutonomousDatabaseInsightSummary.
+ :type id: str
+
+ :param database_id:
+ The value to assign to the database_id property of this AutonomousDatabaseInsightSummary.
+ :type database_id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this AutonomousDatabaseInsightSummary.
+ :type compartment_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this AutonomousDatabaseInsightSummary.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this AutonomousDatabaseInsightSummary.
+ :type database_display_name: str
+
+ :param database_type:
+ The value to assign to the database_type property of this AutonomousDatabaseInsightSummary.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this AutonomousDatabaseInsightSummary.
+ :type database_version: str
+
+ :param database_host_names:
+ The value to assign to the database_host_names property of this AutonomousDatabaseInsightSummary.
+ :type database_host_names: list[str]
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this AutonomousDatabaseInsightSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this AutonomousDatabaseInsightSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this AutonomousDatabaseInsightSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param entity_source:
+ The value to assign to the entity_source property of this AutonomousDatabaseInsightSummary.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this AutonomousDatabaseInsightSummary.
+ :type processor_count: int
+
+ :param status:
+ The value to assign to the status property of this AutonomousDatabaseInsightSummary.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this AutonomousDatabaseInsightSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this AutonomousDatabaseInsightSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this AutonomousDatabaseInsightSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this AutonomousDatabaseInsightSummary.
+ :type lifecycle_details: str
+
+ :param database_resource_type:
+ The value to assign to the database_resource_type property of this AutonomousDatabaseInsightSummary.
+ :type database_resource_type: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'database_id': 'str',
+ 'compartment_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'database_host_names': 'list[str]',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'entity_source': 'str',
+ 'processor_count': 'int',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'database_resource_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'database_id': 'databaseId',
+ 'compartment_id': 'compartmentId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'database_host_names': 'databaseHostNames',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'entity_source': 'entitySource',
+ 'processor_count': 'processorCount',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'database_resource_type': 'databaseResourceType'
+ }
+
+ self._id = None
+ self._database_id = None
+ self._compartment_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_type = None
+ self._database_version = None
+ self._database_host_names = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._entity_source = None
+ self._processor_count = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._database_resource_type = None
+ self._entity_source = 'AUTONOMOUS_DATABASE'
+
+ @property
+ def database_resource_type(self):
+ """
+ Gets the database_resource_type of this AutonomousDatabaseInsightSummary.
+ OCI database resource type
+
+
+ :return: The database_resource_type of this AutonomousDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._database_resource_type
+
+ @database_resource_type.setter
+ def database_resource_type(self, database_resource_type):
+ """
+ Sets the database_resource_type of this AutonomousDatabaseInsightSummary.
+ OCI database resource type
+
+
+ :param database_resource_type: The database_resource_type of this AutonomousDatabaseInsightSummary.
+ :type: str
+ """
+ self._database_resource_type = database_resource_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/change_database_insight_compartment_details.py b/src/oci/opsi/models/change_database_insight_compartment_details.py
new file mode 100644
index 0000000000..7d55c2da79
--- /dev/null
+++ b/src/oci/opsi/models/change_database_insight_compartment_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ChangeDatabaseInsightCompartmentDetails(object):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangeDatabaseInsightCompartmentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ChangeDatabaseInsightCompartmentDetails.
+ :type compartment_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId'
+ }
+
+ self._compartment_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ChangeDatabaseInsightCompartmentDetails.
+ The OCID of the compartment into which the resource should be moved.
+
+
+ :return: The compartment_id of this ChangeDatabaseInsightCompartmentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ChangeDatabaseInsightCompartmentDetails.
+ The OCID of the compartment into which the resource should be moved.
+
+
+ :param compartment_id: The compartment_id of this ChangeDatabaseInsightCompartmentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/change_enterprise_manager_bridge_compartment_details.py b/src/oci/opsi/models/change_enterprise_manager_bridge_compartment_details.py
new file mode 100644
index 0000000000..3ef02bbeee
--- /dev/null
+++ b/src/oci/opsi/models/change_enterprise_manager_bridge_compartment_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ChangeEnterpriseManagerBridgeCompartmentDetails(object):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangeEnterpriseManagerBridgeCompartmentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ChangeEnterpriseManagerBridgeCompartmentDetails.
+ :type compartment_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId'
+ }
+
+ self._compartment_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ChangeEnterpriseManagerBridgeCompartmentDetails.
+ The OCID of the compartment into which the resource should be moved.
+
+
+ :return: The compartment_id of this ChangeEnterpriseManagerBridgeCompartmentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ChangeEnterpriseManagerBridgeCompartmentDetails.
+ The OCID of the compartment into which the resource should be moved.
+
+
+ :param compartment_id: The compartment_id of this ChangeEnterpriseManagerBridgeCompartmentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/change_host_insight_compartment_details.py b/src/oci/opsi/models/change_host_insight_compartment_details.py
new file mode 100644
index 0000000000..778ab08ba2
--- /dev/null
+++ b/src/oci/opsi/models/change_host_insight_compartment_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ChangeHostInsightCompartmentDetails(object):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangeHostInsightCompartmentDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ChangeHostInsightCompartmentDetails.
+ :type compartment_id: str
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId'
+ }
+
+ self._compartment_id = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ChangeHostInsightCompartmentDetails.
+ The OCID of the compartment into which the resource should be moved.
+
+
+ :return: The compartment_id of this ChangeHostInsightCompartmentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ChangeHostInsightCompartmentDetails.
+ The OCID of the compartment into which the resource should be moved.
+
+
+ :param compartment_id: The compartment_id of this ChangeHostInsightCompartmentDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/connection_details.py b/src/oci/opsi/models/connection_details.py
new file mode 100644
index 0000000000..7c4710ad8e
--- /dev/null
+++ b/src/oci/opsi/models/connection_details.py
@@ -0,0 +1,179 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ConnectionDetails(object):
+ """
+ Connection details to connect to the database. HostName, protocol, and port should be specified.
+ """
+
+ #: A constant which can be used with the protocol property of a ConnectionDetails.
+ #: This constant has a value of "TCP"
+ PROTOCOL_TCP = "TCP"
+
+ #: A constant which can be used with the protocol property of a ConnectionDetails.
+ #: This constant has a value of "TCPS"
+ PROTOCOL_TCPS = "TCPS"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ConnectionDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host_name:
+ The value to assign to the host_name property of this ConnectionDetails.
+ :type host_name: str
+
+ :param protocol:
+ The value to assign to the protocol property of this ConnectionDetails.
+ Allowed values for this property are: "TCP", "TCPS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type protocol: str
+
+ :param port:
+ The value to assign to the port property of this ConnectionDetails.
+ :type port: int
+
+ :param service_name:
+ The value to assign to the service_name property of this ConnectionDetails.
+ :type service_name: str
+
+ """
+ self.swagger_types = {
+ 'host_name': 'str',
+ 'protocol': 'str',
+ 'port': 'int',
+ 'service_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'host_name': 'hostName',
+ 'protocol': 'protocol',
+ 'port': 'port',
+ 'service_name': 'serviceName'
+ }
+
+ self._host_name = None
+ self._protocol = None
+ self._port = None
+ self._service_name = None
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this ConnectionDetails.
+ Name of the listener host that will be used to create the connect string to the database.
+
+
+ :return: The host_name of this ConnectionDetails.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this ConnectionDetails.
+ Name of the listener host that will be used to create the connect string to the database.
+
+
+ :param host_name: The host_name of this ConnectionDetails.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def protocol(self):
+ """
+ **[Required]** Gets the protocol of this ConnectionDetails.
+ Protocol used for connection requests.
+
+ Allowed values for this property are: "TCP", "TCPS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The protocol of this ConnectionDetails.
+ :rtype: str
+ """
+ return self._protocol
+
+ @protocol.setter
+ def protocol(self, protocol):
+ """
+ Sets the protocol of this ConnectionDetails.
+ Protocol used for connection requests.
+
+
+ :param protocol: The protocol of this ConnectionDetails.
+ :type: str
+ """
+ allowed_values = ["TCP", "TCPS"]
+ if not value_allowed_none_or_none_sentinel(protocol, allowed_values):
+ protocol = 'UNKNOWN_ENUM_VALUE'
+ self._protocol = protocol
+
+ @property
+ def port(self):
+ """
+ **[Required]** Gets the port of this ConnectionDetails.
+ Listener port number used for connection requests.
+
+
+ :return: The port of this ConnectionDetails.
+ :rtype: int
+ """
+ return self._port
+
+ @port.setter
+ def port(self, port):
+ """
+ Sets the port of this ConnectionDetails.
+ Listener port number used for connection requests.
+
+
+ :param port: The port of this ConnectionDetails.
+ :type: int
+ """
+ self._port = port
+
+ @property
+ def service_name(self):
+ """
+ **[Required]** Gets the service_name of this ConnectionDetails.
+ Service name used for connection requests.
+
+
+ :return: The service_name of this ConnectionDetails.
+ :rtype: str
+ """
+ return self._service_name
+
+ @service_name.setter
+ def service_name(self, service_name):
+ """
+ Sets the service_name of this ConnectionDetails.
+ Service name used for connection requests.
+
+
+ :param service_name: The service_name of this ConnectionDetails.
+ :type: str
+ """
+ self._service_name = service_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/create_database_insight_details.py b/src/oci/opsi/models/create_database_insight_details.py
new file mode 100644
index 0000000000..6e44da2fba
--- /dev/null
+++ b/src/oci/opsi/models/create_database_insight_details.py
@@ -0,0 +1,197 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateDatabaseInsightDetails(object):
+ """
+ The information about database to be analyzed.
+ """
+
+ #: A constant which can be used with the entity_source property of a CreateDatabaseInsightDetails.
+ #: This constant has a value of "EM_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASE = "EM_MANAGED_EXTERNAL_DATABASE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDatabaseInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this CreateDatabaseInsightDetails.
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateDatabaseInsightDetails.
+ :type compartment_id: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'compartment_id': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'compartment_id': 'compartmentId',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._compartment_id = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'EM_MANAGED_EXTERNAL_DATABASE':
+ return 'CreateEmManagedExternalDatabaseInsightDetails'
+ else:
+ return 'CreateDatabaseInsightDetails'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this CreateDatabaseInsightDetails.
+ Source of the database entity.
+
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+
+
+ :return: The entity_source of this CreateDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this CreateDatabaseInsightDetails.
+ Source of the database entity.
+
+
+ :param entity_source: The entity_source of this CreateDatabaseInsightDetails.
+ :type: str
+ """
+ allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ raise ValueError(
+ "Invalid value for `entity_source`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._entity_source = entity_source
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateDatabaseInsightDetails.
+ Compartment Identifier of database
+
+
+ :return: The compartment_id of this CreateDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateDatabaseInsightDetails.
+ Compartment Identifier of database
+
+
+ :param compartment_id: The compartment_id of this CreateDatabaseInsightDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateDatabaseInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CreateDatabaseInsightDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateDatabaseInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CreateDatabaseInsightDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateDatabaseInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CreateDatabaseInsightDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateDatabaseInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CreateDatabaseInsightDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/create_em_managed_external_database_insight_details.py b/src/oci/opsi/models/create_em_managed_external_database_insight_details.py
new file mode 100644
index 0000000000..8df58481ae
--- /dev/null
+++ b/src/oci/opsi/models/create_em_managed_external_database_insight_details.py
@@ -0,0 +1,163 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .create_database_insight_details import CreateDatabaseInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateEmManagedExternalDatabaseInsightDetails(CreateDatabaseInsightDetails):
+ """
+ The information about database to be analyzed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateEmManagedExternalDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails.entity_source` attribute
+ of this class is ``EM_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this CreateEmManagedExternalDatabaseInsightDetails.
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type compartment_id: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param enterprise_manager_identifier:
+ The value to assign to the enterprise_manager_identifier property of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type enterprise_manager_identifier: str
+
+ :param enterprise_manager_bridge_id:
+ The value to assign to the enterprise_manager_bridge_id property of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type enterprise_manager_bridge_id: str
+
+ :param enterprise_manager_entity_identifier:
+ The value to assign to the enterprise_manager_entity_identifier property of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type enterprise_manager_entity_identifier: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'compartment_id': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'enterprise_manager_identifier': 'str',
+ 'enterprise_manager_bridge_id': 'str',
+ 'enterprise_manager_entity_identifier': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'compartment_id': 'compartmentId',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'enterprise_manager_identifier': 'enterpriseManagerIdentifier',
+ 'enterprise_manager_bridge_id': 'enterpriseManagerBridgeId',
+ 'enterprise_manager_entity_identifier': 'enterpriseManagerEntityIdentifier'
+ }
+
+ self._entity_source = None
+ self._compartment_id = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._enterprise_manager_identifier = None
+ self._enterprise_manager_bridge_id = None
+ self._enterprise_manager_entity_identifier = None
+ self._entity_source = 'EM_MANAGED_EXTERNAL_DATABASE'
+
+ @property
+ def enterprise_manager_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ Enterprise Manager Unique Identifier
+
+
+ :return: The enterprise_manager_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._enterprise_manager_identifier
+
+ @enterprise_manager_identifier.setter
+ def enterprise_manager_identifier(self, enterprise_manager_identifier):
+ """
+ Sets the enterprise_manager_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ Enterprise Manager Unique Identifier
+
+
+ :param enterprise_manager_identifier: The enterprise_manager_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type: str
+ """
+ self._enterprise_manager_identifier = enterprise_manager_identifier
+
+ @property
+ def enterprise_manager_bridge_id(self):
+ """
+ **[Required]** Gets the enterprise_manager_bridge_id of this CreateEmManagedExternalDatabaseInsightDetails.
+ OPSI Enterprise Manager Bridge OCID
+
+
+ :return: The enterprise_manager_bridge_id of this CreateEmManagedExternalDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._enterprise_manager_bridge_id
+
+ @enterprise_manager_bridge_id.setter
+ def enterprise_manager_bridge_id(self, enterprise_manager_bridge_id):
+ """
+ Sets the enterprise_manager_bridge_id of this CreateEmManagedExternalDatabaseInsightDetails.
+ OPSI Enterprise Manager Bridge OCID
+
+
+ :param enterprise_manager_bridge_id: The enterprise_manager_bridge_id of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type: str
+ """
+ self._enterprise_manager_bridge_id = enterprise_manager_bridge_id
+
+ @property
+ def enterprise_manager_entity_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :return: The enterprise_manager_entity_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_identifier
+
+ @enterprise_manager_entity_identifier.setter
+ def enterprise_manager_entity_identifier(self, enterprise_manager_entity_identifier):
+ """
+ Sets the enterprise_manager_entity_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :param enterprise_manager_entity_identifier: The enterprise_manager_entity_identifier of this CreateEmManagedExternalDatabaseInsightDetails.
+ :type: str
+ """
+ self._enterprise_manager_entity_identifier = enterprise_manager_entity_identifier
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/create_enterprise_manager_bridge_details.py b/src/oci/opsi/models/create_enterprise_manager_bridge_details.py
new file mode 100644
index 0000000000..aab7ecd77b
--- /dev/null
+++ b/src/oci/opsi/models/create_enterprise_manager_bridge_details.py
@@ -0,0 +1,229 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateEnterpriseManagerBridgeDetails(object):
+ """
+ The information about a Enterprise Manager bridge resource to be created
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateEnterpriseManagerBridgeDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateEnterpriseManagerBridgeDetails.
+ :type compartment_id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this CreateEnterpriseManagerBridgeDetails.
+ :type display_name: str
+
+ :param description:
+ The value to assign to the description property of this CreateEnterpriseManagerBridgeDetails.
+ :type description: str
+
+ :param object_storage_bucket_name:
+ The value to assign to the object_storage_bucket_name property of this CreateEnterpriseManagerBridgeDetails.
+ :type object_storage_bucket_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateEnterpriseManagerBridgeDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateEnterpriseManagerBridgeDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'compartment_id': 'str',
+ 'display_name': 'str',
+ 'description': 'str',
+ 'object_storage_bucket_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'compartment_id': 'compartmentId',
+ 'display_name': 'displayName',
+ 'description': 'description',
+ 'object_storage_bucket_name': 'objectStorageBucketName',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._compartment_id = None
+ self._display_name = None
+ self._description = None
+ self._object_storage_bucket_name = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateEnterpriseManagerBridgeDetails.
+ Compartment identifier of the Enterprise Manager bridge
+
+
+ :return: The compartment_id of this CreateEnterpriseManagerBridgeDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateEnterpriseManagerBridgeDetails.
+ Compartment identifier of the Enterprise Manager bridge
+
+
+ :param compartment_id: The compartment_id of this CreateEnterpriseManagerBridgeDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this CreateEnterpriseManagerBridgeDetails.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :return: The display_name of this CreateEnterpriseManagerBridgeDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CreateEnterpriseManagerBridgeDetails.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :param display_name: The display_name of this CreateEnterpriseManagerBridgeDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def description(self):
+ """
+ Gets the description of this CreateEnterpriseManagerBridgeDetails.
+ Description of Enterprise Manager Bridge
+
+
+ :return: The description of this CreateEnterpriseManagerBridgeDetails.
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """
+ Sets the description of this CreateEnterpriseManagerBridgeDetails.
+ Description of Enterprise Manager Bridge
+
+
+ :param description: The description of this CreateEnterpriseManagerBridgeDetails.
+ :type: str
+ """
+ self._description = description
+
+ @property
+ def object_storage_bucket_name(self):
+ """
+ **[Required]** Gets the object_storage_bucket_name of this CreateEnterpriseManagerBridgeDetails.
+ Object Storage Bucket Name
+
+
+ :return: The object_storage_bucket_name of this CreateEnterpriseManagerBridgeDetails.
+ :rtype: str
+ """
+ return self._object_storage_bucket_name
+
+ @object_storage_bucket_name.setter
+ def object_storage_bucket_name(self, object_storage_bucket_name):
+ """
+ Sets the object_storage_bucket_name of this CreateEnterpriseManagerBridgeDetails.
+ Object Storage Bucket Name
+
+
+ :param object_storage_bucket_name: The object_storage_bucket_name of this CreateEnterpriseManagerBridgeDetails.
+ :type: str
+ """
+ self._object_storage_bucket_name = object_storage_bucket_name
+
+ @property
+ def freeform_tags(self):
+ """
+ **[Required]** Gets the freeform_tags of this CreateEnterpriseManagerBridgeDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CreateEnterpriseManagerBridgeDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateEnterpriseManagerBridgeDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CreateEnterpriseManagerBridgeDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ **[Required]** Gets the defined_tags of this CreateEnterpriseManagerBridgeDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CreateEnterpriseManagerBridgeDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateEnterpriseManagerBridgeDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CreateEnterpriseManagerBridgeDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/create_host_insight_details.py b/src/oci/opsi/models/create_host_insight_details.py
new file mode 100644
index 0000000000..b4d56da8c1
--- /dev/null
+++ b/src/oci/opsi/models/create_host_insight_details.py
@@ -0,0 +1,197 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateHostInsightDetails(object):
+ """
+ The information about host to be analyzed.
+ """
+
+ #: A constant which can be used with the entity_source property of a CreateHostInsightDetails.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_HOST"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_HOST = "MACS_MANAGED_EXTERNAL_HOST"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateHostInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.CreateMacsManagedExternalHostInsightDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this CreateHostInsightDetails.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+ :type entity_source: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateHostInsightDetails.
+ :type compartment_id: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateHostInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateHostInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'compartment_id': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'compartment_id': 'compartmentId',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._compartment_id = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'MACS_MANAGED_EXTERNAL_HOST':
+ return 'CreateMacsManagedExternalHostInsightDetails'
+ else:
+ return 'CreateHostInsightDetails'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this CreateHostInsightDetails.
+ Source of the host entity.
+
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+
+
+ :return: The entity_source of this CreateHostInsightDetails.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this CreateHostInsightDetails.
+ Source of the host entity.
+
+
+ :param entity_source: The entity_source of this CreateHostInsightDetails.
+ :type: str
+ """
+ allowed_values = ["MACS_MANAGED_EXTERNAL_HOST"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ raise ValueError(
+ "Invalid value for `entity_source`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._entity_source = entity_source
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateHostInsightDetails.
+ Compartment Identifier of host
+
+
+ :return: The compartment_id of this CreateHostInsightDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateHostInsightDetails.
+ Compartment Identifier of host
+
+
+ :param compartment_id: The compartment_id of this CreateHostInsightDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateHostInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CreateHostInsightDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateHostInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CreateHostInsightDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateHostInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CreateHostInsightDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateHostInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CreateHostInsightDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/create_macs_managed_external_host_insight_details.py b/src/oci/opsi/models/create_macs_managed_external_host_insight_details.py
new file mode 100644
index 0000000000..d85f09f25b
--- /dev/null
+++ b/src/oci/opsi/models/create_macs_managed_external_host_insight_details.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .create_host_insight_details import CreateHostInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CreateMacsManagedExternalHostInsightDetails(CreateHostInsightDetails):
+ """
+ The information about host to be analyzed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateMacsManagedExternalHostInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CreateMacsManagedExternalHostInsightDetails.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_HOST`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this CreateMacsManagedExternalHostInsightDetails.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+ :type entity_source: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateMacsManagedExternalHostInsightDetails.
+ :type compartment_id: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateMacsManagedExternalHostInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateMacsManagedExternalHostInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param management_agent_id:
+ The value to assign to the management_agent_id property of this CreateMacsManagedExternalHostInsightDetails.
+ :type management_agent_id: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'compartment_id': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'management_agent_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'compartment_id': 'compartmentId',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'management_agent_id': 'managementAgentId'
+ }
+
+ self._entity_source = None
+ self._compartment_id = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._management_agent_id = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_HOST'
+
+ @property
+ def management_agent_id(self):
+ """
+ **[Required]** Gets the management_agent_id of this CreateMacsManagedExternalHostInsightDetails.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The management_agent_id of this CreateMacsManagedExternalHostInsightDetails.
+ :rtype: str
+ """
+ return self._management_agent_id
+
+ @management_agent_id.setter
+ def management_agent_id(self, management_agent_id):
+ """
+ Sets the management_agent_id of this CreateMacsManagedExternalHostInsightDetails.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param management_agent_id: The management_agent_id of this CreateMacsManagedExternalHostInsightDetails.
+ :type: str
+ """
+ self._management_agent_id = management_agent_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/credential_details.py b/src/oci/opsi/models/credential_details.py
new file mode 100644
index 0000000000..3e05482cb5
--- /dev/null
+++ b/src/oci/opsi/models/credential_details.py
@@ -0,0 +1,130 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CredentialDetails(object):
+ """
+ User credential details to connect to the database. This is supplied via the External Database Service.
+ """
+
+ #: A constant which can be used with the credential_type property of a CredentialDetails.
+ #: This constant has a value of "CREDENTIALS_BY_SOURCE"
+ CREDENTIAL_TYPE_CREDENTIALS_BY_SOURCE = "CREDENTIALS_BY_SOURCE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CredentialDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.CredentialsBySource`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param credential_source_name:
+ The value to assign to the credential_source_name property of this CredentialDetails.
+ :type credential_source_name: str
+
+ :param credential_type:
+ The value to assign to the credential_type property of this CredentialDetails.
+ Allowed values for this property are: "CREDENTIALS_BY_SOURCE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type credential_type: str
+
+ """
+ self.swagger_types = {
+ 'credential_source_name': 'str',
+ 'credential_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'credential_source_name': 'credentialSourceName',
+ 'credential_type': 'credentialType'
+ }
+
+ self._credential_source_name = None
+ self._credential_type = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['credentialType']
+
+ if type == 'CREDENTIALS_BY_SOURCE':
+ return 'CredentialsBySource'
+ else:
+ return 'CredentialDetails'
+
+ @property
+ def credential_source_name(self):
+ """
+ **[Required]** Gets the credential_source_name of this CredentialDetails.
+ Credential source name that had been added in Management Agent wallet. This is supplied in the External Database Service.
+
+
+ :return: The credential_source_name of this CredentialDetails.
+ :rtype: str
+ """
+ return self._credential_source_name
+
+ @credential_source_name.setter
+ def credential_source_name(self, credential_source_name):
+ """
+ Sets the credential_source_name of this CredentialDetails.
+ Credential source name that had been added in Management Agent wallet. This is supplied in the External Database Service.
+
+
+ :param credential_source_name: The credential_source_name of this CredentialDetails.
+ :type: str
+ """
+ self._credential_source_name = credential_source_name
+
+ @property
+ def credential_type(self):
+ """
+ **[Required]** Gets the credential_type of this CredentialDetails.
+ Credential type.
+
+ Allowed values for this property are: "CREDENTIALS_BY_SOURCE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The credential_type of this CredentialDetails.
+ :rtype: str
+ """
+ return self._credential_type
+
+ @credential_type.setter
+ def credential_type(self, credential_type):
+ """
+ Sets the credential_type of this CredentialDetails.
+ Credential type.
+
+
+ :param credential_type: The credential_type of this CredentialDetails.
+ :type: str
+ """
+ allowed_values = ["CREDENTIALS_BY_SOURCE"]
+ if not value_allowed_none_or_none_sentinel(credential_type, allowed_values):
+ credential_type = 'UNKNOWN_ENUM_VALUE'
+ self._credential_type = credential_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/credentials_by_source.py b/src/oci/opsi/models/credentials_by_source.py
new file mode 100644
index 0000000000..0a685ef060
--- /dev/null
+++ b/src/oci/opsi/models/credentials_by_source.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .credential_details import CredentialDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class CredentialsBySource(CredentialDetails):
+ """
+ Credential Source to connect to the database.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CredentialsBySource object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CredentialsBySource.credential_type` attribute
+ of this class is ``CREDENTIALS_BY_SOURCE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param credential_source_name:
+ The value to assign to the credential_source_name property of this CredentialsBySource.
+ :type credential_source_name: str
+
+ :param credential_type:
+ The value to assign to the credential_type property of this CredentialsBySource.
+ Allowed values for this property are: "CREDENTIALS_BY_SOURCE"
+ :type credential_type: str
+
+ """
+ self.swagger_types = {
+ 'credential_source_name': 'str',
+ 'credential_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'credential_source_name': 'credentialSourceName',
+ 'credential_type': 'credentialType'
+ }
+
+ self._credential_source_name = None
+ self._credential_type = None
+ self._credential_type = 'CREDENTIALS_BY_SOURCE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/database_configuration_metric_group.py b/src/oci/opsi/models/database_configuration_metric_group.py
new file mode 100644
index 0000000000..a08d89bc44
--- /dev/null
+++ b/src/oci/opsi/models/database_configuration_metric_group.py
@@ -0,0 +1,149 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DatabaseConfigurationMetricGroup(object):
+ """
+ Supported configuration metric groups for database capacity planning service.
+ """
+
+ #: A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
+ #: This constant has a value of "DB_EXTERNAL_PROPERTIES"
+ METRIC_NAME_DB_EXTERNAL_PROPERTIES = "DB_EXTERNAL_PROPERTIES"
+
+ #: A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
+ #: This constant has a value of "DB_EXTERNAL_INSTANCE"
+ METRIC_NAME_DB_EXTERNAL_INSTANCE = "DB_EXTERNAL_INSTANCE"
+
+ #: A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup.
+ #: This constant has a value of "DB_OS_CONFIG_INSTANCE"
+ METRIC_NAME_DB_OS_CONFIG_INSTANCE = "DB_OS_CONFIG_INSTANCE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DatabaseConfigurationMetricGroup object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.DBOSConfigInstance`
+ * :class:`~oci.opsi.models.DBExternalInstance`
+ * :class:`~oci.opsi.models.DBExternalProperties`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this DatabaseConfigurationMetricGroup.
+ Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this DatabaseConfigurationMetricGroup.
+ :type time_collected: datetime
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['metricName']
+
+ if type == 'DB_OS_CONFIG_INSTANCE':
+ return 'DBOSConfigInstance'
+
+ if type == 'DB_EXTERNAL_INSTANCE':
+ return 'DBExternalInstance'
+
+ if type == 'DB_EXTERNAL_PROPERTIES':
+ return 'DBExternalProperties'
+ else:
+ return 'DatabaseConfigurationMetricGroup'
+
+ @property
+ def metric_name(self):
+ """
+ **[Required]** Gets the metric_name of this DatabaseConfigurationMetricGroup.
+ Name of the metric group.
+
+ Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE"
+
+
+ :return: The metric_name of this DatabaseConfigurationMetricGroup.
+ :rtype: str
+ """
+ return self._metric_name
+
+ @metric_name.setter
+ def metric_name(self, metric_name):
+ """
+ Sets the metric_name of this DatabaseConfigurationMetricGroup.
+ Name of the metric group.
+
+
+ :param metric_name: The metric_name of this DatabaseConfigurationMetricGroup.
+ :type: str
+ """
+ allowed_values = ["DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE"]
+ if not value_allowed_none_or_none_sentinel(metric_name, allowed_values):
+ raise ValueError(
+ "Invalid value for `metric_name`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._metric_name = metric_name
+
+ @property
+ def time_collected(self):
+ """
+ Gets the time_collected of this DatabaseConfigurationMetricGroup.
+ Collection timestamp
+ Example: `\"2020-05-06T00:00:00.000Z\"`
+
+
+ :return: The time_collected of this DatabaseConfigurationMetricGroup.
+ :rtype: datetime
+ """
+ return self._time_collected
+
+ @time_collected.setter
+ def time_collected(self, time_collected):
+ """
+ Sets the time_collected of this DatabaseConfigurationMetricGroup.
+ Collection timestamp
+ Example: `\"2020-05-06T00:00:00.000Z\"`
+
+
+ :param time_collected: The time_collected of this DatabaseConfigurationMetricGroup.
+ :type: datetime
+ """
+ self._time_collected = time_collected
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/database_details.py b/src/oci/opsi/models/database_details.py
index a729de35d5..3a2023b7aa 100644
--- a/src/oci/opsi/models/database_details.py
+++ b/src/oci/opsi/models/database_details.py
@@ -18,6 +18,10 @@ def __init__(self, **kwargs):
Initializes a new DatabaseDetails object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
+ :param id:
+ The value to assign to the id property of this DatabaseDetails.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this DatabaseDetails.
:type database_id: str
@@ -38,28 +42,66 @@ def __init__(self, **kwargs):
The value to assign to the database_version property of this DatabaseDetails.
:type database_version: str
+ :param instances:
+ The value to assign to the instances property of this DatabaseDetails.
+ :type instances: list[oci.opsi.models.HostInstanceMap]
+
"""
self.swagger_types = {
+ 'id': 'str',
'database_id': 'str',
'database_name': 'str',
'database_display_name': 'str',
'database_type': 'str',
- 'database_version': 'str'
+ 'database_version': 'str',
+ 'instances': 'list[HostInstanceMap]'
}
self.attribute_map = {
+ 'id': 'id',
'database_id': 'databaseId',
'database_name': 'databaseName',
'database_display_name': 'databaseDisplayName',
'database_type': 'databaseType',
- 'database_version': 'databaseVersion'
+ 'database_version': 'databaseVersion',
+ 'instances': 'instances'
}
+ self._id = None
self._database_id = None
self._database_name = None
self._database_display_name = None
self._database_type = None
self._database_version = None
+ self._instances = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DatabaseDetails.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this DatabaseDetails.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DatabaseDetails.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this DatabaseDetails.
+ :type: str
+ """
+ self._id = id
@property
def database_id(self):
@@ -185,6 +227,30 @@ def database_version(self, database_version):
"""
self._database_version = database_version
+ @property
+ def instances(self):
+ """
+ Gets the instances of this DatabaseDetails.
+ Array of hostname and instance name.
+
+
+ :return: The instances of this DatabaseDetails.
+ :rtype: list[oci.opsi.models.HostInstanceMap]
+ """
+ return self._instances
+
+ @instances.setter
+ def instances(self, instances):
+ """
+ Sets the instances of this DatabaseDetails.
+ Array of hostname and instance name.
+
+
+ :param instances: The instances of this DatabaseDetails.
+ :type: list[oci.opsi.models.HostInstanceMap]
+ """
+ self._instances = instances
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/opsi/models/database_insight.py b/src/oci/opsi/models/database_insight.py
new file mode 100644
index 0000000000..b8a64fec1d
--- /dev/null
+++ b/src/oci/opsi/models/database_insight.py
@@ -0,0 +1,576 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DatabaseInsight(object):
+ """
+ Database insight resource.
+ """
+
+ #: A constant which can be used with the entity_source property of a DatabaseInsight.
+ #: This constant has a value of "AUTONOMOUS_DATABASE"
+ ENTITY_SOURCE_AUTONOMOUS_DATABASE = "AUTONOMOUS_DATABASE"
+
+ #: A constant which can be used with the entity_source property of a DatabaseInsight.
+ #: This constant has a value of "EM_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASE = "EM_MANAGED_EXTERNAL_DATABASE"
+
+ #: A constant which can be used with the entity_source property of a DatabaseInsight.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_DATABASE = "MACS_MANAGED_EXTERNAL_DATABASE"
+
+ #: A constant which can be used with the status property of a DatabaseInsight.
+ #: This constant has a value of "DISABLED"
+ STATUS_DISABLED = "DISABLED"
+
+ #: A constant which can be used with the status property of a DatabaseInsight.
+ #: This constant has a value of "ENABLED"
+ STATUS_ENABLED = "ENABLED"
+
+ #: A constant which can be used with the status property of a DatabaseInsight.
+ #: This constant has a value of "TERMINATED"
+ STATUS_TERMINATED = "TERMINATED"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsight.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsight.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsight.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsight.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsight.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsight.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DatabaseInsight object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.EmManagedExternalDatabaseInsight`
+ * :class:`~oci.opsi.models.MacsManagedExternalDatabaseInsight`
+ * :class:`~oci.opsi.models.AutonomousDatabaseInsight`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this DatabaseInsight.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this DatabaseInsight.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this DatabaseInsight.
+ :type compartment_id: str
+
+ :param status:
+ The value to assign to the status property of this DatabaseInsight.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param database_type:
+ The value to assign to the database_type property of this DatabaseInsight.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this DatabaseInsight.
+ :type database_version: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this DatabaseInsight.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this DatabaseInsight.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this DatabaseInsight.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this DatabaseInsight.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param time_created:
+ The value to assign to the time_created property of this DatabaseInsight.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this DatabaseInsight.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this DatabaseInsight.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this DatabaseInsight.
+ :type lifecycle_details: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'status': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'status': 'status',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._status = None
+ self._database_type = None
+ self._database_version = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'EM_MANAGED_EXTERNAL_DATABASE':
+ return 'EmManagedExternalDatabaseInsight'
+
+ if type == 'MACS_MANAGED_EXTERNAL_DATABASE':
+ return 'MacsManagedExternalDatabaseInsight'
+
+ if type == 'AUTONOMOUS_DATABASE':
+ return 'AutonomousDatabaseInsight'
+ else:
+ return 'DatabaseInsight'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this DatabaseInsight.
+ Source of the database entity.
+
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The entity_source of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this DatabaseInsight.
+ Source of the database entity.
+
+
+ :param entity_source: The entity_source of this DatabaseInsight.
+ :type: str
+ """
+ allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ entity_source = 'UNKNOWN_ENUM_VALUE'
+ self._entity_source = entity_source
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DatabaseInsight.
+ Database insight identifier
+
+
+ :return: The id of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DatabaseInsight.
+ Database insight identifier
+
+
+ :param id: The id of this DatabaseInsight.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this DatabaseInsight.
+ Compartment identifier of the database
+
+
+ :return: The compartment_id of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this DatabaseInsight.
+ Compartment identifier of the database
+
+
+ :param compartment_id: The compartment_id of this DatabaseInsight.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this DatabaseInsight.
+ Indicates the status of a database insight in Operations Insights
+
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this DatabaseInsight.
+ Indicates the status of a database insight in Operations Insights
+
+
+ :param status: The status of this DatabaseInsight.
+ :type: str
+ """
+ allowed_values = ["DISABLED", "ENABLED", "TERMINATED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def database_type(self):
+ """
+ Gets the database_type of this DatabaseInsight.
+ Operations Insights internal representation of the database type.
+
+
+ :return: The database_type of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._database_type
+
+ @database_type.setter
+ def database_type(self, database_type):
+ """
+ Sets the database_type of this DatabaseInsight.
+ Operations Insights internal representation of the database type.
+
+
+ :param database_type: The database_type of this DatabaseInsight.
+ :type: str
+ """
+ self._database_type = database_type
+
+ @property
+ def database_version(self):
+ """
+ Gets the database_version of this DatabaseInsight.
+ The version of the database.
+
+
+ :return: The database_version of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._database_version
+
+ @database_version.setter
+ def database_version(self, database_version):
+ """
+ Sets the database_version of this DatabaseInsight.
+ The version of the database.
+
+
+ :param database_version: The database_version of this DatabaseInsight.
+ :type: str
+ """
+ self._database_version = database_version
+
+ @property
+ def processor_count(self):
+ """
+ Gets the processor_count of this DatabaseInsight.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :return: The processor_count of this DatabaseInsight.
+ :rtype: int
+ """
+ return self._processor_count
+
+ @processor_count.setter
+ def processor_count(self, processor_count):
+ """
+ Sets the processor_count of this DatabaseInsight.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :param processor_count: The processor_count of this DatabaseInsight.
+ :type: int
+ """
+ self._processor_count = processor_count
+
+ @property
+ def freeform_tags(self):
+ """
+ **[Required]** Gets the freeform_tags of this DatabaseInsight.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this DatabaseInsight.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this DatabaseInsight.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this DatabaseInsight.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ **[Required]** Gets the defined_tags of this DatabaseInsight.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this DatabaseInsight.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this DatabaseInsight.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this DatabaseInsight.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this DatabaseInsight.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this DatabaseInsight.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this DatabaseInsight.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this DatabaseInsight.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this DatabaseInsight.
+ The time the the database insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this DatabaseInsight.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this DatabaseInsight.
+ The time the the database insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this DatabaseInsight.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this DatabaseInsight.
+ The time the database insight was updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this DatabaseInsight.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this DatabaseInsight.
+ The time the database insight was updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this DatabaseInsight.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this DatabaseInsight.
+ The current state of the database.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this DatabaseInsight.
+ The current state of the database.
+
+
+ :param lifecycle_state: The lifecycle_state of this DatabaseInsight.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this DatabaseInsight.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this DatabaseInsight.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this DatabaseInsight.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/database_insight_summary.py b/src/oci/opsi/models/database_insight_summary.py
index 6410f90547..0b5e8d2909 100644
--- a/src/oci/opsi/models/database_insight_summary.py
+++ b/src/oci/opsi/models/database_insight_summary.py
@@ -10,14 +10,72 @@
@init_model_state_from_kwargs
class DatabaseInsightSummary(object):
"""
- Partial definition of the database insight resource.
+ Summary of a database insight resource.
"""
+ #: A constant which can be used with the entity_source property of a DatabaseInsightSummary.
+ #: This constant has a value of "AUTONOMOUS_DATABASE"
+ ENTITY_SOURCE_AUTONOMOUS_DATABASE = "AUTONOMOUS_DATABASE"
+
+ #: A constant which can be used with the entity_source property of a DatabaseInsightSummary.
+ #: This constant has a value of "EM_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASE = "EM_MANAGED_EXTERNAL_DATABASE"
+
+ #: A constant which can be used with the entity_source property of a DatabaseInsightSummary.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_DATABASE = "MACS_MANAGED_EXTERNAL_DATABASE"
+
+ #: A constant which can be used with the status property of a DatabaseInsightSummary.
+ #: This constant has a value of "DISABLED"
+ STATUS_DISABLED = "DISABLED"
+
+ #: A constant which can be used with the status property of a DatabaseInsightSummary.
+ #: This constant has a value of "ENABLED"
+ STATUS_ENABLED = "ENABLED"
+
+ #: A constant which can be used with the status property of a DatabaseInsightSummary.
+ #: This constant has a value of "TERMINATED"
+ STATUS_TERMINATED = "TERMINATED"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsightSummary.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsightSummary.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsightSummary.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsightSummary.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsightSummary.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a DatabaseInsightSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
def __init__(self, **kwargs):
"""
- Initializes a new DatabaseInsightSummary object with values from keyword arguments.
+ Initializes a new DatabaseInsightSummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.MacsManagedExternalDatabaseInsightSummary`
+ * :class:`~oci.opsi.models.AutonomousDatabaseInsightSummary`
+ * :class:`~oci.opsi.models.EmManagedExternalDatabaseInsightSummary`
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
+ :param id:
+ The value to assign to the id property of this DatabaseInsightSummary.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this DatabaseInsightSummary.
:type database_id: str
@@ -58,8 +116,43 @@ def __init__(self, **kwargs):
The value to assign to the system_tags property of this DatabaseInsightSummary.
:type system_tags: dict(str, dict(str, object))
+ :param entity_source:
+ The value to assign to the entity_source property of this DatabaseInsightSummary.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type entity_source: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this DatabaseInsightSummary.
+ :type processor_count: int
+
+ :param status:
+ The value to assign to the status property of this DatabaseInsightSummary.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this DatabaseInsightSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this DatabaseInsightSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this DatabaseInsightSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this DatabaseInsightSummary.
+ :type lifecycle_details: str
+
"""
self.swagger_types = {
+ 'id': 'str',
'database_id': 'str',
'compartment_id': 'str',
'database_name': 'str',
@@ -69,10 +162,18 @@ def __init__(self, **kwargs):
'database_host_names': 'list[str]',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
- 'system_tags': 'dict(str, dict(str, object))'
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'entity_source': 'str',
+ 'processor_count': 'int',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str'
}
self.attribute_map = {
+ 'id': 'id',
'database_id': 'databaseId',
'compartment_id': 'compartmentId',
'database_name': 'databaseName',
@@ -82,9 +183,17 @@ def __init__(self, **kwargs):
'database_host_names': 'databaseHostNames',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
- 'system_tags': 'systemTags'
+ 'system_tags': 'systemTags',
+ 'entity_source': 'entitySource',
+ 'processor_count': 'processorCount',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails'
}
+ self._id = None
self._database_id = None
self._compartment_id = None
self._database_name = None
@@ -95,6 +204,60 @@ def __init__(self, **kwargs):
self._freeform_tags = None
self._defined_tags = None
self._system_tags = None
+ self._entity_source = None
+ self._processor_count = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'MACS_MANAGED_EXTERNAL_DATABASE':
+ return 'MacsManagedExternalDatabaseInsightSummary'
+
+ if type == 'AUTONOMOUS_DATABASE':
+ return 'AutonomousDatabaseInsightSummary'
+
+ if type == 'EM_MANAGED_EXTERNAL_DATABASE':
+ return 'EmManagedExternalDatabaseInsightSummary'
+ else:
+ return 'DatabaseInsightSummary'
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this DatabaseInsightSummary.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this DatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this DatabaseInsightSummary.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this DatabaseInsightSummary.
+ :type: str
+ """
+ self._id = id
@property
def database_id(self):
@@ -350,6 +513,192 @@ def system_tags(self, system_tags):
"""
self._system_tags = system_tags
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this DatabaseInsightSummary.
+ Source of the database entity.
+
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The entity_source of this DatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this DatabaseInsightSummary.
+ Source of the database entity.
+
+
+ :param entity_source: The entity_source of this DatabaseInsightSummary.
+ :type: str
+ """
+ allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ entity_source = 'UNKNOWN_ENUM_VALUE'
+ self._entity_source = entity_source
+
+ @property
+ def processor_count(self):
+ """
+ Gets the processor_count of this DatabaseInsightSummary.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :return: The processor_count of this DatabaseInsightSummary.
+ :rtype: int
+ """
+ return self._processor_count
+
+ @processor_count.setter
+ def processor_count(self, processor_count):
+ """
+ Sets the processor_count of this DatabaseInsightSummary.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :param processor_count: The processor_count of this DatabaseInsightSummary.
+ :type: int
+ """
+ self._processor_count = processor_count
+
+ @property
+ def status(self):
+ """
+ Gets the status of this DatabaseInsightSummary.
+ Indicates the status of a database insight in Operations Insights
+
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this DatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this DatabaseInsightSummary.
+ Indicates the status of a database insight in Operations Insights
+
+
+ :param status: The status of this DatabaseInsightSummary.
+ :type: str
+ """
+ allowed_values = ["DISABLED", "ENABLED", "TERMINATED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def time_created(self):
+ """
+ Gets the time_created of this DatabaseInsightSummary.
+ The time the the database insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this DatabaseInsightSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this DatabaseInsightSummary.
+ The time the the database insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this DatabaseInsightSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this DatabaseInsightSummary.
+ The time the database insight was updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this DatabaseInsightSummary.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this DatabaseInsightSummary.
+ The time the database insight was updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this DatabaseInsightSummary.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ Gets the lifecycle_state of this DatabaseInsightSummary.
+ The current state of the database.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this DatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this DatabaseInsightSummary.
+ The current state of the database.
+
+
+ :param lifecycle_state: The lifecycle_state of this DatabaseInsightSummary.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this DatabaseInsightSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this DatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this DatabaseInsightSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this DatabaseInsightSummary.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/opsi/models/db_external_instance.py b/src/oci/opsi/models/db_external_instance.py
new file mode 100644
index 0000000000..3e5473763f
--- /dev/null
+++ b/src/oci/opsi/models/db_external_instance.py
@@ -0,0 +1,428 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_configuration_metric_group import DatabaseConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DBExternalInstance(DatabaseConfigurationMetricGroup):
+ """
+ Configuration parameters defined for external databases instance level.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DBExternalInstance object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DBExternalInstance.metric_name` attribute
+ of this class is ``DB_EXTERNAL_INSTANCE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this DBExternalInstance.
+ Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this DBExternalInstance.
+ :type time_collected: datetime
+
+ :param instance_name:
+ The value to assign to the instance_name property of this DBExternalInstance.
+ :type instance_name: str
+
+ :param host_name:
+ The value to assign to the host_name property of this DBExternalInstance.
+ :type host_name: str
+
+ :param cpu_count:
+ The value to assign to the cpu_count property of this DBExternalInstance.
+ :type cpu_count: int
+
+ :param host_memory_capacity:
+ The value to assign to the host_memory_capacity property of this DBExternalInstance.
+ :type host_memory_capacity: float
+
+ :param version:
+ The value to assign to the version property of this DBExternalInstance.
+ :type version: str
+
+ :param parallel:
+ The value to assign to the parallel property of this DBExternalInstance.
+ :type parallel: str
+
+ :param instance_role:
+ The value to assign to the instance_role property of this DBExternalInstance.
+ :type instance_role: str
+
+ :param logins:
+ The value to assign to the logins property of this DBExternalInstance.
+ :type logins: str
+
+ :param database_status:
+ The value to assign to the database_status property of this DBExternalInstance.
+ :type database_status: str
+
+ :param status:
+ The value to assign to the status property of this DBExternalInstance.
+ :type status: str
+
+ :param edition:
+ The value to assign to the edition property of this DBExternalInstance.
+ :type edition: str
+
+ :param startup_time:
+ The value to assign to the startup_time property of this DBExternalInstance.
+ :type startup_time: datetime
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'instance_name': 'str',
+ 'host_name': 'str',
+ 'cpu_count': 'int',
+ 'host_memory_capacity': 'float',
+ 'version': 'str',
+ 'parallel': 'str',
+ 'instance_role': 'str',
+ 'logins': 'str',
+ 'database_status': 'str',
+ 'status': 'str',
+ 'edition': 'str',
+ 'startup_time': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'instance_name': 'instanceName',
+ 'host_name': 'hostName',
+ 'cpu_count': 'cpuCount',
+ 'host_memory_capacity': 'hostMemoryCapacity',
+ 'version': 'version',
+ 'parallel': 'parallel',
+ 'instance_role': 'instanceRole',
+ 'logins': 'logins',
+ 'database_status': 'databaseStatus',
+ 'status': 'status',
+ 'edition': 'edition',
+ 'startup_time': 'startupTime'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._instance_name = None
+ self._host_name = None
+ self._cpu_count = None
+ self._host_memory_capacity = None
+ self._version = None
+ self._parallel = None
+ self._instance_role = None
+ self._logins = None
+ self._database_status = None
+ self._status = None
+ self._edition = None
+ self._startup_time = None
+ self._metric_name = 'DB_EXTERNAL_INSTANCE'
+
+ @property
+ def instance_name(self):
+ """
+ **[Required]** Gets the instance_name of this DBExternalInstance.
+ Name of the database instance.
+
+
+ :return: The instance_name of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._instance_name
+
+ @instance_name.setter
+ def instance_name(self, instance_name):
+ """
+ Sets the instance_name of this DBExternalInstance.
+ Name of the database instance.
+
+
+ :param instance_name: The instance_name of this DBExternalInstance.
+ :type: str
+ """
+ self._instance_name = instance_name
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this DBExternalInstance.
+ Host name of the database instance.
+
+
+ :return: The host_name of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this DBExternalInstance.
+ Host name of the database instance.
+
+
+ :param host_name: The host_name of this DBExternalInstance.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def cpu_count(self):
+ """
+ Gets the cpu_count of this DBExternalInstance.
+ Total number of CPUs allocated for the host.
+
+
+ :return: The cpu_count of this DBExternalInstance.
+ :rtype: int
+ """
+ return self._cpu_count
+
+ @cpu_count.setter
+ def cpu_count(self, cpu_count):
+ """
+ Sets the cpu_count of this DBExternalInstance.
+ Total number of CPUs allocated for the host.
+
+
+ :param cpu_count: The cpu_count of this DBExternalInstance.
+ :type: int
+ """
+ self._cpu_count = cpu_count
+
+ @property
+ def host_memory_capacity(self):
+ """
+ Gets the host_memory_capacity of this DBExternalInstance.
+ Total amount of usable Physical RAM Memory available in gigabytes.
+
+
+ :return: The host_memory_capacity of this DBExternalInstance.
+ :rtype: float
+ """
+ return self._host_memory_capacity
+
+ @host_memory_capacity.setter
+ def host_memory_capacity(self, host_memory_capacity):
+ """
+ Sets the host_memory_capacity of this DBExternalInstance.
+ Total amount of usable Physical RAM Memory available in gigabytes.
+
+
+ :param host_memory_capacity: The host_memory_capacity of this DBExternalInstance.
+ :type: float
+ """
+ self._host_memory_capacity = host_memory_capacity
+
+ @property
+ def version(self):
+ """
+ Gets the version of this DBExternalInstance.
+ Database version.
+
+
+ :return: The version of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """
+ Sets the version of this DBExternalInstance.
+ Database version.
+
+
+ :param version: The version of this DBExternalInstance.
+ :type: str
+ """
+ self._version = version
+
+ @property
+ def parallel(self):
+ """
+ Gets the parallel of this DBExternalInstance.
+ Indicates whether the instance is mounted in cluster database mode (YES) or not (NO).
+
+
+ :return: The parallel of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._parallel
+
+ @parallel.setter
+ def parallel(self, parallel):
+ """
+ Sets the parallel of this DBExternalInstance.
+ Indicates whether the instance is mounted in cluster database mode (YES) or not (NO).
+
+
+ :param parallel: The parallel of this DBExternalInstance.
+ :type: str
+ """
+ self._parallel = parallel
+
+ @property
+ def instance_role(self):
+ """
+ Gets the instance_role of this DBExternalInstance.
+ Role (permissions) of the database instance.
+
+
+ :return: The instance_role of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._instance_role
+
+ @instance_role.setter
+ def instance_role(self, instance_role):
+ """
+ Sets the instance_role of this DBExternalInstance.
+ Role (permissions) of the database instance.
+
+
+ :param instance_role: The instance_role of this DBExternalInstance.
+ :type: str
+ """
+ self._instance_role = instance_role
+
+ @property
+ def logins(self):
+ """
+ Gets the logins of this DBExternalInstance.
+ Indicates if logins are allowed or restricted.
+
+
+ :return: The logins of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._logins
+
+ @logins.setter
+ def logins(self, logins):
+ """
+ Sets the logins of this DBExternalInstance.
+ Indicates if logins are allowed or restricted.
+
+
+ :param logins: The logins of this DBExternalInstance.
+ :type: str
+ """
+ self._logins = logins
+
+ @property
+ def database_status(self):
+ """
+ Gets the database_status of this DBExternalInstance.
+ Status of the database.
+
+
+ :return: The database_status of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._database_status
+
+ @database_status.setter
+ def database_status(self, database_status):
+ """
+ Sets the database_status of this DBExternalInstance.
+ Status of the database.
+
+
+ :param database_status: The database_status of this DBExternalInstance.
+ :type: str
+ """
+ self._database_status = database_status
+
+ @property
+ def status(self):
+ """
+ Gets the status of this DBExternalInstance.
+ Status of the instance.
+
+
+ :return: The status of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this DBExternalInstance.
+ Status of the instance.
+
+
+ :param status: The status of this DBExternalInstance.
+ :type: str
+ """
+ self._status = status
+
+ @property
+ def edition(self):
+ """
+ Gets the edition of this DBExternalInstance.
+ The edition of the database.
+
+
+ :return: The edition of this DBExternalInstance.
+ :rtype: str
+ """
+ return self._edition
+
+ @edition.setter
+ def edition(self, edition):
+ """
+ Sets the edition of this DBExternalInstance.
+ The edition of the database.
+
+
+ :param edition: The edition of this DBExternalInstance.
+ :type: str
+ """
+ self._edition = edition
+
+ @property
+ def startup_time(self):
+ """
+ Gets the startup_time of this DBExternalInstance.
+ Start up time of the database instance.
+
+
+ :return: The startup_time of this DBExternalInstance.
+ :rtype: datetime
+ """
+ return self._startup_time
+
+ @startup_time.setter
+ def startup_time(self, startup_time):
+ """
+ Sets the startup_time of this DBExternalInstance.
+ Start up time of the database instance.
+
+
+ :param startup_time: The startup_time of this DBExternalInstance.
+ :type: datetime
+ """
+ self._startup_time = startup_time
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/db_external_properties.py b/src/oci/opsi/models/db_external_properties.py
new file mode 100644
index 0000000000..4e2cf7102d
--- /dev/null
+++ b/src/oci/opsi/models/db_external_properties.py
@@ -0,0 +1,366 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_configuration_metric_group import DatabaseConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DBExternalProperties(DatabaseConfigurationMetricGroup):
+ """
+ Configuration parameters defined for external databases.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DBExternalProperties object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DBExternalProperties.metric_name` attribute
+ of this class is ``DB_EXTERNAL_PROPERTIES`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this DBExternalProperties.
+ Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this DBExternalProperties.
+ :type time_collected: datetime
+
+ :param name:
+ The value to assign to the name property of this DBExternalProperties.
+ :type name: str
+
+ :param log_mode:
+ The value to assign to the log_mode property of this DBExternalProperties.
+ :type log_mode: str
+
+ :param cdb:
+ The value to assign to the cdb property of this DBExternalProperties.
+ :type cdb: str
+
+ :param open_mode:
+ The value to assign to the open_mode property of this DBExternalProperties.
+ :type open_mode: str
+
+ :param database_role:
+ The value to assign to the database_role property of this DBExternalProperties.
+ :type database_role: str
+
+ :param guard_status:
+ The value to assign to the guard_status property of this DBExternalProperties.
+ :type guard_status: str
+
+ :param platform_name:
+ The value to assign to the platform_name property of this DBExternalProperties.
+ :type platform_name: str
+
+ :param control_file_type:
+ The value to assign to the control_file_type property of this DBExternalProperties.
+ :type control_file_type: str
+
+ :param switchover_status:
+ The value to assign to the switchover_status property of this DBExternalProperties.
+ :type switchover_status: str
+
+ :param created:
+ The value to assign to the created property of this DBExternalProperties.
+ :type created: datetime
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'name': 'str',
+ 'log_mode': 'str',
+ 'cdb': 'str',
+ 'open_mode': 'str',
+ 'database_role': 'str',
+ 'guard_status': 'str',
+ 'platform_name': 'str',
+ 'control_file_type': 'str',
+ 'switchover_status': 'str',
+ 'created': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'name': 'name',
+ 'log_mode': 'logMode',
+ 'cdb': 'cdb',
+ 'open_mode': 'openMode',
+ 'database_role': 'databaseRole',
+ 'guard_status': 'guardStatus',
+ 'platform_name': 'platformName',
+ 'control_file_type': 'controlFileType',
+ 'switchover_status': 'switchoverStatus',
+ 'created': 'created'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._name = None
+ self._log_mode = None
+ self._cdb = None
+ self._open_mode = None
+ self._database_role = None
+ self._guard_status = None
+ self._platform_name = None
+ self._control_file_type = None
+ self._switchover_status = None
+ self._created = None
+ self._metric_name = 'DB_EXTERNAL_PROPERTIES'
+
+ @property
+ def name(self):
+ """
+ Gets the name of this DBExternalProperties.
+ Name of the database.
+
+
+ :return: The name of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this DBExternalProperties.
+ Name of the database.
+
+
+ :param name: The name of this DBExternalProperties.
+ :type: str
+ """
+ self._name = name
+
+ @property
+ def log_mode(self):
+ """
+ Gets the log_mode of this DBExternalProperties.
+ Archive log mode.
+
+
+ :return: The log_mode of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._log_mode
+
+ @log_mode.setter
+ def log_mode(self, log_mode):
+ """
+ Sets the log_mode of this DBExternalProperties.
+ Archive log mode.
+
+
+ :param log_mode: The log_mode of this DBExternalProperties.
+ :type: str
+ """
+ self._log_mode = log_mode
+
+ @property
+ def cdb(self):
+ """
+ Gets the cdb of this DBExternalProperties.
+ Indicates if it is a CDB or not. This would be 'yes' or 'no'.
+
+
+ :return: The cdb of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._cdb
+
+ @cdb.setter
+ def cdb(self, cdb):
+ """
+ Sets the cdb of this DBExternalProperties.
+ Indicates if it is a CDB or not. This would be 'yes' or 'no'.
+
+
+ :param cdb: The cdb of this DBExternalProperties.
+ :type: str
+ """
+ self._cdb = cdb
+
+ @property
+ def open_mode(self):
+ """
+ Gets the open_mode of this DBExternalProperties.
+ Open mode information.
+
+
+ :return: The open_mode of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._open_mode
+
+ @open_mode.setter
+ def open_mode(self, open_mode):
+ """
+ Sets the open_mode of this DBExternalProperties.
+ Open mode information.
+
+
+ :param open_mode: The open_mode of this DBExternalProperties.
+ :type: str
+ """
+ self._open_mode = open_mode
+
+ @property
+ def database_role(self):
+ """
+ Gets the database_role of this DBExternalProperties.
+ Current role of the database.
+
+
+ :return: The database_role of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._database_role
+
+ @database_role.setter
+ def database_role(self, database_role):
+ """
+ Sets the database_role of this DBExternalProperties.
+ Current role of the database.
+
+
+ :param database_role: The database_role of this DBExternalProperties.
+ :type: str
+ """
+ self._database_role = database_role
+
+ @property
+ def guard_status(self):
+ """
+ Gets the guard_status of this DBExternalProperties.
+ Data protection policy.
+
+
+ :return: The guard_status of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._guard_status
+
+ @guard_status.setter
+ def guard_status(self, guard_status):
+ """
+ Sets the guard_status of this DBExternalProperties.
+ Data protection policy.
+
+
+ :param guard_status: The guard_status of this DBExternalProperties.
+ :type: str
+ """
+ self._guard_status = guard_status
+
+ @property
+ def platform_name(self):
+ """
+ Gets the platform_name of this DBExternalProperties.
+ Platform name of the database, OS with architecture.
+
+
+ :return: The platform_name of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._platform_name
+
+ @platform_name.setter
+ def platform_name(self, platform_name):
+ """
+ Sets the platform_name of this DBExternalProperties.
+ Platform name of the database, OS with architecture.
+
+
+ :param platform_name: The platform_name of this DBExternalProperties.
+ :type: str
+ """
+ self._platform_name = platform_name
+
+ @property
+ def control_file_type(self):
+ """
+ Gets the control_file_type of this DBExternalProperties.
+ Type of control file.
+
+
+ :return: The control_file_type of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._control_file_type
+
+ @control_file_type.setter
+ def control_file_type(self, control_file_type):
+ """
+ Sets the control_file_type of this DBExternalProperties.
+ Type of control file.
+
+
+ :param control_file_type: The control_file_type of this DBExternalProperties.
+ :type: str
+ """
+ self._control_file_type = control_file_type
+
+ @property
+ def switchover_status(self):
+ """
+ Gets the switchover_status of this DBExternalProperties.
+ Indicates whether switchover is allowed.
+
+
+ :return: The switchover_status of this DBExternalProperties.
+ :rtype: str
+ """
+ return self._switchover_status
+
+ @switchover_status.setter
+ def switchover_status(self, switchover_status):
+ """
+ Sets the switchover_status of this DBExternalProperties.
+ Indicates whether switchover is allowed.
+
+
+ :param switchover_status: The switchover_status of this DBExternalProperties.
+ :type: str
+ """
+ self._switchover_status = switchover_status
+
+ @property
+ def created(self):
+ """
+ Gets the created of this DBExternalProperties.
+ Creation time.
+
+
+ :return: The created of this DBExternalProperties.
+ :rtype: datetime
+ """
+ return self._created
+
+ @created.setter
+ def created(self, created):
+ """
+ Sets the created of this DBExternalProperties.
+ Creation time.
+
+
+ :param created: The created of this DBExternalProperties.
+ :type: datetime
+ """
+ self._created = created
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/dbos_config_instance.py b/src/oci/opsi/models/dbos_config_instance.py
new file mode 100644
index 0000000000..9f2e5da471
--- /dev/null
+++ b/src/oci/opsi/models/dbos_config_instance.py
@@ -0,0 +1,242 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_configuration_metric_group import DatabaseConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class DBOSConfigInstance(DatabaseConfigurationMetricGroup):
+ """
+ Configuration parameters defined for external databases instance level.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DBOSConfigInstance object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DBOSConfigInstance.metric_name` attribute
+ of this class is ``DB_OS_CONFIG_INSTANCE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this DBOSConfigInstance.
+ Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this DBOSConfigInstance.
+ :type time_collected: datetime
+
+ :param instance_name:
+ The value to assign to the instance_name property of this DBOSConfigInstance.
+ :type instance_name: str
+
+ :param host_name:
+ The value to assign to the host_name property of this DBOSConfigInstance.
+ :type host_name: str
+
+ :param num_cp_us:
+ The value to assign to the num_cp_us property of this DBOSConfigInstance.
+ :type num_cp_us: int
+
+ :param num_cpu_cores:
+ The value to assign to the num_cpu_cores property of this DBOSConfigInstance.
+ :type num_cpu_cores: int
+
+ :param num_cpu_sockets:
+ The value to assign to the num_cpu_sockets property of this DBOSConfigInstance.
+ :type num_cpu_sockets: int
+
+ :param physical_memory_bytes:
+ The value to assign to the physical_memory_bytes property of this DBOSConfigInstance.
+ :type physical_memory_bytes: float
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'instance_name': 'str',
+ 'host_name': 'str',
+ 'num_cp_us': 'int',
+ 'num_cpu_cores': 'int',
+ 'num_cpu_sockets': 'int',
+ 'physical_memory_bytes': 'float'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'instance_name': 'instanceName',
+ 'host_name': 'hostName',
+ 'num_cp_us': 'numCPUs',
+ 'num_cpu_cores': 'numCPUCores',
+ 'num_cpu_sockets': 'numCPUSockets',
+ 'physical_memory_bytes': 'physicalMemoryBytes'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._instance_name = None
+ self._host_name = None
+ self._num_cp_us = None
+ self._num_cpu_cores = None
+ self._num_cpu_sockets = None
+ self._physical_memory_bytes = None
+ self._metric_name = 'DB_OS_CONFIG_INSTANCE'
+
+ @property
+ def instance_name(self):
+ """
+ **[Required]** Gets the instance_name of this DBOSConfigInstance.
+ Name of the database instance.
+
+
+ :return: The instance_name of this DBOSConfigInstance.
+ :rtype: str
+ """
+ return self._instance_name
+
+ @instance_name.setter
+ def instance_name(self, instance_name):
+ """
+ Sets the instance_name of this DBOSConfigInstance.
+ Name of the database instance.
+
+
+ :param instance_name: The instance_name of this DBOSConfigInstance.
+ :type: str
+ """
+ self._instance_name = instance_name
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this DBOSConfigInstance.
+ Host name of the database instance.
+
+
+ :return: The host_name of this DBOSConfigInstance.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this DBOSConfigInstance.
+ Host name of the database instance.
+
+
+ :param host_name: The host_name of this DBOSConfigInstance.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def num_cp_us(self):
+ """
+ Gets the num_cp_us of this DBOSConfigInstance.
+ Total number of CPUs available.
+
+
+ :return: The num_cp_us of this DBOSConfigInstance.
+ :rtype: int
+ """
+ return self._num_cp_us
+
+ @num_cp_us.setter
+ def num_cp_us(self, num_cp_us):
+ """
+ Sets the num_cp_us of this DBOSConfigInstance.
+ Total number of CPUs available.
+
+
+ :param num_cp_us: The num_cp_us of this DBOSConfigInstance.
+ :type: int
+ """
+ self._num_cp_us = num_cp_us
+
+ @property
+ def num_cpu_cores(self):
+ """
+ Gets the num_cpu_cores of this DBOSConfigInstance.
+ Number of CPU cores available (includes subcores of multicore CPUs as well as single-core CPUs).
+
+
+ :return: The num_cpu_cores of this DBOSConfigInstance.
+ :rtype: int
+ """
+ return self._num_cpu_cores
+
+ @num_cpu_cores.setter
+ def num_cpu_cores(self, num_cpu_cores):
+ """
+ Sets the num_cpu_cores of this DBOSConfigInstance.
+ Number of CPU cores available (includes subcores of multicore CPUs as well as single-core CPUs).
+
+
+ :param num_cpu_cores: The num_cpu_cores of this DBOSConfigInstance.
+ :type: int
+ """
+ self._num_cpu_cores = num_cpu_cores
+
+ @property
+ def num_cpu_sockets(self):
+ """
+ Gets the num_cpu_sockets of this DBOSConfigInstance.
+ Number of CPU Sockets available.
+
+
+ :return: The num_cpu_sockets of this DBOSConfigInstance.
+ :rtype: int
+ """
+ return self._num_cpu_sockets
+
+ @num_cpu_sockets.setter
+ def num_cpu_sockets(self, num_cpu_sockets):
+ """
+ Sets the num_cpu_sockets of this DBOSConfigInstance.
+ Number of CPU Sockets available.
+
+
+ :param num_cpu_sockets: The num_cpu_sockets of this DBOSConfigInstance.
+ :type: int
+ """
+ self._num_cpu_sockets = num_cpu_sockets
+
+ @property
+ def physical_memory_bytes(self):
+ """
+ Gets the physical_memory_bytes of this DBOSConfigInstance.
+ Total number of bytes of physical memory.
+
+
+ :return: The physical_memory_bytes of this DBOSConfigInstance.
+ :rtype: float
+ """
+ return self._physical_memory_bytes
+
+ @physical_memory_bytes.setter
+ def physical_memory_bytes(self, physical_memory_bytes):
+ """
+ Sets the physical_memory_bytes of this DBOSConfigInstance.
+ Total number of bytes of physical memory.
+
+
+ :param physical_memory_bytes: The physical_memory_bytes of this DBOSConfigInstance.
+ :type: float
+ """
+ self._physical_memory_bytes = physical_memory_bytes
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/em_managed_external_database_insight.py b/src/oci/opsi/models/em_managed_external_database_insight.py
new file mode 100644
index 0000000000..83fee912e9
--- /dev/null
+++ b/src/oci/opsi/models/em_managed_external_database_insight.py
@@ -0,0 +1,328 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_insight import DatabaseInsight
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EmManagedExternalDatabaseInsight(DatabaseInsight):
+ """
+ Database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EmManagedExternalDatabaseInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EmManagedExternalDatabaseInsight.entity_source` attribute
+ of this class is ``EM_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this EmManagedExternalDatabaseInsight.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this EmManagedExternalDatabaseInsight.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this EmManagedExternalDatabaseInsight.
+ :type compartment_id: str
+
+ :param status:
+ The value to assign to the status property of this EmManagedExternalDatabaseInsight.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param database_type:
+ The value to assign to the database_type property of this EmManagedExternalDatabaseInsight.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this EmManagedExternalDatabaseInsight.
+ :type database_version: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this EmManagedExternalDatabaseInsight.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this EmManagedExternalDatabaseInsight.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this EmManagedExternalDatabaseInsight.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this EmManagedExternalDatabaseInsight.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param time_created:
+ The value to assign to the time_created property of this EmManagedExternalDatabaseInsight.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this EmManagedExternalDatabaseInsight.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this EmManagedExternalDatabaseInsight.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this EmManagedExternalDatabaseInsight.
+ :type lifecycle_details: str
+
+ :param enterprise_manager_identifier:
+ The value to assign to the enterprise_manager_identifier property of this EmManagedExternalDatabaseInsight.
+ :type enterprise_manager_identifier: str
+
+ :param enterprise_manager_entity_name:
+ The value to assign to the enterprise_manager_entity_name property of this EmManagedExternalDatabaseInsight.
+ :type enterprise_manager_entity_name: str
+
+ :param enterprise_manager_entity_type:
+ The value to assign to the enterprise_manager_entity_type property of this EmManagedExternalDatabaseInsight.
+ :type enterprise_manager_entity_type: str
+
+ :param enterprise_manager_entity_identifier:
+ The value to assign to the enterprise_manager_entity_identifier property of this EmManagedExternalDatabaseInsight.
+ :type enterprise_manager_entity_identifier: str
+
+ :param enterprise_manager_entity_display_name:
+ The value to assign to the enterprise_manager_entity_display_name property of this EmManagedExternalDatabaseInsight.
+ :type enterprise_manager_entity_display_name: str
+
+ :param enterprise_manager_bridge_id:
+ The value to assign to the enterprise_manager_bridge_id property of this EmManagedExternalDatabaseInsight.
+ :type enterprise_manager_bridge_id: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'status': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'enterprise_manager_identifier': 'str',
+ 'enterprise_manager_entity_name': 'str',
+ 'enterprise_manager_entity_type': 'str',
+ 'enterprise_manager_entity_identifier': 'str',
+ 'enterprise_manager_entity_display_name': 'str',
+ 'enterprise_manager_bridge_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'status': 'status',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'enterprise_manager_identifier': 'enterpriseManagerIdentifier',
+ 'enterprise_manager_entity_name': 'enterpriseManagerEntityName',
+ 'enterprise_manager_entity_type': 'enterpriseManagerEntityType',
+ 'enterprise_manager_entity_identifier': 'enterpriseManagerEntityIdentifier',
+ 'enterprise_manager_entity_display_name': 'enterpriseManagerEntityDisplayName',
+ 'enterprise_manager_bridge_id': 'enterpriseManagerBridgeId'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._status = None
+ self._database_type = None
+ self._database_version = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._enterprise_manager_identifier = None
+ self._enterprise_manager_entity_name = None
+ self._enterprise_manager_entity_type = None
+ self._enterprise_manager_entity_identifier = None
+ self._enterprise_manager_entity_display_name = None
+ self._enterprise_manager_bridge_id = None
+ self._entity_source = 'EM_MANAGED_EXTERNAL_DATABASE'
+
+ @property
+ def enterprise_manager_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_identifier of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Unique Identifier
+
+
+ :return: The enterprise_manager_identifier of this EmManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._enterprise_manager_identifier
+
+ @enterprise_manager_identifier.setter
+ def enterprise_manager_identifier(self, enterprise_manager_identifier):
+ """
+ Sets the enterprise_manager_identifier of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Unique Identifier
+
+
+ :param enterprise_manager_identifier: The enterprise_manager_identifier of this EmManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._enterprise_manager_identifier = enterprise_manager_identifier
+
+ @property
+ def enterprise_manager_entity_name(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_name of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Name
+
+
+ :return: The enterprise_manager_entity_name of this EmManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_name
+
+ @enterprise_manager_entity_name.setter
+ def enterprise_manager_entity_name(self, enterprise_manager_entity_name):
+ """
+ Sets the enterprise_manager_entity_name of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Name
+
+
+ :param enterprise_manager_entity_name: The enterprise_manager_entity_name of this EmManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._enterprise_manager_entity_name = enterprise_manager_entity_name
+
+ @property
+ def enterprise_manager_entity_type(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_type of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Type
+
+
+ :return: The enterprise_manager_entity_type of this EmManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_type
+
+ @enterprise_manager_entity_type.setter
+ def enterprise_manager_entity_type(self, enterprise_manager_entity_type):
+ """
+ Sets the enterprise_manager_entity_type of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Type
+
+
+ :param enterprise_manager_entity_type: The enterprise_manager_entity_type of this EmManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._enterprise_manager_entity_type = enterprise_manager_entity_type
+
+ @property
+ def enterprise_manager_entity_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :return: The enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_identifier
+
+ @enterprise_manager_entity_identifier.setter
+ def enterprise_manager_entity_identifier(self, enterprise_manager_entity_identifier):
+ """
+ Sets the enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :param enterprise_manager_entity_identifier: The enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._enterprise_manager_entity_identifier = enterprise_manager_entity_identifier
+
+ @property
+ def enterprise_manager_entity_display_name(self):
+ """
+ Gets the enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Display Name
+
+
+ :return: The enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_display_name
+
+ @enterprise_manager_entity_display_name.setter
+ def enterprise_manager_entity_display_name(self, enterprise_manager_entity_display_name):
+ """
+ Sets the enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsight.
+ Enterprise Manager Entity Display Name
+
+
+ :param enterprise_manager_entity_display_name: The enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._enterprise_manager_entity_display_name = enterprise_manager_entity_display_name
+
+ @property
+ def enterprise_manager_bridge_id(self):
+ """
+ **[Required]** Gets the enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsight.
+ OPSI Enterprise Manager Bridge OCID
+
+
+ :return: The enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._enterprise_manager_bridge_id
+
+ @enterprise_manager_bridge_id.setter
+ def enterprise_manager_bridge_id(self, enterprise_manager_bridge_id):
+ """
+ Sets the enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsight.
+ OPSI Enterprise Manager Bridge OCID
+
+
+ :param enterprise_manager_bridge_id: The enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._enterprise_manager_bridge_id = enterprise_manager_bridge_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/em_managed_external_database_insight_summary.py b/src/oci/opsi/models/em_managed_external_database_insight_summary.py
new file mode 100644
index 0000000000..1da2c88111
--- /dev/null
+++ b/src/oci/opsi/models/em_managed_external_database_insight_summary.py
@@ -0,0 +1,356 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_insight_summary import DatabaseInsightSummary
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EmManagedExternalDatabaseInsightSummary(DatabaseInsightSummary):
+ """
+ Summary of a database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EmManagedExternalDatabaseInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EmManagedExternalDatabaseInsightSummary.entity_source` attribute
+ of this class is ``EM_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this EmManagedExternalDatabaseInsightSummary.
+ :type id: str
+
+ :param database_id:
+ The value to assign to the database_id property of this EmManagedExternalDatabaseInsightSummary.
+ :type database_id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this EmManagedExternalDatabaseInsightSummary.
+ :type compartment_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this EmManagedExternalDatabaseInsightSummary.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this EmManagedExternalDatabaseInsightSummary.
+ :type database_display_name: str
+
+ :param database_type:
+ The value to assign to the database_type property of this EmManagedExternalDatabaseInsightSummary.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this EmManagedExternalDatabaseInsightSummary.
+ :type database_version: str
+
+ :param database_host_names:
+ The value to assign to the database_host_names property of this EmManagedExternalDatabaseInsightSummary.
+ :type database_host_names: list[str]
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this EmManagedExternalDatabaseInsightSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this EmManagedExternalDatabaseInsightSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this EmManagedExternalDatabaseInsightSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param entity_source:
+ The value to assign to the entity_source property of this EmManagedExternalDatabaseInsightSummary.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this EmManagedExternalDatabaseInsightSummary.
+ :type processor_count: int
+
+ :param status:
+ The value to assign to the status property of this EmManagedExternalDatabaseInsightSummary.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this EmManagedExternalDatabaseInsightSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this EmManagedExternalDatabaseInsightSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this EmManagedExternalDatabaseInsightSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this EmManagedExternalDatabaseInsightSummary.
+ :type lifecycle_details: str
+
+ :param enterprise_manager_identifier:
+ The value to assign to the enterprise_manager_identifier property of this EmManagedExternalDatabaseInsightSummary.
+ :type enterprise_manager_identifier: str
+
+ :param enterprise_manager_entity_name:
+ The value to assign to the enterprise_manager_entity_name property of this EmManagedExternalDatabaseInsightSummary.
+ :type enterprise_manager_entity_name: str
+
+ :param enterprise_manager_entity_type:
+ The value to assign to the enterprise_manager_entity_type property of this EmManagedExternalDatabaseInsightSummary.
+ :type enterprise_manager_entity_type: str
+
+ :param enterprise_manager_entity_identifier:
+ The value to assign to the enterprise_manager_entity_identifier property of this EmManagedExternalDatabaseInsightSummary.
+ :type enterprise_manager_entity_identifier: str
+
+ :param enterprise_manager_entity_display_name:
+ The value to assign to the enterprise_manager_entity_display_name property of this EmManagedExternalDatabaseInsightSummary.
+ :type enterprise_manager_entity_display_name: str
+
+ :param enterprise_manager_bridge_id:
+ The value to assign to the enterprise_manager_bridge_id property of this EmManagedExternalDatabaseInsightSummary.
+ :type enterprise_manager_bridge_id: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'database_id': 'str',
+ 'compartment_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'database_host_names': 'list[str]',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'entity_source': 'str',
+ 'processor_count': 'int',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'enterprise_manager_identifier': 'str',
+ 'enterprise_manager_entity_name': 'str',
+ 'enterprise_manager_entity_type': 'str',
+ 'enterprise_manager_entity_identifier': 'str',
+ 'enterprise_manager_entity_display_name': 'str',
+ 'enterprise_manager_bridge_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'database_id': 'databaseId',
+ 'compartment_id': 'compartmentId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'database_host_names': 'databaseHostNames',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'entity_source': 'entitySource',
+ 'processor_count': 'processorCount',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'enterprise_manager_identifier': 'enterpriseManagerIdentifier',
+ 'enterprise_manager_entity_name': 'enterpriseManagerEntityName',
+ 'enterprise_manager_entity_type': 'enterpriseManagerEntityType',
+ 'enterprise_manager_entity_identifier': 'enterpriseManagerEntityIdentifier',
+ 'enterprise_manager_entity_display_name': 'enterpriseManagerEntityDisplayName',
+ 'enterprise_manager_bridge_id': 'enterpriseManagerBridgeId'
+ }
+
+ self._id = None
+ self._database_id = None
+ self._compartment_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_type = None
+ self._database_version = None
+ self._database_host_names = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._entity_source = None
+ self._processor_count = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._enterprise_manager_identifier = None
+ self._enterprise_manager_entity_name = None
+ self._enterprise_manager_entity_type = None
+ self._enterprise_manager_entity_identifier = None
+ self._enterprise_manager_entity_display_name = None
+ self._enterprise_manager_bridge_id = None
+ self._entity_source = 'EM_MANAGED_EXTERNAL_DATABASE'
+
+ @property
+ def enterprise_manager_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_identifier of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Unique Identifier
+
+
+ :return: The enterprise_manager_identifier of this EmManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._enterprise_manager_identifier
+
+ @enterprise_manager_identifier.setter
+ def enterprise_manager_identifier(self, enterprise_manager_identifier):
+ """
+ Sets the enterprise_manager_identifier of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Unique Identifier
+
+
+ :param enterprise_manager_identifier: The enterprise_manager_identifier of this EmManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._enterprise_manager_identifier = enterprise_manager_identifier
+
+ @property
+ def enterprise_manager_entity_name(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_name of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Name
+
+
+ :return: The enterprise_manager_entity_name of this EmManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_name
+
+ @enterprise_manager_entity_name.setter
+ def enterprise_manager_entity_name(self, enterprise_manager_entity_name):
+ """
+ Sets the enterprise_manager_entity_name of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Name
+
+
+ :param enterprise_manager_entity_name: The enterprise_manager_entity_name of this EmManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._enterprise_manager_entity_name = enterprise_manager_entity_name
+
+ @property
+ def enterprise_manager_entity_type(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_type of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Type
+
+
+ :return: The enterprise_manager_entity_type of this EmManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_type
+
+ @enterprise_manager_entity_type.setter
+ def enterprise_manager_entity_type(self, enterprise_manager_entity_type):
+ """
+ Sets the enterprise_manager_entity_type of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Type
+
+
+ :param enterprise_manager_entity_type: The enterprise_manager_entity_type of this EmManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._enterprise_manager_entity_type = enterprise_manager_entity_type
+
+ @property
+ def enterprise_manager_entity_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :return: The enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_identifier
+
+ @enterprise_manager_entity_identifier.setter
+ def enterprise_manager_entity_identifier(self, enterprise_manager_entity_identifier):
+ """
+ Sets the enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :param enterprise_manager_entity_identifier: The enterprise_manager_entity_identifier of this EmManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._enterprise_manager_entity_identifier = enterprise_manager_entity_identifier
+
+ @property
+ def enterprise_manager_entity_display_name(self):
+ """
+ Gets the enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Display Name
+
+
+ :return: The enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_display_name
+
+ @enterprise_manager_entity_display_name.setter
+ def enterprise_manager_entity_display_name(self, enterprise_manager_entity_display_name):
+ """
+ Sets the enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsightSummary.
+ Enterprise Manager Entity Display Name
+
+
+ :param enterprise_manager_entity_display_name: The enterprise_manager_entity_display_name of this EmManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._enterprise_manager_entity_display_name = enterprise_manager_entity_display_name
+
+ @property
+ def enterprise_manager_bridge_id(self):
+ """
+ **[Required]** Gets the enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsightSummary.
+ OPSI Enterprise Manager Bridge OCID
+
+
+ :return: The enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._enterprise_manager_bridge_id
+
+ @enterprise_manager_bridge_id.setter
+ def enterprise_manager_bridge_id(self, enterprise_manager_bridge_id):
+ """
+ Sets the enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsightSummary.
+ OPSI Enterprise Manager Bridge OCID
+
+
+ :param enterprise_manager_bridge_id: The enterprise_manager_bridge_id of this EmManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._enterprise_manager_bridge_id = enterprise_manager_bridge_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enable_database_insight_details.py b/src/oci/opsi/models/enable_database_insight_details.py
new file mode 100644
index 0000000000..418e07c5f4
--- /dev/null
+++ b/src/oci/opsi/models/enable_database_insight_details.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnableDatabaseInsightDetails(object):
+ """
+ The information about database to be analyzed.
+ """
+
+ #: A constant which can be used with the entity_source property of a EnableDatabaseInsightDetails.
+ #: This constant has a value of "EM_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASE = "EM_MANAGED_EXTERNAL_DATABASE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnableDatabaseInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this EnableDatabaseInsightDetails.
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource'
+ }
+
+ self._entity_source = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'EM_MANAGED_EXTERNAL_DATABASE':
+ return 'EnableEmManagedExternalDatabaseInsightDetails'
+ else:
+ return 'EnableDatabaseInsightDetails'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this EnableDatabaseInsightDetails.
+ Source of the database entity.
+
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+
+
+ :return: The entity_source of this EnableDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this EnableDatabaseInsightDetails.
+ Source of the database entity.
+
+
+ :param entity_source: The entity_source of this EnableDatabaseInsightDetails.
+ :type: str
+ """
+ allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ raise ValueError(
+ "Invalid value for `entity_source`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._entity_source = entity_source
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enable_em_managed_external_database_insight_details.py b/src/oci/opsi/models/enable_em_managed_external_database_insight_details.py
new file mode 100644
index 0000000000..f110f70106
--- /dev/null
+++ b/src/oci/opsi/models/enable_em_managed_external_database_insight_details.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .enable_database_insight_details import EnableDatabaseInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnableEmManagedExternalDatabaseInsightDetails(EnableDatabaseInsightDetails):
+ """
+ The information about database to be analyzed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnableEmManagedExternalDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails.entity_source` attribute
+ of this class is ``EM_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this EnableEmManagedExternalDatabaseInsightDetails.
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource'
+ }
+
+ self._entity_source = None
+ self._entity_source = 'EM_MANAGED_EXTERNAL_DATABASE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enable_host_insight_details.py b/src/oci/opsi/models/enable_host_insight_details.py
new file mode 100644
index 0000000000..52f55a2930
--- /dev/null
+++ b/src/oci/opsi/models/enable_host_insight_details.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnableHostInsightDetails(object):
+ """
+ The information about host to be analyzed.
+ """
+
+ #: A constant which can be used with the entity_source property of a EnableHostInsightDetails.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_HOST"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_HOST = "MACS_MANAGED_EXTERNAL_HOST"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnableHostInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.EnableMacsManagedExternalHostInsightDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this EnableHostInsightDetails.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+ :type entity_source: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource'
+ }
+
+ self._entity_source = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'MACS_MANAGED_EXTERNAL_HOST':
+ return 'EnableMacsManagedExternalHostInsightDetails'
+ else:
+ return 'EnableHostInsightDetails'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this EnableHostInsightDetails.
+ Source of the host entity.
+
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+
+
+ :return: The entity_source of this EnableHostInsightDetails.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this EnableHostInsightDetails.
+ Source of the host entity.
+
+
+ :param entity_source: The entity_source of this EnableHostInsightDetails.
+ :type: str
+ """
+ allowed_values = ["MACS_MANAGED_EXTERNAL_HOST"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ raise ValueError(
+ "Invalid value for `entity_source`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._entity_source = entity_source
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enable_macs_managed_external_host_insight_details.py b/src/oci/opsi/models/enable_macs_managed_external_host_insight_details.py
new file mode 100644
index 0000000000..06c288a8dc
--- /dev/null
+++ b/src/oci/opsi/models/enable_macs_managed_external_host_insight_details.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .enable_host_insight_details import EnableHostInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnableMacsManagedExternalHostInsightDetails(EnableHostInsightDetails):
+ """
+ The information about host to be analyzed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnableMacsManagedExternalHostInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EnableMacsManagedExternalHostInsightDetails.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_HOST`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this EnableMacsManagedExternalHostInsightDetails.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+ :type entity_source: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource'
+ }
+
+ self._entity_source = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_HOST'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enterprise_manager_bridge.py b/src/oci/opsi/models/enterprise_manager_bridge.py
new file mode 100644
index 0000000000..f1ba0ef7c2
--- /dev/null
+++ b/src/oci/opsi/models/enterprise_manager_bridge.py
@@ -0,0 +1,480 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnterpriseManagerBridge(object):
+ """
+ Enterprise Manager bridge resource.
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridge.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridge.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridge.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridge.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridge.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridge.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnterpriseManagerBridge object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this EnterpriseManagerBridge.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this EnterpriseManagerBridge.
+ :type compartment_id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this EnterpriseManagerBridge.
+ :type display_name: str
+
+ :param description:
+ The value to assign to the description property of this EnterpriseManagerBridge.
+ :type description: str
+
+ :param object_storage_namespace_name:
+ The value to assign to the object_storage_namespace_name property of this EnterpriseManagerBridge.
+ :type object_storage_namespace_name: str
+
+ :param object_storage_bucket_name:
+ The value to assign to the object_storage_bucket_name property of this EnterpriseManagerBridge.
+ :type object_storage_bucket_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this EnterpriseManagerBridge.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this EnterpriseManagerBridge.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this EnterpriseManagerBridge.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param time_created:
+ The value to assign to the time_created property of this EnterpriseManagerBridge.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this EnterpriseManagerBridge.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this EnterpriseManagerBridge.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this EnterpriseManagerBridge.
+ :type lifecycle_details: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'display_name': 'str',
+ 'description': 'str',
+ 'object_storage_namespace_name': 'str',
+ 'object_storage_bucket_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'display_name': 'displayName',
+ 'description': 'description',
+ 'object_storage_namespace_name': 'objectStorageNamespaceName',
+ 'object_storage_bucket_name': 'objectStorageBucketName',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails'
+ }
+
+ self._id = None
+ self._compartment_id = None
+ self._display_name = None
+ self._description = None
+ self._object_storage_namespace_name = None
+ self._object_storage_bucket_name = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this EnterpriseManagerBridge.
+ Enterprise Manager bridge identifier
+
+
+ :return: The id of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this EnterpriseManagerBridge.
+ Enterprise Manager bridge identifier
+
+
+ :param id: The id of this EnterpriseManagerBridge.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this EnterpriseManagerBridge.
+ Compartment identifier of the Enterprise Manager bridge
+
+
+ :return: The compartment_id of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this EnterpriseManagerBridge.
+ Compartment identifier of the Enterprise Manager bridge
+
+
+ :param compartment_id: The compartment_id of this EnterpriseManagerBridge.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this EnterpriseManagerBridge.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :return: The display_name of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this EnterpriseManagerBridge.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :param display_name: The display_name of this EnterpriseManagerBridge.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def description(self):
+ """
+ Gets the description of this EnterpriseManagerBridge.
+ Description of Enterprise Manager Bridge
+
+
+ :return: The description of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """
+ Sets the description of this EnterpriseManagerBridge.
+ Description of Enterprise Manager Bridge
+
+
+ :param description: The description of this EnterpriseManagerBridge.
+ :type: str
+ """
+ self._description = description
+
+ @property
+ def object_storage_namespace_name(self):
+ """
+ **[Required]** Gets the object_storage_namespace_name of this EnterpriseManagerBridge.
+ Object Storage Namespace Name
+
+
+ :return: The object_storage_namespace_name of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._object_storage_namespace_name
+
+ @object_storage_namespace_name.setter
+ def object_storage_namespace_name(self, object_storage_namespace_name):
+ """
+ Sets the object_storage_namespace_name of this EnterpriseManagerBridge.
+ Object Storage Namespace Name
+
+
+ :param object_storage_namespace_name: The object_storage_namespace_name of this EnterpriseManagerBridge.
+ :type: str
+ """
+ self._object_storage_namespace_name = object_storage_namespace_name
+
+ @property
+ def object_storage_bucket_name(self):
+ """
+ **[Required]** Gets the object_storage_bucket_name of this EnterpriseManagerBridge.
+ Object Storage Bucket Name
+
+
+ :return: The object_storage_bucket_name of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._object_storage_bucket_name
+
+ @object_storage_bucket_name.setter
+ def object_storage_bucket_name(self, object_storage_bucket_name):
+ """
+ Sets the object_storage_bucket_name of this EnterpriseManagerBridge.
+ Object Storage Bucket Name
+
+
+ :param object_storage_bucket_name: The object_storage_bucket_name of this EnterpriseManagerBridge.
+ :type: str
+ """
+ self._object_storage_bucket_name = object_storage_bucket_name
+
+ @property
+ def freeform_tags(self):
+ """
+ **[Required]** Gets the freeform_tags of this EnterpriseManagerBridge.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this EnterpriseManagerBridge.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this EnterpriseManagerBridge.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this EnterpriseManagerBridge.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ **[Required]** Gets the defined_tags of this EnterpriseManagerBridge.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this EnterpriseManagerBridge.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this EnterpriseManagerBridge.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this EnterpriseManagerBridge.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this EnterpriseManagerBridge.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this EnterpriseManagerBridge.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this EnterpriseManagerBridge.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this EnterpriseManagerBridge.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this EnterpriseManagerBridge.
+ The time the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this EnterpriseManagerBridge.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this EnterpriseManagerBridge.
+ The time the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this EnterpriseManagerBridge.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this EnterpriseManagerBridge.
+ The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this EnterpriseManagerBridge.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this EnterpriseManagerBridge.
+ The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this EnterpriseManagerBridge.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this EnterpriseManagerBridge.
+ The current state of the Enterprise Manager bridge.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this EnterpriseManagerBridge.
+ The current state of the Enterprise Manager bridge.
+
+
+ :param lifecycle_state: The lifecycle_state of this EnterpriseManagerBridge.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this EnterpriseManagerBridge.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this EnterpriseManagerBridge.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this EnterpriseManagerBridge.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this EnterpriseManagerBridge.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enterprise_manager_bridge_collection.py b/src/oci/opsi/models/enterprise_manager_bridge_collection.py
new file mode 100644
index 0000000000..0613b6ba3e
--- /dev/null
+++ b/src/oci/opsi/models/enterprise_manager_bridge_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnterpriseManagerBridgeCollection(object):
+ """
+ Collection of Enterprose Manager bridge summary objects.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnterpriseManagerBridgeCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this EnterpriseManagerBridgeCollection.
+ :type items: list[oci.opsi.models.EnterpriseManagerBridgeSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[EnterpriseManagerBridgeSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this EnterpriseManagerBridgeCollection.
+ Array of Enterprose Manager bridge summary objects.
+
+
+ :return: The items of this EnterpriseManagerBridgeCollection.
+ :rtype: list[oci.opsi.models.EnterpriseManagerBridgeSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this EnterpriseManagerBridgeCollection.
+ Array of Enterprose Manager bridge summary objects.
+
+
+ :param items: The items of this EnterpriseManagerBridgeCollection.
+ :type: list[oci.opsi.models.EnterpriseManagerBridgeSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enterprise_manager_bridge_summary.py b/src/oci/opsi/models/enterprise_manager_bridge_summary.py
new file mode 100644
index 0000000000..20c72c413d
--- /dev/null
+++ b/src/oci/opsi/models/enterprise_manager_bridge_summary.py
@@ -0,0 +1,449 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnterpriseManagerBridgeSummary(object):
+ """
+ Summary of a Enterprise Manager bridge resource.
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridgeSummary.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridgeSummary.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridgeSummary.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridgeSummary.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridgeSummary.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a EnterpriseManagerBridgeSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnterpriseManagerBridgeSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this EnterpriseManagerBridgeSummary.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this EnterpriseManagerBridgeSummary.
+ :type compartment_id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this EnterpriseManagerBridgeSummary.
+ :type display_name: str
+
+ :param object_storage_namespace_name:
+ The value to assign to the object_storage_namespace_name property of this EnterpriseManagerBridgeSummary.
+ :type object_storage_namespace_name: str
+
+ :param object_storage_bucket_name:
+ The value to assign to the object_storage_bucket_name property of this EnterpriseManagerBridgeSummary.
+ :type object_storage_bucket_name: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this EnterpriseManagerBridgeSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this EnterpriseManagerBridgeSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this EnterpriseManagerBridgeSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param time_created:
+ The value to assign to the time_created property of this EnterpriseManagerBridgeSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this EnterpriseManagerBridgeSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this EnterpriseManagerBridgeSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this EnterpriseManagerBridgeSummary.
+ :type lifecycle_details: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'display_name': 'str',
+ 'object_storage_namespace_name': 'str',
+ 'object_storage_bucket_name': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'display_name': 'displayName',
+ 'object_storage_namespace_name': 'objectStorageNamespaceName',
+ 'object_storage_bucket_name': 'objectStorageBucketName',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails'
+ }
+
+ self._id = None
+ self._compartment_id = None
+ self._display_name = None
+ self._object_storage_namespace_name = None
+ self._object_storage_bucket_name = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this EnterpriseManagerBridgeSummary.
+ Enterprise Manager bridge identifier
+
+
+ :return: The id of this EnterpriseManagerBridgeSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this EnterpriseManagerBridgeSummary.
+ Enterprise Manager bridge identifier
+
+
+ :param id: The id of this EnterpriseManagerBridgeSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this EnterpriseManagerBridgeSummary.
+ Compartment identifier of the Enterprise Manager bridge
+
+
+ :return: The compartment_id of this EnterpriseManagerBridgeSummary.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this EnterpriseManagerBridgeSummary.
+ Compartment identifier of the Enterprise Manager bridge
+
+
+ :param compartment_id: The compartment_id of this EnterpriseManagerBridgeSummary.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this EnterpriseManagerBridgeSummary.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :return: The display_name of this EnterpriseManagerBridgeSummary.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this EnterpriseManagerBridgeSummary.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :param display_name: The display_name of this EnterpriseManagerBridgeSummary.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def object_storage_namespace_name(self):
+ """
+ **[Required]** Gets the object_storage_namespace_name of this EnterpriseManagerBridgeSummary.
+ Object Storage Namespace Name
+
+
+ :return: The object_storage_namespace_name of this EnterpriseManagerBridgeSummary.
+ :rtype: str
+ """
+ return self._object_storage_namespace_name
+
+ @object_storage_namespace_name.setter
+ def object_storage_namespace_name(self, object_storage_namespace_name):
+ """
+ Sets the object_storage_namespace_name of this EnterpriseManagerBridgeSummary.
+ Object Storage Namespace Name
+
+
+ :param object_storage_namespace_name: The object_storage_namespace_name of this EnterpriseManagerBridgeSummary.
+ :type: str
+ """
+ self._object_storage_namespace_name = object_storage_namespace_name
+
+ @property
+ def object_storage_bucket_name(self):
+ """
+ **[Required]** Gets the object_storage_bucket_name of this EnterpriseManagerBridgeSummary.
+ Object Storage Bucket Name
+
+
+ :return: The object_storage_bucket_name of this EnterpriseManagerBridgeSummary.
+ :rtype: str
+ """
+ return self._object_storage_bucket_name
+
+ @object_storage_bucket_name.setter
+ def object_storage_bucket_name(self, object_storage_bucket_name):
+ """
+ Sets the object_storage_bucket_name of this EnterpriseManagerBridgeSummary.
+ Object Storage Bucket Name
+
+
+ :param object_storage_bucket_name: The object_storage_bucket_name of this EnterpriseManagerBridgeSummary.
+ :type: str
+ """
+ self._object_storage_bucket_name = object_storage_bucket_name
+
+ @property
+ def freeform_tags(self):
+ """
+ **[Required]** Gets the freeform_tags of this EnterpriseManagerBridgeSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this EnterpriseManagerBridgeSummary.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this EnterpriseManagerBridgeSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this EnterpriseManagerBridgeSummary.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ **[Required]** Gets the defined_tags of this EnterpriseManagerBridgeSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this EnterpriseManagerBridgeSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this EnterpriseManagerBridgeSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this EnterpriseManagerBridgeSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this EnterpriseManagerBridgeSummary.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this EnterpriseManagerBridgeSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this EnterpriseManagerBridgeSummary.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this EnterpriseManagerBridgeSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this EnterpriseManagerBridgeSummary.
+ The time the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this EnterpriseManagerBridgeSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this EnterpriseManagerBridgeSummary.
+ The time the the Enterprise Manager bridge was first created. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this EnterpriseManagerBridgeSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this EnterpriseManagerBridgeSummary.
+ The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this EnterpriseManagerBridgeSummary.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this EnterpriseManagerBridgeSummary.
+ The time the Enterprise Manager bridge was updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this EnterpriseManagerBridgeSummary.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this EnterpriseManagerBridgeSummary.
+ The current state of the Enterprise Manager bridge.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this EnterpriseManagerBridgeSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this EnterpriseManagerBridgeSummary.
+ The current state of the Enterprise Manager bridge.
+
+
+ :param lifecycle_state: The lifecycle_state of this EnterpriseManagerBridgeSummary.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this EnterpriseManagerBridgeSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this EnterpriseManagerBridgeSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this EnterpriseManagerBridgeSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this EnterpriseManagerBridgeSummary.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/enterprise_manager_bridges.py b/src/oci/opsi/models/enterprise_manager_bridges.py
new file mode 100644
index 0000000000..b4410ba1da
--- /dev/null
+++ b/src/oci/opsi/models/enterprise_manager_bridges.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class EnterpriseManagerBridges(object):
+ """
+ Logical grouping used for Operations Insights Enterprise Manager Bridge operations.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnterpriseManagerBridges object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param enterprise_manager_bridges:
+ The value to assign to the enterprise_manager_bridges property of this EnterpriseManagerBridges.
+ :type enterprise_manager_bridges: object
+
+ """
+ self.swagger_types = {
+ 'enterprise_manager_bridges': 'object'
+ }
+
+ self.attribute_map = {
+ 'enterprise_manager_bridges': 'enterpriseManagerBridges'
+ }
+
+ self._enterprise_manager_bridges = None
+
+ @property
+ def enterprise_manager_bridges(self):
+ """
+ Gets the enterprise_manager_bridges of this EnterpriseManagerBridges.
+ Enterprise Manager Bridge Object.
+
+
+ :return: The enterprise_manager_bridges of this EnterpriseManagerBridges.
+ :rtype: object
+ """
+ return self._enterprise_manager_bridges
+
+ @enterprise_manager_bridges.setter
+ def enterprise_manager_bridges(self, enterprise_manager_bridges):
+ """
+ Sets the enterprise_manager_bridges of this EnterpriseManagerBridges.
+ Enterprise Manager Bridge Object.
+
+
+ :param enterprise_manager_bridges: The enterprise_manager_bridges of this EnterpriseManagerBridges.
+ :type: object
+ """
+ self._enterprise_manager_bridges = enterprise_manager_bridges
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_configuration_metric_group.py b/src/oci/opsi/models/host_configuration_metric_group.py
new file mode 100644
index 0000000000..c40aac877b
--- /dev/null
+++ b/src/oci/opsi/models/host_configuration_metric_group.py
@@ -0,0 +1,181 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostConfigurationMetricGroup(object):
+ """
+ Base Metric Group for Host configuration metrics
+ """
+
+ #: A constant which can be used with the metric_name property of a HostConfigurationMetricGroup.
+ #: This constant has a value of "HOST_PRODUCT"
+ METRIC_NAME_HOST_PRODUCT = "HOST_PRODUCT"
+
+ #: A constant which can be used with the metric_name property of a HostConfigurationMetricGroup.
+ #: This constant has a value of "HOST_RESOURCE_ALLOCATION"
+ METRIC_NAME_HOST_RESOURCE_ALLOCATION = "HOST_RESOURCE_ALLOCATION"
+
+ #: A constant which can be used with the metric_name property of a HostConfigurationMetricGroup.
+ #: This constant has a value of "HOST_MEMORY_CONFIGURATION"
+ METRIC_NAME_HOST_MEMORY_CONFIGURATION = "HOST_MEMORY_CONFIGURATION"
+
+ #: A constant which can be used with the metric_name property of a HostConfigurationMetricGroup.
+ #: This constant has a value of "HOST_HARDWARE_CONFIGURATION"
+ METRIC_NAME_HOST_HARDWARE_CONFIGURATION = "HOST_HARDWARE_CONFIGURATION"
+
+ #: A constant which can be used with the metric_name property of a HostConfigurationMetricGroup.
+ #: This constant has a value of "HOST_CPU_HARDWARE_CONFIGURATION"
+ METRIC_NAME_HOST_CPU_HARDWARE_CONFIGURATION = "HOST_CPU_HARDWARE_CONFIGURATION"
+
+ #: A constant which can be used with the metric_name property of a HostConfigurationMetricGroup.
+ #: This constant has a value of "HOST_NETWORK_CONFIGURATION"
+ METRIC_NAME_HOST_NETWORK_CONFIGURATION = "HOST_NETWORK_CONFIGURATION"
+
+ #: A constant which can be used with the metric_name property of a HostConfigurationMetricGroup.
+ #: This constant has a value of "HOST_ENTITES"
+ METRIC_NAME_HOST_ENTITES = "HOST_ENTITES"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostConfigurationMetricGroup object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.HostResourceAllocation`
+ * :class:`~oci.opsi.models.HostProduct`
+ * :class:`~oci.opsi.models.HostNetworkConfiguration`
+ * :class:`~oci.opsi.models.HostEntities`
+ * :class:`~oci.opsi.models.HostMemoryConfiguration`
+ * :class:`~oci.opsi.models.HostCpuHardwareConfiguration`
+ * :class:`~oci.opsi.models.HostHardwareConfiguration`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostConfigurationMetricGroup.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostConfigurationMetricGroup.
+ :type time_collected: datetime
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['metricName']
+
+ if type == 'HOST_RESOURCE_ALLOCATION':
+ return 'HostResourceAllocation'
+
+ if type == 'HOST_PRODUCT':
+ return 'HostProduct'
+
+ if type == 'HOST_NETWORK_CONFIGURATION':
+ return 'HostNetworkConfiguration'
+
+ if type == 'HOST_ENTITIES':
+ return 'HostEntities'
+
+ if type == 'HOST_MEMORY_CONFIGURATION':
+ return 'HostMemoryConfiguration'
+
+ if type == 'HOST_CPU_HARDWARE_CONFIGURATION':
+ return 'HostCpuHardwareConfiguration'
+
+ if type == 'HOST_HARDWARE_CONFIGURATION':
+ return 'HostHardwareConfiguration'
+ else:
+ return 'HostConfigurationMetricGroup'
+
+ @property
+ def metric_name(self):
+ """
+ **[Required]** Gets the metric_name of this HostConfigurationMetricGroup.
+ Name of the metric group
+
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+
+
+ :return: The metric_name of this HostConfigurationMetricGroup.
+ :rtype: str
+ """
+ return self._metric_name
+
+ @metric_name.setter
+ def metric_name(self, metric_name):
+ """
+ Sets the metric_name of this HostConfigurationMetricGroup.
+ Name of the metric group
+
+
+ :param metric_name: The metric_name of this HostConfigurationMetricGroup.
+ :type: str
+ """
+ allowed_values = ["HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"]
+ if not value_allowed_none_or_none_sentinel(metric_name, allowed_values):
+ raise ValueError(
+ "Invalid value for `metric_name`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._metric_name = metric_name
+
+ @property
+ def time_collected(self):
+ """
+ **[Required]** Gets the time_collected of this HostConfigurationMetricGroup.
+ Collection timestamp
+ Example: `\"2020-05-06T00:00:00.000Z\"`
+
+
+ :return: The time_collected of this HostConfigurationMetricGroup.
+ :rtype: datetime
+ """
+ return self._time_collected
+
+ @time_collected.setter
+ def time_collected(self, time_collected):
+ """
+ Sets the time_collected of this HostConfigurationMetricGroup.
+ Collection timestamp
+ Example: `\"2020-05-06T00:00:00.000Z\"`
+
+
+ :param time_collected: The time_collected of this HostConfigurationMetricGroup.
+ :type: datetime
+ """
+ self._time_collected = time_collected
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_cpu_hardware_configuration.py b/src/oci/opsi/models/host_cpu_hardware_configuration.py
new file mode 100644
index 0000000000..204d579f6d
--- /dev/null
+++ b/src/oci/opsi/models/host_cpu_hardware_configuration.py
@@ -0,0 +1,366 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostCpuHardwareConfiguration(HostConfigurationMetricGroup):
+ """
+ CPU Hardware Configuration metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostCpuHardwareConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostCpuHardwareConfiguration.metric_name` attribute
+ of this class is ``HOST_CPU_HARDWARE_CONFIGURATION`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostCpuHardwareConfiguration.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostCpuHardwareConfiguration.
+ :type time_collected: datetime
+
+ :param total_sockets:
+ The value to assign to the total_sockets property of this HostCpuHardwareConfiguration.
+ :type total_sockets: int
+
+ :param vendor_name:
+ The value to assign to the vendor_name property of this HostCpuHardwareConfiguration.
+ :type vendor_name: str
+
+ :param frequency_in_mhz:
+ The value to assign to the frequency_in_mhz property of this HostCpuHardwareConfiguration.
+ :type frequency_in_mhz: float
+
+ :param cache_in_mb:
+ The value to assign to the cache_in_mb property of this HostCpuHardwareConfiguration.
+ :type cache_in_mb: float
+
+ :param cpu_implementation:
+ The value to assign to the cpu_implementation property of this HostCpuHardwareConfiguration.
+ :type cpu_implementation: str
+
+ :param model:
+ The value to assign to the model property of this HostCpuHardwareConfiguration.
+ :type model: str
+
+ :param cpu_family:
+ The value to assign to the cpu_family property of this HostCpuHardwareConfiguration.
+ :type cpu_family: str
+
+ :param cores_per_socket:
+ The value to assign to the cores_per_socket property of this HostCpuHardwareConfiguration.
+ :type cores_per_socket: int
+
+ :param threads_per_socket:
+ The value to assign to the threads_per_socket property of this HostCpuHardwareConfiguration.
+ :type threads_per_socket: int
+
+ :param hyper_threading_enabled:
+ The value to assign to the hyper_threading_enabled property of this HostCpuHardwareConfiguration.
+ :type hyper_threading_enabled: str
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'total_sockets': 'int',
+ 'vendor_name': 'str',
+ 'frequency_in_mhz': 'float',
+ 'cache_in_mb': 'float',
+ 'cpu_implementation': 'str',
+ 'model': 'str',
+ 'cpu_family': 'str',
+ 'cores_per_socket': 'int',
+ 'threads_per_socket': 'int',
+ 'hyper_threading_enabled': 'str'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'total_sockets': 'totalSockets',
+ 'vendor_name': 'vendorName',
+ 'frequency_in_mhz': 'frequencyInMhz',
+ 'cache_in_mb': 'cacheInMB',
+ 'cpu_implementation': 'cpuImplementation',
+ 'model': 'model',
+ 'cpu_family': 'cpuFamily',
+ 'cores_per_socket': 'coresPerSocket',
+ 'threads_per_socket': 'threadsPerSocket',
+ 'hyper_threading_enabled': 'hyperThreadingEnabled'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._total_sockets = None
+ self._vendor_name = None
+ self._frequency_in_mhz = None
+ self._cache_in_mb = None
+ self._cpu_implementation = None
+ self._model = None
+ self._cpu_family = None
+ self._cores_per_socket = None
+ self._threads_per_socket = None
+ self._hyper_threading_enabled = None
+ self._metric_name = 'HOST_CPU_HARDWARE_CONFIGURATION'
+
+ @property
+ def total_sockets(self):
+ """
+ Gets the total_sockets of this HostCpuHardwareConfiguration.
+ Total number of CPU Sockets
+
+
+ :return: The total_sockets of this HostCpuHardwareConfiguration.
+ :rtype: int
+ """
+ return self._total_sockets
+
+ @total_sockets.setter
+ def total_sockets(self, total_sockets):
+ """
+ Sets the total_sockets of this HostCpuHardwareConfiguration.
+ Total number of CPU Sockets
+
+
+ :param total_sockets: The total_sockets of this HostCpuHardwareConfiguration.
+ :type: int
+ """
+ self._total_sockets = total_sockets
+
+ @property
+ def vendor_name(self):
+ """
+ Gets the vendor_name of this HostCpuHardwareConfiguration.
+ Name of the CPU vendor
+
+
+ :return: The vendor_name of this HostCpuHardwareConfiguration.
+ :rtype: str
+ """
+ return self._vendor_name
+
+ @vendor_name.setter
+ def vendor_name(self, vendor_name):
+ """
+ Sets the vendor_name of this HostCpuHardwareConfiguration.
+ Name of the CPU vendor
+
+
+ :param vendor_name: The vendor_name of this HostCpuHardwareConfiguration.
+ :type: str
+ """
+ self._vendor_name = vendor_name
+
+ @property
+ def frequency_in_mhz(self):
+ """
+ Gets the frequency_in_mhz of this HostCpuHardwareConfiguration.
+ Clock frequency of the processor in megahertz
+
+
+ :return: The frequency_in_mhz of this HostCpuHardwareConfiguration.
+ :rtype: float
+ """
+ return self._frequency_in_mhz
+
+ @frequency_in_mhz.setter
+ def frequency_in_mhz(self, frequency_in_mhz):
+ """
+ Sets the frequency_in_mhz of this HostCpuHardwareConfiguration.
+ Clock frequency of the processor in megahertz
+
+
+ :param frequency_in_mhz: The frequency_in_mhz of this HostCpuHardwareConfiguration.
+ :type: float
+ """
+ self._frequency_in_mhz = frequency_in_mhz
+
+ @property
+ def cache_in_mb(self):
+ """
+ Gets the cache_in_mb of this HostCpuHardwareConfiguration.
+ Size of cache memory in megabytes
+
+
+ :return: The cache_in_mb of this HostCpuHardwareConfiguration.
+ :rtype: float
+ """
+ return self._cache_in_mb
+
+ @cache_in_mb.setter
+ def cache_in_mb(self, cache_in_mb):
+ """
+ Sets the cache_in_mb of this HostCpuHardwareConfiguration.
+ Size of cache memory in megabytes
+
+
+ :param cache_in_mb: The cache_in_mb of this HostCpuHardwareConfiguration.
+ :type: float
+ """
+ self._cache_in_mb = cache_in_mb
+
+ @property
+ def cpu_implementation(self):
+ """
+ Gets the cpu_implementation of this HostCpuHardwareConfiguration.
+ Model name of processor
+
+
+ :return: The cpu_implementation of this HostCpuHardwareConfiguration.
+ :rtype: str
+ """
+ return self._cpu_implementation
+
+ @cpu_implementation.setter
+ def cpu_implementation(self, cpu_implementation):
+ """
+ Sets the cpu_implementation of this HostCpuHardwareConfiguration.
+ Model name of processor
+
+
+ :param cpu_implementation: The cpu_implementation of this HostCpuHardwareConfiguration.
+ :type: str
+ """
+ self._cpu_implementation = cpu_implementation
+
+ @property
+ def model(self):
+ """
+ Gets the model of this HostCpuHardwareConfiguration.
+ CPU model
+
+
+ :return: The model of this HostCpuHardwareConfiguration.
+ :rtype: str
+ """
+ return self._model
+
+ @model.setter
+ def model(self, model):
+ """
+ Sets the model of this HostCpuHardwareConfiguration.
+ CPU model
+
+
+ :param model: The model of this HostCpuHardwareConfiguration.
+ :type: str
+ """
+ self._model = model
+
+ @property
+ def cpu_family(self):
+ """
+ Gets the cpu_family of this HostCpuHardwareConfiguration.
+ Type of processor in the system
+
+
+ :return: The cpu_family of this HostCpuHardwareConfiguration.
+ :rtype: str
+ """
+ return self._cpu_family
+
+ @cpu_family.setter
+ def cpu_family(self, cpu_family):
+ """
+ Sets the cpu_family of this HostCpuHardwareConfiguration.
+ Type of processor in the system
+
+
+ :param cpu_family: The cpu_family of this HostCpuHardwareConfiguration.
+ :type: str
+ """
+ self._cpu_family = cpu_family
+
+ @property
+ def cores_per_socket(self):
+ """
+ Gets the cores_per_socket of this HostCpuHardwareConfiguration.
+ Number of cores per socket
+
+
+ :return: The cores_per_socket of this HostCpuHardwareConfiguration.
+ :rtype: int
+ """
+ return self._cores_per_socket
+
+ @cores_per_socket.setter
+ def cores_per_socket(self, cores_per_socket):
+ """
+ Sets the cores_per_socket of this HostCpuHardwareConfiguration.
+ Number of cores per socket
+
+
+ :param cores_per_socket: The cores_per_socket of this HostCpuHardwareConfiguration.
+ :type: int
+ """
+ self._cores_per_socket = cores_per_socket
+
+ @property
+ def threads_per_socket(self):
+ """
+ Gets the threads_per_socket of this HostCpuHardwareConfiguration.
+ Number of threads per socket
+
+
+ :return: The threads_per_socket of this HostCpuHardwareConfiguration.
+ :rtype: int
+ """
+ return self._threads_per_socket
+
+ @threads_per_socket.setter
+ def threads_per_socket(self, threads_per_socket):
+ """
+ Sets the threads_per_socket of this HostCpuHardwareConfiguration.
+ Number of threads per socket
+
+
+ :param threads_per_socket: The threads_per_socket of this HostCpuHardwareConfiguration.
+ :type: int
+ """
+ self._threads_per_socket = threads_per_socket
+
+ @property
+ def hyper_threading_enabled(self):
+ """
+ Gets the hyper_threading_enabled of this HostCpuHardwareConfiguration.
+ Indicates if hyper-threading is enabled or not
+
+
+ :return: The hyper_threading_enabled of this HostCpuHardwareConfiguration.
+ :rtype: str
+ """
+ return self._hyper_threading_enabled
+
+ @hyper_threading_enabled.setter
+ def hyper_threading_enabled(self, hyper_threading_enabled):
+ """
+ Sets the hyper_threading_enabled of this HostCpuHardwareConfiguration.
+ Indicates if hyper-threading is enabled or not
+
+
+ :param hyper_threading_enabled: The hyper_threading_enabled of this HostCpuHardwareConfiguration.
+ :type: str
+ """
+ self._hyper_threading_enabled = hyper_threading_enabled
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_cpu_statistics.py b/src/oci/opsi/models/host_cpu_statistics.py
new file mode 100644
index 0000000000..9f119afc7d
--- /dev/null
+++ b/src/oci/opsi/models/host_cpu_statistics.py
@@ -0,0 +1,104 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_resource_statistics import HostResourceStatistics
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostCpuStatistics(HostResourceStatistics):
+ """
+ Contains CPU statistics.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostCpuStatistics object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostCpuStatistics.resource_name` attribute
+ of this class is ``HOST_CPU_STATISTICS`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param usage:
+ The value to assign to the usage property of this HostCpuStatistics.
+ :type usage: float
+
+ :param capacity:
+ The value to assign to the capacity property of this HostCpuStatistics.
+ :type capacity: float
+
+ :param utilization_percent:
+ The value to assign to the utilization_percent property of this HostCpuStatistics.
+ :type utilization_percent: float
+
+ :param usage_change_percent:
+ The value to assign to the usage_change_percent property of this HostCpuStatistics.
+ :type usage_change_percent: float
+
+ :param resource_name:
+ The value to assign to the resource_name property of this HostCpuStatistics.
+ Allowed values for this property are: "HOST_CPU_STATISTICS", "HOST_MEMORY_STATISTICS"
+ :type resource_name: str
+
+ :param load:
+ The value to assign to the load property of this HostCpuStatistics.
+ :type load: oci.opsi.models.SummaryStatistics
+
+ """
+ self.swagger_types = {
+ 'usage': 'float',
+ 'capacity': 'float',
+ 'utilization_percent': 'float',
+ 'usage_change_percent': 'float',
+ 'resource_name': 'str',
+ 'load': 'SummaryStatistics'
+ }
+
+ self.attribute_map = {
+ 'usage': 'usage',
+ 'capacity': 'capacity',
+ 'utilization_percent': 'utilizationPercent',
+ 'usage_change_percent': 'usageChangePercent',
+ 'resource_name': 'resourceName',
+ 'load': 'load'
+ }
+
+ self._usage = None
+ self._capacity = None
+ self._utilization_percent = None
+ self._usage_change_percent = None
+ self._resource_name = None
+ self._load = None
+ self._resource_name = 'HOST_CPU_STATISTICS'
+
+ @property
+ def load(self):
+ """
+ Gets the load of this HostCpuStatistics.
+
+ :return: The load of this HostCpuStatistics.
+ :rtype: oci.opsi.models.SummaryStatistics
+ """
+ return self._load
+
+ @load.setter
+ def load(self, load):
+ """
+ Sets the load of this HostCpuStatistics.
+
+ :param load: The load of this HostCpuStatistics.
+ :type: oci.opsi.models.SummaryStatistics
+ """
+ self._load = load
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_cpu_usage.py b/src/oci/opsi/models/host_cpu_usage.py
new file mode 100644
index 0000000000..3e4773ac09
--- /dev/null
+++ b/src/oci/opsi/models/host_cpu_usage.py
@@ -0,0 +1,335 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_performance_metric_group import HostPerformanceMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostCpuUsage(HostPerformanceMetricGroup):
+ """
+ CPU Usage metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostCpuUsage object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostCpuUsage.metric_name` attribute
+ of this class is ``HOST_CPU_USAGE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostCpuUsage.
+ Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostCpuUsage.
+ :type time_collected: datetime
+
+ :param cpu_user_mode_in_percent:
+ The value to assign to the cpu_user_mode_in_percent property of this HostCpuUsage.
+ :type cpu_user_mode_in_percent: float
+
+ :param cpu_system_mode_in_percent:
+ The value to assign to the cpu_system_mode_in_percent property of this HostCpuUsage.
+ :type cpu_system_mode_in_percent: float
+
+ :param cpu_usage_in_sec:
+ The value to assign to the cpu_usage_in_sec property of this HostCpuUsage.
+ :type cpu_usage_in_sec: float
+
+ :param cpu_utilization_in_percent:
+ The value to assign to the cpu_utilization_in_percent property of this HostCpuUsage.
+ :type cpu_utilization_in_percent: float
+
+ :param cpu_stolen_in_percent:
+ The value to assign to the cpu_stolen_in_percent property of this HostCpuUsage.
+ :type cpu_stolen_in_percent: float
+
+ :param cpu_idle_in_percent:
+ The value to assign to the cpu_idle_in_percent property of this HostCpuUsage.
+ :type cpu_idle_in_percent: float
+
+ :param cpu_load1min:
+ The value to assign to the cpu_load1min property of this HostCpuUsage.
+ :type cpu_load1min: float
+
+ :param cpu_load5min:
+ The value to assign to the cpu_load5min property of this HostCpuUsage.
+ :type cpu_load5min: float
+
+ :param cpu_load15min:
+ The value to assign to the cpu_load15min property of this HostCpuUsage.
+ :type cpu_load15min: float
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'cpu_user_mode_in_percent': 'float',
+ 'cpu_system_mode_in_percent': 'float',
+ 'cpu_usage_in_sec': 'float',
+ 'cpu_utilization_in_percent': 'float',
+ 'cpu_stolen_in_percent': 'float',
+ 'cpu_idle_in_percent': 'float',
+ 'cpu_load1min': 'float',
+ 'cpu_load5min': 'float',
+ 'cpu_load15min': 'float'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'cpu_user_mode_in_percent': 'cpuUserModeInPercent',
+ 'cpu_system_mode_in_percent': 'cpuSystemModeInPercent',
+ 'cpu_usage_in_sec': 'cpuUsageInSec',
+ 'cpu_utilization_in_percent': 'cpuUtilizationInPercent',
+ 'cpu_stolen_in_percent': 'cpuStolenInPercent',
+ 'cpu_idle_in_percent': 'cpuIdleInPercent',
+ 'cpu_load1min': 'cpuLoad1min',
+ 'cpu_load5min': 'cpuLoad5min',
+ 'cpu_load15min': 'cpuLoad15min'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._cpu_user_mode_in_percent = None
+ self._cpu_system_mode_in_percent = None
+ self._cpu_usage_in_sec = None
+ self._cpu_utilization_in_percent = None
+ self._cpu_stolen_in_percent = None
+ self._cpu_idle_in_percent = None
+ self._cpu_load1min = None
+ self._cpu_load5min = None
+ self._cpu_load15min = None
+ self._metric_name = 'HOST_CPU_USAGE'
+
+ @property
+ def cpu_user_mode_in_percent(self):
+ """
+ Gets the cpu_user_mode_in_percent of this HostCpuUsage.
+ Percentage of CPU time spent in user mode
+
+
+ :return: The cpu_user_mode_in_percent of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_user_mode_in_percent
+
+ @cpu_user_mode_in_percent.setter
+ def cpu_user_mode_in_percent(self, cpu_user_mode_in_percent):
+ """
+ Sets the cpu_user_mode_in_percent of this HostCpuUsage.
+ Percentage of CPU time spent in user mode
+
+
+ :param cpu_user_mode_in_percent: The cpu_user_mode_in_percent of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_user_mode_in_percent = cpu_user_mode_in_percent
+
+ @property
+ def cpu_system_mode_in_percent(self):
+ """
+ Gets the cpu_system_mode_in_percent of this HostCpuUsage.
+ Percentage of CPU time spent in system mode
+
+
+ :return: The cpu_system_mode_in_percent of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_system_mode_in_percent
+
+ @cpu_system_mode_in_percent.setter
+ def cpu_system_mode_in_percent(self, cpu_system_mode_in_percent):
+ """
+ Sets the cpu_system_mode_in_percent of this HostCpuUsage.
+ Percentage of CPU time spent in system mode
+
+
+ :param cpu_system_mode_in_percent: The cpu_system_mode_in_percent of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_system_mode_in_percent = cpu_system_mode_in_percent
+
+ @property
+ def cpu_usage_in_sec(self):
+ """
+ Gets the cpu_usage_in_sec of this HostCpuUsage.
+ Amount of CPU Time spent in seconds
+
+
+ :return: The cpu_usage_in_sec of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_usage_in_sec
+
+ @cpu_usage_in_sec.setter
+ def cpu_usage_in_sec(self, cpu_usage_in_sec):
+ """
+ Sets the cpu_usage_in_sec of this HostCpuUsage.
+ Amount of CPU Time spent in seconds
+
+
+ :param cpu_usage_in_sec: The cpu_usage_in_sec of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_usage_in_sec = cpu_usage_in_sec
+
+ @property
+ def cpu_utilization_in_percent(self):
+ """
+ Gets the cpu_utilization_in_percent of this HostCpuUsage.
+ Amount of CPU Time spent in percentage
+
+
+ :return: The cpu_utilization_in_percent of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_utilization_in_percent
+
+ @cpu_utilization_in_percent.setter
+ def cpu_utilization_in_percent(self, cpu_utilization_in_percent):
+ """
+ Sets the cpu_utilization_in_percent of this HostCpuUsage.
+ Amount of CPU Time spent in percentage
+
+
+ :param cpu_utilization_in_percent: The cpu_utilization_in_percent of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_utilization_in_percent = cpu_utilization_in_percent
+
+ @property
+ def cpu_stolen_in_percent(self):
+ """
+ Gets the cpu_stolen_in_percent of this HostCpuUsage.
+ Amount of CPU time stolen in percentage
+
+
+ :return: The cpu_stolen_in_percent of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_stolen_in_percent
+
+ @cpu_stolen_in_percent.setter
+ def cpu_stolen_in_percent(self, cpu_stolen_in_percent):
+ """
+ Sets the cpu_stolen_in_percent of this HostCpuUsage.
+ Amount of CPU time stolen in percentage
+
+
+ :param cpu_stolen_in_percent: The cpu_stolen_in_percent of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_stolen_in_percent = cpu_stolen_in_percent
+
+ @property
+ def cpu_idle_in_percent(self):
+ """
+ Gets the cpu_idle_in_percent of this HostCpuUsage.
+ Amount of CPU idle time in percentage
+
+
+ :return: The cpu_idle_in_percent of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_idle_in_percent
+
+ @cpu_idle_in_percent.setter
+ def cpu_idle_in_percent(self, cpu_idle_in_percent):
+ """
+ Sets the cpu_idle_in_percent of this HostCpuUsage.
+ Amount of CPU idle time in percentage
+
+
+ :param cpu_idle_in_percent: The cpu_idle_in_percent of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_idle_in_percent = cpu_idle_in_percent
+
+ @property
+ def cpu_load1min(self):
+ """
+ Gets the cpu_load1min of this HostCpuUsage.
+ Load average in the last 1 minute
+
+
+ :return: The cpu_load1min of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_load1min
+
+ @cpu_load1min.setter
+ def cpu_load1min(self, cpu_load1min):
+ """
+ Sets the cpu_load1min of this HostCpuUsage.
+ Load average in the last 1 minute
+
+
+ :param cpu_load1min: The cpu_load1min of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_load1min = cpu_load1min
+
+ @property
+ def cpu_load5min(self):
+ """
+ Gets the cpu_load5min of this HostCpuUsage.
+ Load average in the last 5 minutes
+
+
+ :return: The cpu_load5min of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_load5min
+
+ @cpu_load5min.setter
+ def cpu_load5min(self, cpu_load5min):
+ """
+ Sets the cpu_load5min of this HostCpuUsage.
+ Load average in the last 5 minutes
+
+
+ :param cpu_load5min: The cpu_load5min of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_load5min = cpu_load5min
+
+ @property
+ def cpu_load15min(self):
+ """
+ Gets the cpu_load15min of this HostCpuUsage.
+ Load average in the last 15 minutes
+
+
+ :return: The cpu_load15min of this HostCpuUsage.
+ :rtype: float
+ """
+ return self._cpu_load15min
+
+ @cpu_load15min.setter
+ def cpu_load15min(self, cpu_load15min):
+ """
+ Sets the cpu_load15min of this HostCpuUsage.
+ Load average in the last 15 minutes
+
+
+ :param cpu_load15min: The cpu_load15min of this HostCpuUsage.
+ :type: float
+ """
+ self._cpu_load15min = cpu_load15min
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_details.py b/src/oci/opsi/models/host_details.py
new file mode 100644
index 0000000000..64e5432715
--- /dev/null
+++ b/src/oci/opsi/models/host_details.py
@@ -0,0 +1,210 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostDetails(object):
+ """
+ Partial information about a host which includes id, name, type.
+ """
+
+ #: A constant which can be used with the platform_type property of a HostDetails.
+ #: This constant has a value of "LINUX"
+ PLATFORM_TYPE_LINUX = "LINUX"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this HostDetails.
+ :type id: str
+
+ :param host_name:
+ The value to assign to the host_name property of this HostDetails.
+ :type host_name: str
+
+ :param host_display_name:
+ The value to assign to the host_display_name property of this HostDetails.
+ :type host_display_name: str
+
+ :param platform_type:
+ The value to assign to the platform_type property of this HostDetails.
+ Allowed values for this property are: "LINUX", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type platform_type: str
+
+ :param agent_identifier:
+ The value to assign to the agent_identifier property of this HostDetails.
+ :type agent_identifier: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'host_name': 'str',
+ 'host_display_name': 'str',
+ 'platform_type': 'str',
+ 'agent_identifier': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'host_name': 'hostName',
+ 'host_display_name': 'hostDisplayName',
+ 'platform_type': 'platformType',
+ 'agent_identifier': 'agentIdentifier'
+ }
+
+ self._id = None
+ self._host_name = None
+ self._host_display_name = None
+ self._platform_type = None
+ self._agent_identifier = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this HostDetails.
+ The `OCID`__ of the host.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this HostDetails.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this HostDetails.
+ The `OCID`__ of the host.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this HostDetails.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this HostDetails.
+ The host name. The host name is unique amongst the hosts managed by the same management agent.
+
+
+ :return: The host_name of this HostDetails.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this HostDetails.
+ The host name. The host name is unique amongst the hosts managed by the same management agent.
+
+
+ :param host_name: The host_name of this HostDetails.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def host_display_name(self):
+ """
+ Gets the host_display_name of this HostDetails.
+ The user-friendly name for the host. The name does not have to be unique.
+
+
+ :return: The host_display_name of this HostDetails.
+ :rtype: str
+ """
+ return self._host_display_name
+
+ @host_display_name.setter
+ def host_display_name(self, host_display_name):
+ """
+ Sets the host_display_name of this HostDetails.
+ The user-friendly name for the host. The name does not have to be unique.
+
+
+ :param host_display_name: The host_display_name of this HostDetails.
+ :type: str
+ """
+ self._host_display_name = host_display_name
+
+ @property
+ def platform_type(self):
+ """
+ **[Required]** Gets the platform_type of this HostDetails.
+ Platform type.
+
+ Allowed values for this property are: "LINUX", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The platform_type of this HostDetails.
+ :rtype: str
+ """
+ return self._platform_type
+
+ @platform_type.setter
+ def platform_type(self, platform_type):
+ """
+ Sets the platform_type of this HostDetails.
+ Platform type.
+
+
+ :param platform_type: The platform_type of this HostDetails.
+ :type: str
+ """
+ allowed_values = ["LINUX"]
+ if not value_allowed_none_or_none_sentinel(platform_type, allowed_values):
+ platform_type = 'UNKNOWN_ENUM_VALUE'
+ self._platform_type = platform_type
+
+ @property
+ def agent_identifier(self):
+ """
+ **[Required]** Gets the agent_identifier of this HostDetails.
+ The identifier of the agent.
+
+
+ :return: The agent_identifier of this HostDetails.
+ :rtype: str
+ """
+ return self._agent_identifier
+
+ @agent_identifier.setter
+ def agent_identifier(self, agent_identifier):
+ """
+ Sets the agent_identifier of this HostDetails.
+ The identifier of the agent.
+
+
+ :param agent_identifier: The agent_identifier of this HostDetails.
+ :type: str
+ """
+ self._agent_identifier = agent_identifier
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_entities.py b/src/oci/opsi/models/host_entities.py
new file mode 100644
index 0000000000..259f668cb2
--- /dev/null
+++ b/src/oci/opsi/models/host_entities.py
@@ -0,0 +1,118 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostEntities(HostConfigurationMetricGroup):
+ """
+ Database entities running on the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostEntities object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostEntities.metric_name` attribute
+ of this class is ``HOST_ENTITIES`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostEntities.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostEntities.
+ :type time_collected: datetime
+
+ :param entity_name:
+ The value to assign to the entity_name property of this HostEntities.
+ :type entity_name: str
+
+ :param entity_type:
+ The value to assign to the entity_type property of this HostEntities.
+ :type entity_type: str
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'entity_name': 'str',
+ 'entity_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'entity_name': 'entityName',
+ 'entity_type': 'entityType'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._entity_name = None
+ self._entity_type = None
+ self._metric_name = 'HOST_ENTITIES'
+
+ @property
+ def entity_name(self):
+ """
+ **[Required]** Gets the entity_name of this HostEntities.
+ Name of the database entity
+
+
+ :return: The entity_name of this HostEntities.
+ :rtype: str
+ """
+ return self._entity_name
+
+ @entity_name.setter
+ def entity_name(self, entity_name):
+ """
+ Sets the entity_name of this HostEntities.
+ Name of the database entity
+
+
+ :param entity_name: The entity_name of this HostEntities.
+ :type: str
+ """
+ self._entity_name = entity_name
+
+ @property
+ def entity_type(self):
+ """
+ **[Required]** Gets the entity_type of this HostEntities.
+ Type of the database entity
+
+
+ :return: The entity_type of this HostEntities.
+ :rtype: str
+ """
+ return self._entity_type
+
+ @entity_type.setter
+ def entity_type(self, entity_type):
+ """
+ Sets the entity_type of this HostEntities.
+ Type of the database entity
+
+
+ :param entity_type: The entity_type of this HostEntities.
+ :type: str
+ """
+ self._entity_type = entity_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_hardware_configuration.py b/src/oci/opsi/models/host_hardware_configuration.py
new file mode 100644
index 0000000000..c768e6f8a5
--- /dev/null
+++ b/src/oci/opsi/models/host_hardware_configuration.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostHardwareConfiguration(HostConfigurationMetricGroup):
+ """
+ Hardware Configuration metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostHardwareConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostHardwareConfiguration.metric_name` attribute
+ of this class is ``HOST_HARDWARE_CONFIGURATION`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostHardwareConfiguration.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostHardwareConfiguration.
+ :type time_collected: datetime
+
+ :param cpu_architecture:
+ The value to assign to the cpu_architecture property of this HostHardwareConfiguration.
+ :type cpu_architecture: str
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'cpu_architecture': 'str'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'cpu_architecture': 'cpuArchitecture'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._cpu_architecture = None
+ self._metric_name = 'HOST_HARDWARE_CONFIGURATION'
+
+ @property
+ def cpu_architecture(self):
+ """
+ **[Required]** Gets the cpu_architecture of this HostHardwareConfiguration.
+ Processor architecture used by the platform
+
+
+ :return: The cpu_architecture of this HostHardwareConfiguration.
+ :rtype: str
+ """
+ return self._cpu_architecture
+
+ @cpu_architecture.setter
+ def cpu_architecture(self, cpu_architecture):
+ """
+ Sets the cpu_architecture of this HostHardwareConfiguration.
+ Processor architecture used by the platform
+
+
+ :param cpu_architecture: The cpu_architecture of this HostHardwareConfiguration.
+ :type: str
+ """
+ self._cpu_architecture = cpu_architecture
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_insight.py b/src/oci/opsi/models/host_insight.py
new file mode 100644
index 0000000000..e2038e7f24
--- /dev/null
+++ b/src/oci/opsi/models/host_insight.py
@@ -0,0 +1,599 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostInsight(object):
+ """
+ Host insight resource.
+ """
+
+ #: A constant which can be used with the entity_source property of a HostInsight.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_HOST"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_HOST = "MACS_MANAGED_EXTERNAL_HOST"
+
+ #: A constant which can be used with the status property of a HostInsight.
+ #: This constant has a value of "DISABLED"
+ STATUS_DISABLED = "DISABLED"
+
+ #: A constant which can be used with the status property of a HostInsight.
+ #: This constant has a value of "ENABLED"
+ STATUS_ENABLED = "ENABLED"
+
+ #: A constant which can be used with the status property of a HostInsight.
+ #: This constant has a value of "TERMINATED"
+ STATUS_TERMINATED = "TERMINATED"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsight.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsight.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsight.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsight.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsight.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsight.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostInsight object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.MacsManagedExternalHostInsight`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this HostInsight.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this HostInsight.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this HostInsight.
+ :type compartment_id: str
+
+ :param host_name:
+ The value to assign to the host_name property of this HostInsight.
+ :type host_name: str
+
+ :param host_display_name:
+ The value to assign to the host_display_name property of this HostInsight.
+ :type host_display_name: str
+
+ :param host_type:
+ The value to assign to the host_type property of this HostInsight.
+ :type host_type: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this HostInsight.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this HostInsight.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this HostInsight.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this HostInsight.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param status:
+ The value to assign to the status property of this HostInsight.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this HostInsight.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this HostInsight.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this HostInsight.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this HostInsight.
+ :type lifecycle_details: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'host_name': 'str',
+ 'host_display_name': 'str',
+ 'host_type': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'host_name': 'hostName',
+ 'host_display_name': 'hostDisplayName',
+ 'host_type': 'hostType',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._host_name = None
+ self._host_display_name = None
+ self._host_type = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'MACS_MANAGED_EXTERNAL_HOST':
+ return 'MacsManagedExternalHostInsight'
+ else:
+ return 'HostInsight'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this HostInsight.
+ Source of the host entity.
+
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The entity_source of this HostInsight.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this HostInsight.
+ Source of the host entity.
+
+
+ :param entity_source: The entity_source of this HostInsight.
+ :type: str
+ """
+ allowed_values = ["MACS_MANAGED_EXTERNAL_HOST"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ entity_source = 'UNKNOWN_ENUM_VALUE'
+ self._entity_source = entity_source
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this HostInsight.
+ The `OCID`__ of the host insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this HostInsight.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this HostInsight.
+ The `OCID`__ of the host insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this HostInsight.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this HostInsight.
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this HostInsight.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this HostInsight.
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this HostInsight.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this HostInsight.
+ The host name. The host name is unique amongst the hosts managed by the same management agent.
+
+
+ :return: The host_name of this HostInsight.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this HostInsight.
+ The host name. The host name is unique amongst the hosts managed by the same management agent.
+
+
+ :param host_name: The host_name of this HostInsight.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def host_display_name(self):
+ """
+ Gets the host_display_name of this HostInsight.
+ The user-friendly name for the host. The name does not have to be unique.
+
+
+ :return: The host_display_name of this HostInsight.
+ :rtype: str
+ """
+ return self._host_display_name
+
+ @host_display_name.setter
+ def host_display_name(self, host_display_name):
+ """
+ Sets the host_display_name of this HostInsight.
+ The user-friendly name for the host. The name does not have to be unique.
+
+
+ :param host_display_name: The host_display_name of this HostInsight.
+ :type: str
+ """
+ self._host_display_name = host_display_name
+
+ @property
+ def host_type(self):
+ """
+ Gets the host_type of this HostInsight.
+ Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
+
+
+ :return: The host_type of this HostInsight.
+ :rtype: str
+ """
+ return self._host_type
+
+ @host_type.setter
+ def host_type(self, host_type):
+ """
+ Sets the host_type of this HostInsight.
+ Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
+
+
+ :param host_type: The host_type of this HostInsight.
+ :type: str
+ """
+ self._host_type = host_type
+
+ @property
+ def processor_count(self):
+ """
+ Gets the processor_count of this HostInsight.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :return: The processor_count of this HostInsight.
+ :rtype: int
+ """
+ return self._processor_count
+
+ @processor_count.setter
+ def processor_count(self, processor_count):
+ """
+ Sets the processor_count of this HostInsight.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :param processor_count: The processor_count of this HostInsight.
+ :type: int
+ """
+ self._processor_count = processor_count
+
+ @property
+ def freeform_tags(self):
+ """
+ **[Required]** Gets the freeform_tags of this HostInsight.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this HostInsight.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this HostInsight.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this HostInsight.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ **[Required]** Gets the defined_tags of this HostInsight.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this HostInsight.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this HostInsight.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this HostInsight.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this HostInsight.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this HostInsight.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this HostInsight.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this HostInsight.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this HostInsight.
+ Indicates the status of a host insight in Operations Insights
+
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this HostInsight.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this HostInsight.
+ Indicates the status of a host insight in Operations Insights
+
+
+ :param status: The status of this HostInsight.
+ :type: str
+ """
+ allowed_values = ["DISABLED", "ENABLED", "TERMINATED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this HostInsight.
+ The time the the host insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this HostInsight.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this HostInsight.
+ The time the the host insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this HostInsight.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this HostInsight.
+ The time the host insight was updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this HostInsight.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this HostInsight.
+ The time the host insight was updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this HostInsight.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this HostInsight.
+ The current state of the host.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this HostInsight.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this HostInsight.
+ The current state of the host.
+
+
+ :param lifecycle_state: The lifecycle_state of this HostInsight.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this HostInsight.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this HostInsight.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this HostInsight.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this HostInsight.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_insight_resource_statistics_aggregation.py b/src/oci/opsi/models/host_insight_resource_statistics_aggregation.py
new file mode 100644
index 0000000000..d0474fcea2
--- /dev/null
+++ b/src/oci/opsi/models/host_insight_resource_statistics_aggregation.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostInsightResourceStatisticsAggregation(object):
+ """
+ Contains host details and resource statistics.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostInsightResourceStatisticsAggregation object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host_details:
+ The value to assign to the host_details property of this HostInsightResourceStatisticsAggregation.
+ :type host_details: oci.opsi.models.HostDetails
+
+ :param current_statistics:
+ The value to assign to the current_statistics property of this HostInsightResourceStatisticsAggregation.
+ :type current_statistics: oci.opsi.models.HostResourceStatistics
+
+ """
+ self.swagger_types = {
+ 'host_details': 'HostDetails',
+ 'current_statistics': 'HostResourceStatistics'
+ }
+
+ self.attribute_map = {
+ 'host_details': 'hostDetails',
+ 'current_statistics': 'currentStatistics'
+ }
+
+ self._host_details = None
+ self._current_statistics = None
+
+ @property
+ def host_details(self):
+ """
+ **[Required]** Gets the host_details of this HostInsightResourceStatisticsAggregation.
+
+ :return: The host_details of this HostInsightResourceStatisticsAggregation.
+ :rtype: oci.opsi.models.HostDetails
+ """
+ return self._host_details
+
+ @host_details.setter
+ def host_details(self, host_details):
+ """
+ Sets the host_details of this HostInsightResourceStatisticsAggregation.
+
+ :param host_details: The host_details of this HostInsightResourceStatisticsAggregation.
+ :type: oci.opsi.models.HostDetails
+ """
+ self._host_details = host_details
+
+ @property
+ def current_statistics(self):
+ """
+ **[Required]** Gets the current_statistics of this HostInsightResourceStatisticsAggregation.
+
+ :return: The current_statistics of this HostInsightResourceStatisticsAggregation.
+ :rtype: oci.opsi.models.HostResourceStatistics
+ """
+ return self._current_statistics
+
+ @current_statistics.setter
+ def current_statistics(self, current_statistics):
+ """
+ Sets the current_statistics of this HostInsightResourceStatisticsAggregation.
+
+ :param current_statistics: The current_statistics of this HostInsightResourceStatisticsAggregation.
+ :type: oci.opsi.models.HostResourceStatistics
+ """
+ self._current_statistics = current_statistics
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_insight_summary.py b/src/oci/opsi/models/host_insight_summary.py
new file mode 100644
index 0000000000..1ad09c7014
--- /dev/null
+++ b/src/oci/opsi/models/host_insight_summary.py
@@ -0,0 +1,599 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostInsightSummary(object):
+ """
+ Summary of a host insight resource.
+ """
+
+ #: A constant which can be used with the entity_source property of a HostInsightSummary.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_HOST"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_HOST = "MACS_MANAGED_EXTERNAL_HOST"
+
+ #: A constant which can be used with the status property of a HostInsightSummary.
+ #: This constant has a value of "DISABLED"
+ STATUS_DISABLED = "DISABLED"
+
+ #: A constant which can be used with the status property of a HostInsightSummary.
+ #: This constant has a value of "ENABLED"
+ STATUS_ENABLED = "ENABLED"
+
+ #: A constant which can be used with the status property of a HostInsightSummary.
+ #: This constant has a value of "TERMINATED"
+ STATUS_TERMINATED = "TERMINATED"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsightSummary.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsightSummary.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsightSummary.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsightSummary.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsightSummary.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a HostInsightSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostInsightSummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.MacsManagedExternalHostInsightSummary`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this HostInsightSummary.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this HostInsightSummary.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this HostInsightSummary.
+ :type compartment_id: str
+
+ :param host_name:
+ The value to assign to the host_name property of this HostInsightSummary.
+ :type host_name: str
+
+ :param host_display_name:
+ The value to assign to the host_display_name property of this HostInsightSummary.
+ :type host_display_name: str
+
+ :param host_type:
+ The value to assign to the host_type property of this HostInsightSummary.
+ :type host_type: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this HostInsightSummary.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this HostInsightSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this HostInsightSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this HostInsightSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param status:
+ The value to assign to the status property of this HostInsightSummary.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this HostInsightSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this HostInsightSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this HostInsightSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this HostInsightSummary.
+ :type lifecycle_details: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'host_name': 'str',
+ 'host_display_name': 'str',
+ 'host_type': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'host_name': 'hostName',
+ 'host_display_name': 'hostDisplayName',
+ 'host_type': 'hostType',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._host_name = None
+ self._host_display_name = None
+ self._host_type = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'MACS_MANAGED_EXTERNAL_HOST':
+ return 'MacsManagedExternalHostInsightSummary'
+ else:
+ return 'HostInsightSummary'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this HostInsightSummary.
+ Source of the host entity.
+
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The entity_source of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this HostInsightSummary.
+ Source of the host entity.
+
+
+ :param entity_source: The entity_source of this HostInsightSummary.
+ :type: str
+ """
+ allowed_values = ["MACS_MANAGED_EXTERNAL_HOST"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ entity_source = 'UNKNOWN_ENUM_VALUE'
+ self._entity_source = entity_source
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this HostInsightSummary.
+ The `OCID`__ of the host insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this HostInsightSummary.
+ The `OCID`__ of the host insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this HostInsightSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this HostInsightSummary.
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this HostInsightSummary.
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this HostInsightSummary.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this HostInsightSummary.
+ The host name. The host name is unique amongst the hosts managed by the same management agent.
+
+
+ :return: The host_name of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this HostInsightSummary.
+ The host name. The host name is unique amongst the hosts managed by the same management agent.
+
+
+ :param host_name: The host_name of this HostInsightSummary.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def host_display_name(self):
+ """
+ Gets the host_display_name of this HostInsightSummary.
+ The user-friendly name for the host. The name does not have to be unique.
+
+
+ :return: The host_display_name of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._host_display_name
+
+ @host_display_name.setter
+ def host_display_name(self, host_display_name):
+ """
+ Sets the host_display_name of this HostInsightSummary.
+ The user-friendly name for the host. The name does not have to be unique.
+
+
+ :param host_display_name: The host_display_name of this HostInsightSummary.
+ :type: str
+ """
+ self._host_display_name = host_display_name
+
+ @property
+ def host_type(self):
+ """
+ Gets the host_type of this HostInsightSummary.
+ Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
+
+
+ :return: The host_type of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._host_type
+
+ @host_type.setter
+ def host_type(self, host_type):
+ """
+ Sets the host_type of this HostInsightSummary.
+ Operations Insights internal representation of the host type. Possible value is EXTERNAL-HOST.
+
+
+ :param host_type: The host_type of this HostInsightSummary.
+ :type: str
+ """
+ self._host_type = host_type
+
+ @property
+ def processor_count(self):
+ """
+ Gets the processor_count of this HostInsightSummary.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :return: The processor_count of this HostInsightSummary.
+ :rtype: int
+ """
+ return self._processor_count
+
+ @processor_count.setter
+ def processor_count(self, processor_count):
+ """
+ Sets the processor_count of this HostInsightSummary.
+ Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types.
+
+
+ :param processor_count: The processor_count of this HostInsightSummary.
+ :type: int
+ """
+ self._processor_count = processor_count
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this HostInsightSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this HostInsightSummary.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this HostInsightSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this HostInsightSummary.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this HostInsightSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this HostInsightSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this HostInsightSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this HostInsightSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this HostInsightSummary.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this HostInsightSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this HostInsightSummary.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this HostInsightSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ @property
+ def status(self):
+ """
+ Gets the status of this HostInsightSummary.
+ Indicates the status of a host insight in Operations Insights
+
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this HostInsightSummary.
+ Indicates the status of a host insight in Operations Insights
+
+
+ :param status: The status of this HostInsightSummary.
+ :type: str
+ """
+ allowed_values = ["DISABLED", "ENABLED", "TERMINATED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def time_created(self):
+ """
+ Gets the time_created of this HostInsightSummary.
+ The time the the host insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :return: The time_created of this HostInsightSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this HostInsightSummary.
+ The time the the host insight was first enabled. An RFC3339 formatted datetime string
+
+
+ :param time_created: The time_created of this HostInsightSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this HostInsightSummary.
+ The time the host insight was updated. An RFC3339 formatted datetime string
+
+
+ :return: The time_updated of this HostInsightSummary.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this HostInsightSummary.
+ The time the host insight was updated. An RFC3339 formatted datetime string
+
+
+ :param time_updated: The time_updated of this HostInsightSummary.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ Gets the lifecycle_state of this HostInsightSummary.
+ The current state of the host.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this HostInsightSummary.
+ The current state of the host.
+
+
+ :param lifecycle_state: The lifecycle_state of this HostInsightSummary.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this HostInsightSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this HostInsightSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this HostInsightSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this HostInsightSummary.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_insight_summary_collection.py b/src/oci/opsi/models/host_insight_summary_collection.py
new file mode 100644
index 0000000000..e0296a1f43
--- /dev/null
+++ b/src/oci/opsi/models/host_insight_summary_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostInsightSummaryCollection(object):
+ """
+ Collection of host insight summary objects.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostInsightSummaryCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this HostInsightSummaryCollection.
+ :type items: list[oci.opsi.models.HostInsightSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[HostInsightSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this HostInsightSummaryCollection.
+ Array of host insight summary objects.
+
+
+ :return: The items of this HostInsightSummaryCollection.
+ :rtype: list[oci.opsi.models.HostInsightSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this HostInsightSummaryCollection.
+ Array of host insight summary objects.
+
+
+ :param items: The items of this HostInsightSummaryCollection.
+ :type: list[oci.opsi.models.HostInsightSummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_insights.py b/src/oci/opsi/models/host_insights.py
new file mode 100644
index 0000000000..07a6b2b768
--- /dev/null
+++ b/src/oci/opsi/models/host_insights.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostInsights(object):
+ """
+ Logical grouping used for Operations Insights host related operations.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostInsights object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host_insights:
+ The value to assign to the host_insights property of this HostInsights.
+ :type host_insights: object
+
+ """
+ self.swagger_types = {
+ 'host_insights': 'object'
+ }
+
+ self.attribute_map = {
+ 'host_insights': 'hostInsights'
+ }
+
+ self._host_insights = None
+
+ @property
+ def host_insights(self):
+ """
+ Gets the host_insights of this HostInsights.
+ Host Insights Object.
+
+
+ :return: The host_insights of this HostInsights.
+ :rtype: object
+ """
+ return self._host_insights
+
+ @host_insights.setter
+ def host_insights(self, host_insights):
+ """
+ Sets the host_insights of this HostInsights.
+ Host Insights Object.
+
+
+ :param host_insights: The host_insights of this HostInsights.
+ :type: object
+ """
+ self._host_insights = host_insights
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_instance_map.py b/src/oci/opsi/models/host_instance_map.py
new file mode 100644
index 0000000000..062d84bdb8
--- /dev/null
+++ b/src/oci/opsi/models/host_instance_map.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostInstanceMap(object):
+ """
+ Object containing hostname and instance name mapping.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostInstanceMap object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host_name:
+ The value to assign to the host_name property of this HostInstanceMap.
+ :type host_name: str
+
+ :param instance_name:
+ The value to assign to the instance_name property of this HostInstanceMap.
+ :type instance_name: str
+
+ """
+ self.swagger_types = {
+ 'host_name': 'str',
+ 'instance_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'host_name': 'hostName',
+ 'instance_name': 'instanceName'
+ }
+
+ self._host_name = None
+ self._instance_name = None
+
+ @property
+ def host_name(self):
+ """
+ **[Required]** Gets the host_name of this HostInstanceMap.
+ The hostname of the database insight resource.
+
+
+ :return: The host_name of this HostInstanceMap.
+ :rtype: str
+ """
+ return self._host_name
+
+ @host_name.setter
+ def host_name(self, host_name):
+ """
+ Sets the host_name of this HostInstanceMap.
+ The hostname of the database insight resource.
+
+
+ :param host_name: The host_name of this HostInstanceMap.
+ :type: str
+ """
+ self._host_name = host_name
+
+ @property
+ def instance_name(self):
+ """
+ **[Required]** Gets the instance_name of this HostInstanceMap.
+ The instance name of the database insight resource.
+
+
+ :return: The instance_name of this HostInstanceMap.
+ :rtype: str
+ """
+ return self._instance_name
+
+ @instance_name.setter
+ def instance_name(self, instance_name):
+ """
+ Sets the instance_name of this HostInstanceMap.
+ The instance name of the database insight resource.
+
+
+ :param instance_name: The instance_name of this HostInstanceMap.
+ :type: str
+ """
+ self._instance_name = instance_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_memory_configuration.py b/src/oci/opsi/models/host_memory_configuration.py
new file mode 100644
index 0000000000..c12ec562e9
--- /dev/null
+++ b/src/oci/opsi/models/host_memory_configuration.py
@@ -0,0 +1,211 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostMemoryConfiguration(HostConfigurationMetricGroup):
+ """
+ Memory Configuration metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostMemoryConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostMemoryConfiguration.metric_name` attribute
+ of this class is ``HOST_MEMORY_CONFIGURATION`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostMemoryConfiguration.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostMemoryConfiguration.
+ :type time_collected: datetime
+
+ :param page_size_in_kb:
+ The value to assign to the page_size_in_kb property of this HostMemoryConfiguration.
+ :type page_size_in_kb: float
+
+ :param page_tables_in_kb:
+ The value to assign to the page_tables_in_kb property of this HostMemoryConfiguration.
+ :type page_tables_in_kb: float
+
+ :param swap_total_in_kb:
+ The value to assign to the swap_total_in_kb property of this HostMemoryConfiguration.
+ :type swap_total_in_kb: float
+
+ :param huge_page_size_in_kb:
+ The value to assign to the huge_page_size_in_kb property of this HostMemoryConfiguration.
+ :type huge_page_size_in_kb: float
+
+ :param huge_pages_total:
+ The value to assign to the huge_pages_total property of this HostMemoryConfiguration.
+ :type huge_pages_total: int
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'page_size_in_kb': 'float',
+ 'page_tables_in_kb': 'float',
+ 'swap_total_in_kb': 'float',
+ 'huge_page_size_in_kb': 'float',
+ 'huge_pages_total': 'int'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'page_size_in_kb': 'pageSizeInKB',
+ 'page_tables_in_kb': 'pageTablesInKB',
+ 'swap_total_in_kb': 'swapTotalInKB',
+ 'huge_page_size_in_kb': 'hugePageSizeInKB',
+ 'huge_pages_total': 'hugePagesTotal'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._page_size_in_kb = None
+ self._page_tables_in_kb = None
+ self._swap_total_in_kb = None
+ self._huge_page_size_in_kb = None
+ self._huge_pages_total = None
+ self._metric_name = 'HOST_MEMORY_CONFIGURATION'
+
+ @property
+ def page_size_in_kb(self):
+ """
+ Gets the page_size_in_kb of this HostMemoryConfiguration.
+ Page size in kilobytes
+
+
+ :return: The page_size_in_kb of this HostMemoryConfiguration.
+ :rtype: float
+ """
+ return self._page_size_in_kb
+
+ @page_size_in_kb.setter
+ def page_size_in_kb(self, page_size_in_kb):
+ """
+ Sets the page_size_in_kb of this HostMemoryConfiguration.
+ Page size in kilobytes
+
+
+ :param page_size_in_kb: The page_size_in_kb of this HostMemoryConfiguration.
+ :type: float
+ """
+ self._page_size_in_kb = page_size_in_kb
+
+ @property
+ def page_tables_in_kb(self):
+ """
+ Gets the page_tables_in_kb of this HostMemoryConfiguration.
+ Amount of memory used for page tables in kilobytes
+
+
+ :return: The page_tables_in_kb of this HostMemoryConfiguration.
+ :rtype: float
+ """
+ return self._page_tables_in_kb
+
+ @page_tables_in_kb.setter
+ def page_tables_in_kb(self, page_tables_in_kb):
+ """
+ Sets the page_tables_in_kb of this HostMemoryConfiguration.
+ Amount of memory used for page tables in kilobytes
+
+
+ :param page_tables_in_kb: The page_tables_in_kb of this HostMemoryConfiguration.
+ :type: float
+ """
+ self._page_tables_in_kb = page_tables_in_kb
+
+ @property
+ def swap_total_in_kb(self):
+ """
+ Gets the swap_total_in_kb of this HostMemoryConfiguration.
+ Amount of total swap space in kilobytes
+
+
+ :return: The swap_total_in_kb of this HostMemoryConfiguration.
+ :rtype: float
+ """
+ return self._swap_total_in_kb
+
+ @swap_total_in_kb.setter
+ def swap_total_in_kb(self, swap_total_in_kb):
+ """
+ Sets the swap_total_in_kb of this HostMemoryConfiguration.
+ Amount of total swap space in kilobytes
+
+
+ :param swap_total_in_kb: The swap_total_in_kb of this HostMemoryConfiguration.
+ :type: float
+ """
+ self._swap_total_in_kb = swap_total_in_kb
+
+ @property
+ def huge_page_size_in_kb(self):
+ """
+ Gets the huge_page_size_in_kb of this HostMemoryConfiguration.
+ Size of huge pages in kilobytes
+
+
+ :return: The huge_page_size_in_kb of this HostMemoryConfiguration.
+ :rtype: float
+ """
+ return self._huge_page_size_in_kb
+
+ @huge_page_size_in_kb.setter
+ def huge_page_size_in_kb(self, huge_page_size_in_kb):
+ """
+ Sets the huge_page_size_in_kb of this HostMemoryConfiguration.
+ Size of huge pages in kilobytes
+
+
+ :param huge_page_size_in_kb: The huge_page_size_in_kb of this HostMemoryConfiguration.
+ :type: float
+ """
+ self._huge_page_size_in_kb = huge_page_size_in_kb
+
+ @property
+ def huge_pages_total(self):
+ """
+ Gets the huge_pages_total of this HostMemoryConfiguration.
+ Total number of huge pages
+
+
+ :return: The huge_pages_total of this HostMemoryConfiguration.
+ :rtype: int
+ """
+ return self._huge_pages_total
+
+ @huge_pages_total.setter
+ def huge_pages_total(self, huge_pages_total):
+ """
+ Sets the huge_pages_total of this HostMemoryConfiguration.
+ Total number of huge pages
+
+
+ :param huge_pages_total: The huge_pages_total of this HostMemoryConfiguration.
+ :type: int
+ """
+ self._huge_pages_total = huge_pages_total
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_memory_statistics.py b/src/oci/opsi/models/host_memory_statistics.py
new file mode 100644
index 0000000000..88ff6f0863
--- /dev/null
+++ b/src/oci/opsi/models/host_memory_statistics.py
@@ -0,0 +1,282 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_resource_statistics import HostResourceStatistics
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostMemoryStatistics(HostResourceStatistics):
+ """
+ Contains memory statistics.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostMemoryStatistics object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostMemoryStatistics.resource_name` attribute
+ of this class is ``HOST_MEMORY_STATISTICS`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param usage:
+ The value to assign to the usage property of this HostMemoryStatistics.
+ :type usage: float
+
+ :param capacity:
+ The value to assign to the capacity property of this HostMemoryStatistics.
+ :type capacity: float
+
+ :param utilization_percent:
+ The value to assign to the utilization_percent property of this HostMemoryStatistics.
+ :type utilization_percent: float
+
+ :param usage_change_percent:
+ The value to assign to the usage_change_percent property of this HostMemoryStatistics.
+ :type usage_change_percent: float
+
+ :param resource_name:
+ The value to assign to the resource_name property of this HostMemoryStatistics.
+ Allowed values for this property are: "HOST_CPU_STATISTICS", "HOST_MEMORY_STATISTICS"
+ :type resource_name: str
+
+ :param free_memory:
+ The value to assign to the free_memory property of this HostMemoryStatistics.
+ :type free_memory: float
+
+ :param available_memory:
+ The value to assign to the available_memory property of this HostMemoryStatistics.
+ :type available_memory: float
+
+ :param huge_pages_total:
+ The value to assign to the huge_pages_total property of this HostMemoryStatistics.
+ :type huge_pages_total: int
+
+ :param huge_page_size_in_mb:
+ The value to assign to the huge_page_size_in_mb property of this HostMemoryStatistics.
+ :type huge_page_size_in_mb: float
+
+ :param huge_pages_free:
+ The value to assign to the huge_pages_free property of this HostMemoryStatistics.
+ :type huge_pages_free: int
+
+ :param huge_pages_reserved:
+ The value to assign to the huge_pages_reserved property of this HostMemoryStatistics.
+ :type huge_pages_reserved: int
+
+ :param load:
+ The value to assign to the load property of this HostMemoryStatistics.
+ :type load: oci.opsi.models.SummaryStatistics
+
+ """
+ self.swagger_types = {
+ 'usage': 'float',
+ 'capacity': 'float',
+ 'utilization_percent': 'float',
+ 'usage_change_percent': 'float',
+ 'resource_name': 'str',
+ 'free_memory': 'float',
+ 'available_memory': 'float',
+ 'huge_pages_total': 'int',
+ 'huge_page_size_in_mb': 'float',
+ 'huge_pages_free': 'int',
+ 'huge_pages_reserved': 'int',
+ 'load': 'SummaryStatistics'
+ }
+
+ self.attribute_map = {
+ 'usage': 'usage',
+ 'capacity': 'capacity',
+ 'utilization_percent': 'utilizationPercent',
+ 'usage_change_percent': 'usageChangePercent',
+ 'resource_name': 'resourceName',
+ 'free_memory': 'freeMemory',
+ 'available_memory': 'availableMemory',
+ 'huge_pages_total': 'hugePagesTotal',
+ 'huge_page_size_in_mb': 'hugePageSizeInMB',
+ 'huge_pages_free': 'hugePagesFree',
+ 'huge_pages_reserved': 'hugePagesReserved',
+ 'load': 'load'
+ }
+
+ self._usage = None
+ self._capacity = None
+ self._utilization_percent = None
+ self._usage_change_percent = None
+ self._resource_name = None
+ self._free_memory = None
+ self._available_memory = None
+ self._huge_pages_total = None
+ self._huge_page_size_in_mb = None
+ self._huge_pages_free = None
+ self._huge_pages_reserved = None
+ self._load = None
+ self._resource_name = 'HOST_MEMORY_STATISTICS'
+
+ @property
+ def free_memory(self):
+ """
+ Gets the free_memory of this HostMemoryStatistics.
+
+ :return: The free_memory of this HostMemoryStatistics.
+ :rtype: float
+ """
+ return self._free_memory
+
+ @free_memory.setter
+ def free_memory(self, free_memory):
+ """
+ Sets the free_memory of this HostMemoryStatistics.
+
+ :param free_memory: The free_memory of this HostMemoryStatistics.
+ :type: float
+ """
+ self._free_memory = free_memory
+
+ @property
+ def available_memory(self):
+ """
+ Gets the available_memory of this HostMemoryStatistics.
+
+ :return: The available_memory of this HostMemoryStatistics.
+ :rtype: float
+ """
+ return self._available_memory
+
+ @available_memory.setter
+ def available_memory(self, available_memory):
+ """
+ Sets the available_memory of this HostMemoryStatistics.
+
+ :param available_memory: The available_memory of this HostMemoryStatistics.
+ :type: float
+ """
+ self._available_memory = available_memory
+
+ @property
+ def huge_pages_total(self):
+ """
+ Gets the huge_pages_total of this HostMemoryStatistics.
+ Total number of huge pages.
+
+
+ :return: The huge_pages_total of this HostMemoryStatistics.
+ :rtype: int
+ """
+ return self._huge_pages_total
+
+ @huge_pages_total.setter
+ def huge_pages_total(self, huge_pages_total):
+ """
+ Sets the huge_pages_total of this HostMemoryStatistics.
+ Total number of huge pages.
+
+
+ :param huge_pages_total: The huge_pages_total of this HostMemoryStatistics.
+ :type: int
+ """
+ self._huge_pages_total = huge_pages_total
+
+ @property
+ def huge_page_size_in_mb(self):
+ """
+ Gets the huge_page_size_in_mb of this HostMemoryStatistics.
+ Size of huge pages in megabytes.
+
+
+ :return: The huge_page_size_in_mb of this HostMemoryStatistics.
+ :rtype: float
+ """
+ return self._huge_page_size_in_mb
+
+ @huge_page_size_in_mb.setter
+ def huge_page_size_in_mb(self, huge_page_size_in_mb):
+ """
+ Sets the huge_page_size_in_mb of this HostMemoryStatistics.
+ Size of huge pages in megabytes.
+
+
+ :param huge_page_size_in_mb: The huge_page_size_in_mb of this HostMemoryStatistics.
+ :type: float
+ """
+ self._huge_page_size_in_mb = huge_page_size_in_mb
+
+ @property
+ def huge_pages_free(self):
+ """
+ Gets the huge_pages_free of this HostMemoryStatistics.
+ Total number of available huge pages.
+
+
+ :return: The huge_pages_free of this HostMemoryStatistics.
+ :rtype: int
+ """
+ return self._huge_pages_free
+
+ @huge_pages_free.setter
+ def huge_pages_free(self, huge_pages_free):
+ """
+ Sets the huge_pages_free of this HostMemoryStatistics.
+ Total number of available huge pages.
+
+
+ :param huge_pages_free: The huge_pages_free of this HostMemoryStatistics.
+ :type: int
+ """
+ self._huge_pages_free = huge_pages_free
+
+ @property
+ def huge_pages_reserved(self):
+ """
+ Gets the huge_pages_reserved of this HostMemoryStatistics.
+ Total number of huge pages which are used or reserved.
+
+
+ :return: The huge_pages_reserved of this HostMemoryStatistics.
+ :rtype: int
+ """
+ return self._huge_pages_reserved
+
+ @huge_pages_reserved.setter
+ def huge_pages_reserved(self, huge_pages_reserved):
+ """
+ Sets the huge_pages_reserved of this HostMemoryStatistics.
+ Total number of huge pages which are used or reserved.
+
+
+ :param huge_pages_reserved: The huge_pages_reserved of this HostMemoryStatistics.
+ :type: int
+ """
+ self._huge_pages_reserved = huge_pages_reserved
+
+ @property
+ def load(self):
+ """
+ Gets the load of this HostMemoryStatistics.
+
+ :return: The load of this HostMemoryStatistics.
+ :rtype: oci.opsi.models.SummaryStatistics
+ """
+ return self._load
+
+ @load.setter
+ def load(self, load):
+ """
+ Sets the load of this HostMemoryStatistics.
+
+ :param load: The load of this HostMemoryStatistics.
+ :type: oci.opsi.models.SummaryStatistics
+ """
+ self._load = load
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_memory_usage.py b/src/oci/opsi/models/host_memory_usage.py
new file mode 100644
index 0000000000..968a59fce7
--- /dev/null
+++ b/src/oci/opsi/models/host_memory_usage.py
@@ -0,0 +1,490 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_performance_metric_group import HostPerformanceMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostMemoryUsage(HostPerformanceMetricGroup):
+ """
+ Memory usage metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostMemoryUsage object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostMemoryUsage.metric_name` attribute
+ of this class is ``HOST_MEMORY_USAGE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostMemoryUsage.
+ Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostMemoryUsage.
+ :type time_collected: datetime
+
+ :param memory_used_in_gb:
+ The value to assign to the memory_used_in_gb property of this HostMemoryUsage.
+ :type memory_used_in_gb: float
+
+ :param memory_utilization_in_percent:
+ The value to assign to the memory_utilization_in_percent property of this HostMemoryUsage.
+ :type memory_utilization_in_percent: float
+
+ :param memory_load_in_gb:
+ The value to assign to the memory_load_in_gb property of this HostMemoryUsage.
+ :type memory_load_in_gb: float
+
+ :param real_memory_in_kb:
+ The value to assign to the real_memory_in_kb property of this HostMemoryUsage.
+ :type real_memory_in_kb: float
+
+ :param free_memory_in_kb:
+ The value to assign to the free_memory_in_kb property of this HostMemoryUsage.
+ :type free_memory_in_kb: float
+
+ :param logical_memory_used_in_gb:
+ The value to assign to the logical_memory_used_in_gb property of this HostMemoryUsage.
+ :type logical_memory_used_in_gb: float
+
+ :param logical_memory_utilization_in_percent:
+ The value to assign to the logical_memory_utilization_in_percent property of this HostMemoryUsage.
+ :type logical_memory_utilization_in_percent: float
+
+ :param free_logical_memory_in_kb:
+ The value to assign to the free_logical_memory_in_kb property of this HostMemoryUsage.
+ :type free_logical_memory_in_kb: float
+
+ :param major_page_faults:
+ The value to assign to the major_page_faults property of this HostMemoryUsage.
+ :type major_page_faults: int
+
+ :param swap_free_in_kb:
+ The value to assign to the swap_free_in_kb property of this HostMemoryUsage.
+ :type swap_free_in_kb: float
+
+ :param anon_huge_pages_in_kb:
+ The value to assign to the anon_huge_pages_in_kb property of this HostMemoryUsage.
+ :type anon_huge_pages_in_kb: float
+
+ :param huge_pages_free:
+ The value to assign to the huge_pages_free property of this HostMemoryUsage.
+ :type huge_pages_free: int
+
+ :param huge_pages_reserved:
+ The value to assign to the huge_pages_reserved property of this HostMemoryUsage.
+ :type huge_pages_reserved: int
+
+ :param huge_pages_surplus:
+ The value to assign to the huge_pages_surplus property of this HostMemoryUsage.
+ :type huge_pages_surplus: int
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'memory_used_in_gb': 'float',
+ 'memory_utilization_in_percent': 'float',
+ 'memory_load_in_gb': 'float',
+ 'real_memory_in_kb': 'float',
+ 'free_memory_in_kb': 'float',
+ 'logical_memory_used_in_gb': 'float',
+ 'logical_memory_utilization_in_percent': 'float',
+ 'free_logical_memory_in_kb': 'float',
+ 'major_page_faults': 'int',
+ 'swap_free_in_kb': 'float',
+ 'anon_huge_pages_in_kb': 'float',
+ 'huge_pages_free': 'int',
+ 'huge_pages_reserved': 'int',
+ 'huge_pages_surplus': 'int'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'memory_used_in_gb': 'memoryUsedInGB',
+ 'memory_utilization_in_percent': 'memoryUtilizationInPercent',
+ 'memory_load_in_gb': 'memoryLoadInGB',
+ 'real_memory_in_kb': 'realMemoryInKB',
+ 'free_memory_in_kb': 'freeMemoryInKB',
+ 'logical_memory_used_in_gb': 'logicalMemoryUsedInGB',
+ 'logical_memory_utilization_in_percent': 'logicalMemoryUtilizationInPercent',
+ 'free_logical_memory_in_kb': 'freeLogicalMemoryInKB',
+ 'major_page_faults': 'majorPageFaults',
+ 'swap_free_in_kb': 'swapFreeInKB',
+ 'anon_huge_pages_in_kb': 'anonHugePagesInKB',
+ 'huge_pages_free': 'hugePagesFree',
+ 'huge_pages_reserved': 'hugePagesReserved',
+ 'huge_pages_surplus': 'hugePagesSurplus'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._memory_used_in_gb = None
+ self._memory_utilization_in_percent = None
+ self._memory_load_in_gb = None
+ self._real_memory_in_kb = None
+ self._free_memory_in_kb = None
+ self._logical_memory_used_in_gb = None
+ self._logical_memory_utilization_in_percent = None
+ self._free_logical_memory_in_kb = None
+ self._major_page_faults = None
+ self._swap_free_in_kb = None
+ self._anon_huge_pages_in_kb = None
+ self._huge_pages_free = None
+ self._huge_pages_reserved = None
+ self._huge_pages_surplus = None
+ self._metric_name = 'HOST_MEMORY_USAGE'
+
+ @property
+ def memory_used_in_gb(self):
+ """
+ Gets the memory_used_in_gb of this HostMemoryUsage.
+ Amount of physical memory used in gigabytes
+
+
+ :return: The memory_used_in_gb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._memory_used_in_gb
+
+ @memory_used_in_gb.setter
+ def memory_used_in_gb(self, memory_used_in_gb):
+ """
+ Sets the memory_used_in_gb of this HostMemoryUsage.
+ Amount of physical memory used in gigabytes
+
+
+ :param memory_used_in_gb: The memory_used_in_gb of this HostMemoryUsage.
+ :type: float
+ """
+ self._memory_used_in_gb = memory_used_in_gb
+
+ @property
+ def memory_utilization_in_percent(self):
+ """
+ Gets the memory_utilization_in_percent of this HostMemoryUsage.
+ Amount of physical memory used in percentage
+
+
+ :return: The memory_utilization_in_percent of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._memory_utilization_in_percent
+
+ @memory_utilization_in_percent.setter
+ def memory_utilization_in_percent(self, memory_utilization_in_percent):
+ """
+ Sets the memory_utilization_in_percent of this HostMemoryUsage.
+ Amount of physical memory used in percentage
+
+
+ :param memory_utilization_in_percent: The memory_utilization_in_percent of this HostMemoryUsage.
+ :type: float
+ """
+ self._memory_utilization_in_percent = memory_utilization_in_percent
+
+ @property
+ def memory_load_in_gb(self):
+ """
+ Gets the memory_load_in_gb of this HostMemoryUsage.
+ Load on memory in gigabytes
+
+
+ :return: The memory_load_in_gb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._memory_load_in_gb
+
+ @memory_load_in_gb.setter
+ def memory_load_in_gb(self, memory_load_in_gb):
+ """
+ Sets the memory_load_in_gb of this HostMemoryUsage.
+ Load on memory in gigabytes
+
+
+ :param memory_load_in_gb: The memory_load_in_gb of this HostMemoryUsage.
+ :type: float
+ """
+ self._memory_load_in_gb = memory_load_in_gb
+
+ @property
+ def real_memory_in_kb(self):
+ """
+ Gets the real_memory_in_kb of this HostMemoryUsage.
+ Amount of usable physical memory in kilobytes
+
+
+ :return: The real_memory_in_kb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._real_memory_in_kb
+
+ @real_memory_in_kb.setter
+ def real_memory_in_kb(self, real_memory_in_kb):
+ """
+ Sets the real_memory_in_kb of this HostMemoryUsage.
+ Amount of usable physical memory in kilobytes
+
+
+ :param real_memory_in_kb: The real_memory_in_kb of this HostMemoryUsage.
+ :type: float
+ """
+ self._real_memory_in_kb = real_memory_in_kb
+
+ @property
+ def free_memory_in_kb(self):
+ """
+ Gets the free_memory_in_kb of this HostMemoryUsage.
+ Amount of available physical memory in kilobytes
+
+
+ :return: The free_memory_in_kb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._free_memory_in_kb
+
+ @free_memory_in_kb.setter
+ def free_memory_in_kb(self, free_memory_in_kb):
+ """
+ Sets the free_memory_in_kb of this HostMemoryUsage.
+ Amount of available physical memory in kilobytes
+
+
+ :param free_memory_in_kb: The free_memory_in_kb of this HostMemoryUsage.
+ :type: float
+ """
+ self._free_memory_in_kb = free_memory_in_kb
+
+ @property
+ def logical_memory_used_in_gb(self):
+ """
+ Gets the logical_memory_used_in_gb of this HostMemoryUsage.
+ Memory used excluding buffers and cache in gigabytes
+
+
+ :return: The logical_memory_used_in_gb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._logical_memory_used_in_gb
+
+ @logical_memory_used_in_gb.setter
+ def logical_memory_used_in_gb(self, logical_memory_used_in_gb):
+ """
+ Sets the logical_memory_used_in_gb of this HostMemoryUsage.
+ Memory used excluding buffers and cache in gigabytes
+
+
+ :param logical_memory_used_in_gb: The logical_memory_used_in_gb of this HostMemoryUsage.
+ :type: float
+ """
+ self._logical_memory_used_in_gb = logical_memory_used_in_gb
+
+ @property
+ def logical_memory_utilization_in_percent(self):
+ """
+ Gets the logical_memory_utilization_in_percent of this HostMemoryUsage.
+ Amount of logical memory used in percentage
+
+
+ :return: The logical_memory_utilization_in_percent of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._logical_memory_utilization_in_percent
+
+ @logical_memory_utilization_in_percent.setter
+ def logical_memory_utilization_in_percent(self, logical_memory_utilization_in_percent):
+ """
+ Sets the logical_memory_utilization_in_percent of this HostMemoryUsage.
+ Amount of logical memory used in percentage
+
+
+ :param logical_memory_utilization_in_percent: The logical_memory_utilization_in_percent of this HostMemoryUsage.
+ :type: float
+ """
+ self._logical_memory_utilization_in_percent = logical_memory_utilization_in_percent
+
+ @property
+ def free_logical_memory_in_kb(self):
+ """
+ Gets the free_logical_memory_in_kb of this HostMemoryUsage.
+ Amount of avaiable virtual memory in kilobytes
+
+
+ :return: The free_logical_memory_in_kb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._free_logical_memory_in_kb
+
+ @free_logical_memory_in_kb.setter
+ def free_logical_memory_in_kb(self, free_logical_memory_in_kb):
+ """
+ Sets the free_logical_memory_in_kb of this HostMemoryUsage.
+ Amount of avaiable virtual memory in kilobytes
+
+
+ :param free_logical_memory_in_kb: The free_logical_memory_in_kb of this HostMemoryUsage.
+ :type: float
+ """
+ self._free_logical_memory_in_kb = free_logical_memory_in_kb
+
+ @property
+ def major_page_faults(self):
+ """
+ Gets the major_page_faults of this HostMemoryUsage.
+ Number of major page faults
+
+
+ :return: The major_page_faults of this HostMemoryUsage.
+ :rtype: int
+ """
+ return self._major_page_faults
+
+ @major_page_faults.setter
+ def major_page_faults(self, major_page_faults):
+ """
+ Sets the major_page_faults of this HostMemoryUsage.
+ Number of major page faults
+
+
+ :param major_page_faults: The major_page_faults of this HostMemoryUsage.
+ :type: int
+ """
+ self._major_page_faults = major_page_faults
+
+ @property
+ def swap_free_in_kb(self):
+ """
+ Gets the swap_free_in_kb of this HostMemoryUsage.
+ Amount of available swap space in kilobytes
+
+
+ :return: The swap_free_in_kb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._swap_free_in_kb
+
+ @swap_free_in_kb.setter
+ def swap_free_in_kb(self, swap_free_in_kb):
+ """
+ Sets the swap_free_in_kb of this HostMemoryUsage.
+ Amount of available swap space in kilobytes
+
+
+ :param swap_free_in_kb: The swap_free_in_kb of this HostMemoryUsage.
+ :type: float
+ """
+ self._swap_free_in_kb = swap_free_in_kb
+
+ @property
+ def anon_huge_pages_in_kb(self):
+ """
+ Gets the anon_huge_pages_in_kb of this HostMemoryUsage.
+ Amount of memory used for anon huge pages in kilobytes
+
+
+ :return: The anon_huge_pages_in_kb of this HostMemoryUsage.
+ :rtype: float
+ """
+ return self._anon_huge_pages_in_kb
+
+ @anon_huge_pages_in_kb.setter
+ def anon_huge_pages_in_kb(self, anon_huge_pages_in_kb):
+ """
+ Sets the anon_huge_pages_in_kb of this HostMemoryUsage.
+ Amount of memory used for anon huge pages in kilobytes
+
+
+ :param anon_huge_pages_in_kb: The anon_huge_pages_in_kb of this HostMemoryUsage.
+ :type: float
+ """
+ self._anon_huge_pages_in_kb = anon_huge_pages_in_kb
+
+ @property
+ def huge_pages_free(self):
+ """
+ Gets the huge_pages_free of this HostMemoryUsage.
+ Number of available huge pages
+
+
+ :return: The huge_pages_free of this HostMemoryUsage.
+ :rtype: int
+ """
+ return self._huge_pages_free
+
+ @huge_pages_free.setter
+ def huge_pages_free(self, huge_pages_free):
+ """
+ Sets the huge_pages_free of this HostMemoryUsage.
+ Number of available huge pages
+
+
+ :param huge_pages_free: The huge_pages_free of this HostMemoryUsage.
+ :type: int
+ """
+ self._huge_pages_free = huge_pages_free
+
+ @property
+ def huge_pages_reserved(self):
+ """
+ Gets the huge_pages_reserved of this HostMemoryUsage.
+ Number of reserved huge pages
+
+
+ :return: The huge_pages_reserved of this HostMemoryUsage.
+ :rtype: int
+ """
+ return self._huge_pages_reserved
+
+ @huge_pages_reserved.setter
+ def huge_pages_reserved(self, huge_pages_reserved):
+ """
+ Sets the huge_pages_reserved of this HostMemoryUsage.
+ Number of reserved huge pages
+
+
+ :param huge_pages_reserved: The huge_pages_reserved of this HostMemoryUsage.
+ :type: int
+ """
+ self._huge_pages_reserved = huge_pages_reserved
+
+ @property
+ def huge_pages_surplus(self):
+ """
+ Gets the huge_pages_surplus of this HostMemoryUsage.
+ Number of surplus huge pages
+
+
+ :return: The huge_pages_surplus of this HostMemoryUsage.
+ :rtype: int
+ """
+ return self._huge_pages_surplus
+
+ @huge_pages_surplus.setter
+ def huge_pages_surplus(self, huge_pages_surplus):
+ """
+ Sets the huge_pages_surplus of this HostMemoryUsage.
+ Number of surplus huge pages
+
+
+ :param huge_pages_surplus: The huge_pages_surplus of this HostMemoryUsage.
+ :type: int
+ """
+ self._huge_pages_surplus = huge_pages_surplus
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_network_activity_summary.py b/src/oci/opsi/models/host_network_activity_summary.py
new file mode 100644
index 0000000000..ab99a5f42d
--- /dev/null
+++ b/src/oci/opsi/models/host_network_activity_summary.py
@@ -0,0 +1,149 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_performance_metric_group import HostPerformanceMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostNetworkActivitySummary(HostPerformanceMetricGroup):
+ """
+ Network Activity Summary metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostNetworkActivitySummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostNetworkActivitySummary.metric_name` attribute
+ of this class is ``HOST_NETWORK_ACTIVITY_SUMMARY`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostNetworkActivitySummary.
+ Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostNetworkActivitySummary.
+ :type time_collected: datetime
+
+ :param all_network_read_in_mbps:
+ The value to assign to the all_network_read_in_mbps property of this HostNetworkActivitySummary.
+ :type all_network_read_in_mbps: float
+
+ :param all_network_write_in_mbps:
+ The value to assign to the all_network_write_in_mbps property of this HostNetworkActivitySummary.
+ :type all_network_write_in_mbps: float
+
+ :param all_network_io_in_mbps:
+ The value to assign to the all_network_io_in_mbps property of this HostNetworkActivitySummary.
+ :type all_network_io_in_mbps: float
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'all_network_read_in_mbps': 'float',
+ 'all_network_write_in_mbps': 'float',
+ 'all_network_io_in_mbps': 'float'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'all_network_read_in_mbps': 'allNetworkReadInMbps',
+ 'all_network_write_in_mbps': 'allNetworkWriteInMbps',
+ 'all_network_io_in_mbps': 'allNetworkIoInMbps'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._all_network_read_in_mbps = None
+ self._all_network_write_in_mbps = None
+ self._all_network_io_in_mbps = None
+ self._metric_name = 'HOST_NETWORK_ACTIVITY_SUMMARY'
+
+ @property
+ def all_network_read_in_mbps(self):
+ """
+ Gets the all_network_read_in_mbps of this HostNetworkActivitySummary.
+ All network interfaces read rate in Mbps
+
+
+ :return: The all_network_read_in_mbps of this HostNetworkActivitySummary.
+ :rtype: float
+ """
+ return self._all_network_read_in_mbps
+
+ @all_network_read_in_mbps.setter
+ def all_network_read_in_mbps(self, all_network_read_in_mbps):
+ """
+ Sets the all_network_read_in_mbps of this HostNetworkActivitySummary.
+ All network interfaces read rate in Mbps
+
+
+ :param all_network_read_in_mbps: The all_network_read_in_mbps of this HostNetworkActivitySummary.
+ :type: float
+ """
+ self._all_network_read_in_mbps = all_network_read_in_mbps
+
+ @property
+ def all_network_write_in_mbps(self):
+ """
+ Gets the all_network_write_in_mbps of this HostNetworkActivitySummary.
+ All network interfaces write rate in Mbps
+
+
+ :return: The all_network_write_in_mbps of this HostNetworkActivitySummary.
+ :rtype: float
+ """
+ return self._all_network_write_in_mbps
+
+ @all_network_write_in_mbps.setter
+ def all_network_write_in_mbps(self, all_network_write_in_mbps):
+ """
+ Sets the all_network_write_in_mbps of this HostNetworkActivitySummary.
+ All network interfaces write rate in Mbps
+
+
+ :param all_network_write_in_mbps: The all_network_write_in_mbps of this HostNetworkActivitySummary.
+ :type: float
+ """
+ self._all_network_write_in_mbps = all_network_write_in_mbps
+
+ @property
+ def all_network_io_in_mbps(self):
+ """
+ Gets the all_network_io_in_mbps of this HostNetworkActivitySummary.
+ All network interfaces IO rate in Mbps
+
+
+ :return: The all_network_io_in_mbps of this HostNetworkActivitySummary.
+ :rtype: float
+ """
+ return self._all_network_io_in_mbps
+
+ @all_network_io_in_mbps.setter
+ def all_network_io_in_mbps(self, all_network_io_in_mbps):
+ """
+ Sets the all_network_io_in_mbps of this HostNetworkActivitySummary.
+ All network interfaces IO rate in Mbps
+
+
+ :param all_network_io_in_mbps: The all_network_io_in_mbps of this HostNetworkActivitySummary.
+ :type: float
+ """
+ self._all_network_io_in_mbps = all_network_io_in_mbps
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_network_configuration.py b/src/oci/opsi/models/host_network_configuration.py
new file mode 100644
index 0000000000..9a17b84312
--- /dev/null
+++ b/src/oci/opsi/models/host_network_configuration.py
@@ -0,0 +1,149 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostNetworkConfiguration(HostConfigurationMetricGroup):
+ """
+ Network Configuration metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostNetworkConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostNetworkConfiguration.metric_name` attribute
+ of this class is ``HOST_NETWORK_CONFIGURATION`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostNetworkConfiguration.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostNetworkConfiguration.
+ :type time_collected: datetime
+
+ :param interface_name:
+ The value to assign to the interface_name property of this HostNetworkConfiguration.
+ :type interface_name: str
+
+ :param ip_address:
+ The value to assign to the ip_address property of this HostNetworkConfiguration.
+ :type ip_address: str
+
+ :param mac_address:
+ The value to assign to the mac_address property of this HostNetworkConfiguration.
+ :type mac_address: str
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'interface_name': 'str',
+ 'ip_address': 'str',
+ 'mac_address': 'str'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'interface_name': 'interfaceName',
+ 'ip_address': 'ipAddress',
+ 'mac_address': 'macAddress'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._interface_name = None
+ self._ip_address = None
+ self._mac_address = None
+ self._metric_name = 'HOST_NETWORK_CONFIGURATION'
+
+ @property
+ def interface_name(self):
+ """
+ **[Required]** Gets the interface_name of this HostNetworkConfiguration.
+ Name of the network interface
+
+
+ :return: The interface_name of this HostNetworkConfiguration.
+ :rtype: str
+ """
+ return self._interface_name
+
+ @interface_name.setter
+ def interface_name(self, interface_name):
+ """
+ Sets the interface_name of this HostNetworkConfiguration.
+ Name of the network interface
+
+
+ :param interface_name: The interface_name of this HostNetworkConfiguration.
+ :type: str
+ """
+ self._interface_name = interface_name
+
+ @property
+ def ip_address(self):
+ """
+ **[Required]** Gets the ip_address of this HostNetworkConfiguration.
+ IP address (IPv4 or IPv6) of the network interface
+
+
+ :return: The ip_address of this HostNetworkConfiguration.
+ :rtype: str
+ """
+ return self._ip_address
+
+ @ip_address.setter
+ def ip_address(self, ip_address):
+ """
+ Sets the ip_address of this HostNetworkConfiguration.
+ IP address (IPv4 or IPv6) of the network interface
+
+
+ :param ip_address: The ip_address of this HostNetworkConfiguration.
+ :type: str
+ """
+ self._ip_address = ip_address
+
+ @property
+ def mac_address(self):
+ """
+ Gets the mac_address of this HostNetworkConfiguration.
+ MAC address of the network interface. MAC address is a 12-digit hexadecimal number separated by colons or dashes or dots. Following formats are accepted: MM:MM:MM:SS:SS:SS, MM-MM-MM-SS-SS-SS, MM.MM.MM.SS.SS.SS, MMM:MMM:SSS:SSS, MMM-MMM-SSS-SSS, MMM.MMM.SSS.SSS, MMMM:MMSS:SSSS, MMMM-MMSS-SSSS, MMMM.MMSS.SSSS
+
+
+ :return: The mac_address of this HostNetworkConfiguration.
+ :rtype: str
+ """
+ return self._mac_address
+
+ @mac_address.setter
+ def mac_address(self, mac_address):
+ """
+ Sets the mac_address of this HostNetworkConfiguration.
+ MAC address of the network interface. MAC address is a 12-digit hexadecimal number separated by colons or dashes or dots. Following formats are accepted: MM:MM:MM:SS:SS:SS, MM-MM-MM-SS-SS-SS, MM.MM.MM.SS.SS.SS, MMM:MMM:SSS:SSS, MMM-MMM-SSS-SSS, MMM.MMM.SSS.SSS, MMMM:MMSS:SSSS, MMMM-MMSS-SSSS, MMMM.MMSS.SSSS
+
+
+ :param mac_address: The mac_address of this HostNetworkConfiguration.
+ :type: str
+ """
+ self._mac_address = mac_address
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_performance_metric_group.py b/src/oci/opsi/models/host_performance_metric_group.py
new file mode 100644
index 0000000000..0a132ac547
--- /dev/null
+++ b/src/oci/opsi/models/host_performance_metric_group.py
@@ -0,0 +1,149 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostPerformanceMetricGroup(object):
+ """
+ Base Metric Group for Host performance metrics
+ """
+
+ #: A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
+ #: This constant has a value of "HOST_CPU_USAGE"
+ METRIC_NAME_HOST_CPU_USAGE = "HOST_CPU_USAGE"
+
+ #: A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
+ #: This constant has a value of "HOST_MEMORY_USAGE"
+ METRIC_NAME_HOST_MEMORY_USAGE = "HOST_MEMORY_USAGE"
+
+ #: A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
+ #: This constant has a value of "HOST_NETWORK_ACTIVITY_SUMMARY"
+ METRIC_NAME_HOST_NETWORK_ACTIVITY_SUMMARY = "HOST_NETWORK_ACTIVITY_SUMMARY"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostPerformanceMetricGroup object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.HostMemoryUsage`
+ * :class:`~oci.opsi.models.HostCpuUsage`
+ * :class:`~oci.opsi.models.HostNetworkActivitySummary`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostPerformanceMetricGroup.
+ Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostPerformanceMetricGroup.
+ :type time_collected: datetime
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['metricName']
+
+ if type == 'HOST_MEMORY_USAGE':
+ return 'HostMemoryUsage'
+
+ if type == 'HOST_CPU_USAGE':
+ return 'HostCpuUsage'
+
+ if type == 'HOST_NETWORK_ACTIVITY_SUMMARY':
+ return 'HostNetworkActivitySummary'
+ else:
+ return 'HostPerformanceMetricGroup'
+
+ @property
+ def metric_name(self):
+ """
+ **[Required]** Gets the metric_name of this HostPerformanceMetricGroup.
+ Name of the metric group
+
+ Allowed values for this property are: "HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY"
+
+
+ :return: The metric_name of this HostPerformanceMetricGroup.
+ :rtype: str
+ """
+ return self._metric_name
+
+ @metric_name.setter
+ def metric_name(self, metric_name):
+ """
+ Sets the metric_name of this HostPerformanceMetricGroup.
+ Name of the metric group
+
+
+ :param metric_name: The metric_name of this HostPerformanceMetricGroup.
+ :type: str
+ """
+ allowed_values = ["HOST_CPU_USAGE", "HOST_MEMORY_USAGE", "HOST_NETWORK_ACTIVITY_SUMMARY"]
+ if not value_allowed_none_or_none_sentinel(metric_name, allowed_values):
+ raise ValueError(
+ "Invalid value for `metric_name`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._metric_name = metric_name
+
+ @property
+ def time_collected(self):
+ """
+ **[Required]** Gets the time_collected of this HostPerformanceMetricGroup.
+ Collection timestamp
+ Example: `\"2020-05-06T00:00:00.000Z\"`
+
+
+ :return: The time_collected of this HostPerformanceMetricGroup.
+ :rtype: datetime
+ """
+ return self._time_collected
+
+ @time_collected.setter
+ def time_collected(self, time_collected):
+ """
+ Sets the time_collected of this HostPerformanceMetricGroup.
+ Collection timestamp
+ Example: `\"2020-05-06T00:00:00.000Z\"`
+
+
+ :param time_collected: The time_collected of this HostPerformanceMetricGroup.
+ :type: datetime
+ """
+ self._time_collected = time_collected
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_product.py b/src/oci/opsi/models/host_product.py
new file mode 100644
index 0000000000..345be824a9
--- /dev/null
+++ b/src/oci/opsi/models/host_product.py
@@ -0,0 +1,149 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostProduct(HostConfigurationMetricGroup):
+ """
+ Product metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostProduct object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostProduct.metric_name` attribute
+ of this class is ``HOST_PRODUCT`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostProduct.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostProduct.
+ :type time_collected: datetime
+
+ :param vendor:
+ The value to assign to the vendor property of this HostProduct.
+ :type vendor: str
+
+ :param name:
+ The value to assign to the name property of this HostProduct.
+ :type name: str
+
+ :param version:
+ The value to assign to the version property of this HostProduct.
+ :type version: str
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'vendor': 'str',
+ 'name': 'str',
+ 'version': 'str'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'vendor': 'vendor',
+ 'name': 'name',
+ 'version': 'version'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._vendor = None
+ self._name = None
+ self._version = None
+ self._metric_name = 'HOST_PRODUCT'
+
+ @property
+ def vendor(self):
+ """
+ Gets the vendor of this HostProduct.
+ Vendor of the product
+
+
+ :return: The vendor of this HostProduct.
+ :rtype: str
+ """
+ return self._vendor
+
+ @vendor.setter
+ def vendor(self, vendor):
+ """
+ Sets the vendor of this HostProduct.
+ Vendor of the product
+
+
+ :param vendor: The vendor of this HostProduct.
+ :type: str
+ """
+ self._vendor = vendor
+
+ @property
+ def name(self):
+ """
+ Gets the name of this HostProduct.
+ Name of the product
+
+
+ :return: The name of this HostProduct.
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """
+ Sets the name of this HostProduct.
+ Name of the product
+
+
+ :param name: The name of this HostProduct.
+ :type: str
+ """
+ self._name = name
+
+ @property
+ def version(self):
+ """
+ Gets the version of this HostProduct.
+ Version of the product
+
+
+ :return: The version of this HostProduct.
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """
+ Sets the version of this HostProduct.
+ Version of the product
+
+
+ :param version: The version of this HostProduct.
+ :type: str
+ """
+ self._version = version
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_resource_allocation.py b/src/oci/opsi/models/host_resource_allocation.py
new file mode 100644
index 0000000000..55cc96a08d
--- /dev/null
+++ b/src/oci/opsi/models/host_resource_allocation.py
@@ -0,0 +1,118 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_configuration_metric_group import HostConfigurationMetricGroup
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostResourceAllocation(HostConfigurationMetricGroup):
+ """
+ Resource Allocation metric for the host
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostResourceAllocation object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostResourceAllocation.metric_name` attribute
+ of this class is ``HOST_RESOURCE_ALLOCATION`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param metric_name:
+ The value to assign to the metric_name property of this HostResourceAllocation.
+ Allowed values for this property are: "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION", "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION", "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION", "HOST_ENTITES"
+ :type metric_name: str
+
+ :param time_collected:
+ The value to assign to the time_collected property of this HostResourceAllocation.
+ :type time_collected: datetime
+
+ :param total_cpus:
+ The value to assign to the total_cpus property of this HostResourceAllocation.
+ :type total_cpus: int
+
+ :param total_memory_in_gb:
+ The value to assign to the total_memory_in_gb property of this HostResourceAllocation.
+ :type total_memory_in_gb: float
+
+ """
+ self.swagger_types = {
+ 'metric_name': 'str',
+ 'time_collected': 'datetime',
+ 'total_cpus': 'int',
+ 'total_memory_in_gb': 'float'
+ }
+
+ self.attribute_map = {
+ 'metric_name': 'metricName',
+ 'time_collected': 'timeCollected',
+ 'total_cpus': 'totalCpus',
+ 'total_memory_in_gb': 'totalMemoryInGB'
+ }
+
+ self._metric_name = None
+ self._time_collected = None
+ self._total_cpus = None
+ self._total_memory_in_gb = None
+ self._metric_name = 'HOST_RESOURCE_ALLOCATION'
+
+ @property
+ def total_cpus(self):
+ """
+ Gets the total_cpus of this HostResourceAllocation.
+ Total number of CPUs available
+
+
+ :return: The total_cpus of this HostResourceAllocation.
+ :rtype: int
+ """
+ return self._total_cpus
+
+ @total_cpus.setter
+ def total_cpus(self, total_cpus):
+ """
+ Sets the total_cpus of this HostResourceAllocation.
+ Total number of CPUs available
+
+
+ :param total_cpus: The total_cpus of this HostResourceAllocation.
+ :type: int
+ """
+ self._total_cpus = total_cpus
+
+ @property
+ def total_memory_in_gb(self):
+ """
+ Gets the total_memory_in_gb of this HostResourceAllocation.
+ Total amount of usable physical memory in gibabytes
+
+
+ :return: The total_memory_in_gb of this HostResourceAllocation.
+ :rtype: float
+ """
+ return self._total_memory_in_gb
+
+ @total_memory_in_gb.setter
+ def total_memory_in_gb(self, total_memory_in_gb):
+ """
+ Sets the total_memory_in_gb of this HostResourceAllocation.
+ Total amount of usable physical memory in gibabytes
+
+
+ :param total_memory_in_gb: The total_memory_in_gb of this HostResourceAllocation.
+ :type: float
+ """
+ self._total_memory_in_gb = total_memory_in_gb
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_resource_capacity_trend_aggregation.py b/src/oci/opsi/models/host_resource_capacity_trend_aggregation.py
new file mode 100644
index 0000000000..64498db008
--- /dev/null
+++ b/src/oci/opsi/models/host_resource_capacity_trend_aggregation.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostResourceCapacityTrendAggregation(object):
+ """
+ Host Resource Capacity samples
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostResourceCapacityTrendAggregation object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param end_timestamp:
+ The value to assign to the end_timestamp property of this HostResourceCapacityTrendAggregation.
+ :type end_timestamp: datetime
+
+ :param capacity:
+ The value to assign to the capacity property of this HostResourceCapacityTrendAggregation.
+ :type capacity: float
+
+ """
+ self.swagger_types = {
+ 'end_timestamp': 'datetime',
+ 'capacity': 'float'
+ }
+
+ self.attribute_map = {
+ 'end_timestamp': 'endTimestamp',
+ 'capacity': 'capacity'
+ }
+
+ self._end_timestamp = None
+ self._capacity = None
+
+ @property
+ def end_timestamp(self):
+ """
+ **[Required]** Gets the end_timestamp of this HostResourceCapacityTrendAggregation.
+ The timestamp in which the current sampling period ends in RFC 3339 format.
+
+
+ :return: The end_timestamp of this HostResourceCapacityTrendAggregation.
+ :rtype: datetime
+ """
+ return self._end_timestamp
+
+ @end_timestamp.setter
+ def end_timestamp(self, end_timestamp):
+ """
+ Sets the end_timestamp of this HostResourceCapacityTrendAggregation.
+ The timestamp in which the current sampling period ends in RFC 3339 format.
+
+
+ :param end_timestamp: The end_timestamp of this HostResourceCapacityTrendAggregation.
+ :type: datetime
+ """
+ self._end_timestamp = end_timestamp
+
+ @property
+ def capacity(self):
+ """
+ **[Required]** Gets the capacity of this HostResourceCapacityTrendAggregation.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :return: The capacity of this HostResourceCapacityTrendAggregation.
+ :rtype: float
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """
+ Sets the capacity of this HostResourceCapacityTrendAggregation.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :param capacity: The capacity of this HostResourceCapacityTrendAggregation.
+ :type: float
+ """
+ self._capacity = capacity
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/host_resource_statistics.py b/src/oci/opsi/models/host_resource_statistics.py
new file mode 100644
index 0000000000..c4f1753910
--- /dev/null
+++ b/src/oci/opsi/models/host_resource_statistics.py
@@ -0,0 +1,231 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostResourceStatistics(object):
+ """
+ Contains host resource base statistics.
+ """
+
+ #: A constant which can be used with the resource_name property of a HostResourceStatistics.
+ #: This constant has a value of "HOST_CPU_STATISTICS"
+ RESOURCE_NAME_HOST_CPU_STATISTICS = "HOST_CPU_STATISTICS"
+
+ #: A constant which can be used with the resource_name property of a HostResourceStatistics.
+ #: This constant has a value of "HOST_MEMORY_STATISTICS"
+ RESOURCE_NAME_HOST_MEMORY_STATISTICS = "HOST_MEMORY_STATISTICS"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostResourceStatistics object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.HostMemoryStatistics`
+ * :class:`~oci.opsi.models.HostCpuStatistics`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param usage:
+ The value to assign to the usage property of this HostResourceStatistics.
+ :type usage: float
+
+ :param capacity:
+ The value to assign to the capacity property of this HostResourceStatistics.
+ :type capacity: float
+
+ :param utilization_percent:
+ The value to assign to the utilization_percent property of this HostResourceStatistics.
+ :type utilization_percent: float
+
+ :param usage_change_percent:
+ The value to assign to the usage_change_percent property of this HostResourceStatistics.
+ :type usage_change_percent: float
+
+ :param resource_name:
+ The value to assign to the resource_name property of this HostResourceStatistics.
+ Allowed values for this property are: "HOST_CPU_STATISTICS", "HOST_MEMORY_STATISTICS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type resource_name: str
+
+ """
+ self.swagger_types = {
+ 'usage': 'float',
+ 'capacity': 'float',
+ 'utilization_percent': 'float',
+ 'usage_change_percent': 'float',
+ 'resource_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'usage': 'usage',
+ 'capacity': 'capacity',
+ 'utilization_percent': 'utilizationPercent',
+ 'usage_change_percent': 'usageChangePercent',
+ 'resource_name': 'resourceName'
+ }
+
+ self._usage = None
+ self._capacity = None
+ self._utilization_percent = None
+ self._usage_change_percent = None
+ self._resource_name = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['resourceName']
+
+ if type == 'HOST_MEMORY_STATISTICS':
+ return 'HostMemoryStatistics'
+
+ if type == 'HOST_CPU_STATISTICS':
+ return 'HostCpuStatistics'
+ else:
+ return 'HostResourceStatistics'
+
+ @property
+ def usage(self):
+ """
+ **[Required]** Gets the usage of this HostResourceStatistics.
+ Total amount used of the resource metric type (CPU, STORAGE).
+
+
+ :return: The usage of this HostResourceStatistics.
+ :rtype: float
+ """
+ return self._usage
+
+ @usage.setter
+ def usage(self, usage):
+ """
+ Sets the usage of this HostResourceStatistics.
+ Total amount used of the resource metric type (CPU, STORAGE).
+
+
+ :param usage: The usage of this HostResourceStatistics.
+ :type: float
+ """
+ self._usage = usage
+
+ @property
+ def capacity(self):
+ """
+ **[Required]** Gets the capacity of this HostResourceStatistics.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :return: The capacity of this HostResourceStatistics.
+ :rtype: float
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """
+ Sets the capacity of this HostResourceStatistics.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :param capacity: The capacity of this HostResourceStatistics.
+ :type: float
+ """
+ self._capacity = capacity
+
+ @property
+ def utilization_percent(self):
+ """
+ **[Required]** Gets the utilization_percent of this HostResourceStatistics.
+ Resource utilization in percentage.
+
+
+ :return: The utilization_percent of this HostResourceStatistics.
+ :rtype: float
+ """
+ return self._utilization_percent
+
+ @utilization_percent.setter
+ def utilization_percent(self, utilization_percent):
+ """
+ Sets the utilization_percent of this HostResourceStatistics.
+ Resource utilization in percentage.
+
+
+ :param utilization_percent: The utilization_percent of this HostResourceStatistics.
+ :type: float
+ """
+ self._utilization_percent = utilization_percent
+
+ @property
+ def usage_change_percent(self):
+ """
+ **[Required]** Gets the usage_change_percent of this HostResourceStatistics.
+ Change in resource utilization in percentage
+
+
+ :return: The usage_change_percent of this HostResourceStatistics.
+ :rtype: float
+ """
+ return self._usage_change_percent
+
+ @usage_change_percent.setter
+ def usage_change_percent(self, usage_change_percent):
+ """
+ Sets the usage_change_percent of this HostResourceStatistics.
+ Change in resource utilization in percentage
+
+
+ :param usage_change_percent: The usage_change_percent of this HostResourceStatistics.
+ :type: float
+ """
+ self._usage_change_percent = usage_change_percent
+
+ @property
+ def resource_name(self):
+ """
+ **[Required]** Gets the resource_name of this HostResourceStatistics.
+ Name of resource for host
+
+ Allowed values for this property are: "HOST_CPU_STATISTICS", "HOST_MEMORY_STATISTICS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The resource_name of this HostResourceStatistics.
+ :rtype: str
+ """
+ return self._resource_name
+
+ @resource_name.setter
+ def resource_name(self, resource_name):
+ """
+ Sets the resource_name of this HostResourceStatistics.
+ Name of resource for host
+
+
+ :param resource_name: The resource_name of this HostResourceStatistics.
+ :type: str
+ """
+ allowed_values = ["HOST_CPU_STATISTICS", "HOST_MEMORY_STATISTICS"]
+ if not value_allowed_none_or_none_sentinel(resource_name, allowed_values):
+ resource_name = 'UNKNOWN_ENUM_VALUE'
+ self._resource_name = resource_name
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/hosted_entity_collection.py b/src/oci/opsi/models/hosted_entity_collection.py
new file mode 100644
index 0000000000..a8fdecc60d
--- /dev/null
+++ b/src/oci/opsi/models/hosted_entity_collection.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostedEntityCollection(object):
+ """
+ Returns a list of hosted entities for the specific host.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostedEntityCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this HostedEntityCollection.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this HostedEntityCollection.
+ :type time_interval_end: datetime
+
+ :param items:
+ The value to assign to the items property of this HostedEntityCollection.
+ :type items: list[oci.opsi.models.HostedEntitySummary]
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'items': 'list[HostedEntitySummary]'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'items': 'items'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._items = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this HostedEntityCollection.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this HostedEntityCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this HostedEntityCollection.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this HostedEntityCollection.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this HostedEntityCollection.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this HostedEntityCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this HostedEntityCollection.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this HostedEntityCollection.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this HostedEntityCollection.
+ List of hosted entities details.
+
+
+ :return: The items of this HostedEntityCollection.
+ :rtype: list[oci.opsi.models.HostedEntitySummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this HostedEntityCollection.
+ List of hosted entities details.
+
+
+ :param items: The items of this HostedEntityCollection.
+ :type: list[oci.opsi.models.HostedEntitySummary]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/hosted_entity_summary.py b/src/oci/opsi/models/hosted_entity_summary.py
new file mode 100644
index 0000000000..ed618e4ebe
--- /dev/null
+++ b/src/oci/opsi/models/hosted_entity_summary.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class HostedEntitySummary(object):
+ """
+ Information about a hosted entity which includes identifier, name, and type.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new HostedEntitySummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_identifier:
+ The value to assign to the entity_identifier property of this HostedEntitySummary.
+ :type entity_identifier: str
+
+ :param entity_name:
+ The value to assign to the entity_name property of this HostedEntitySummary.
+ :type entity_name: str
+
+ :param entity_type:
+ The value to assign to the entity_type property of this HostedEntitySummary.
+ :type entity_type: str
+
+ """
+ self.swagger_types = {
+ 'entity_identifier': 'str',
+ 'entity_name': 'str',
+ 'entity_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_identifier': 'entityIdentifier',
+ 'entity_name': 'entityName',
+ 'entity_type': 'entityType'
+ }
+
+ self._entity_identifier = None
+ self._entity_name = None
+ self._entity_type = None
+
+ @property
+ def entity_identifier(self):
+ """
+ **[Required]** Gets the entity_identifier of this HostedEntitySummary.
+ The identifier of the entity.
+
+
+ :return: The entity_identifier of this HostedEntitySummary.
+ :rtype: str
+ """
+ return self._entity_identifier
+
+ @entity_identifier.setter
+ def entity_identifier(self, entity_identifier):
+ """
+ Sets the entity_identifier of this HostedEntitySummary.
+ The identifier of the entity.
+
+
+ :param entity_identifier: The entity_identifier of this HostedEntitySummary.
+ :type: str
+ """
+ self._entity_identifier = entity_identifier
+
+ @property
+ def entity_name(self):
+ """
+ **[Required]** Gets the entity_name of this HostedEntitySummary.
+ The entity name.
+
+
+ :return: The entity_name of this HostedEntitySummary.
+ :rtype: str
+ """
+ return self._entity_name
+
+ @entity_name.setter
+ def entity_name(self, entity_name):
+ """
+ Sets the entity_name of this HostedEntitySummary.
+ The entity name.
+
+
+ :param entity_name: The entity_name of this HostedEntitySummary.
+ :type: str
+ """
+ self._entity_name = entity_name
+
+ @property
+ def entity_type(self):
+ """
+ **[Required]** Gets the entity_type of this HostedEntitySummary.
+ The entity type.
+
+
+ :return: The entity_type of this HostedEntitySummary.
+ :rtype: str
+ """
+ return self._entity_type
+
+ @entity_type.setter
+ def entity_type(self, entity_type):
+ """
+ Sets the entity_type of this HostedEntitySummary.
+ The entity type.
+
+
+ :param entity_type: The entity_type of this HostedEntitySummary.
+ :type: str
+ """
+ self._entity_type = entity_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/importable_enterprise_manager_entity.py b/src/oci/opsi/models/importable_enterprise_manager_entity.py
new file mode 100644
index 0000000000..903d81df11
--- /dev/null
+++ b/src/oci/opsi/models/importable_enterprise_manager_entity.py
@@ -0,0 +1,194 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ImportableEnterpriseManagerEntity(object):
+ """
+ An Enterprise Manager entity that can be imported into Operations Insights.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ImportableEnterpriseManagerEntity object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param enterprise_manager_identifier:
+ The value to assign to the enterprise_manager_identifier property of this ImportableEnterpriseManagerEntity.
+ :type enterprise_manager_identifier: str
+
+ :param enterprise_manager_entity_name:
+ The value to assign to the enterprise_manager_entity_name property of this ImportableEnterpriseManagerEntity.
+ :type enterprise_manager_entity_name: str
+
+ :param enterprise_manager_entity_type:
+ The value to assign to the enterprise_manager_entity_type property of this ImportableEnterpriseManagerEntity.
+ :type enterprise_manager_entity_type: str
+
+ :param enterprise_manager_entity_identifier:
+ The value to assign to the enterprise_manager_entity_identifier property of this ImportableEnterpriseManagerEntity.
+ :type enterprise_manager_entity_identifier: str
+
+ :param opsi_entity_type:
+ The value to assign to the opsi_entity_type property of this ImportableEnterpriseManagerEntity.
+ :type opsi_entity_type: str
+
+ """
+ self.swagger_types = {
+ 'enterprise_manager_identifier': 'str',
+ 'enterprise_manager_entity_name': 'str',
+ 'enterprise_manager_entity_type': 'str',
+ 'enterprise_manager_entity_identifier': 'str',
+ 'opsi_entity_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'enterprise_manager_identifier': 'enterpriseManagerIdentifier',
+ 'enterprise_manager_entity_name': 'enterpriseManagerEntityName',
+ 'enterprise_manager_entity_type': 'enterpriseManagerEntityType',
+ 'enterprise_manager_entity_identifier': 'enterpriseManagerEntityIdentifier',
+ 'opsi_entity_type': 'opsiEntityType'
+ }
+
+ self._enterprise_manager_identifier = None
+ self._enterprise_manager_entity_name = None
+ self._enterprise_manager_entity_type = None
+ self._enterprise_manager_entity_identifier = None
+ self._opsi_entity_type = None
+
+ @property
+ def enterprise_manager_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_identifier of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Unique Identifier
+
+
+ :return: The enterprise_manager_identifier of this ImportableEnterpriseManagerEntity.
+ :rtype: str
+ """
+ return self._enterprise_manager_identifier
+
+ @enterprise_manager_identifier.setter
+ def enterprise_manager_identifier(self, enterprise_manager_identifier):
+ """
+ Sets the enterprise_manager_identifier of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Unique Identifier
+
+
+ :param enterprise_manager_identifier: The enterprise_manager_identifier of this ImportableEnterpriseManagerEntity.
+ :type: str
+ """
+ self._enterprise_manager_identifier = enterprise_manager_identifier
+
+ @property
+ def enterprise_manager_entity_name(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_name of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Entity Name
+
+
+ :return: The enterprise_manager_entity_name of this ImportableEnterpriseManagerEntity.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_name
+
+ @enterprise_manager_entity_name.setter
+ def enterprise_manager_entity_name(self, enterprise_manager_entity_name):
+ """
+ Sets the enterprise_manager_entity_name of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Entity Name
+
+
+ :param enterprise_manager_entity_name: The enterprise_manager_entity_name of this ImportableEnterpriseManagerEntity.
+ :type: str
+ """
+ self._enterprise_manager_entity_name = enterprise_manager_entity_name
+
+ @property
+ def enterprise_manager_entity_type(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_type of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Entity Type
+
+
+ :return: The enterprise_manager_entity_type of this ImportableEnterpriseManagerEntity.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_type
+
+ @enterprise_manager_entity_type.setter
+ def enterprise_manager_entity_type(self, enterprise_manager_entity_type):
+ """
+ Sets the enterprise_manager_entity_type of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Entity Type
+
+
+ :param enterprise_manager_entity_type: The enterprise_manager_entity_type of this ImportableEnterpriseManagerEntity.
+ :type: str
+ """
+ self._enterprise_manager_entity_type = enterprise_manager_entity_type
+
+ @property
+ def enterprise_manager_entity_identifier(self):
+ """
+ **[Required]** Gets the enterprise_manager_entity_identifier of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :return: The enterprise_manager_entity_identifier of this ImportableEnterpriseManagerEntity.
+ :rtype: str
+ """
+ return self._enterprise_manager_entity_identifier
+
+ @enterprise_manager_entity_identifier.setter
+ def enterprise_manager_entity_identifier(self, enterprise_manager_entity_identifier):
+ """
+ Sets the enterprise_manager_entity_identifier of this ImportableEnterpriseManagerEntity.
+ Enterprise Manager Entity Unique Identifier
+
+
+ :param enterprise_manager_entity_identifier: The enterprise_manager_entity_identifier of this ImportableEnterpriseManagerEntity.
+ :type: str
+ """
+ self._enterprise_manager_entity_identifier = enterprise_manager_entity_identifier
+
+ @property
+ def opsi_entity_type(self):
+ """
+ Gets the opsi_entity_type of this ImportableEnterpriseManagerEntity.
+ Operations Insights internal representation of the resource type.
+
+
+ :return: The opsi_entity_type of this ImportableEnterpriseManagerEntity.
+ :rtype: str
+ """
+ return self._opsi_entity_type
+
+ @opsi_entity_type.setter
+ def opsi_entity_type(self, opsi_entity_type):
+ """
+ Sets the opsi_entity_type of this ImportableEnterpriseManagerEntity.
+ Operations Insights internal representation of the resource type.
+
+
+ :param opsi_entity_type: The opsi_entity_type of this ImportableEnterpriseManagerEntity.
+ :type: str
+ """
+ self._opsi_entity_type = opsi_entity_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/importable_enterprise_manager_entity_collection.py b/src/oci/opsi/models/importable_enterprise_manager_entity_collection.py
new file mode 100644
index 0000000000..a211b5fe8d
--- /dev/null
+++ b/src/oci/opsi/models/importable_enterprise_manager_entity_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class ImportableEnterpriseManagerEntityCollection(object):
+ """
+ Collection of importable Enterprise Manager entity objects.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ImportableEnterpriseManagerEntityCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this ImportableEnterpriseManagerEntityCollection.
+ :type items: list[oci.opsi.models.ImportableEnterpriseManagerEntity]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[ImportableEnterpriseManagerEntity]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this ImportableEnterpriseManagerEntityCollection.
+ Array of importable Enterprise Manager entity objects.
+
+
+ :return: The items of this ImportableEnterpriseManagerEntityCollection.
+ :rtype: list[oci.opsi.models.ImportableEnterpriseManagerEntity]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this ImportableEnterpriseManagerEntityCollection.
+ Array of importable Enterprise Manager entity objects.
+
+
+ :param items: The items of this ImportableEnterpriseManagerEntityCollection.
+ :type: list[oci.opsi.models.ImportableEnterpriseManagerEntity]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/ingest_database_configuration_details.py b/src/oci/opsi/models/ingest_database_configuration_details.py
new file mode 100644
index 0000000000..be52cab055
--- /dev/null
+++ b/src/oci/opsi/models/ingest_database_configuration_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class IngestDatabaseConfigurationDetails(object):
+ """
+ Database Configuration Metrics details.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new IngestDatabaseConfigurationDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this IngestDatabaseConfigurationDetails.
+ :type items: list[oci.opsi.models.DatabaseConfigurationMetricGroup]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[DatabaseConfigurationMetricGroup]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this IngestDatabaseConfigurationDetails.
+ Array of one or more database configuration metrics objects.
+
+
+ :return: The items of this IngestDatabaseConfigurationDetails.
+ :rtype: list[oci.opsi.models.DatabaseConfigurationMetricGroup]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this IngestDatabaseConfigurationDetails.
+ Array of one or more database configuration metrics objects.
+
+
+ :param items: The items of this IngestDatabaseConfigurationDetails.
+ :type: list[oci.opsi.models.DatabaseConfigurationMetricGroup]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/ingest_database_configuration_response_details.py b/src/oci/opsi/models/ingest_database_configuration_response_details.py
new file mode 100644
index 0000000000..e2d808bad3
--- /dev/null
+++ b/src/oci/opsi/models/ingest_database_configuration_response_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class IngestDatabaseConfigurationResponseDetails(object):
+ """
+ The response object returned from IngestDatabaseConfiguration operation.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new IngestDatabaseConfigurationResponseDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param message:
+ The value to assign to the message property of this IngestDatabaseConfigurationResponseDetails.
+ :type message: str
+
+ """
+ self.swagger_types = {
+ 'message': 'str'
+ }
+
+ self.attribute_map = {
+ 'message': 'message'
+ }
+
+ self._message = None
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this IngestDatabaseConfigurationResponseDetails.
+ Success message returned as a result of the upload.
+
+
+ :return: The message of this IngestDatabaseConfigurationResponseDetails.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this IngestDatabaseConfigurationResponseDetails.
+ Success message returned as a result of the upload.
+
+
+ :param message: The message of this IngestDatabaseConfigurationResponseDetails.
+ :type: str
+ """
+ self._message = message
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/ingest_host_configuration_details.py b/src/oci/opsi/models/ingest_host_configuration_details.py
new file mode 100644
index 0000000000..bfebe7997a
--- /dev/null
+++ b/src/oci/opsi/models/ingest_host_configuration_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class IngestHostConfigurationDetails(object):
+ """
+ Contains the data to ingest for one or more host configuration metrics
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new IngestHostConfigurationDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this IngestHostConfigurationDetails.
+ :type items: list[oci.opsi.models.HostConfigurationMetricGroup]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[HostConfigurationMetricGroup]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this IngestHostConfigurationDetails.
+ Collection of one or more host configuration metric data points
+
+
+ :return: The items of this IngestHostConfigurationDetails.
+ :rtype: list[oci.opsi.models.HostConfigurationMetricGroup]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this IngestHostConfigurationDetails.
+ Collection of one or more host configuration metric data points
+
+
+ :param items: The items of this IngestHostConfigurationDetails.
+ :type: list[oci.opsi.models.HostConfigurationMetricGroup]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/ingest_host_configuration_response_details.py b/src/oci/opsi/models/ingest_host_configuration_response_details.py
new file mode 100644
index 0000000000..56cdcf0e8a
--- /dev/null
+++ b/src/oci/opsi/models/ingest_host_configuration_response_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class IngestHostConfigurationResponseDetails(object):
+ """
+ The response object returned from IngestHostConfiguration operation.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new IngestHostConfigurationResponseDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param message:
+ The value to assign to the message property of this IngestHostConfigurationResponseDetails.
+ :type message: str
+
+ """
+ self.swagger_types = {
+ 'message': 'str'
+ }
+
+ self.attribute_map = {
+ 'message': 'message'
+ }
+
+ self._message = None
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this IngestHostConfigurationResponseDetails.
+ Success message returned as a result of the upload.
+
+
+ :return: The message of this IngestHostConfigurationResponseDetails.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this IngestHostConfigurationResponseDetails.
+ Success message returned as a result of the upload.
+
+
+ :param message: The message of this IngestHostConfigurationResponseDetails.
+ :type: str
+ """
+ self._message = message
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/ingest_host_metrics_details.py b/src/oci/opsi/models/ingest_host_metrics_details.py
new file mode 100644
index 0000000000..27fc1a95e2
--- /dev/null
+++ b/src/oci/opsi/models/ingest_host_metrics_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class IngestHostMetricsDetails(object):
+ """
+ Contains the data to ingest for one or more host performance metrics
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new IngestHostMetricsDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this IngestHostMetricsDetails.
+ :type items: list[oci.opsi.models.HostPerformanceMetricGroup]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[HostPerformanceMetricGroup]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this IngestHostMetricsDetails.
+ Collection of one or more host performance metric data points
+
+
+ :return: The items of this IngestHostMetricsDetails.
+ :rtype: list[oci.opsi.models.HostPerformanceMetricGroup]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this IngestHostMetricsDetails.
+ Collection of one or more host performance metric data points
+
+
+ :param items: The items of this IngestHostMetricsDetails.
+ :type: list[oci.opsi.models.HostPerformanceMetricGroup]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/ingest_host_metrics_response_details.py b/src/oci/opsi/models/ingest_host_metrics_response_details.py
new file mode 100644
index 0000000000..ef71149505
--- /dev/null
+++ b/src/oci/opsi/models/ingest_host_metrics_response_details.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class IngestHostMetricsResponseDetails(object):
+ """
+ The response object returned from IngestHostMetrics operation.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new IngestHostMetricsResponseDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param message:
+ The value to assign to the message property of this IngestHostMetricsResponseDetails.
+ :type message: str
+
+ """
+ self.swagger_types = {
+ 'message': 'str'
+ }
+
+ self.attribute_map = {
+ 'message': 'message'
+ }
+
+ self._message = None
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this IngestHostMetricsResponseDetails.
+ Success message returned as a result of the upload.
+
+
+ :return: The message of this IngestHostMetricsResponseDetails.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this IngestHostMetricsResponseDetails.
+ Success message returned as a result of the upload.
+
+
+ :param message: The message of this IngestHostMetricsResponseDetails.
+ :type: str
+ """
+ self._message = message
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/macs_managed_external_database_insight.py b/src/oci/opsi/models/macs_managed_external_database_insight.py
new file mode 100644
index 0000000000..5509814bb2
--- /dev/null
+++ b/src/oci/opsi/models/macs_managed_external_database_insight.py
@@ -0,0 +1,425 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_insight import DatabaseInsight
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MacsManagedExternalDatabaseInsight(DatabaseInsight):
+ """
+ Database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MacsManagedExternalDatabaseInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedExternalDatabaseInsight.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this MacsManagedExternalDatabaseInsight.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this MacsManagedExternalDatabaseInsight.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this MacsManagedExternalDatabaseInsight.
+ :type compartment_id: str
+
+ :param status:
+ The value to assign to the status property of this MacsManagedExternalDatabaseInsight.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param database_type:
+ The value to assign to the database_type property of this MacsManagedExternalDatabaseInsight.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this MacsManagedExternalDatabaseInsight.
+ :type database_version: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this MacsManagedExternalDatabaseInsight.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this MacsManagedExternalDatabaseInsight.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this MacsManagedExternalDatabaseInsight.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this MacsManagedExternalDatabaseInsight.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param time_created:
+ The value to assign to the time_created property of this MacsManagedExternalDatabaseInsight.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this MacsManagedExternalDatabaseInsight.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this MacsManagedExternalDatabaseInsight.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this MacsManagedExternalDatabaseInsight.
+ :type lifecycle_details: str
+
+ :param management_agent_id:
+ The value to assign to the management_agent_id property of this MacsManagedExternalDatabaseInsight.
+ :type management_agent_id: str
+
+ :param connector_id:
+ The value to assign to the connector_id property of this MacsManagedExternalDatabaseInsight.
+ :type connector_id: str
+
+ :param connection_details:
+ The value to assign to the connection_details property of this MacsManagedExternalDatabaseInsight.
+ :type connection_details: oci.opsi.models.ConnectionDetails
+
+ :param connection_credential_details:
+ The value to assign to the connection_credential_details property of this MacsManagedExternalDatabaseInsight.
+ :type connection_credential_details: oci.opsi.models.CredentialDetails
+
+ :param database_id:
+ The value to assign to the database_id property of this MacsManagedExternalDatabaseInsight.
+ :type database_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this MacsManagedExternalDatabaseInsight.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this MacsManagedExternalDatabaseInsight.
+ :type database_display_name: str
+
+ :param database_resource_type:
+ The value to assign to the database_resource_type property of this MacsManagedExternalDatabaseInsight.
+ :type database_resource_type: str
+
+ :param db_additional_details:
+ The value to assign to the db_additional_details property of this MacsManagedExternalDatabaseInsight.
+ :type db_additional_details: object
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'status': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'management_agent_id': 'str',
+ 'connector_id': 'str',
+ 'connection_details': 'ConnectionDetails',
+ 'connection_credential_details': 'CredentialDetails',
+ 'database_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_resource_type': 'str',
+ 'db_additional_details': 'object'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'status': 'status',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'management_agent_id': 'managementAgentId',
+ 'connector_id': 'connectorId',
+ 'connection_details': 'connectionDetails',
+ 'connection_credential_details': 'connectionCredentialDetails',
+ 'database_id': 'databaseId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_resource_type': 'databaseResourceType',
+ 'db_additional_details': 'dbAdditionalDetails'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._status = None
+ self._database_type = None
+ self._database_version = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._management_agent_id = None
+ self._connector_id = None
+ self._connection_details = None
+ self._connection_credential_details = None
+ self._database_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_resource_type = None
+ self._db_additional_details = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_DATABASE'
+
+ @property
+ def management_agent_id(self):
+ """
+ Gets the management_agent_id of this MacsManagedExternalDatabaseInsight.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The management_agent_id of this MacsManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._management_agent_id
+
+ @management_agent_id.setter
+ def management_agent_id(self, management_agent_id):
+ """
+ Sets the management_agent_id of this MacsManagedExternalDatabaseInsight.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param management_agent_id: The management_agent_id of this MacsManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._management_agent_id = management_agent_id
+
+ @property
+ def connector_id(self):
+ """
+ Gets the connector_id of this MacsManagedExternalDatabaseInsight.
+ The `OCID`__ of External Database Connector
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The connector_id of this MacsManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._connector_id
+
+ @connector_id.setter
+ def connector_id(self, connector_id):
+ """
+ Sets the connector_id of this MacsManagedExternalDatabaseInsight.
+ The `OCID`__ of External Database Connector
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param connector_id: The connector_id of this MacsManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._connector_id = connector_id
+
+ @property
+ def connection_details(self):
+ """
+ Gets the connection_details of this MacsManagedExternalDatabaseInsight.
+
+ :return: The connection_details of this MacsManagedExternalDatabaseInsight.
+ :rtype: oci.opsi.models.ConnectionDetails
+ """
+ return self._connection_details
+
+ @connection_details.setter
+ def connection_details(self, connection_details):
+ """
+ Sets the connection_details of this MacsManagedExternalDatabaseInsight.
+
+ :param connection_details: The connection_details of this MacsManagedExternalDatabaseInsight.
+ :type: oci.opsi.models.ConnectionDetails
+ """
+ self._connection_details = connection_details
+
+ @property
+ def connection_credential_details(self):
+ """
+ Gets the connection_credential_details of this MacsManagedExternalDatabaseInsight.
+
+ :return: The connection_credential_details of this MacsManagedExternalDatabaseInsight.
+ :rtype: oci.opsi.models.CredentialDetails
+ """
+ return self._connection_credential_details
+
+ @connection_credential_details.setter
+ def connection_credential_details(self, connection_credential_details):
+ """
+ Sets the connection_credential_details of this MacsManagedExternalDatabaseInsight.
+
+ :param connection_credential_details: The connection_credential_details of this MacsManagedExternalDatabaseInsight.
+ :type: oci.opsi.models.CredentialDetails
+ """
+ self._connection_credential_details = connection_credential_details
+
+ @property
+ def database_id(self):
+ """
+ **[Required]** Gets the database_id of this MacsManagedExternalDatabaseInsight.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The database_id of this MacsManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this MacsManagedExternalDatabaseInsight.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param database_id: The database_id of this MacsManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def database_name(self):
+ """
+ **[Required]** Gets the database_name of this MacsManagedExternalDatabaseInsight.
+ Name of database
+
+
+ :return: The database_name of this MacsManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_name
+
+ @database_name.setter
+ def database_name(self, database_name):
+ """
+ Sets the database_name of this MacsManagedExternalDatabaseInsight.
+ Name of database
+
+
+ :param database_name: The database_name of this MacsManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._database_name = database_name
+
+ @property
+ def database_display_name(self):
+ """
+ Gets the database_display_name of this MacsManagedExternalDatabaseInsight.
+ Display name of database
+
+
+ :return: The database_display_name of this MacsManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_display_name
+
+ @database_display_name.setter
+ def database_display_name(self, database_display_name):
+ """
+ Sets the database_display_name of this MacsManagedExternalDatabaseInsight.
+ Display name of database
+
+
+ :param database_display_name: The database_display_name of this MacsManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._database_display_name = database_display_name
+
+ @property
+ def database_resource_type(self):
+ """
+ **[Required]** Gets the database_resource_type of this MacsManagedExternalDatabaseInsight.
+ OCI database resource type
+
+
+ :return: The database_resource_type of this MacsManagedExternalDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_resource_type
+
+ @database_resource_type.setter
+ def database_resource_type(self, database_resource_type):
+ """
+ Sets the database_resource_type of this MacsManagedExternalDatabaseInsight.
+ OCI database resource type
+
+
+ :param database_resource_type: The database_resource_type of this MacsManagedExternalDatabaseInsight.
+ :type: str
+ """
+ self._database_resource_type = database_resource_type
+
+ @property
+ def db_additional_details(self):
+ """
+ Gets the db_additional_details of this MacsManagedExternalDatabaseInsight.
+ Additional details of a database in JSON format. For autonomous databases, this is the AutonomousDatabase object serialized as a JSON string as defined in https://docs.cloud.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/. For EM, pass in null or an empty string. Note that this string needs to be escaped when specified in the curl command.
+
+
+ :return: The db_additional_details of this MacsManagedExternalDatabaseInsight.
+ :rtype: object
+ """
+ return self._db_additional_details
+
+ @db_additional_details.setter
+ def db_additional_details(self, db_additional_details):
+ """
+ Sets the db_additional_details of this MacsManagedExternalDatabaseInsight.
+ Additional details of a database in JSON format. For autonomous databases, this is the AutonomousDatabase object serialized as a JSON string as defined in https://docs.cloud.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/. For EM, pass in null or an empty string. Note that this string needs to be escaped when specified in the curl command.
+
+
+ :param db_additional_details: The db_additional_details of this MacsManagedExternalDatabaseInsight.
+ :type: object
+ """
+ self._db_additional_details = db_additional_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/macs_managed_external_database_insight_summary.py b/src/oci/opsi/models/macs_managed_external_database_insight_summary.py
new file mode 100644
index 0000000000..d9b9fa7276
--- /dev/null
+++ b/src/oci/opsi/models/macs_managed_external_database_insight_summary.py
@@ -0,0 +1,271 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .database_insight_summary import DatabaseInsightSummary
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MacsManagedExternalDatabaseInsightSummary(DatabaseInsightSummary):
+ """
+ Summary of a database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MacsManagedExternalDatabaseInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedExternalDatabaseInsightSummary.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this MacsManagedExternalDatabaseInsightSummary.
+ :type id: str
+
+ :param database_id:
+ The value to assign to the database_id property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this MacsManagedExternalDatabaseInsightSummary.
+ :type compartment_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_display_name: str
+
+ :param database_type:
+ The value to assign to the database_type property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_version: str
+
+ :param database_host_names:
+ The value to assign to the database_host_names property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_host_names: list[str]
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this MacsManagedExternalDatabaseInsightSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this MacsManagedExternalDatabaseInsightSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this MacsManagedExternalDatabaseInsightSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param entity_source:
+ The value to assign to the entity_source property of this MacsManagedExternalDatabaseInsightSummary.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this MacsManagedExternalDatabaseInsightSummary.
+ :type processor_count: int
+
+ :param status:
+ The value to assign to the status property of this MacsManagedExternalDatabaseInsightSummary.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this MacsManagedExternalDatabaseInsightSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this MacsManagedExternalDatabaseInsightSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this MacsManagedExternalDatabaseInsightSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this MacsManagedExternalDatabaseInsightSummary.
+ :type lifecycle_details: str
+
+ :param database_resource_type:
+ The value to assign to the database_resource_type property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_resource_type: str
+
+ :param management_agent_id:
+ The value to assign to the management_agent_id property of this MacsManagedExternalDatabaseInsightSummary.
+ :type management_agent_id: str
+
+ :param connector_id:
+ The value to assign to the connector_id property of this MacsManagedExternalDatabaseInsightSummary.
+ :type connector_id: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'database_id': 'str',
+ 'compartment_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'database_host_names': 'list[str]',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'entity_source': 'str',
+ 'processor_count': 'int',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'database_resource_type': 'str',
+ 'management_agent_id': 'str',
+ 'connector_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'database_id': 'databaseId',
+ 'compartment_id': 'compartmentId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'database_host_names': 'databaseHostNames',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'entity_source': 'entitySource',
+ 'processor_count': 'processorCount',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'database_resource_type': 'databaseResourceType',
+ 'management_agent_id': 'managementAgentId',
+ 'connector_id': 'connectorId'
+ }
+
+ self._id = None
+ self._database_id = None
+ self._compartment_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_type = None
+ self._database_version = None
+ self._database_host_names = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._entity_source = None
+ self._processor_count = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._database_resource_type = None
+ self._management_agent_id = None
+ self._connector_id = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_DATABASE'
+
+ @property
+ def database_resource_type(self):
+ """
+ Gets the database_resource_type of this MacsManagedExternalDatabaseInsightSummary.
+ OCI database resource type
+
+
+ :return: The database_resource_type of this MacsManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._database_resource_type
+
+ @database_resource_type.setter
+ def database_resource_type(self, database_resource_type):
+ """
+ Sets the database_resource_type of this MacsManagedExternalDatabaseInsightSummary.
+ OCI database resource type
+
+
+ :param database_resource_type: The database_resource_type of this MacsManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._database_resource_type = database_resource_type
+
+ @property
+ def management_agent_id(self):
+ """
+ Gets the management_agent_id of this MacsManagedExternalDatabaseInsightSummary.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The management_agent_id of this MacsManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._management_agent_id
+
+ @management_agent_id.setter
+ def management_agent_id(self, management_agent_id):
+ """
+ Sets the management_agent_id of this MacsManagedExternalDatabaseInsightSummary.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param management_agent_id: The management_agent_id of this MacsManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._management_agent_id = management_agent_id
+
+ @property
+ def connector_id(self):
+ """
+ Gets the connector_id of this MacsManagedExternalDatabaseInsightSummary.
+ The `OCID`__ of External Database Connector
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The connector_id of this MacsManagedExternalDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._connector_id
+
+ @connector_id.setter
+ def connector_id(self, connector_id):
+ """
+ Sets the connector_id of this MacsManagedExternalDatabaseInsightSummary.
+ The `OCID`__ of External Database Connector
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param connector_id: The connector_id of this MacsManagedExternalDatabaseInsightSummary.
+ :type: str
+ """
+ self._connector_id = connector_id
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/macs_managed_external_host_insight.py b/src/oci/opsi/models/macs_managed_external_host_insight.py
new file mode 100644
index 0000000000..4bf4078e90
--- /dev/null
+++ b/src/oci/opsi/models/macs_managed_external_host_insight.py
@@ -0,0 +1,292 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_insight import HostInsight
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MacsManagedExternalHostInsight(HostInsight):
+ """
+ Host insight resource.
+ """
+
+ #: A constant which can be used with the platform_type property of a MacsManagedExternalHostInsight.
+ #: This constant has a value of "LINUX"
+ PLATFORM_TYPE_LINUX = "LINUX"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MacsManagedExternalHostInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedExternalHostInsight.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_HOST`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this MacsManagedExternalHostInsight.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this MacsManagedExternalHostInsight.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this MacsManagedExternalHostInsight.
+ :type compartment_id: str
+
+ :param host_name:
+ The value to assign to the host_name property of this MacsManagedExternalHostInsight.
+ :type host_name: str
+
+ :param host_display_name:
+ The value to assign to the host_display_name property of this MacsManagedExternalHostInsight.
+ :type host_display_name: str
+
+ :param host_type:
+ The value to assign to the host_type property of this MacsManagedExternalHostInsight.
+ :type host_type: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this MacsManagedExternalHostInsight.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this MacsManagedExternalHostInsight.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this MacsManagedExternalHostInsight.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this MacsManagedExternalHostInsight.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param status:
+ The value to assign to the status property of this MacsManagedExternalHostInsight.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this MacsManagedExternalHostInsight.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this MacsManagedExternalHostInsight.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this MacsManagedExternalHostInsight.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this MacsManagedExternalHostInsight.
+ :type lifecycle_details: str
+
+ :param management_agent_id:
+ The value to assign to the management_agent_id property of this MacsManagedExternalHostInsight.
+ :type management_agent_id: str
+
+ :param platform_name:
+ The value to assign to the platform_name property of this MacsManagedExternalHostInsight.
+ :type platform_name: str
+
+ :param platform_type:
+ The value to assign to the platform_type property of this MacsManagedExternalHostInsight.
+ Allowed values for this property are: "LINUX", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type platform_type: str
+
+ :param platform_version:
+ The value to assign to the platform_version property of this MacsManagedExternalHostInsight.
+ :type platform_version: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'host_name': 'str',
+ 'host_display_name': 'str',
+ 'host_type': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'management_agent_id': 'str',
+ 'platform_name': 'str',
+ 'platform_type': 'str',
+ 'platform_version': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'host_name': 'hostName',
+ 'host_display_name': 'hostDisplayName',
+ 'host_type': 'hostType',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'management_agent_id': 'managementAgentId',
+ 'platform_name': 'platformName',
+ 'platform_type': 'platformType',
+ 'platform_version': 'platformVersion'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._host_name = None
+ self._host_display_name = None
+ self._host_type = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._management_agent_id = None
+ self._platform_name = None
+ self._platform_type = None
+ self._platform_version = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_HOST'
+
+ @property
+ def management_agent_id(self):
+ """
+ **[Required]** Gets the management_agent_id of this MacsManagedExternalHostInsight.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The management_agent_id of this MacsManagedExternalHostInsight.
+ :rtype: str
+ """
+ return self._management_agent_id
+
+ @management_agent_id.setter
+ def management_agent_id(self, management_agent_id):
+ """
+ Sets the management_agent_id of this MacsManagedExternalHostInsight.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param management_agent_id: The management_agent_id of this MacsManagedExternalHostInsight.
+ :type: str
+ """
+ self._management_agent_id = management_agent_id
+
+ @property
+ def platform_name(self):
+ """
+ Gets the platform_name of this MacsManagedExternalHostInsight.
+ Platform name.
+
+
+ :return: The platform_name of this MacsManagedExternalHostInsight.
+ :rtype: str
+ """
+ return self._platform_name
+
+ @platform_name.setter
+ def platform_name(self, platform_name):
+ """
+ Sets the platform_name of this MacsManagedExternalHostInsight.
+ Platform name.
+
+
+ :param platform_name: The platform_name of this MacsManagedExternalHostInsight.
+ :type: str
+ """
+ self._platform_name = platform_name
+
+ @property
+ def platform_type(self):
+ """
+ Gets the platform_type of this MacsManagedExternalHostInsight.
+ Platform type.
+
+ Allowed values for this property are: "LINUX", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The platform_type of this MacsManagedExternalHostInsight.
+ :rtype: str
+ """
+ return self._platform_type
+
+ @platform_type.setter
+ def platform_type(self, platform_type):
+ """
+ Sets the platform_type of this MacsManagedExternalHostInsight.
+ Platform type.
+
+
+ :param platform_type: The platform_type of this MacsManagedExternalHostInsight.
+ :type: str
+ """
+ allowed_values = ["LINUX"]
+ if not value_allowed_none_or_none_sentinel(platform_type, allowed_values):
+ platform_type = 'UNKNOWN_ENUM_VALUE'
+ self._platform_type = platform_type
+
+ @property
+ def platform_version(self):
+ """
+ Gets the platform_version of this MacsManagedExternalHostInsight.
+ Platform version.
+
+
+ :return: The platform_version of this MacsManagedExternalHostInsight.
+ :rtype: str
+ """
+ return self._platform_version
+
+ @platform_version.setter
+ def platform_version(self, platform_version):
+ """
+ Sets the platform_version of this MacsManagedExternalHostInsight.
+ Platform version.
+
+
+ :param platform_version: The platform_version of this MacsManagedExternalHostInsight.
+ :type: str
+ """
+ self._platform_version = platform_version
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/macs_managed_external_host_insight_summary.py b/src/oci/opsi/models/macs_managed_external_host_insight_summary.py
new file mode 100644
index 0000000000..1a89de0c4b
--- /dev/null
+++ b/src/oci/opsi/models/macs_managed_external_host_insight_summary.py
@@ -0,0 +1,230 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .host_insight_summary import HostInsightSummary
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class MacsManagedExternalHostInsightSummary(HostInsightSummary):
+ """
+ Summary of a host insight resource.
+ """
+
+ #: A constant which can be used with the platform_type property of a MacsManagedExternalHostInsightSummary.
+ #: This constant has a value of "LINUX"
+ PLATFORM_TYPE_LINUX = "LINUX"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new MacsManagedExternalHostInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedExternalHostInsightSummary.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_HOST`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this MacsManagedExternalHostInsightSummary.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this MacsManagedExternalHostInsightSummary.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this MacsManagedExternalHostInsightSummary.
+ :type compartment_id: str
+
+ :param host_name:
+ The value to assign to the host_name property of this MacsManagedExternalHostInsightSummary.
+ :type host_name: str
+
+ :param host_display_name:
+ The value to assign to the host_display_name property of this MacsManagedExternalHostInsightSummary.
+ :type host_display_name: str
+
+ :param host_type:
+ The value to assign to the host_type property of this MacsManagedExternalHostInsightSummary.
+ :type host_type: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this MacsManagedExternalHostInsightSummary.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this MacsManagedExternalHostInsightSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this MacsManagedExternalHostInsightSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this MacsManagedExternalHostInsightSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param status:
+ The value to assign to the status property of this MacsManagedExternalHostInsightSummary.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this MacsManagedExternalHostInsightSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this MacsManagedExternalHostInsightSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this MacsManagedExternalHostInsightSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this MacsManagedExternalHostInsightSummary.
+ :type lifecycle_details: str
+
+ :param management_agent_id:
+ The value to assign to the management_agent_id property of this MacsManagedExternalHostInsightSummary.
+ :type management_agent_id: str
+
+ :param platform_type:
+ The value to assign to the platform_type property of this MacsManagedExternalHostInsightSummary.
+ Allowed values for this property are: "LINUX", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type platform_type: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'host_name': 'str',
+ 'host_display_name': 'str',
+ 'host_type': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'management_agent_id': 'str',
+ 'platform_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'host_name': 'hostName',
+ 'host_display_name': 'hostDisplayName',
+ 'host_type': 'hostType',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'management_agent_id': 'managementAgentId',
+ 'platform_type': 'platformType'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._host_name = None
+ self._host_display_name = None
+ self._host_type = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._management_agent_id = None
+ self._platform_type = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_HOST'
+
+ @property
+ def management_agent_id(self):
+ """
+ **[Required]** Gets the management_agent_id of this MacsManagedExternalHostInsightSummary.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The management_agent_id of this MacsManagedExternalHostInsightSummary.
+ :rtype: str
+ """
+ return self._management_agent_id
+
+ @management_agent_id.setter
+ def management_agent_id(self, management_agent_id):
+ """
+ Sets the management_agent_id of this MacsManagedExternalHostInsightSummary.
+ The `OCID`__ of the Management Agent
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param management_agent_id: The management_agent_id of this MacsManagedExternalHostInsightSummary.
+ :type: str
+ """
+ self._management_agent_id = management_agent_id
+
+ @property
+ def platform_type(self):
+ """
+ Gets the platform_type of this MacsManagedExternalHostInsightSummary.
+ Platform type.
+
+ Allowed values for this property are: "LINUX", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The platform_type of this MacsManagedExternalHostInsightSummary.
+ :rtype: str
+ """
+ return self._platform_type
+
+ @platform_type.setter
+ def platform_type(self, platform_type):
+ """
+ Sets the platform_type of this MacsManagedExternalHostInsightSummary.
+ Platform type.
+
+
+ :param platform_type: The platform_type of this MacsManagedExternalHostInsightSummary.
+ :type: str
+ """
+ allowed_values = ["LINUX"]
+ if not value_allowed_none_or_none_sentinel(platform_type, allowed_values):
+ platform_type = 'UNKNOWN_ENUM_VALUE'
+ self._platform_type = platform_type
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/sql_plan_collection.py b/src/oci/opsi/models/sql_plan_collection.py
index 3363702a19..e2aed11fc3 100644
--- a/src/oci/opsi/models/sql_plan_collection.py
+++ b/src/oci/opsi/models/sql_plan_collection.py
@@ -22,6 +22,10 @@ def __init__(self, **kwargs):
The value to assign to the sql_identifier property of this SqlPlanCollection.
:type sql_identifier: str
+ :param id:
+ The value to assign to the id property of this SqlPlanCollection.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this SqlPlanCollection.
:type database_id: str
@@ -33,17 +37,20 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'sql_identifier': 'str',
+ 'id': 'str',
'database_id': 'str',
'items': 'list[SqlPlanSummary]'
}
self.attribute_map = {
'sql_identifier': 'sqlIdentifier',
+ 'id': 'id',
'database_id': 'databaseId',
'items': 'items'
}
self._sql_identifier = None
+ self._id = None
self._database_id = None
self._items = None
@@ -71,6 +78,34 @@ def sql_identifier(self, sql_identifier):
"""
self._sql_identifier = sql_identifier
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this SqlPlanCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this SqlPlanCollection.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this SqlPlanCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this SqlPlanCollection.
+ :type: str
+ """
+ self._id = id
+
@property
def database_id(self):
"""
diff --git a/src/oci/opsi/models/sql_plan_insight_aggregation_collection.py b/src/oci/opsi/models/sql_plan_insight_aggregation_collection.py
index 6e6510d18a..c81b019134 100644
--- a/src/oci/opsi/models/sql_plan_insight_aggregation_collection.py
+++ b/src/oci/opsi/models/sql_plan_insight_aggregation_collection.py
@@ -22,6 +22,10 @@ def __init__(self, **kwargs):
The value to assign to the sql_identifier property of this SqlPlanInsightAggregationCollection.
:type sql_identifier: str
+ :param id:
+ The value to assign to the id property of this SqlPlanInsightAggregationCollection.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this SqlPlanInsightAggregationCollection.
:type database_id: str
@@ -45,6 +49,7 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'sql_identifier': 'str',
+ 'id': 'str',
'database_id': 'str',
'time_interval_start': 'datetime',
'time_interval_end': 'datetime',
@@ -54,6 +59,7 @@ def __init__(self, **kwargs):
self.attribute_map = {
'sql_identifier': 'sqlIdentifier',
+ 'id': 'id',
'database_id': 'databaseId',
'time_interval_start': 'timeIntervalStart',
'time_interval_end': 'timeIntervalEnd',
@@ -62,6 +68,7 @@ def __init__(self, **kwargs):
}
self._sql_identifier = None
+ self._id = None
self._database_id = None
self._time_interval_start = None
self._time_interval_end = None
@@ -92,6 +99,34 @@ def sql_identifier(self, sql_identifier):
"""
self._sql_identifier = sql_identifier
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this SqlPlanInsightAggregationCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this SqlPlanInsightAggregationCollection.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this SqlPlanInsightAggregationCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this SqlPlanInsightAggregationCollection.
+ :type: str
+ """
+ self._id = id
+
@property
def database_id(self):
"""
diff --git a/src/oci/opsi/models/sql_response_time_distribution_aggregation_collection.py b/src/oci/opsi/models/sql_response_time_distribution_aggregation_collection.py
index c2b9ba8c51..d62549b8c6 100644
--- a/src/oci/opsi/models/sql_response_time_distribution_aggregation_collection.py
+++ b/src/oci/opsi/models/sql_response_time_distribution_aggregation_collection.py
@@ -22,6 +22,10 @@ def __init__(self, **kwargs):
The value to assign to the sql_identifier property of this SqlResponseTimeDistributionAggregationCollection.
:type sql_identifier: str
+ :param id:
+ The value to assign to the id property of this SqlResponseTimeDistributionAggregationCollection.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this SqlResponseTimeDistributionAggregationCollection.
:type database_id: str
@@ -41,6 +45,7 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'sql_identifier': 'str',
+ 'id': 'str',
'database_id': 'str',
'time_interval_start': 'datetime',
'time_interval_end': 'datetime',
@@ -49,6 +54,7 @@ def __init__(self, **kwargs):
self.attribute_map = {
'sql_identifier': 'sqlIdentifier',
+ 'id': 'id',
'database_id': 'databaseId',
'time_interval_start': 'timeIntervalStart',
'time_interval_end': 'timeIntervalEnd',
@@ -56,6 +62,7 @@ def __init__(self, **kwargs):
}
self._sql_identifier = None
+ self._id = None
self._database_id = None
self._time_interval_start = None
self._time_interval_end = None
@@ -85,6 +92,34 @@ def sql_identifier(self, sql_identifier):
"""
self._sql_identifier = sql_identifier
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this SqlResponseTimeDistributionAggregationCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this SqlResponseTimeDistributionAggregationCollection.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this SqlResponseTimeDistributionAggregationCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this SqlResponseTimeDistributionAggregationCollection.
+ :type: str
+ """
+ self._id = id
+
@property
def database_id(self):
"""
diff --git a/src/oci/opsi/models/sql_search_summary.py b/src/oci/opsi/models/sql_search_summary.py
index d4c646313a..62cbb3ef69 100644
--- a/src/oci/opsi/models/sql_search_summary.py
+++ b/src/oci/opsi/models/sql_search_summary.py
@@ -18,6 +18,10 @@ def __init__(self, **kwargs):
Initializes a new SqlSearchSummary object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
+ :param id:
+ The value to assign to the id property of this SqlSearchSummary.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this SqlSearchSummary.
:type database_id: str
@@ -44,6 +48,7 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
+ 'id': 'str',
'database_id': 'str',
'compartment_id': 'str',
'database_name': 'str',
@@ -53,6 +58,7 @@ def __init__(self, **kwargs):
}
self.attribute_map = {
+ 'id': 'id',
'database_id': 'databaseId',
'compartment_id': 'compartmentId',
'database_name': 'databaseName',
@@ -61,6 +67,7 @@ def __init__(self, **kwargs):
'database_version': 'databaseVersion'
}
+ self._id = None
self._database_id = None
self._compartment_id = None
self._database_name = None
@@ -68,6 +75,34 @@ def __init__(self, **kwargs):
self._database_type = None
self._database_version = None
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this SqlSearchSummary.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this SqlSearchSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this SqlSearchSummary.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this SqlSearchSummary.
+ :type: str
+ """
+ self._id = id
+
@property
def database_id(self):
"""
diff --git a/src/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.py b/src/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.py
index 2f7aab84f4..67d6a1ebf7 100644
--- a/src/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.py
+++ b/src/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.py
@@ -22,6 +22,10 @@ def __init__(self, **kwargs):
The value to assign to the sql_identifier property of this SqlStatisticsTimeSeriesByPlanAggregationCollection.
:type sql_identifier: str
+ :param id:
+ The value to assign to the id property of this SqlStatisticsTimeSeriesByPlanAggregationCollection.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this SqlStatisticsTimeSeriesByPlanAggregationCollection.
:type database_id: str
@@ -49,6 +53,7 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'sql_identifier': 'str',
+ 'id': 'str',
'database_id': 'str',
'time_interval_start': 'datetime',
'time_interval_end': 'datetime',
@@ -59,6 +64,7 @@ def __init__(self, **kwargs):
self.attribute_map = {
'sql_identifier': 'sqlIdentifier',
+ 'id': 'id',
'database_id': 'databaseId',
'time_interval_start': 'timeIntervalStart',
'time_interval_end': 'timeIntervalEnd',
@@ -68,6 +74,7 @@ def __init__(self, **kwargs):
}
self._sql_identifier = None
+ self._id = None
self._database_id = None
self._time_interval_start = None
self._time_interval_end = None
@@ -99,6 +106,34 @@ def sql_identifier(self, sql_identifier):
"""
self._sql_identifier = sql_identifier
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this SqlStatisticsTimeSeriesByPlanAggregationCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this SqlStatisticsTimeSeriesByPlanAggregationCollection.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this SqlStatisticsTimeSeriesByPlanAggregationCollection.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this SqlStatisticsTimeSeriesByPlanAggregationCollection.
+ :type: str
+ """
+ self._id = id
+
@property
def database_id(self):
"""
diff --git a/src/oci/opsi/models/sql_text_summary.py b/src/oci/opsi/models/sql_text_summary.py
index 0389194a94..f62f25c547 100644
--- a/src/oci/opsi/models/sql_text_summary.py
+++ b/src/oci/opsi/models/sql_text_summary.py
@@ -22,6 +22,10 @@ def __init__(self, **kwargs):
The value to assign to the sql_identifier property of this SqlTextSummary.
:type sql_identifier: str
+ :param id:
+ The value to assign to the id property of this SqlTextSummary.
+ :type id: str
+
:param database_id:
The value to assign to the database_id property of this SqlTextSummary.
:type database_id: str
@@ -33,17 +37,20 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'sql_identifier': 'str',
+ 'id': 'str',
'database_id': 'str',
'sql_text': 'str'
}
self.attribute_map = {
'sql_identifier': 'sqlIdentifier',
+ 'id': 'id',
'database_id': 'databaseId',
'sql_text': 'sqlText'
}
self._sql_identifier = None
+ self._id = None
self._database_id = None
self._sql_text = None
@@ -71,6 +78,34 @@ def sql_identifier(self, sql_identifier):
"""
self._sql_identifier = sql_identifier
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this SqlTextSummary.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The id of this SqlTextSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this SqlTextSummary.
+ The `OCID`__ of the database insight resource.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param id: The id of this SqlTextSummary.
+ :type: str
+ """
+ self._id = id
+
@property
def database_id(self):
"""
diff --git a/src/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.py b/src/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.py
index 4fe5396e85..78d5c9b3f0 100644
--- a/src/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.py
+++ b/src/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.py
@@ -21,6 +21,22 @@ class SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection(object)
#: This constant has a value of "STORAGE"
RESOURCE_METRIC_STORAGE = "STORAGE"
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "IO"
+ RESOURCE_METRIC_IO = "IO"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "MEMORY_PGA"
+ RESOURCE_METRIC_MEMORY_PGA = "MEMORY_PGA"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "MEMORY_SGA"
+ RESOURCE_METRIC_MEMORY_SGA = "MEMORY_SGA"
+
#: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
#: This constant has a value of "CORES"
USAGE_UNIT_CORES = "CORES"
@@ -52,7 +68,7 @@ def __init__(self, **kwargs):
:param resource_metric:
The value to assign to the resource_metric property of this SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type resource_metric: str
@@ -148,9 +164,9 @@ def time_interval_end(self, time_interval_end):
def resource_metric(self):
"""
**[Required]** Gets the resource_metric of this SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -163,13 +179,13 @@ def resource_metric(self):
def resource_metric(self, resource_metric):
"""
Sets the resource_metric of this SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
:param resource_metric: The resource_metric of this SummarizeDatabaseInsightResourceCapacityTrendAggregationCollection.
:type: str
"""
- allowed_values = ["CPU", "STORAGE"]
+ allowed_values = ["CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA"]
if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
resource_metric = 'UNKNOWN_ENUM_VALUE'
self._resource_metric = resource_metric
diff --git a/src/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.py b/src/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.py
index edb071a585..077ba7f781 100644
--- a/src/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.py
+++ b/src/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.py
@@ -21,6 +21,22 @@ class SummarizeDatabaseInsightResourceForecastTrendAggregation(object):
#: This constant has a value of "STORAGE"
RESOURCE_METRIC_STORAGE = "STORAGE"
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "IO"
+ RESOURCE_METRIC_IO = "IO"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "MEMORY_PGA"
+ RESOURCE_METRIC_MEMORY_PGA = "MEMORY_PGA"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "MEMORY_SGA"
+ RESOURCE_METRIC_MEMORY_SGA = "MEMORY_SGA"
+
#: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceForecastTrendAggregation.
#: This constant has a value of "CORES"
USAGE_UNIT_CORES = "CORES"
@@ -84,7 +100,7 @@ def __init__(self, **kwargs):
:param resource_metric:
The value to assign to the resource_metric property of this SummarizeDatabaseInsightResourceForecastTrendAggregation.
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type resource_metric: str
@@ -189,9 +205,9 @@ def time_interval_end(self, time_interval_end):
def resource_metric(self):
"""
**[Required]** Gets the resource_metric of this SummarizeDatabaseInsightResourceForecastTrendAggregation.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -204,13 +220,13 @@ def resource_metric(self):
def resource_metric(self, resource_metric):
"""
Sets the resource_metric of this SummarizeDatabaseInsightResourceForecastTrendAggregation.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
:param resource_metric: The resource_metric of this SummarizeDatabaseInsightResourceForecastTrendAggregation.
:type: str
"""
- allowed_values = ["CPU", "STORAGE"]
+ allowed_values = ["CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA"]
if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
resource_metric = 'UNKNOWN_ENUM_VALUE'
self._resource_metric = resource_metric
diff --git a/src/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.py b/src/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.py
index d3084540c2..ee778bff3d 100644
--- a/src/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.py
+++ b/src/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.py
@@ -21,6 +21,22 @@ class SummarizeDatabaseInsightResourceStatisticsAggregationCollection(object):
#: This constant has a value of "STORAGE"
RESOURCE_METRIC_STORAGE = "STORAGE"
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "IO"
+ RESOURCE_METRIC_IO = "IO"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "MEMORY_PGA"
+ RESOURCE_METRIC_MEMORY_PGA = "MEMORY_PGA"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "MEMORY_SGA"
+ RESOURCE_METRIC_MEMORY_SGA = "MEMORY_SGA"
+
#: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
#: This constant has a value of "CORES"
USAGE_UNIT_CORES = "CORES"
@@ -52,7 +68,7 @@ def __init__(self, **kwargs):
:param resource_metric:
The value to assign to the resource_metric property of this SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type resource_metric: str
@@ -141,9 +157,9 @@ def time_interval_end(self, time_interval_end):
def resource_metric(self):
"""
**[Required]** Gets the resource_metric of this SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -156,13 +172,13 @@ def resource_metric(self):
def resource_metric(self, resource_metric):
"""
Sets the resource_metric of this SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
:param resource_metric: The resource_metric of this SummarizeDatabaseInsightResourceStatisticsAggregationCollection.
:type: str
"""
- allowed_values = ["CPU", "STORAGE"]
+ allowed_values = ["CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA"]
if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
resource_metric = 'UNKNOWN_ENUM_VALUE'
self._resource_metric = resource_metric
diff --git a/src/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.py b/src/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.py
index 302b5fd919..cce68cdb78 100644
--- a/src/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.py
+++ b/src/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.py
@@ -21,6 +21,22 @@ class SummarizeDatabaseInsightResourceUsageAggregation(object):
#: This constant has a value of "STORAGE"
RESOURCE_METRIC_STORAGE = "STORAGE"
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation.
+ #: This constant has a value of "IO"
+ RESOURCE_METRIC_IO = "IO"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation.
+ #: This constant has a value of "MEMORY_PGA"
+ RESOURCE_METRIC_MEMORY_PGA = "MEMORY_PGA"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageAggregation.
+ #: This constant has a value of "MEMORY_SGA"
+ RESOURCE_METRIC_MEMORY_SGA = "MEMORY_SGA"
+
#: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageAggregation.
#: This constant has a value of "CORES"
USAGE_UNIT_CORES = "CORES"
@@ -52,7 +68,7 @@ def __init__(self, **kwargs):
:param resource_metric:
The value to assign to the resource_metric property of this SummarizeDatabaseInsightResourceUsageAggregation.
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type resource_metric: str
@@ -155,9 +171,9 @@ def time_interval_end(self, time_interval_end):
def resource_metric(self):
"""
**[Required]** Gets the resource_metric of this SummarizeDatabaseInsightResourceUsageAggregation.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -170,13 +186,13 @@ def resource_metric(self):
def resource_metric(self, resource_metric):
"""
Sets the resource_metric of this SummarizeDatabaseInsightResourceUsageAggregation.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
:param resource_metric: The resource_metric of this SummarizeDatabaseInsightResourceUsageAggregation.
:type: str
"""
- allowed_values = ["CPU", "STORAGE"]
+ allowed_values = ["CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA"]
if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
resource_metric = 'UNKNOWN_ENUM_VALUE'
self._resource_metric = resource_metric
diff --git a/src/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.py b/src/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.py
index 60cdf3051a..edb71ebe9c 100644
--- a/src/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.py
+++ b/src/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.py
@@ -21,6 +21,22 @@ class SummarizeDatabaseInsightResourceUsageTrendAggregationCollection(object):
#: This constant has a value of "STORAGE"
RESOURCE_METRIC_STORAGE = "STORAGE"
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "IO"
+ RESOURCE_METRIC_IO = "IO"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "MEMORY_PGA"
+ RESOURCE_METRIC_MEMORY_PGA = "MEMORY_PGA"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "MEMORY_SGA"
+ RESOURCE_METRIC_MEMORY_SGA = "MEMORY_SGA"
+
#: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
#: This constant has a value of "CORES"
USAGE_UNIT_CORES = "CORES"
@@ -52,7 +68,7 @@ def __init__(self, **kwargs):
:param resource_metric:
The value to assign to the resource_metric property of this SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type resource_metric: str
@@ -148,9 +164,9 @@ def time_interval_end(self, time_interval_end):
def resource_metric(self):
"""
**[Required]** Gets the resource_metric of this SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -163,13 +179,13 @@ def resource_metric(self):
def resource_metric(self, resource_metric):
"""
Sets the resource_metric of this SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
:param resource_metric: The resource_metric of this SummarizeDatabaseInsightResourceUsageTrendAggregationCollection.
:type: str
"""
- allowed_values = ["CPU", "STORAGE"]
+ allowed_values = ["CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA"]
if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
resource_metric = 'UNKNOWN_ENUM_VALUE'
self._resource_metric = resource_metric
diff --git a/src/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.py b/src/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.py
index 51c67631b7..e6c3402588 100644
--- a/src/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.py
+++ b/src/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.py
@@ -21,6 +21,22 @@ class SummarizeDatabaseInsightResourceUtilizationInsightAggregation(object):
#: This constant has a value of "STORAGE"
RESOURCE_METRIC_STORAGE = "STORAGE"
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
+ #: This constant has a value of "IO"
+ RESOURCE_METRIC_IO = "IO"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
+ #: This constant has a value of "MEMORY_PGA"
+ RESOURCE_METRIC_MEMORY_PGA = "MEMORY_PGA"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
+ #: This constant has a value of "MEMORY_SGA"
+ RESOURCE_METRIC_MEMORY_SGA = "MEMORY_SGA"
+
def __init__(self, **kwargs):
"""
Initializes a new SummarizeDatabaseInsightResourceUtilizationInsightAggregation object with values from keyword arguments.
@@ -36,7 +52,7 @@ def __init__(self, **kwargs):
:param resource_metric:
The value to assign to the resource_metric property of this SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type resource_metric: str
@@ -123,9 +139,9 @@ def time_interval_end(self, time_interval_end):
def resource_metric(self):
"""
**[Required]** Gets the resource_metric of this SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
- Allowed values for this property are: "CPU", "STORAGE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -138,13 +154,13 @@ def resource_metric(self):
def resource_metric(self, resource_metric):
"""
Sets the resource_metric of this SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
- Defines the type of resource metric (CPU, STORAGE)
+ Defines the type of resource metric (example: CPU, STORAGE)
:param resource_metric: The resource_metric of this SummarizeDatabaseInsightResourceUtilizationInsightAggregation.
:type: str
"""
- allowed_values = ["CPU", "STORAGE"]
+ allowed_values = ["CPU", "STORAGE", "IO", "MEMORY", "MEMORY_PGA", "MEMORY_SGA"]
if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
resource_metric = 'UNKNOWN_ENUM_VALUE'
self._resource_metric = resource_metric
diff --git a/src/oci/opsi/models/summarize_database_insight_tablespace_usage_trend_aggregation_collection.py b/src/oci/opsi/models/summarize_database_insight_tablespace_usage_trend_aggregation_collection.py
new file mode 100644
index 0000000000..3eca857fd3
--- /dev/null
+++ b/src/oci/opsi/models/summarize_database_insight_tablespace_usage_trend_aggregation_collection.py
@@ -0,0 +1,218 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection(object):
+ """
+ Top level response object.
+ """
+
+ #: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ #: This constant has a value of "CORES"
+ USAGE_UNIT_CORES = "CORES"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ #: This constant has a value of "GB"
+ USAGE_UNIT_GB = "GB"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ #: This constant has a value of "MBPS"
+ USAGE_UNIT_MBPS = "MBPS"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ #: This constant has a value of "PERCENT"
+ USAGE_UNIT_PERCENT = "PERCENT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type time_interval_end: datetime
+
+ :param usage_unit:
+ The value to assign to the usage_unit property of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type usage_unit: str
+
+ :param item_duration_in_ms:
+ The value to assign to the item_duration_in_ms property of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type item_duration_in_ms: int
+
+ :param items:
+ The value to assign to the items property of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type items: list[oci.opsi.models.TablespaceUsageTrendAggregation]
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'usage_unit': 'str',
+ 'item_duration_in_ms': 'int',
+ 'items': 'list[TablespaceUsageTrendAggregation]'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'usage_unit': 'usageUnit',
+ 'item_duration_in_ms': 'itemDurationInMs',
+ 'items': 'items'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._usage_unit = None
+ self._item_duration_in_ms = None
+ self._items = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def usage_unit(self):
+ """
+ **[Required]** Gets the usage_unit of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ Displays usage unit ( CORES, GB)
+
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The usage_unit of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :rtype: str
+ """
+ return self._usage_unit
+
+ @usage_unit.setter
+ def usage_unit(self, usage_unit):
+ """
+ Sets the usage_unit of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ Displays usage unit ( CORES, GB)
+
+
+ :param usage_unit: The usage_unit of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type: str
+ """
+ allowed_values = ["CORES", "GB", "MBPS", "PERCENT"]
+ if not value_allowed_none_or_none_sentinel(usage_unit, allowed_values):
+ usage_unit = 'UNKNOWN_ENUM_VALUE'
+ self._usage_unit = usage_unit
+
+ @property
+ def item_duration_in_ms(self):
+ """
+ **[Required]** Gets the item_duration_in_ms of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ Time duration in milliseconds between data points (one hour or one day).
+
+
+ :return: The item_duration_in_ms of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :rtype: int
+ """
+ return self._item_duration_in_ms
+
+ @item_duration_in_ms.setter
+ def item_duration_in_ms(self, item_duration_in_ms):
+ """
+ Sets the item_duration_in_ms of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ Time duration in milliseconds between data points (one hour or one day).
+
+
+ :param item_duration_in_ms: The item_duration_in_ms of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type: int
+ """
+ self._item_duration_in_ms = item_duration_in_ms
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ Collection of Usage Data with time stamps for top five tablespace
+
+
+ :return: The items of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :rtype: list[oci.opsi.models.TablespaceUsageTrendAggregation]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ Collection of Usage Data with time stamps for top five tablespace
+
+
+ :param items: The items of this SummarizeDatabaseInsightTablespaceUsageTrendAggregationCollection.
+ :type: list[oci.opsi.models.TablespaceUsageTrendAggregation]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.py b/src/oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.py
new file mode 100644
index 0000000000..872ba78483
--- /dev/null
+++ b/src/oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.py
@@ -0,0 +1,269 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummarizeHostInsightResourceCapacityTrendAggregationCollection(object):
+ """
+ Top level response object.
+ """
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "CPU"
+ RESOURCE_METRIC_CPU = "CPU"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "LOGICAL_MEMORY"
+ RESOURCE_METRIC_LOGICAL_MEMORY = "LOGICAL_MEMORY"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "CORES"
+ USAGE_UNIT_CORES = "CORES"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "GB"
+ USAGE_UNIT_GB = "GB"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "MBPS"
+ USAGE_UNIT_MBPS = "MBPS"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ #: This constant has a value of "PERCENT"
+ USAGE_UNIT_PERCENT = "PERCENT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummarizeHostInsightResourceCapacityTrendAggregationCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type time_interval_end: datetime
+
+ :param resource_metric:
+ The value to assign to the resource_metric property of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type resource_metric: str
+
+ :param usage_unit:
+ The value to assign to the usage_unit property of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type usage_unit: str
+
+ :param item_duration_in_ms:
+ The value to assign to the item_duration_in_ms property of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type item_duration_in_ms: int
+
+ :param capacity_data:
+ The value to assign to the capacity_data property of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type capacity_data: list[oci.opsi.models.HostResourceCapacityTrendAggregation]
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'resource_metric': 'str',
+ 'usage_unit': 'str',
+ 'item_duration_in_ms': 'int',
+ 'capacity_data': 'list[HostResourceCapacityTrendAggregation]'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'resource_metric': 'resourceMetric',
+ 'usage_unit': 'usageUnit',
+ 'item_duration_in_ms': 'itemDurationInMs',
+ 'capacity_data': 'capacityData'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._resource_metric = None
+ self._usage_unit = None
+ self._item_duration_in_ms = None
+ self._capacity_data = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def resource_metric(self):
+ """
+ **[Required]** Gets the resource_metric of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The resource_metric of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :rtype: str
+ """
+ return self._resource_metric
+
+ @resource_metric.setter
+ def resource_metric(self, resource_metric):
+ """
+ Sets the resource_metric of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+
+ :param resource_metric: The resource_metric of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type: str
+ """
+ allowed_values = ["CPU", "MEMORY", "LOGICAL_MEMORY"]
+ if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
+ resource_metric = 'UNKNOWN_ENUM_VALUE'
+ self._resource_metric = resource_metric
+
+ @property
+ def usage_unit(self):
+ """
+ **[Required]** Gets the usage_unit of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Displays usage unit (CORES, GB)
+
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The usage_unit of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :rtype: str
+ """
+ return self._usage_unit
+
+ @usage_unit.setter
+ def usage_unit(self, usage_unit):
+ """
+ Sets the usage_unit of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Displays usage unit (CORES, GB)
+
+
+ :param usage_unit: The usage_unit of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type: str
+ """
+ allowed_values = ["CORES", "GB", "MBPS", "PERCENT"]
+ if not value_allowed_none_or_none_sentinel(usage_unit, allowed_values):
+ usage_unit = 'UNKNOWN_ENUM_VALUE'
+ self._usage_unit = usage_unit
+
+ @property
+ def item_duration_in_ms(self):
+ """
+ **[Required]** Gets the item_duration_in_ms of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Time duration in milliseconds between data points (one hour or one day).
+
+
+ :return: The item_duration_in_ms of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :rtype: int
+ """
+ return self._item_duration_in_ms
+
+ @item_duration_in_ms.setter
+ def item_duration_in_ms(self, item_duration_in_ms):
+ """
+ Sets the item_duration_in_ms of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Time duration in milliseconds between data points (one hour or one day).
+
+
+ :param item_duration_in_ms: The item_duration_in_ms of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type: int
+ """
+ self._item_duration_in_ms = item_duration_in_ms
+
+ @property
+ def capacity_data(self):
+ """
+ **[Required]** Gets the capacity_data of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Capacity Data with timestamp.
+
+
+ :return: The capacity_data of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :rtype: list[oci.opsi.models.HostResourceCapacityTrendAggregation]
+ """
+ return self._capacity_data
+
+ @capacity_data.setter
+ def capacity_data(self, capacity_data):
+ """
+ Sets the capacity_data of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ Capacity Data with timestamp.
+
+
+ :param capacity_data: The capacity_data of this SummarizeHostInsightResourceCapacityTrendAggregationCollection.
+ :type: list[oci.opsi.models.HostResourceCapacityTrendAggregation]
+ """
+ self._capacity_data = capacity_data
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.py b/src/oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.py
new file mode 100644
index 0000000000..4f893db4f4
--- /dev/null
+++ b/src/oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.py
@@ -0,0 +1,340 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummarizeHostInsightResourceForecastTrendAggregation(object):
+ """
+ Forecast results from the selected time period.
+ """
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "CPU"
+ RESOURCE_METRIC_CPU = "CPU"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "LOGICAL_MEMORY"
+ RESOURCE_METRIC_LOGICAL_MEMORY = "LOGICAL_MEMORY"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "CORES"
+ USAGE_UNIT_CORES = "CORES"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "GB"
+ USAGE_UNIT_GB = "GB"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "MBPS"
+ USAGE_UNIT_MBPS = "MBPS"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "PERCENT"
+ USAGE_UNIT_PERCENT = "PERCENT"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "LINEAR"
+ PATTERN_LINEAR = "LINEAR"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "MONTHLY_SEASONS"
+ PATTERN_MONTHLY_SEASONS = "MONTHLY_SEASONS"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "MONTHLY_AND_YEARLY_SEASONS"
+ PATTERN_MONTHLY_AND_YEARLY_SEASONS = "MONTHLY_AND_YEARLY_SEASONS"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "WEEKLY_SEASONS"
+ PATTERN_WEEKLY_SEASONS = "WEEKLY_SEASONS"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "WEEKLY_AND_MONTHLY_SEASONS"
+ PATTERN_WEEKLY_AND_MONTHLY_SEASONS = "WEEKLY_AND_MONTHLY_SEASONS"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "WEEKLY_MONTHLY_AND_YEARLY_SEASONS"
+ PATTERN_WEEKLY_MONTHLY_AND_YEARLY_SEASONS = "WEEKLY_MONTHLY_AND_YEARLY_SEASONS"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "WEEKLY_AND_YEARLY_SEASONS"
+ PATTERN_WEEKLY_AND_YEARLY_SEASONS = "WEEKLY_AND_YEARLY_SEASONS"
+
+ #: A constant which can be used with the pattern property of a SummarizeHostInsightResourceForecastTrendAggregation.
+ #: This constant has a value of "YEARLY_SEASONS"
+ PATTERN_YEARLY_SEASONS = "YEARLY_SEASONS"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummarizeHostInsightResourceForecastTrendAggregation object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type time_interval_end: datetime
+
+ :param resource_metric:
+ The value to assign to the resource_metric property of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type resource_metric: str
+
+ :param usage_unit:
+ The value to assign to the usage_unit property of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type usage_unit: str
+
+ :param pattern:
+ The value to assign to the pattern property of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Allowed values for this property are: "LINEAR", "MONTHLY_SEASONS", "MONTHLY_AND_YEARLY_SEASONS", "WEEKLY_SEASONS", "WEEKLY_AND_MONTHLY_SEASONS", "WEEKLY_MONTHLY_AND_YEARLY_SEASONS", "WEEKLY_AND_YEARLY_SEASONS", "YEARLY_SEASONS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type pattern: str
+
+ :param historical_data:
+ The value to assign to the historical_data property of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type historical_data: list[oci.opsi.models.HistoricalDataItem]
+
+ :param projected_data:
+ The value to assign to the projected_data property of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type projected_data: list[oci.opsi.models.ProjectedDataItem]
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'resource_metric': 'str',
+ 'usage_unit': 'str',
+ 'pattern': 'str',
+ 'historical_data': 'list[HistoricalDataItem]',
+ 'projected_data': 'list[ProjectedDataItem]'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'resource_metric': 'resourceMetric',
+ 'usage_unit': 'usageUnit',
+ 'pattern': 'pattern',
+ 'historical_data': 'historicalData',
+ 'projected_data': 'projectedData'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._resource_metric = None
+ self._usage_unit = None
+ self._pattern = None
+ self._historical_data = None
+ self._projected_data = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this SummarizeHostInsightResourceForecastTrendAggregation.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this SummarizeHostInsightResourceForecastTrendAggregation.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this SummarizeHostInsightResourceForecastTrendAggregation.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this SummarizeHostInsightResourceForecastTrendAggregation.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def resource_metric(self):
+ """
+ **[Required]** Gets the resource_metric of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The resource_metric of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :rtype: str
+ """
+ return self._resource_metric
+
+ @resource_metric.setter
+ def resource_metric(self, resource_metric):
+ """
+ Sets the resource_metric of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+
+ :param resource_metric: The resource_metric of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type: str
+ """
+ allowed_values = ["CPU", "MEMORY", "LOGICAL_MEMORY"]
+ if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
+ resource_metric = 'UNKNOWN_ENUM_VALUE'
+ self._resource_metric = resource_metric
+
+ @property
+ def usage_unit(self):
+ """
+ **[Required]** Gets the usage_unit of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Displays usage unit (CORES, GB)
+
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The usage_unit of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :rtype: str
+ """
+ return self._usage_unit
+
+ @usage_unit.setter
+ def usage_unit(self, usage_unit):
+ """
+ Sets the usage_unit of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Displays usage unit (CORES, GB)
+
+
+ :param usage_unit: The usage_unit of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type: str
+ """
+ allowed_values = ["CORES", "GB", "MBPS", "PERCENT"]
+ if not value_allowed_none_or_none_sentinel(usage_unit, allowed_values):
+ usage_unit = 'UNKNOWN_ENUM_VALUE'
+ self._usage_unit = usage_unit
+
+ @property
+ def pattern(self):
+ """
+ **[Required]** Gets the pattern of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Time series patterns used in the forecasting.
+
+ Allowed values for this property are: "LINEAR", "MONTHLY_SEASONS", "MONTHLY_AND_YEARLY_SEASONS", "WEEKLY_SEASONS", "WEEKLY_AND_MONTHLY_SEASONS", "WEEKLY_MONTHLY_AND_YEARLY_SEASONS", "WEEKLY_AND_YEARLY_SEASONS", "YEARLY_SEASONS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The pattern of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :rtype: str
+ """
+ return self._pattern
+
+ @pattern.setter
+ def pattern(self, pattern):
+ """
+ Sets the pattern of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Time series patterns used in the forecasting.
+
+
+ :param pattern: The pattern of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type: str
+ """
+ allowed_values = ["LINEAR", "MONTHLY_SEASONS", "MONTHLY_AND_YEARLY_SEASONS", "WEEKLY_SEASONS", "WEEKLY_AND_MONTHLY_SEASONS", "WEEKLY_MONTHLY_AND_YEARLY_SEASONS", "WEEKLY_AND_YEARLY_SEASONS", "YEARLY_SEASONS"]
+ if not value_allowed_none_or_none_sentinel(pattern, allowed_values):
+ pattern = 'UNKNOWN_ENUM_VALUE'
+ self._pattern = pattern
+
+ @property
+ def historical_data(self):
+ """
+ **[Required]** Gets the historical_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Time series data used for the forecast analysis.
+
+
+ :return: The historical_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :rtype: list[oci.opsi.models.HistoricalDataItem]
+ """
+ return self._historical_data
+
+ @historical_data.setter
+ def historical_data(self, historical_data):
+ """
+ Sets the historical_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Time series data used for the forecast analysis.
+
+
+ :param historical_data: The historical_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type: list[oci.opsi.models.HistoricalDataItem]
+ """
+ self._historical_data = historical_data
+
+ @property
+ def projected_data(self):
+ """
+ **[Required]** Gets the projected_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Time series data result of the forecasting analysis.
+
+
+ :return: The projected_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :rtype: list[oci.opsi.models.ProjectedDataItem]
+ """
+ return self._projected_data
+
+ @projected_data.setter
+ def projected_data(self, projected_data):
+ """
+ Sets the projected_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ Time series data result of the forecasting analysis.
+
+
+ :param projected_data: The projected_data of this SummarizeHostInsightResourceForecastTrendAggregation.
+ :type: list[oci.opsi.models.ProjectedDataItem]
+ """
+ self._projected_data = projected_data
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.py b/src/oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.py
new file mode 100644
index 0000000000..e721be15fa
--- /dev/null
+++ b/src/oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.py
@@ -0,0 +1,238 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummarizeHostInsightResourceStatisticsAggregationCollection(object):
+ """
+ Returns list of hosts with resource statistics like usage, capacity, utilization, usage change percent and load.
+ """
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "CPU"
+ RESOURCE_METRIC_CPU = "CPU"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "LOGICAL_MEMORY"
+ RESOURCE_METRIC_LOGICAL_MEMORY = "LOGICAL_MEMORY"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "CORES"
+ USAGE_UNIT_CORES = "CORES"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "GB"
+ USAGE_UNIT_GB = "GB"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "MBPS"
+ USAGE_UNIT_MBPS = "MBPS"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceStatisticsAggregationCollection.
+ #: This constant has a value of "PERCENT"
+ USAGE_UNIT_PERCENT = "PERCENT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummarizeHostInsightResourceStatisticsAggregationCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type time_interval_end: datetime
+
+ :param resource_metric:
+ The value to assign to the resource_metric property of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type resource_metric: str
+
+ :param usage_unit:
+ The value to assign to the usage_unit property of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type usage_unit: str
+
+ :param items:
+ The value to assign to the items property of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type items: list[oci.opsi.models.HostInsightResourceStatisticsAggregation]
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'resource_metric': 'str',
+ 'usage_unit': 'str',
+ 'items': 'list[HostInsightResourceStatisticsAggregation]'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'resource_metric': 'resourceMetric',
+ 'usage_unit': 'usageUnit',
+ 'items': 'items'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._resource_metric = None
+ self._usage_unit = None
+ self._items = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def resource_metric(self):
+ """
+ **[Required]** Gets the resource_metric of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The resource_metric of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :rtype: str
+ """
+ return self._resource_metric
+
+ @resource_metric.setter
+ def resource_metric(self, resource_metric):
+ """
+ Sets the resource_metric of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+
+ :param resource_metric: The resource_metric of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type: str
+ """
+ allowed_values = ["CPU", "MEMORY", "LOGICAL_MEMORY"]
+ if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
+ resource_metric = 'UNKNOWN_ENUM_VALUE'
+ self._resource_metric = resource_metric
+
+ @property
+ def usage_unit(self):
+ """
+ **[Required]** Gets the usage_unit of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Displays usage unit.
+
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The usage_unit of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :rtype: str
+ """
+ return self._usage_unit
+
+ @usage_unit.setter
+ def usage_unit(self, usage_unit):
+ """
+ Sets the usage_unit of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Displays usage unit.
+
+
+ :param usage_unit: The usage_unit of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type: str
+ """
+ allowed_values = ["CORES", "GB", "MBPS", "PERCENT"]
+ if not value_allowed_none_or_none_sentinel(usage_unit, allowed_values):
+ usage_unit = 'UNKNOWN_ENUM_VALUE'
+ self._usage_unit = usage_unit
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Collection of Resource Statistics items
+
+
+ :return: The items of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :rtype: list[oci.opsi.models.HostInsightResourceStatisticsAggregation]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ Collection of Resource Statistics items
+
+
+ :param items: The items of this SummarizeHostInsightResourceStatisticsAggregationCollection.
+ :type: list[oci.opsi.models.HostInsightResourceStatisticsAggregation]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/summarize_host_insight_resource_usage_aggregation.py b/src/oci/opsi/models/summarize_host_insight_resource_usage_aggregation.py
new file mode 100644
index 0000000000..f3fa46d233
--- /dev/null
+++ b/src/oci/opsi/models/summarize_host_insight_resource_usage_aggregation.py
@@ -0,0 +1,300 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummarizeHostInsightResourceUsageAggregation(object):
+ """
+ Resource usage summation for the current time period.
+ """
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUsageAggregation.
+ #: This constant has a value of "CPU"
+ RESOURCE_METRIC_CPU = "CPU"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUsageAggregation.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUsageAggregation.
+ #: This constant has a value of "LOGICAL_MEMORY"
+ RESOURCE_METRIC_LOGICAL_MEMORY = "LOGICAL_MEMORY"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageAggregation.
+ #: This constant has a value of "CORES"
+ USAGE_UNIT_CORES = "CORES"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageAggregation.
+ #: This constant has a value of "GB"
+ USAGE_UNIT_GB = "GB"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageAggregation.
+ #: This constant has a value of "MBPS"
+ USAGE_UNIT_MBPS = "MBPS"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageAggregation.
+ #: This constant has a value of "PERCENT"
+ USAGE_UNIT_PERCENT = "PERCENT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummarizeHostInsightResourceUsageAggregation object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this SummarizeHostInsightResourceUsageAggregation.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this SummarizeHostInsightResourceUsageAggregation.
+ :type time_interval_end: datetime
+
+ :param resource_metric:
+ The value to assign to the resource_metric property of this SummarizeHostInsightResourceUsageAggregation.
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type resource_metric: str
+
+ :param usage_unit:
+ The value to assign to the usage_unit property of this SummarizeHostInsightResourceUsageAggregation.
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type usage_unit: str
+
+ :param usage:
+ The value to assign to the usage property of this SummarizeHostInsightResourceUsageAggregation.
+ :type usage: float
+
+ :param capacity:
+ The value to assign to the capacity property of this SummarizeHostInsightResourceUsageAggregation.
+ :type capacity: float
+
+ :param usage_change_percent:
+ The value to assign to the usage_change_percent property of this SummarizeHostInsightResourceUsageAggregation.
+ :type usage_change_percent: float
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'resource_metric': 'str',
+ 'usage_unit': 'str',
+ 'usage': 'float',
+ 'capacity': 'float',
+ 'usage_change_percent': 'float'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'resource_metric': 'resourceMetric',
+ 'usage_unit': 'usageUnit',
+ 'usage': 'usage',
+ 'capacity': 'capacity',
+ 'usage_change_percent': 'usageChangePercent'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._resource_metric = None
+ self._usage_unit = None
+ self._usage = None
+ self._capacity = None
+ self._usage_change_percent = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this SummarizeHostInsightResourceUsageAggregation.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this SummarizeHostInsightResourceUsageAggregation.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this SummarizeHostInsightResourceUsageAggregation.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this SummarizeHostInsightResourceUsageAggregation.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this SummarizeHostInsightResourceUsageAggregation.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this SummarizeHostInsightResourceUsageAggregation.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this SummarizeHostInsightResourceUsageAggregation.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this SummarizeHostInsightResourceUsageAggregation.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def resource_metric(self):
+ """
+ **[Required]** Gets the resource_metric of this SummarizeHostInsightResourceUsageAggregation.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The resource_metric of this SummarizeHostInsightResourceUsageAggregation.
+ :rtype: str
+ """
+ return self._resource_metric
+
+ @resource_metric.setter
+ def resource_metric(self, resource_metric):
+ """
+ Sets the resource_metric of this SummarizeHostInsightResourceUsageAggregation.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+
+ :param resource_metric: The resource_metric of this SummarizeHostInsightResourceUsageAggregation.
+ :type: str
+ """
+ allowed_values = ["CPU", "MEMORY", "LOGICAL_MEMORY"]
+ if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
+ resource_metric = 'UNKNOWN_ENUM_VALUE'
+ self._resource_metric = resource_metric
+
+ @property
+ def usage_unit(self):
+ """
+ **[Required]** Gets the usage_unit of this SummarizeHostInsightResourceUsageAggregation.
+ Displays usage unit (CORES, GB)
+
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The usage_unit of this SummarizeHostInsightResourceUsageAggregation.
+ :rtype: str
+ """
+ return self._usage_unit
+
+ @usage_unit.setter
+ def usage_unit(self, usage_unit):
+ """
+ Sets the usage_unit of this SummarizeHostInsightResourceUsageAggregation.
+ Displays usage unit (CORES, GB)
+
+
+ :param usage_unit: The usage_unit of this SummarizeHostInsightResourceUsageAggregation.
+ :type: str
+ """
+ allowed_values = ["CORES", "GB", "MBPS", "PERCENT"]
+ if not value_allowed_none_or_none_sentinel(usage_unit, allowed_values):
+ usage_unit = 'UNKNOWN_ENUM_VALUE'
+ self._usage_unit = usage_unit
+
+ @property
+ def usage(self):
+ """
+ **[Required]** Gets the usage of this SummarizeHostInsightResourceUsageAggregation.
+ Total amount used of the resource metric type (CPU, STORAGE).
+
+
+ :return: The usage of this SummarizeHostInsightResourceUsageAggregation.
+ :rtype: float
+ """
+ return self._usage
+
+ @usage.setter
+ def usage(self, usage):
+ """
+ Sets the usage of this SummarizeHostInsightResourceUsageAggregation.
+ Total amount used of the resource metric type (CPU, STORAGE).
+
+
+ :param usage: The usage of this SummarizeHostInsightResourceUsageAggregation.
+ :type: float
+ """
+ self._usage = usage
+
+ @property
+ def capacity(self):
+ """
+ **[Required]** Gets the capacity of this SummarizeHostInsightResourceUsageAggregation.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :return: The capacity of this SummarizeHostInsightResourceUsageAggregation.
+ :rtype: float
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """
+ Sets the capacity of this SummarizeHostInsightResourceUsageAggregation.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :param capacity: The capacity of this SummarizeHostInsightResourceUsageAggregation.
+ :type: float
+ """
+ self._capacity = capacity
+
+ @property
+ def usage_change_percent(self):
+ """
+ **[Required]** Gets the usage_change_percent of this SummarizeHostInsightResourceUsageAggregation.
+ Percentage change in resource usage during the current period calculated using linear regression functions
+
+
+ :return: The usage_change_percent of this SummarizeHostInsightResourceUsageAggregation.
+ :rtype: float
+ """
+ return self._usage_change_percent
+
+ @usage_change_percent.setter
+ def usage_change_percent(self, usage_change_percent):
+ """
+ Sets the usage_change_percent of this SummarizeHostInsightResourceUsageAggregation.
+ Percentage change in resource usage during the current period calculated using linear regression functions
+
+
+ :param usage_change_percent: The usage_change_percent of this SummarizeHostInsightResourceUsageAggregation.
+ :type: float
+ """
+ self._usage_change_percent = usage_change_percent
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.py b/src/oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.py
new file mode 100644
index 0000000000..1885e2dc74
--- /dev/null
+++ b/src/oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.py
@@ -0,0 +1,269 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummarizeHostInsightResourceUsageTrendAggregationCollection(object):
+ """
+ Top level response object.
+ """
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "CPU"
+ RESOURCE_METRIC_CPU = "CPU"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "LOGICAL_MEMORY"
+ RESOURCE_METRIC_LOGICAL_MEMORY = "LOGICAL_MEMORY"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "CORES"
+ USAGE_UNIT_CORES = "CORES"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "GB"
+ USAGE_UNIT_GB = "GB"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "MBPS"
+ USAGE_UNIT_MBPS = "MBPS"
+
+ #: A constant which can be used with the usage_unit property of a SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ #: This constant has a value of "PERCENT"
+ USAGE_UNIT_PERCENT = "PERCENT"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummarizeHostInsightResourceUsageTrendAggregationCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type time_interval_end: datetime
+
+ :param resource_metric:
+ The value to assign to the resource_metric property of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type resource_metric: str
+
+ :param usage_unit:
+ The value to assign to the usage_unit property of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type usage_unit: str
+
+ :param item_duration_in_ms:
+ The value to assign to the item_duration_in_ms property of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type item_duration_in_ms: int
+
+ :param usage_data:
+ The value to assign to the usage_data property of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type usage_data: list[oci.opsi.models.ResourceUsageTrendAggregation]
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'resource_metric': 'str',
+ 'usage_unit': 'str',
+ 'item_duration_in_ms': 'int',
+ 'usage_data': 'list[ResourceUsageTrendAggregation]'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'resource_metric': 'resourceMetric',
+ 'usage_unit': 'usageUnit',
+ 'item_duration_in_ms': 'itemDurationInMs',
+ 'usage_data': 'usageData'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._resource_metric = None
+ self._usage_unit = None
+ self._item_duration_in_ms = None
+ self._usage_data = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def resource_metric(self):
+ """
+ **[Required]** Gets the resource_metric of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The resource_metric of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :rtype: str
+ """
+ return self._resource_metric
+
+ @resource_metric.setter
+ def resource_metric(self, resource_metric):
+ """
+ Sets the resource_metric of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+
+ :param resource_metric: The resource_metric of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type: str
+ """
+ allowed_values = ["CPU", "MEMORY", "LOGICAL_MEMORY"]
+ if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
+ resource_metric = 'UNKNOWN_ENUM_VALUE'
+ self._resource_metric = resource_metric
+
+ @property
+ def usage_unit(self):
+ """
+ **[Required]** Gets the usage_unit of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Displays usage unit (CORES, GB)
+
+ Allowed values for this property are: "CORES", "GB", "MBPS", "PERCENT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The usage_unit of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :rtype: str
+ """
+ return self._usage_unit
+
+ @usage_unit.setter
+ def usage_unit(self, usage_unit):
+ """
+ Sets the usage_unit of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Displays usage unit (CORES, GB)
+
+
+ :param usage_unit: The usage_unit of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type: str
+ """
+ allowed_values = ["CORES", "GB", "MBPS", "PERCENT"]
+ if not value_allowed_none_or_none_sentinel(usage_unit, allowed_values):
+ usage_unit = 'UNKNOWN_ENUM_VALUE'
+ self._usage_unit = usage_unit
+
+ @property
+ def item_duration_in_ms(self):
+ """
+ **[Required]** Gets the item_duration_in_ms of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Time duration in milliseconds between data points (one hour or one day).
+
+
+ :return: The item_duration_in_ms of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :rtype: int
+ """
+ return self._item_duration_in_ms
+
+ @item_duration_in_ms.setter
+ def item_duration_in_ms(self, item_duration_in_ms):
+ """
+ Sets the item_duration_in_ms of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Time duration in milliseconds between data points (one hour or one day).
+
+
+ :param item_duration_in_ms: The item_duration_in_ms of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type: int
+ """
+ self._item_duration_in_ms = item_duration_in_ms
+
+ @property
+ def usage_data(self):
+ """
+ **[Required]** Gets the usage_data of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Usage Data with timestamp.
+
+
+ :return: The usage_data of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :rtype: list[oci.opsi.models.ResourceUsageTrendAggregation]
+ """
+ return self._usage_data
+
+ @usage_data.setter
+ def usage_data(self, usage_data):
+ """
+ Sets the usage_data of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ Usage Data with timestamp.
+
+
+ :param usage_data: The usage_data of this SummarizeHostInsightResourceUsageTrendAggregationCollection.
+ :type: list[oci.opsi.models.ResourceUsageTrendAggregation]
+ """
+ self._usage_data = usage_data
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.py b/src/oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.py
new file mode 100644
index 0000000000..588020a01e
--- /dev/null
+++ b/src/oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.py
@@ -0,0 +1,206 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummarizeHostInsightResourceUtilizationInsightAggregation(object):
+ """
+ Insights response containing current/projected groups for CPU or memory.
+ """
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation.
+ #: This constant has a value of "CPU"
+ RESOURCE_METRIC_CPU = "CPU"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation.
+ #: This constant has a value of "MEMORY"
+ RESOURCE_METRIC_MEMORY = "MEMORY"
+
+ #: A constant which can be used with the resource_metric property of a SummarizeHostInsightResourceUtilizationInsightAggregation.
+ #: This constant has a value of "LOGICAL_MEMORY"
+ RESOURCE_METRIC_LOGICAL_MEMORY = "LOGICAL_MEMORY"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummarizeHostInsightResourceUtilizationInsightAggregation object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param time_interval_start:
+ The value to assign to the time_interval_start property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type time_interval_start: datetime
+
+ :param time_interval_end:
+ The value to assign to the time_interval_end property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type time_interval_end: datetime
+
+ :param resource_metric:
+ The value to assign to the resource_metric property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type resource_metric: str
+
+ :param projected_utilization:
+ The value to assign to the projected_utilization property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type projected_utilization: oci.opsi.models.ResourceInsightProjectedUtilization
+
+ :param current_utilization:
+ The value to assign to the current_utilization property of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type current_utilization: oci.opsi.models.ResourceInsightCurrentUtilization
+
+ """
+ self.swagger_types = {
+ 'time_interval_start': 'datetime',
+ 'time_interval_end': 'datetime',
+ 'resource_metric': 'str',
+ 'projected_utilization': 'ResourceInsightProjectedUtilization',
+ 'current_utilization': 'ResourceInsightCurrentUtilization'
+ }
+
+ self.attribute_map = {
+ 'time_interval_start': 'timeIntervalStart',
+ 'time_interval_end': 'timeIntervalEnd',
+ 'resource_metric': 'resourceMetric',
+ 'projected_utilization': 'projectedUtilization',
+ 'current_utilization': 'currentUtilization'
+ }
+
+ self._time_interval_start = None
+ self._time_interval_end = None
+ self._resource_metric = None
+ self._projected_utilization = None
+ self._current_utilization = None
+
+ @property
+ def time_interval_start(self):
+ """
+ **[Required]** Gets the time_interval_start of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ The start timestamp that was passed into the request.
+
+
+ :return: The time_interval_start of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :rtype: datetime
+ """
+ return self._time_interval_start
+
+ @time_interval_start.setter
+ def time_interval_start(self, time_interval_start):
+ """
+ Sets the time_interval_start of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ The start timestamp that was passed into the request.
+
+
+ :param time_interval_start: The time_interval_start of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type: datetime
+ """
+ self._time_interval_start = time_interval_start
+
+ @property
+ def time_interval_end(self):
+ """
+ **[Required]** Gets the time_interval_end of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ The end timestamp that was passed into the request.
+
+
+ :return: The time_interval_end of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :rtype: datetime
+ """
+ return self._time_interval_end
+
+ @time_interval_end.setter
+ def time_interval_end(self, time_interval_end):
+ """
+ Sets the time_interval_end of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ The end timestamp that was passed into the request.
+
+
+ :param time_interval_end: The time_interval_end of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type: datetime
+ """
+ self._time_interval_end = time_interval_end
+
+ @property
+ def resource_metric(self):
+ """
+ **[Required]** Gets the resource_metric of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+ Allowed values for this property are: "CPU", "MEMORY", "LOGICAL_MEMORY", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The resource_metric of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :rtype: str
+ """
+ return self._resource_metric
+
+ @resource_metric.setter
+ def resource_metric(self, resource_metric):
+ """
+ Sets the resource_metric of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ Defines the type of resource metric (CPU, Physical Memory, Logical Memory)
+
+
+ :param resource_metric: The resource_metric of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type: str
+ """
+ allowed_values = ["CPU", "MEMORY", "LOGICAL_MEMORY"]
+ if not value_allowed_none_or_none_sentinel(resource_metric, allowed_values):
+ resource_metric = 'UNKNOWN_ENUM_VALUE'
+ self._resource_metric = resource_metric
+
+ @property
+ def projected_utilization(self):
+ """
+ **[Required]** Gets the projected_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+
+ :return: The projected_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :rtype: oci.opsi.models.ResourceInsightProjectedUtilization
+ """
+ return self._projected_utilization
+
+ @projected_utilization.setter
+ def projected_utilization(self, projected_utilization):
+ """
+ Sets the projected_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+
+ :param projected_utilization: The projected_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type: oci.opsi.models.ResourceInsightProjectedUtilization
+ """
+ self._projected_utilization = projected_utilization
+
+ @property
+ def current_utilization(self):
+ """
+ **[Required]** Gets the current_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+
+ :return: The current_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :rtype: oci.opsi.models.ResourceInsightCurrentUtilization
+ """
+ return self._current_utilization
+
+ @current_utilization.setter
+ def current_utilization(self, current_utilization):
+ """
+ Sets the current_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+
+ :param current_utilization: The current_utilization of this SummarizeHostInsightResourceUtilizationInsightAggregation.
+ :type: oci.opsi.models.ResourceInsightCurrentUtilization
+ """
+ self._current_utilization = current_utilization
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/summary_statistics.py b/src/oci/opsi/models/summary_statistics.py
new file mode 100644
index 0000000000..4c8210308a
--- /dev/null
+++ b/src/oci/opsi/models/summary_statistics.py
@@ -0,0 +1,225 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class SummaryStatistics(object):
+ """
+ Contains common summary statistics.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new SummaryStatistics object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param minimum:
+ The value to assign to the minimum property of this SummaryStatistics.
+ :type minimum: float
+
+ :param maximum:
+ The value to assign to the maximum property of this SummaryStatistics.
+ :type maximum: float
+
+ :param average:
+ The value to assign to the average property of this SummaryStatistics.
+ :type average: float
+
+ :param median:
+ The value to assign to the median property of this SummaryStatistics.
+ :type median: float
+
+ :param lower_quartile:
+ The value to assign to the lower_quartile property of this SummaryStatistics.
+ :type lower_quartile: float
+
+ :param upper_quartile:
+ The value to assign to the upper_quartile property of this SummaryStatistics.
+ :type upper_quartile: float
+
+ """
+ self.swagger_types = {
+ 'minimum': 'float',
+ 'maximum': 'float',
+ 'average': 'float',
+ 'median': 'float',
+ 'lower_quartile': 'float',
+ 'upper_quartile': 'float'
+ }
+
+ self.attribute_map = {
+ 'minimum': 'minimum',
+ 'maximum': 'maximum',
+ 'average': 'average',
+ 'median': 'median',
+ 'lower_quartile': 'lowerQuartile',
+ 'upper_quartile': 'upperQuartile'
+ }
+
+ self._minimum = None
+ self._maximum = None
+ self._average = None
+ self._median = None
+ self._lower_quartile = None
+ self._upper_quartile = None
+
+ @property
+ def minimum(self):
+ """
+ **[Required]** Gets the minimum of this SummaryStatistics.
+ The smallest number in the data set.
+
+
+ :return: The minimum of this SummaryStatistics.
+ :rtype: float
+ """
+ return self._minimum
+
+ @minimum.setter
+ def minimum(self, minimum):
+ """
+ Sets the minimum of this SummaryStatistics.
+ The smallest number in the data set.
+
+
+ :param minimum: The minimum of this SummaryStatistics.
+ :type: float
+ """
+ self._minimum = minimum
+
+ @property
+ def maximum(self):
+ """
+ **[Required]** Gets the maximum of this SummaryStatistics.
+ The largest number in the data set.
+
+
+ :return: The maximum of this SummaryStatistics.
+ :rtype: float
+ """
+ return self._maximum
+
+ @maximum.setter
+ def maximum(self, maximum):
+ """
+ Sets the maximum of this SummaryStatistics.
+ The largest number in the data set.
+
+
+ :param maximum: The maximum of this SummaryStatistics.
+ :type: float
+ """
+ self._maximum = maximum
+
+ @property
+ def average(self):
+ """
+ **[Required]** Gets the average of this SummaryStatistics.
+ The average number in the data set.
+
+
+ :return: The average of this SummaryStatistics.
+ :rtype: float
+ """
+ return self._average
+
+ @average.setter
+ def average(self, average):
+ """
+ Sets the average of this SummaryStatistics.
+ The average number in the data set.
+
+
+ :param average: The average of this SummaryStatistics.
+ :type: float
+ """
+ self._average = average
+
+ @property
+ def median(self):
+ """
+ **[Required]** Gets the median of this SummaryStatistics.
+ The middle number in the data set.
+
+
+ :return: The median of this SummaryStatistics.
+ :rtype: float
+ """
+ return self._median
+
+ @median.setter
+ def median(self, median):
+ """
+ Sets the median of this SummaryStatistics.
+ The middle number in the data set.
+
+
+ :param median: The median of this SummaryStatistics.
+ :type: float
+ """
+ self._median = median
+
+ @property
+ def lower_quartile(self):
+ """
+ **[Required]** Gets the lower_quartile of this SummaryStatistics.
+ The middle number between the smallest number and the median of the data set. It's also known as the 25th quartile.
+
+
+ :return: The lower_quartile of this SummaryStatistics.
+ :rtype: float
+ """
+ return self._lower_quartile
+
+ @lower_quartile.setter
+ def lower_quartile(self, lower_quartile):
+ """
+ Sets the lower_quartile of this SummaryStatistics.
+ The middle number between the smallest number and the median of the data set. It's also known as the 25th quartile.
+
+
+ :param lower_quartile: The lower_quartile of this SummaryStatistics.
+ :type: float
+ """
+ self._lower_quartile = lower_quartile
+
+ @property
+ def upper_quartile(self):
+ """
+ **[Required]** Gets the upper_quartile of this SummaryStatistics.
+ The middle number between the median and the largest number of the data set. It's also known as the 75th quartile.
+
+
+ :return: The upper_quartile of this SummaryStatistics.
+ :rtype: float
+ """
+ return self._upper_quartile
+
+ @upper_quartile.setter
+ def upper_quartile(self, upper_quartile):
+ """
+ Sets the upper_quartile of this SummaryStatistics.
+ The middle number between the median and the largest number of the data set. It's also known as the 75th quartile.
+
+
+ :param upper_quartile: The upper_quartile of this SummaryStatistics.
+ :type: float
+ """
+ self._upper_quartile = upper_quartile
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/tablespace_usage_trend.py b/src/oci/opsi/models/tablespace_usage_trend.py
new file mode 100644
index 0000000000..d5b93ea00d
--- /dev/null
+++ b/src/oci/opsi/models/tablespace_usage_trend.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TablespaceUsageTrend(object):
+ """
+ Usage data samples
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TablespaceUsageTrend object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param end_timestamp:
+ The value to assign to the end_timestamp property of this TablespaceUsageTrend.
+ :type end_timestamp: datetime
+
+ :param usage:
+ The value to assign to the usage property of this TablespaceUsageTrend.
+ :type usage: float
+
+ :param capacity:
+ The value to assign to the capacity property of this TablespaceUsageTrend.
+ :type capacity: float
+
+ """
+ self.swagger_types = {
+ 'end_timestamp': 'datetime',
+ 'usage': 'float',
+ 'capacity': 'float'
+ }
+
+ self.attribute_map = {
+ 'end_timestamp': 'endTimestamp',
+ 'usage': 'usage',
+ 'capacity': 'capacity'
+ }
+
+ self._end_timestamp = None
+ self._usage = None
+ self._capacity = None
+
+ @property
+ def end_timestamp(self):
+ """
+ **[Required]** Gets the end_timestamp of this TablespaceUsageTrend.
+ The timestamp in which the current sampling period ends in RFC 3339 format.
+
+
+ :return: The end_timestamp of this TablespaceUsageTrend.
+ :rtype: datetime
+ """
+ return self._end_timestamp
+
+ @end_timestamp.setter
+ def end_timestamp(self, end_timestamp):
+ """
+ Sets the end_timestamp of this TablespaceUsageTrend.
+ The timestamp in which the current sampling period ends in RFC 3339 format.
+
+
+ :param end_timestamp: The end_timestamp of this TablespaceUsageTrend.
+ :type: datetime
+ """
+ self._end_timestamp = end_timestamp
+
+ @property
+ def usage(self):
+ """
+ **[Required]** Gets the usage of this TablespaceUsageTrend.
+ Total amount used of the resource metric type (CPU, STORAGE).
+
+
+ :return: The usage of this TablespaceUsageTrend.
+ :rtype: float
+ """
+ return self._usage
+
+ @usage.setter
+ def usage(self, usage):
+ """
+ Sets the usage of this TablespaceUsageTrend.
+ Total amount used of the resource metric type (CPU, STORAGE).
+
+
+ :param usage: The usage of this TablespaceUsageTrend.
+ :type: float
+ """
+ self._usage = usage
+
+ @property
+ def capacity(self):
+ """
+ **[Required]** Gets the capacity of this TablespaceUsageTrend.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :return: The capacity of this TablespaceUsageTrend.
+ :rtype: float
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """
+ Sets the capacity of this TablespaceUsageTrend.
+ The maximum allocated amount of the resource metric type (CPU, STORAGE).
+
+
+ :param capacity: The capacity of this TablespaceUsageTrend.
+ :type: float
+ """
+ self._capacity = capacity
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/tablespace_usage_trend_aggregation.py b/src/oci/opsi/models/tablespace_usage_trend_aggregation.py
new file mode 100644
index 0000000000..cbd8da9d31
--- /dev/null
+++ b/src/oci/opsi/models/tablespace_usage_trend_aggregation.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class TablespaceUsageTrendAggregation(object):
+ """
+ Usage data per tablespace for a Pluggable database
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new TablespaceUsageTrendAggregation object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param tablespace_name:
+ The value to assign to the tablespace_name property of this TablespaceUsageTrendAggregation.
+ :type tablespace_name: str
+
+ :param tablespace_type:
+ The value to assign to the tablespace_type property of this TablespaceUsageTrendAggregation.
+ :type tablespace_type: str
+
+ :param usage_data:
+ The value to assign to the usage_data property of this TablespaceUsageTrendAggregation.
+ :type usage_data: list[oci.opsi.models.TablespaceUsageTrend]
+
+ """
+ self.swagger_types = {
+ 'tablespace_name': 'str',
+ 'tablespace_type': 'str',
+ 'usage_data': 'list[TablespaceUsageTrend]'
+ }
+
+ self.attribute_map = {
+ 'tablespace_name': 'tablespaceName',
+ 'tablespace_type': 'tablespaceType',
+ 'usage_data': 'usageData'
+ }
+
+ self._tablespace_name = None
+ self._tablespace_type = None
+ self._usage_data = None
+
+ @property
+ def tablespace_name(self):
+ """
+ **[Required]** Gets the tablespace_name of this TablespaceUsageTrendAggregation.
+ Name of tablespace
+
+
+ :return: The tablespace_name of this TablespaceUsageTrendAggregation.
+ :rtype: str
+ """
+ return self._tablespace_name
+
+ @tablespace_name.setter
+ def tablespace_name(self, tablespace_name):
+ """
+ Sets the tablespace_name of this TablespaceUsageTrendAggregation.
+ Name of tablespace
+
+
+ :param tablespace_name: The tablespace_name of this TablespaceUsageTrendAggregation.
+ :type: str
+ """
+ self._tablespace_name = tablespace_name
+
+ @property
+ def tablespace_type(self):
+ """
+ **[Required]** Gets the tablespace_type of this TablespaceUsageTrendAggregation.
+ Type of tablespace
+
+
+ :return: The tablespace_type of this TablespaceUsageTrendAggregation.
+ :rtype: str
+ """
+ return self._tablespace_type
+
+ @tablespace_type.setter
+ def tablespace_type(self, tablespace_type):
+ """
+ Sets the tablespace_type of this TablespaceUsageTrendAggregation.
+ Type of tablespace
+
+
+ :param tablespace_type: The tablespace_type of this TablespaceUsageTrendAggregation.
+ :type: str
+ """
+ self._tablespace_type = tablespace_type
+
+ @property
+ def usage_data(self):
+ """
+ **[Required]** Gets the usage_data of this TablespaceUsageTrendAggregation.
+ List of usage data samples for a tablespace
+
+
+ :return: The usage_data of this TablespaceUsageTrendAggregation.
+ :rtype: list[oci.opsi.models.TablespaceUsageTrend]
+ """
+ return self._usage_data
+
+ @usage_data.setter
+ def usage_data(self, usage_data):
+ """
+ Sets the usage_data of this TablespaceUsageTrendAggregation.
+ List of usage data samples for a tablespace
+
+
+ :param usage_data: The usage_data of this TablespaceUsageTrendAggregation.
+ :type: list[oci.opsi.models.TablespaceUsageTrend]
+ """
+ self._usage_data = usage_data
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_autonomous_database_insight_details.py b/src/oci/opsi/models/update_autonomous_database_insight_details.py
new file mode 100644
index 0000000000..2a7b5b1dfb
--- /dev/null
+++ b/src/oci/opsi/models/update_autonomous_database_insight_details.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .update_database_insight_details import UpdateDatabaseInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateAutonomousDatabaseInsightDetails(UpdateDatabaseInsightDetails):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateAutonomousDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdateAutonomousDatabaseInsightDetails.entity_source` attribute
+ of this class is ``AUTONOMOUS_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this UpdateAutonomousDatabaseInsightDetails.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateAutonomousDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateAutonomousDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._entity_source = 'AUTONOMOUS_DATABASE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_database_insight_details.py b/src/oci/opsi/models/update_database_insight_details.py
new file mode 100644
index 0000000000..77e67a4287
--- /dev/null
+++ b/src/oci/opsi/models/update_database_insight_details.py
@@ -0,0 +1,182 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateDatabaseInsightDetails(object):
+ """
+ The information to be updated.
+ """
+
+ #: A constant which can be used with the entity_source property of a UpdateDatabaseInsightDetails.
+ #: This constant has a value of "AUTONOMOUS_DATABASE"
+ ENTITY_SOURCE_AUTONOMOUS_DATABASE = "AUTONOMOUS_DATABASE"
+
+ #: A constant which can be used with the entity_source property of a UpdateDatabaseInsightDetails.
+ #: This constant has a value of "EM_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASE = "EM_MANAGED_EXTERNAL_DATABASE"
+
+ #: A constant which can be used with the entity_source property of a UpdateDatabaseInsightDetails.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_DATABASE"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_DATABASE = "MACS_MANAGED_EXTERNAL_DATABASE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDatabaseInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails`
+ * :class:`~oci.opsi.models.UpdateEmManagedExternalDatabaseInsightDetails`
+ * :class:`~oci.opsi.models.UpdateAutonomousDatabaseInsightDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this UpdateDatabaseInsightDetails.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'MACS_MANAGED_EXTERNAL_DATABASE':
+ return 'UpdateMacsManagedExternalDatabaseInsightDetails'
+
+ if type == 'EM_MANAGED_EXTERNAL_DATABASE':
+ return 'UpdateEmManagedExternalDatabaseInsightDetails'
+
+ if type == 'AUTONOMOUS_DATABASE':
+ return 'UpdateAutonomousDatabaseInsightDetails'
+ else:
+ return 'UpdateDatabaseInsightDetails'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this UpdateDatabaseInsightDetails.
+ Source of the database entity.
+
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+
+
+ :return: The entity_source of this UpdateDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this UpdateDatabaseInsightDetails.
+ Source of the database entity.
+
+
+ :param entity_source: The entity_source of this UpdateDatabaseInsightDetails.
+ :type: str
+ """
+ allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ raise ValueError(
+ "Invalid value for `entity_source`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._entity_source = entity_source
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateDatabaseInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateDatabaseInsightDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateDatabaseInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateDatabaseInsightDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateDatabaseInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateDatabaseInsightDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateDatabaseInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateDatabaseInsightDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_em_managed_external_database_insight_details.py b/src/oci/opsi/models/update_em_managed_external_database_insight_details.py
new file mode 100644
index 0000000000..8e33cf8f56
--- /dev/null
+++ b/src/oci/opsi/models/update_em_managed_external_database_insight_details.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .update_database_insight_details import UpdateDatabaseInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateEmManagedExternalDatabaseInsightDetails(UpdateDatabaseInsightDetails):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateEmManagedExternalDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdateEmManagedExternalDatabaseInsightDetails.entity_source` attribute
+ of this class is ``EM_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this UpdateEmManagedExternalDatabaseInsightDetails.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateEmManagedExternalDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateEmManagedExternalDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._entity_source = 'EM_MANAGED_EXTERNAL_DATABASE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_enterprise_manager_bridge_details.py b/src/oci/opsi/models/update_enterprise_manager_bridge_details.py
new file mode 100644
index 0000000000..ef7886ca64
--- /dev/null
+++ b/src/oci/opsi/models/update_enterprise_manager_bridge_details.py
@@ -0,0 +1,167 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateEnterpriseManagerBridgeDetails(object):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateEnterpriseManagerBridgeDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateEnterpriseManagerBridgeDetails.
+ :type display_name: str
+
+ :param description:
+ The value to assign to the description property of this UpdateEnterpriseManagerBridgeDetails.
+ :type description: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateEnterpriseManagerBridgeDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateEnterpriseManagerBridgeDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'display_name': 'str',
+ 'description': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'display_name': 'displayName',
+ 'description': 'description',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._display_name = None
+ self._description = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateEnterpriseManagerBridgeDetails.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :return: The display_name of this UpdateEnterpriseManagerBridgeDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateEnterpriseManagerBridgeDetails.
+ User-friedly name of Enterprise Manager Bridge that does not have to be unique.
+
+
+ :param display_name: The display_name of this UpdateEnterpriseManagerBridgeDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def description(self):
+ """
+ Gets the description of this UpdateEnterpriseManagerBridgeDetails.
+ Description of Enterprise Manager Bridge
+
+
+ :return: The description of this UpdateEnterpriseManagerBridgeDetails.
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """
+ Sets the description of this UpdateEnterpriseManagerBridgeDetails.
+ Description of Enterprise Manager Bridge
+
+
+ :param description: The description of this UpdateEnterpriseManagerBridgeDetails.
+ :type: str
+ """
+ self._description = description
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateEnterpriseManagerBridgeDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateEnterpriseManagerBridgeDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateEnterpriseManagerBridgeDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateEnterpriseManagerBridgeDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateEnterpriseManagerBridgeDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateEnterpriseManagerBridgeDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateEnterpriseManagerBridgeDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateEnterpriseManagerBridgeDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_host_insight_details.py b/src/oci/opsi/models/update_host_insight_details.py
new file mode 100644
index 0000000000..cd41eeb0a5
--- /dev/null
+++ b/src/oci/opsi/models/update_host_insight_details.py
@@ -0,0 +1,166 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateHostInsightDetails(object):
+ """
+ The information to be updated.
+ """
+
+ #: A constant which can be used with the entity_source property of a UpdateHostInsightDetails.
+ #: This constant has a value of "MACS_MANAGED_EXTERNAL_HOST"
+ ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_HOST = "MACS_MANAGED_EXTERNAL_HOST"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateHostInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
+ to a service operations then you should favor using a subclass over the base class:
+
+ * :class:`~oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this UpdateHostInsightDetails.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+ :type entity_source: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateHostInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateHostInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @staticmethod
+ def get_subtype(object_dictionary):
+ """
+ Given the hash representation of a subtype of this class,
+ use the info in the hash to return the class of the subtype.
+ """
+ type = object_dictionary['entitySource']
+
+ if type == 'MACS_MANAGED_EXTERNAL_HOST':
+ return 'UpdateMacsManagedExternalHostInsightDetails'
+ else:
+ return 'UpdateHostInsightDetails'
+
+ @property
+ def entity_source(self):
+ """
+ **[Required]** Gets the entity_source of this UpdateHostInsightDetails.
+ Source of the host entity.
+
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+
+
+ :return: The entity_source of this UpdateHostInsightDetails.
+ :rtype: str
+ """
+ return self._entity_source
+
+ @entity_source.setter
+ def entity_source(self, entity_source):
+ """
+ Sets the entity_source of this UpdateHostInsightDetails.
+ Source of the host entity.
+
+
+ :param entity_source: The entity_source of this UpdateHostInsightDetails.
+ :type: str
+ """
+ allowed_values = ["MACS_MANAGED_EXTERNAL_HOST"]
+ if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
+ raise ValueError(
+ "Invalid value for `entity_source`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._entity_source = entity_source
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateHostInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateHostInsightDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateHostInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateHostInsightDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateHostInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateHostInsightDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateHostInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateHostInsightDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_macs_managed_external_database_insight_details.py b/src/oci/opsi/models/update_macs_managed_external_database_insight_details.py
new file mode 100644
index 0000000000..4f1751eb07
--- /dev/null
+++ b/src/oci/opsi/models/update_macs_managed_external_database_insight_details.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .update_database_insight_details import UpdateDatabaseInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateMacsManagedExternalDatabaseInsightDetails(UpdateDatabaseInsightDetails):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateMacsManagedExternalDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this UpdateMacsManagedExternalDatabaseInsightDetails.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ :type entity_source: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateMacsManagedExternalDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateMacsManagedExternalDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_DATABASE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_macs_managed_external_host_insight_details.py b/src/oci/opsi/models/update_macs_managed_external_host_insight_details.py
new file mode 100644
index 0000000000..682610663b
--- /dev/null
+++ b/src/oci/opsi/models/update_macs_managed_external_host_insight_details.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+from .update_host_insight_details import UpdateHostInsightDetails
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class UpdateMacsManagedExternalHostInsightDetails(UpdateHostInsightDetails):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateMacsManagedExternalHostInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails.entity_source` attribute
+ of this class is ``MACS_MANAGED_EXTERNAL_HOST`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this UpdateMacsManagedExternalHostInsightDetails.
+ Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST"
+ :type entity_source: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateMacsManagedExternalHostInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateMacsManagedExternalHostInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._entity_source = 'MACS_MANAGED_EXTERNAL_HOST'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request.py b/src/oci/opsi/models/work_request.py
new file mode 100644
index 0000000000..25a8d30cb1
--- /dev/null
+++ b/src/oci/opsi/models/work_request.py
@@ -0,0 +1,444 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequest(object):
+ """
+ A description of workrequest status
+ """
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "ENABLE_DATABASE_INSIGHT"
+ OPERATION_TYPE_ENABLE_DATABASE_INSIGHT = "ENABLE_DATABASE_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DISABLE_DATABASE_INSIGHT"
+ OPERATION_TYPE_DISABLE_DATABASE_INSIGHT = "DISABLE_DATABASE_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "UPDATE_DATABASE_INSIGHT"
+ OPERATION_TYPE_UPDATE_DATABASE_INSIGHT = "UPDATE_DATABASE_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CREATE_DATABASE_INSIGHT"
+ OPERATION_TYPE_CREATE_DATABASE_INSIGHT = "CREATE_DATABASE_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "MOVE_DATABASE_INSIGHT"
+ OPERATION_TYPE_MOVE_DATABASE_INSIGHT = "MOVE_DATABASE_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DELETE_DATABASE_INSIGHT"
+ OPERATION_TYPE_DELETE_DATABASE_INSIGHT = "DELETE_DATABASE_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CREATE_ENTERPRISE_MANAGER_BRIDGE"
+ OPERATION_TYPE_CREATE_ENTERPRISE_MANAGER_BRIDGE = "CREATE_ENTERPRISE_MANAGER_BRIDGE"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "UDPATE_ENTERPRISE_MANAGER_BRIDGE"
+ OPERATION_TYPE_UDPATE_ENTERPRISE_MANAGER_BRIDGE = "UDPATE_ENTERPRISE_MANAGER_BRIDGE"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "MOVE_ENTERPRISE_MANAGER_BRIDGE"
+ OPERATION_TYPE_MOVE_ENTERPRISE_MANAGER_BRIDGE = "MOVE_ENTERPRISE_MANAGER_BRIDGE"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DELETE_ENTERPRISE_MANAGER_BRIDGE"
+ OPERATION_TYPE_DELETE_ENTERPRISE_MANAGER_BRIDGE = "DELETE_ENTERPRISE_MANAGER_BRIDGE"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "ENABLE_HOST_INSIGHT"
+ OPERATION_TYPE_ENABLE_HOST_INSIGHT = "ENABLE_HOST_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DISABLE_HOST_INSIGHT"
+ OPERATION_TYPE_DISABLE_HOST_INSIGHT = "DISABLE_HOST_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "UPDATE_HOST_INSIGHT"
+ OPERATION_TYPE_UPDATE_HOST_INSIGHT = "UPDATE_HOST_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CREATE_HOST_INSIGHT"
+ OPERATION_TYPE_CREATE_HOST_INSIGHT = "CREATE_HOST_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "MOVE_HOST_INSIGHT"
+ OPERATION_TYPE_MOVE_HOST_INSIGHT = "MOVE_HOST_INSIGHT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DELETE_HOST_INSIGHT"
+ OPERATION_TYPE_DELETE_HOST_INSIGHT = "DELETE_HOST_INSIGHT"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "ACCEPTED"
+ STATUS_ACCEPTED = "ACCEPTED"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "IN_PROGRESS"
+ STATUS_IN_PROGRESS = "IN_PROGRESS"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "FAILED"
+ STATUS_FAILED = "FAILED"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "SUCCEEDED"
+ STATUS_SUCCEEDED = "SUCCEEDED"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "CANCELING"
+ STATUS_CANCELING = "CANCELING"
+
+ #: A constant which can be used with the status property of a WorkRequest.
+ #: This constant has a value of "CANCELED"
+ STATUS_CANCELED = "CANCELED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequest object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param operation_type:
+ The value to assign to the operation_type property of this WorkRequest.
+ Allowed values for this property are: "ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type operation_type: str
+
+ :param status:
+ The value to assign to the status property of this WorkRequest.
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type status: str
+
+ :param id:
+ The value to assign to the id property of this WorkRequest.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this WorkRequest.
+ :type compartment_id: str
+
+ :param resources:
+ The value to assign to the resources property of this WorkRequest.
+ :type resources: list[oci.opsi.models.WorkRequestResource]
+
+ :param percent_complete:
+ The value to assign to the percent_complete property of this WorkRequest.
+ :type percent_complete: float
+
+ :param time_accepted:
+ The value to assign to the time_accepted property of this WorkRequest.
+ :type time_accepted: datetime
+
+ :param time_started:
+ The value to assign to the time_started property of this WorkRequest.
+ :type time_started: datetime
+
+ :param time_finished:
+ The value to assign to the time_finished property of this WorkRequest.
+ :type time_finished: datetime
+
+ """
+ self.swagger_types = {
+ 'operation_type': 'str',
+ 'status': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'resources': 'list[WorkRequestResource]',
+ 'percent_complete': 'float',
+ 'time_accepted': 'datetime',
+ 'time_started': 'datetime',
+ 'time_finished': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'operation_type': 'operationType',
+ 'status': 'status',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'resources': 'resources',
+ 'percent_complete': 'percentComplete',
+ 'time_accepted': 'timeAccepted',
+ 'time_started': 'timeStarted',
+ 'time_finished': 'timeFinished'
+ }
+
+ self._operation_type = None
+ self._status = None
+ self._id = None
+ self._compartment_id = None
+ self._resources = None
+ self._percent_complete = None
+ self._time_accepted = None
+ self._time_started = None
+ self._time_finished = None
+
+ @property
+ def operation_type(self):
+ """
+ **[Required]** Gets the operation_type of this WorkRequest.
+ Type of the work request
+
+ Allowed values for this property are: "ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The operation_type of this WorkRequest.
+ :rtype: str
+ """
+ return self._operation_type
+
+ @operation_type.setter
+ def operation_type(self, operation_type):
+ """
+ Sets the operation_type of this WorkRequest.
+ Type of the work request
+
+
+ :param operation_type: The operation_type of this WorkRequest.
+ :type: str
+ """
+ allowed_values = ["ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT"]
+ if not value_allowed_none_or_none_sentinel(operation_type, allowed_values):
+ operation_type = 'UNKNOWN_ENUM_VALUE'
+ self._operation_type = operation_type
+
+ @property
+ def status(self):
+ """
+ **[Required]** Gets the status of this WorkRequest.
+ Status of current work request.
+
+ Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The status of this WorkRequest.
+ :rtype: str
+ """
+ return self._status
+
+ @status.setter
+ def status(self, status):
+ """
+ Sets the status of this WorkRequest.
+ Status of current work request.
+
+
+ :param status: The status of this WorkRequest.
+ :type: str
+ """
+ allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
+ if not value_allowed_none_or_none_sentinel(status, allowed_values):
+ status = 'UNKNOWN_ENUM_VALUE'
+ self._status = status
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this WorkRequest.
+ The id of the work request.
+
+
+ :return: The id of this WorkRequest.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this WorkRequest.
+ The id of the work request.
+
+
+ :param id: The id of this WorkRequest.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this WorkRequest.
+ The ocid of the compartment that contains the work request. Work requests should be scoped to
+ the same compartment as the resource the work request affects. If the work request affects multiple resources,
+ and those resources are not in the same compartment, it is up to the service team to pick the primary
+ resource whose compartment should be used
+
+
+ :return: The compartment_id of this WorkRequest.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this WorkRequest.
+ The ocid of the compartment that contains the work request. Work requests should be scoped to
+ the same compartment as the resource the work request affects. If the work request affects multiple resources,
+ and those resources are not in the same compartment, it is up to the service team to pick the primary
+ resource whose compartment should be used
+
+
+ :param compartment_id: The compartment_id of this WorkRequest.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def resources(self):
+ """
+ **[Required]** Gets the resources of this WorkRequest.
+ The resources affected by this work request.
+
+
+ :return: The resources of this WorkRequest.
+ :rtype: list[oci.opsi.models.WorkRequestResource]
+ """
+ return self._resources
+
+ @resources.setter
+ def resources(self, resources):
+ """
+ Sets the resources of this WorkRequest.
+ The resources affected by this work request.
+
+
+ :param resources: The resources of this WorkRequest.
+ :type: list[oci.opsi.models.WorkRequestResource]
+ """
+ self._resources = resources
+
+ @property
+ def percent_complete(self):
+ """
+ **[Required]** Gets the percent_complete of this WorkRequest.
+ Percentage of the request completed.
+
+
+ :return: The percent_complete of this WorkRequest.
+ :rtype: float
+ """
+ return self._percent_complete
+
+ @percent_complete.setter
+ def percent_complete(self, percent_complete):
+ """
+ Sets the percent_complete of this WorkRequest.
+ Percentage of the request completed.
+
+
+ :param percent_complete: The percent_complete of this WorkRequest.
+ :type: float
+ """
+ self._percent_complete = percent_complete
+
+ @property
+ def time_accepted(self):
+ """
+ **[Required]** Gets the time_accepted of this WorkRequest.
+ The date and time the request was created, as described in
+ `RFC 3339`__, section 14.29.
+
+ __ https://tools.ietf.org/rfc/rfc3339
+
+
+ :return: The time_accepted of this WorkRequest.
+ :rtype: datetime
+ """
+ return self._time_accepted
+
+ @time_accepted.setter
+ def time_accepted(self, time_accepted):
+ """
+ Sets the time_accepted of this WorkRequest.
+ The date and time the request was created, as described in
+ `RFC 3339`__, section 14.29.
+
+ __ https://tools.ietf.org/rfc/rfc3339
+
+
+ :param time_accepted: The time_accepted of this WorkRequest.
+ :type: datetime
+ """
+ self._time_accepted = time_accepted
+
+ @property
+ def time_started(self):
+ """
+ Gets the time_started of this WorkRequest.
+ The date and time the request was started, as described in `RFC 3339`__,
+ section 14.29.
+
+ __ https://tools.ietf.org/rfc/rfc3339
+
+
+ :return: The time_started of this WorkRequest.
+ :rtype: datetime
+ """
+ return self._time_started
+
+ @time_started.setter
+ def time_started(self, time_started):
+ """
+ Sets the time_started of this WorkRequest.
+ The date and time the request was started, as described in `RFC 3339`__,
+ section 14.29.
+
+ __ https://tools.ietf.org/rfc/rfc3339
+
+
+ :param time_started: The time_started of this WorkRequest.
+ :type: datetime
+ """
+ self._time_started = time_started
+
+ @property
+ def time_finished(self):
+ """
+ Gets the time_finished of this WorkRequest.
+ The date and time the object was finished, as described in `RFC 3339`__.
+
+ __ https://tools.ietf.org/rfc/rfc3339
+
+
+ :return: The time_finished of this WorkRequest.
+ :rtype: datetime
+ """
+ return self._time_finished
+
+ @time_finished.setter
+ def time_finished(self, time_finished):
+ """
+ Sets the time_finished of this WorkRequest.
+ The date and time the object was finished, as described in `RFC 3339`__.
+
+ __ https://tools.ietf.org/rfc/rfc3339
+
+
+ :param time_finished: The time_finished of this WorkRequest.
+ :type: datetime
+ """
+ self._time_finished = time_finished
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request_collection.py b/src/oci/opsi/models/work_request_collection.py
new file mode 100644
index 0000000000..b3c8a7ec63
--- /dev/null
+++ b/src/oci/opsi/models/work_request_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestCollection(object):
+ """
+ Results of a workRequest search. Contains both WorkRequest items and other information, such as metadata.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this WorkRequestCollection.
+ :type items: list[oci.opsi.models.WorkRequest]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[WorkRequest]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this WorkRequestCollection.
+ List of workRequests.
+
+
+ :return: The items of this WorkRequestCollection.
+ :rtype: list[oci.opsi.models.WorkRequest]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this WorkRequestCollection.
+ List of workRequests.
+
+
+ :param items: The items of this WorkRequestCollection.
+ :type: list[oci.opsi.models.WorkRequest]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request_error.py b/src/oci/opsi/models/work_request_error.py
new file mode 100644
index 0000000000..04dde83e08
--- /dev/null
+++ b/src/oci/opsi/models/work_request_error.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestError(object):
+ """
+ An error encountered while executing a work request.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestError object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param code:
+ The value to assign to the code property of this WorkRequestError.
+ :type code: str
+
+ :param message:
+ The value to assign to the message property of this WorkRequestError.
+ :type message: str
+
+ :param timestamp:
+ The value to assign to the timestamp property of this WorkRequestError.
+ :type timestamp: datetime
+
+ """
+ self.swagger_types = {
+ 'code': 'str',
+ 'message': 'str',
+ 'timestamp': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'code': 'code',
+ 'message': 'message',
+ 'timestamp': 'timestamp'
+ }
+
+ self._code = None
+ self._message = None
+ self._timestamp = None
+
+ @property
+ def code(self):
+ """
+ **[Required]** Gets the code of this WorkRequestError.
+ A machine-usable code for the error that occured. Error codes are listed on
+ (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm)
+
+
+ :return: The code of this WorkRequestError.
+ :rtype: str
+ """
+ return self._code
+
+ @code.setter
+ def code(self, code):
+ """
+ Sets the code of this WorkRequestError.
+ A machine-usable code for the error that occured. Error codes are listed on
+ (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm)
+
+
+ :param code: The code of this WorkRequestError.
+ :type: str
+ """
+ self._code = code
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this WorkRequestError.
+ A human readable description of the issue encountered.
+
+
+ :return: The message of this WorkRequestError.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this WorkRequestError.
+ A human readable description of the issue encountered.
+
+
+ :param message: The message of this WorkRequestError.
+ :type: str
+ """
+ self._message = message
+
+ @property
+ def timestamp(self):
+ """
+ **[Required]** Gets the timestamp of this WorkRequestError.
+ The time the error occured. An RFC3339 formatted datetime string.
+
+
+ :return: The timestamp of this WorkRequestError.
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """
+ Sets the timestamp of this WorkRequestError.
+ The time the error occured. An RFC3339 formatted datetime string.
+
+
+ :param timestamp: The timestamp of this WorkRequestError.
+ :type: datetime
+ """
+ self._timestamp = timestamp
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request_error_collection.py b/src/oci/opsi/models/work_request_error_collection.py
new file mode 100644
index 0000000000..064456ff3b
--- /dev/null
+++ b/src/oci/opsi/models/work_request_error_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestErrorCollection(object):
+ """
+ Results of a workRequestError search. Contains both WorkRequestError items and other information, such as metadata.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestErrorCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this WorkRequestErrorCollection.
+ :type items: list[oci.opsi.models.WorkRequestError]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[WorkRequestError]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this WorkRequestErrorCollection.
+ List of workRequestError objects.
+
+
+ :return: The items of this WorkRequestErrorCollection.
+ :rtype: list[oci.opsi.models.WorkRequestError]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this WorkRequestErrorCollection.
+ List of workRequestError objects.
+
+
+ :param items: The items of this WorkRequestErrorCollection.
+ :type: list[oci.opsi.models.WorkRequestError]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request_log_entry.py b/src/oci/opsi/models/work_request_log_entry.py
new file mode 100644
index 0000000000..8d02a6a994
--- /dev/null
+++ b/src/oci/opsi/models/work_request_log_entry.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestLogEntry(object):
+ """
+ A log message from the execution of a work request.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestLogEntry object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param message:
+ The value to assign to the message property of this WorkRequestLogEntry.
+ :type message: str
+
+ :param timestamp:
+ The value to assign to the timestamp property of this WorkRequestLogEntry.
+ :type timestamp: datetime
+
+ """
+ self.swagger_types = {
+ 'message': 'str',
+ 'timestamp': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'message': 'message',
+ 'timestamp': 'timestamp'
+ }
+
+ self._message = None
+ self._timestamp = None
+
+ @property
+ def message(self):
+ """
+ **[Required]** Gets the message of this WorkRequestLogEntry.
+ Human-readable log message.
+
+
+ :return: The message of this WorkRequestLogEntry.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this WorkRequestLogEntry.
+ Human-readable log message.
+
+
+ :param message: The message of this WorkRequestLogEntry.
+ :type: str
+ """
+ self._message = message
+
+ @property
+ def timestamp(self):
+ """
+ **[Required]** Gets the timestamp of this WorkRequestLogEntry.
+ The time the log message was written. An RFC3339 formatted datetime string
+
+
+ :return: The timestamp of this WorkRequestLogEntry.
+ :rtype: datetime
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """
+ Sets the timestamp of this WorkRequestLogEntry.
+ The time the log message was written. An RFC3339 formatted datetime string
+
+
+ :param timestamp: The timestamp of this WorkRequestLogEntry.
+ :type: datetime
+ """
+ self._timestamp = timestamp
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request_log_entry_collection.py b/src/oci/opsi/models/work_request_log_entry_collection.py
new file mode 100644
index 0000000000..131f8b4a00
--- /dev/null
+++ b/src/oci/opsi/models/work_request_log_entry_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestLogEntryCollection(object):
+ """
+ Results of a workRequestLog search. Contains both workRequestLog items and other information, such as metadata.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestLogEntryCollection object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param items:
+ The value to assign to the items property of this WorkRequestLogEntryCollection.
+ :type items: list[oci.opsi.models.WorkRequestLogEntry]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[WorkRequestLogEntry]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this WorkRequestLogEntryCollection.
+ List of workRequestLogEntries.
+
+
+ :return: The items of this WorkRequestLogEntryCollection.
+ :rtype: list[oci.opsi.models.WorkRequestLogEntry]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this WorkRequestLogEntryCollection.
+ List of workRequestLogEntries.
+
+
+ :param items: The items of this WorkRequestLogEntryCollection.
+ :type: list[oci.opsi.models.WorkRequestLogEntry]
+ """
+ self._items = items
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request_resource.py b/src/oci/opsi/models/work_request_resource.py
new file mode 100644
index 0000000000..7cf3e57d1c
--- /dev/null
+++ b/src/oci/opsi/models/work_request_resource.py
@@ -0,0 +1,197 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequestResource(object):
+ """
+ A resource created or operated on by a work request.
+ """
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "CREATED"
+ ACTION_TYPE_CREATED = "CREATED"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "UPDATED"
+ ACTION_TYPE_UPDATED = "UPDATED"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "DELETED"
+ ACTION_TYPE_DELETED = "DELETED"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "IN_PROGRESS"
+ ACTION_TYPE_IN_PROGRESS = "IN_PROGRESS"
+
+ #: A constant which can be used with the action_type property of a WorkRequestResource.
+ #: This constant has a value of "RELATED"
+ ACTION_TYPE_RELATED = "RELATED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequestResource object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_type:
+ The value to assign to the entity_type property of this WorkRequestResource.
+ :type entity_type: str
+
+ :param action_type:
+ The value to assign to the action_type property of this WorkRequestResource.
+ Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type action_type: str
+
+ :param identifier:
+ The value to assign to the identifier property of this WorkRequestResource.
+ :type identifier: str
+
+ :param entity_uri:
+ The value to assign to the entity_uri property of this WorkRequestResource.
+ :type entity_uri: str
+
+ """
+ self.swagger_types = {
+ 'entity_type': 'str',
+ 'action_type': 'str',
+ 'identifier': 'str',
+ 'entity_uri': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_type': 'entityType',
+ 'action_type': 'actionType',
+ 'identifier': 'identifier',
+ 'entity_uri': 'entityUri'
+ }
+
+ self._entity_type = None
+ self._action_type = None
+ self._identifier = None
+ self._entity_uri = None
+
+ @property
+ def entity_type(self):
+ """
+ **[Required]** Gets the entity_type of this WorkRequestResource.
+ The resource type the work request affects.
+
+
+ :return: The entity_type of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._entity_type
+
+ @entity_type.setter
+ def entity_type(self, entity_type):
+ """
+ Sets the entity_type of this WorkRequestResource.
+ The resource type the work request affects.
+
+
+ :param entity_type: The entity_type of this WorkRequestResource.
+ :type: str
+ """
+ self._entity_type = entity_type
+
+ @property
+ def action_type(self):
+ """
+ **[Required]** Gets the action_type of this WorkRequestResource.
+ The way in which this resource is affected by the work tracked in the work request.
+ A resource being created, updated, or deleted will remain in the IN_PROGRESS state until
+ work is complete for that resource at which point it will transition to CREATED, UPDATED,
+ or DELETED, respectively.
+
+ Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The action_type of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._action_type
+
+ @action_type.setter
+ def action_type(self, action_type):
+ """
+ Sets the action_type of this WorkRequestResource.
+ The way in which this resource is affected by the work tracked in the work request.
+ A resource being created, updated, or deleted will remain in the IN_PROGRESS state until
+ work is complete for that resource at which point it will transition to CREATED, UPDATED,
+ or DELETED, respectively.
+
+
+ :param action_type: The action_type of this WorkRequestResource.
+ :type: str
+ """
+ allowed_values = ["CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED"]
+ if not value_allowed_none_or_none_sentinel(action_type, allowed_values):
+ action_type = 'UNKNOWN_ENUM_VALUE'
+ self._action_type = action_type
+
+ @property
+ def identifier(self):
+ """
+ **[Required]** Gets the identifier of this WorkRequestResource.
+ The identifier of the resource the work request affects.
+
+
+ :return: The identifier of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._identifier
+
+ @identifier.setter
+ def identifier(self, identifier):
+ """
+ Sets the identifier of this WorkRequestResource.
+ The identifier of the resource the work request affects.
+
+
+ :param identifier: The identifier of this WorkRequestResource.
+ :type: str
+ """
+ self._identifier = identifier
+
+ @property
+ def entity_uri(self):
+ """
+ Gets the entity_uri of this WorkRequestResource.
+ The URI path that the user can do a GET on to access the resource
+
+
+ :return: The entity_uri of this WorkRequestResource.
+ :rtype: str
+ """
+ return self._entity_uri
+
+ @entity_uri.setter
+ def entity_uri(self, entity_uri):
+ """
+ Sets the entity_uri of this WorkRequestResource.
+ The URI path that the user can do a GET on to access the resource
+
+
+ :param entity_uri: The entity_uri of this WorkRequestResource.
+ :type: str
+ """
+ self._entity_uri = entity_uri
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_requests.py b/src/oci/opsi/models/work_requests.py
new file mode 100644
index 0000000000..7844e04b34
--- /dev/null
+++ b/src/oci/opsi/models/work_requests.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+
+
+from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
+from oci.decorators import init_model_state_from_kwargs
+
+
+@init_model_state_from_kwargs
+class WorkRequests(object):
+ """
+ Logical grouping used for Operations Insights Work Request operations.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new WorkRequests object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param work_requests:
+ The value to assign to the work_requests property of this WorkRequests.
+ :type work_requests: object
+
+ """
+ self.swagger_types = {
+ 'work_requests': 'object'
+ }
+
+ self.attribute_map = {
+ 'work_requests': 'workRequests'
+ }
+
+ self._work_requests = None
+
+ @property
+ def work_requests(self):
+ """
+ Gets the work_requests of this WorkRequests.
+ OPSI Work Request Object.
+
+
+ :return: The work_requests of this WorkRequests.
+ :rtype: object
+ """
+ return self._work_requests
+
+ @work_requests.setter
+ def work_requests(self, work_requests):
+ """
+ Sets the work_requests of this WorkRequests.
+ OPSI Work Request Object.
+
+
+ :param work_requests: The work_requests of this WorkRequests.
+ :type: object
+ """
+ self._work_requests = work_requests
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/operations_insights_client.py b/src/oci/opsi/operations_insights_client.py
index 3875eccbdc..3c9bfc8127 100644
--- a/src/oci/opsi/operations_insights_client.py
+++ b/src/oci/opsi/operations_insights_client.py
@@ -87,33 +87,26 @@ def __init__(self, config, **kwargs):
self.base_client = BaseClient("operations_insights", config, signer, opsi_type_mapping, **base_client_init_kwargs)
self.retry_strategy = kwargs.get('retry_strategy')
- def ingest_sql_bucket(self, compartment_id, database_id, ingest_sql_bucket_details, **kwargs):
+ def change_database_insight_compartment(self, database_insight_id, change_database_insight_compartment_details, **kwargs):
"""
- The sqlbucket endpoint takes in a JSON payload, persists it in Operations Insights ingest pipeline.
-
-
- :param str compartment_id: (required)
- The `OCID`__ of the compartment.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
-
- :param str database_id: (required)
- Required `OCID`__ of the database.
+ Moves a DatabaseInsight resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
- :param oci.opsi.models.IngestSqlBucketDetails ingest_sql_bucket_details: (required)
- Collection of SQL bucket objects for a particular database.
+ :param str database_insight_id: (required)
+ Unique database insight identifier
- :param str opc_request_id: (optional)
- Unique Oracle-assigned identifier for the request. If you need to contact
- Oracle about a particular request, please provide the request ID.
+ :param oci.opsi.models.ChangeDatabaseInsightCompartmentDetails change_database_insight_compartment_details: (required)
+ The information to be updated.
:param str if_match: (optional)
Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match`
parameter to the value of the etag from a previous get, create, or update response for that resource. The resource
will be updated or deleted only if the etag you provide matches the resource's current etag value.
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the request ID.
+
:param str opc_retry_token: (optional)
A token that uniquely identifies a request that can be retried in case of a timeout or
server error without risk of executing the same action again. Retry tokens expire after 24
@@ -130,38 +123,42 @@ def ingest_sql_bucket(self, compartment_id, database_id, ingest_sql_bucket_detai
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.IngestSqlBucketResponseDetails`
+ :return: A :class:`~oci.response.Response` object with data of type None
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use ingest_sql_bucket API.
+ Click `here