From b5dcc35548385d6807d3a73c835ac4a502a65ad5 Mon Sep 17 00:00:00 2001 From: Mike Ross Date: Thu, 19 Apr 2018 18:21:57 +0000 Subject: [PATCH] Releasing version 1.3.19 --- CHANGELOG.rst | 13 + .../_templates/autosummary/service_client.rst | 31 +- docs/api/audit.rst | 1 + .../audit/client/oci.audit.AuditClient.rst | 8 + ...i.audit.AuditClientCompositeOperations.rst | 8 + .../models/oci.audit.models.AuditEvent.rst | 11 + .../models/oci.audit.models.Configuration.rst | 11 + ...udit.models.UpdateConfigurationDetails.rst | 11 + docs/api/core.rst | 3 + .../client/oci.core.BlockstorageClient.rst | 8 + ....BlockstorageClientCompositeOperations.rst | 8 + .../core/client/oci.core.ComputeClient.rst | 8 + ....core.ComputeClientCompositeOperations.rst | 8 + .../client/oci.core.VirtualNetworkClient.rst | 8 + ...irtualNetworkClientCompositeOperations.rst | 8 + ...ci.core.models.AttachBootVolumeDetails.rst | 11 + ...i.core.models.AttachIScsiVolumeDetails.rst | 11 + ...els.AttachParavirtualizedVolumeDetails.rst | 11 + .../oci.core.models.AttachVnicDetails.rst | 11 + .../oci.core.models.AttachVolumeDetails.rst | 11 + .../models/oci.core.models.BootVolume.rst | 11 + .../oci.core.models.BootVolumeAttachment.rst | 11 + ...AddVirtualCircuitPublicPrefixesDetails.rst | 11 + ...eteVirtualCircuitPublicPrefixesDetails.rst | 11 + ...re.models.CaptureConsoleHistoryDetails.rst | 11 + ...els.ConnectLocalPeeringGatewaysDetails.rst | 11 + ...ConnectRemotePeeringConnectionsDetails.rst | 11 + .../models/oci.core.models.ConsoleHistory.rst | 11 + docs/api/core/models/oci.core.models.Cpe.rst | 11 + .../oci.core.models.CreateCpeDetails.rst | 11 + ....core.models.CreateCrossConnectDetails.rst | 11 + ....models.CreateCrossConnectGroupDetails.rst | 11 + .../oci.core.models.CreateDhcpDetails.rst | 11 + ...core.models.CreateDrgAttachmentDetails.rst | 11 + .../oci.core.models.CreateDrgDetails.rst | 11 + ...re.models.CreateIPSecConnectionDetails.rst | 11 + .../oci.core.models.CreateImageDetails.rst | 11 + ...CreateInstanceConsoleConnectionDetails.rst | 11 + ...re.models.CreateInternetGatewayDetails.rst | 11 + ...odels.CreateLocalPeeringGatewayDetails.rst | 11 + ...oci.core.models.CreatePrivateIpDetails.rst | 11 + .../oci.core.models.CreatePublicIpDetails.rst | 11 + ...s.CreateRemotePeeringConnectionDetails.rst | 11 + ...ci.core.models.CreateRouteTableDetails.rst | 11 + ....core.models.CreateSecurityListDetails.rst | 11 + .../oci.core.models.CreateSubnetDetails.rst | 11 + .../oci.core.models.CreateVcnDetails.rst | 11 + ...ore.models.CreateVirtualCircuitDetails.rst | 11 + ...reateVirtualCircuitPublicPrefixDetails.rst | 11 + .../oci.core.models.CreateVnicDetails.rst | 11 + ....core.models.CreateVolumeBackupDetails.rst | 11 + ...ateVolumeBackupPolicyAssignmentDetails.rst | 11 + .../oci.core.models.CreateVolumeDetails.rst | 11 + .../models/oci.core.models.CrossConnect.rst | 11 + .../oci.core.models.CrossConnectGroup.rst | 11 + .../oci.core.models.CrossConnectLocation.rst | 11 + .../oci.core.models.CrossConnectMapping.rst | 11 + ...core.models.CrossConnectPortSpeedShape.rst | 11 + .../oci.core.models.CrossConnectStatus.rst | 11 + ...eleteVirtualCircuitPublicPrefixDetails.rst | 11 + .../models/oci.core.models.DhcpDnsOption.rst | 11 + .../models/oci.core.models.DhcpOption.rst | 11 + .../models/oci.core.models.DhcpOptions.rst | 11 + ...oci.core.models.DhcpSearchDomainOption.rst | 11 + docs/api/core/models/oci.core.models.Drg.rst | 11 + .../models/oci.core.models.DrgAttachment.rst | 11 + .../oci.core.models.EgressSecurityRule.rst | 11 + .../oci.core.models.ExportImageDetails.rst | 11 + ...xportImageViaObjectStorageTupleDetails.rst | 11 + ....ExportImageViaObjectStorageUriDetails.rst | 11 + ...core.models.FastConnectProviderService.rst | 11 + ...e.models.GetPublicIpByIpAddressDetails.rst | 11 + ...models.GetPublicIpByPrivateIpIdDetails.rst | 11 + .../oci.core.models.IPSecConnection.rst | 11 + ...ore.models.IPSecConnectionDeviceConfig.rst | 11 + ...ore.models.IPSecConnectionDeviceStatus.rst | 11 + .../oci.core.models.IScsiVolumeAttachment.rst | 11 + .../models/oci.core.models.IcmpOptions.rst | 11 + .../api/core/models/oci.core.models.Image.rst | 11 + .../oci.core.models.ImageSourceDetails.rst | 11 + ...mageSourceViaObjectStorageTupleDetails.rst | 11 + ....ImageSourceViaObjectStorageUriDetails.rst | 11 + .../oci.core.models.IngressSecurityRule.rst | 11 + .../core/models/oci.core.models.Instance.rst | 11 + ....core.models.InstanceConsoleConnection.rst | 11 + .../oci.core.models.InstanceCredentials.rst | 11 + .../oci.core.models.InstanceSourceDetails.rst | 11 + ...els.InstanceSourceViaBootVolumeDetails.rst | 11 + ...e.models.InstanceSourceViaImageDetails.rst | 11 + .../oci.core.models.InternetGateway.rst | 11 + .../oci.core.models.LaunchInstanceDetails.rst | 11 + .../models/oci.core.models.LaunchOptions.rst | 11 + .../oci.core.models.LetterOfAuthority.rst | 11 + .../oci.core.models.LocalPeeringGateway.rst | 11 + ...models.ParavirtualizedVolumeAttachment.rst | 11 + ...core.models.PeerRegionForRemotePeering.rst | 11 + .../core/models/oci.core.models.PortRange.rst | 11 + .../core/models/oci.core.models.PrivateIp.rst | 11 + .../core/models/oci.core.models.PublicIp.rst | 11 + ...ci.core.models.RemotePeeringConnection.rst | 11 + .../core/models/oci.core.models.RouteRule.rst | 11 + .../models/oci.core.models.RouteTable.rst | 11 + .../models/oci.core.models.SecurityList.rst | 11 + .../api/core/models/oci.core.models.Shape.rst | 11 + .../core/models/oci.core.models.Subnet.rst | 11 + .../models/oci.core.models.TcpOptions.rst | 11 + .../models/oci.core.models.TunnelConfig.rst | 11 + .../models/oci.core.models.TunnelStatus.rst | 11 + .../models/oci.core.models.UdpOptions.rst | 11 + ...ci.core.models.UpdateBootVolumeDetails.rst | 11 + ...ore.models.UpdateConsoleHistoryDetails.rst | 11 + .../oci.core.models.UpdateCpeDetails.rst | 11 + ....core.models.UpdateCrossConnectDetails.rst | 11 + ....models.UpdateCrossConnectGroupDetails.rst | 11 + .../oci.core.models.UpdateDhcpDetails.rst | 11 + ...core.models.UpdateDrgAttachmentDetails.rst | 11 + .../oci.core.models.UpdateDrgDetails.rst | 11 + ...re.models.UpdateIPSecConnectionDetails.rst | 11 + .../oci.core.models.UpdateImageDetails.rst | 11 + .../oci.core.models.UpdateInstanceDetails.rst | 11 + ...re.models.UpdateInternetGatewayDetails.rst | 11 + ...odels.UpdateLocalPeeringGatewayDetails.rst | 11 + ...oci.core.models.UpdatePrivateIpDetails.rst | 11 + .../oci.core.models.UpdatePublicIpDetails.rst | 11 + ...s.UpdateRemotePeeringConnectionDetails.rst | 11 + ...ci.core.models.UpdateRouteTableDetails.rst | 11 + ....core.models.UpdateSecurityListDetails.rst | 11 + .../oci.core.models.UpdateSubnetDetails.rst | 11 + .../oci.core.models.UpdateVcnDetails.rst | 11 + ...ore.models.UpdateVirtualCircuitDetails.rst | 11 + .../oci.core.models.UpdateVnicDetails.rst | 11 + ....core.models.UpdateVolumeBackupDetails.rst | 11 + .../oci.core.models.UpdateVolumeDetails.rst | 11 + docs/api/core/models/oci.core.models.Vcn.rst | 11 + .../models/oci.core.models.VirtualCircuit.rst | 11 + ...re.models.VirtualCircuitBandwidthShape.rst | 11 + ...core.models.VirtualCircuitPublicPrefix.rst | 11 + docs/api/core/models/oci.core.models.Vnic.rst | 11 + .../models/oci.core.models.VnicAttachment.rst | 11 + .../core/models/oci.core.models.Volume.rst | 11 + .../oci.core.models.VolumeAttachment.rst | 11 + .../models/oci.core.models.VolumeBackup.rst | 11 + .../oci.core.models.VolumeBackupPolicy.rst | 11 + ...re.models.VolumeBackupPolicyAssignment.rst | 11 + .../oci.core.models.VolumeBackupSchedule.rst | 11 + .../oci.core.models.VolumeSourceDetails.rst | 11 + ...ls.VolumeSourceFromVolumeBackupDetails.rst | 11 + ...e.models.VolumeSourceFromVolumeDetails.rst | 11 + docs/api/database.rst | 1 + .../client/oci.database.DatabaseClient.rst | 8 + ...base.DatabaseClientCompositeOperations.rst | 8 + .../models/oci.database.models.Backup.rst | 11 + .../oci.database.models.BackupSummary.rst | 11 + ...ci.database.models.CreateBackupDetails.rst | 11 + ...dels.CreateDataGuardAssociationDetails.rst | 11 + ...rdAssociationToExistingDbSystemDetails.rst | 11 + ....database.models.CreateDatabaseDetails.rst | 11 + ...models.CreateDatabaseFromBackupDetails.rst | 11 + ...ci.database.models.CreateDbHomeDetails.rst | 11 + ....models.CreateDbHomeWithDbSystemIdBase.rst | 11 + ...dels.CreateDbHomeWithDbSystemIdDetails.rst | 11 + ...eDbHomeWithDbSystemIdFromBackupDetails.rst | 11 + ...i.database.models.DataGuardAssociation.rst | 11 + ...ase.models.DataGuardAssociationSummary.rst | 11 + .../models/oci.database.models.Database.rst | 11 + .../oci.database.models.DatabaseSummary.rst | 11 + .../oci.database.models.DbBackupConfig.rst | 11 + .../models/oci.database.models.DbHome.rst | 11 + .../oci.database.models.DbHomeSummary.rst | 11 + .../models/oci.database.models.DbNode.rst | 11 + .../oci.database.models.DbNodeSummary.rst | 11 + .../models/oci.database.models.DbSystem.rst | 11 + ...i.database.models.DbSystemShapeSummary.rst | 11 + .../oci.database.models.DbSystemSummary.rst | 11 + .../oci.database.models.DbVersionSummary.rst | 11 + ...ls.FailoverDataGuardAssociationDetails.rst | 11 + ....database.models.LaunchDbSystemDetails.rst | 11 + .../models/oci.database.models.Patch.rst | 11 + .../oci.database.models.PatchDetails.rst | 11 + .../oci.database.models.PatchHistoryEntry.rst | 11 + ...tabase.models.PatchHistoryEntrySummary.rst | 11 + .../oci.database.models.PatchSummary.rst | 11 + ...s.ReinstateDataGuardAssociationDetails.rst | 11 + ...database.models.RestoreDatabaseDetails.rst | 11 + ....SwitchoverDataGuardAssociationDetails.rst | 11 + ....database.models.UpdateDatabaseDetails.rst | 11 + ...ci.database.models.UpdateDbHomeDetails.rst | 11 + ....database.models.UpdateDbSystemDetails.rst | 11 + docs/api/dns.rst | 1 + docs/api/dns/client/oci.dns.DnsClient.rst | 8 + .../oci.dns.DnsClientCompositeOperations.rst | 8 + .../oci.dns.models.CreateZoneDetails.rst | 11 + .../models/oci.dns.models.ExternalMaster.rst | 11 + ...i.dns.models.PatchDomainRecordsDetails.rst | 11 + .../oci.dns.models.PatchRRSetDetails.rst | 11 + ...oci.dns.models.PatchZoneRecordsDetails.rst | 11 + docs/api/dns/models/oci.dns.models.RRSet.rst | 11 + docs/api/dns/models/oci.dns.models.Record.rst | 11 + .../oci.dns.models.RecordCollection.rst | 11 + .../models/oci.dns.models.RecordDetails.rst | 11 + .../models/oci.dns.models.RecordOperation.rst | 11 + docs/api/dns/models/oci.dns.models.TSIG.rst | 11 + ....dns.models.UpdateDomainRecordsDetails.rst | 11 + .../oci.dns.models.UpdateRRSetDetails.rst | 11 + .../oci.dns.models.UpdateZoneDetails.rst | 11 + ...ci.dns.models.UpdateZoneRecordsDetails.rst | 11 + docs/api/dns/models/oci.dns.models.Zone.rst | 11 + .../dns/models/oci.dns.models.ZoneSummary.rst | 11 + docs/api/email.rst | 1 + .../email/client/oci.email.EmailClient.rst | 8 + ...i.email.EmailClientCompositeOperations.rst | 8 + .../oci.email.models.CreateSenderDetails.rst | 11 + ....email.models.CreateSuppressionDetails.rst | 11 + .../email/models/oci.email.models.Sender.rst | 11 + .../models/oci.email.models.SenderSummary.rst | 11 + .../models/oci.email.models.Suppression.rst | 11 + .../oci.email.models.SuppressionSummary.rst | 11 + docs/api/file_storage.rst | 1 + .../oci.file_storage.FileStorageClient.rst | 8 + ...e.FileStorageClientCompositeOperations.rst | 8 + ...ile_storage.models.CreateExportDetails.rst | 11 + ...storage.models.CreateFileSystemDetails.rst | 11 + ...torage.models.CreateMountTargetDetails.rst | 11 + ...e_storage.models.CreateSnapshotDetails.rst | 11 + .../models/oci.file_storage.models.Export.rst | 11 + .../oci.file_storage.models.ExportSet.rst | 11 + ...i.file_storage.models.ExportSetSummary.rst | 11 + .../oci.file_storage.models.ExportSummary.rst | 11 + .../oci.file_storage.models.FileSystem.rst | 11 + ....file_storage.models.FileSystemSummary.rst | 11 + .../oci.file_storage.models.MountTarget.rst | 11 + ...file_storage.models.MountTargetSummary.rst | 11 + .../oci.file_storage.models.Snapshot.rst | 11 + ...ci.file_storage.models.SnapshotSummary.rst | 11 + ..._storage.models.UpdateExportSetDetails.rst | 11 + ...storage.models.UpdateFileSystemDetails.rst | 11 + ...torage.models.UpdateMountTargetDetails.rst | 11 + docs/api/identity.rst | 1 + .../client/oci.identity.IdentityClient.rst | 8 + ...tity.IdentityClientCompositeOperations.rst | 8 + ....identity.models.AddUserToGroupDetails.rst | 11 + .../models/oci.identity.models.ApiKey.rst | 11 + ...oci.identity.models.AvailabilityDomain.rst | 11 + .../oci.identity.models.Compartment.rst | 11 + ...ci.identity.models.CreateApiKeyDetails.rst | 11 + ...entity.models.CreateCompartmentDetails.rst | 11 + ....models.CreateCustomerSecretKeyDetails.rst | 11 + ...ntity.models.CreateDynamicGroupDetails.rst | 11 + ...oci.identity.models.CreateGroupDetails.rst | 11 + ...y.models.CreateIdentityProviderDetails.rst | 11 + ...ty.models.CreateIdpGroupMappingDetails.rst | 11 + ...ci.identity.models.CreatePolicyDetails.rst | 11 + ...models.CreateRegionSubscriptionDetails.rst | 11 + ...els.CreateSaml2IdentityProviderDetails.rst | 11 + ...ity.models.CreateSmtpCredentialDetails.rst | 11 + ...tity.models.CreateSwiftPasswordDetails.rst | 11 + .../oci.identity.models.CreateTagDetails.rst | 11 + ...ntity.models.CreateTagNamespaceDetails.rst | 11 + .../oci.identity.models.CreateUserDetails.rst | 11 + .../oci.identity.models.CustomerSecretKey.rst | 11 + ...entity.models.CustomerSecretKeySummary.rst | 11 + .../oci.identity.models.DynamicGroup.rst | 11 + .../models/oci.identity.models.Group.rst | 11 + .../oci.identity.models.IdentityProvider.rst | 11 + .../oci.identity.models.IdpGroupMapping.rst | 11 + .../models/oci.identity.models.Policy.rst | 11 + .../models/oci.identity.models.Region.rst | 11 + ...oci.identity.models.RegionSubscription.rst | 11 + ....identity.models.Saml2IdentityProvider.rst | 11 + .../oci.identity.models.SmtpCredential.rst | 11 + ....identity.models.SmtpCredentialSummary.rst | 11 + .../oci.identity.models.SwiftPassword.rst | 11 + .../models/oci.identity.models.Tag.rst | 11 + .../oci.identity.models.TagNamespace.rst | 11 + ...ci.identity.models.TagNamespaceSummary.rst | 11 + .../models/oci.identity.models.TagSummary.rst | 11 + .../models/oci.identity.models.Tenancy.rst | 11 + .../models/oci.identity.models.UIPassword.rst | 11 + ...entity.models.UpdateCompartmentDetails.rst | 11 + ....models.UpdateCustomerSecretKeyDetails.rst | 11 + ...ntity.models.UpdateDynamicGroupDetails.rst | 11 + ...oci.identity.models.UpdateGroupDetails.rst | 11 + ...y.models.UpdateIdentityProviderDetails.rst | 11 + ...ty.models.UpdateIdpGroupMappingDetails.rst | 11 + ...ci.identity.models.UpdatePolicyDetails.rst | 11 + ...els.UpdateSaml2IdentityProviderDetails.rst | 11 + ...ity.models.UpdateSmtpCredentialDetails.rst | 11 + ...oci.identity.models.UpdateStateDetails.rst | 11 + ...tity.models.UpdateSwiftPasswordDetails.rst | 11 + .../oci.identity.models.UpdateTagDetails.rst | 11 + ...ntity.models.UpdateTagNamespaceDetails.rst | 11 + .../oci.identity.models.UpdateUserDetails.rst | 11 + .../models/oci.identity.models.User.rst | 11 + ...ci.identity.models.UserGroupMembership.rst | 11 + docs/api/landing.rst | 2 + docs/api/load_balancer.rst | 1 + .../oci.load_balancer.LoadBalancerClient.rst | 8 + ....LoadBalancerClientCompositeOperations.rst | 8 + .../oci.load_balancer.models.Backend.rst | 11 + ...ci.load_balancer.models.BackendDetails.rst | 11 + ...oci.load_balancer.models.BackendHealth.rst | 11 + .../oci.load_balancer.models.BackendSet.rst | 11 + ...load_balancer.models.BackendSetDetails.rst | 11 + ....load_balancer.models.BackendSetHealth.rst | 11 + .../oci.load_balancer.models.Certificate.rst | 11 + ...oad_balancer.models.CertificateDetails.rst | 11 + ...alancer.models.ConnectionConfiguration.rst | 11 + ...d_balancer.models.CreateBackendDetails.rst | 11 + ...alancer.models.CreateBackendSetDetails.rst | 11 + ...lancer.models.CreateCertificateDetails.rst | 11 + ..._balancer.models.CreateListenerDetails.rst | 11 + ...ancer.models.CreateLoadBalancerDetails.rst | 11 + ...ancer.models.CreatePathRouteSetDetails.rst | 11 + ...load_balancer.models.HealthCheckResult.rst | 11 + ...oci.load_balancer.models.HealthChecker.rst | 11 + ...d_balancer.models.HealthCheckerDetails.rst | 11 + .../oci.load_balancer.models.IpAddress.rst | 11 + .../oci.load_balancer.models.Listener.rst | 11 + ...i.load_balancer.models.ListenerDetails.rst | 11 + .../oci.load_balancer.models.LoadBalancer.rst | 11 + ...oad_balancer.models.LoadBalancerHealth.rst | 11 + ...ancer.models.LoadBalancerHealthSummary.rst | 11 + ...oad_balancer.models.LoadBalancerPolicy.rst | 11 + ...d_balancer.models.LoadBalancerProtocol.rst | 11 + ...load_balancer.models.LoadBalancerShape.rst | 11 + ...oci.load_balancer.models.PathMatchType.rst | 11 + .../oci.load_balancer.models.PathRoute.rst | 11 + .../oci.load_balancer.models.PathRouteSet.rst | 11 + ...ad_balancer.models.PathRouteSetDetails.rst | 11 + ....load_balancer.models.SSLConfiguration.rst | 11 + ...alancer.models.SSLConfigurationDetails.rst | 11 + ...SessionPersistenceConfigurationDetails.rst | 11 + ...d_balancer.models.UpdateBackendDetails.rst | 11 + ...alancer.models.UpdateBackendSetDetails.rst | 11 + ...ncer.models.UpdateHealthCheckerDetails.rst | 11 + ..._balancer.models.UpdateListenerDetails.rst | 11 + ...ancer.models.UpdateLoadBalancerDetails.rst | 11 + ...ancer.models.UpdatePathRouteSetDetails.rst | 11 + .../oci.load_balancer.models.WorkRequest.rst | 11 + ....load_balancer.models.WorkRequestError.rst | 11 + docs/api/object_storage.rst | 1 + ...oci.object_storage.ObjectStorageClient.rst | 8 + ...ObjectStorageClientCompositeOperations.rst | 8 + .../oci.object_storage.models.Bucket.rst | 11 + ...ci.object_storage.models.BucketSummary.rst | 11 + ...ge.models.CommitMultipartUploadDetails.rst | 11 + ...odels.CommitMultipartUploadPartDetails.rst | 11 + ...ect_storage.models.CreateBucketDetails.rst | 11 + ...ge.models.CreateMultipartUploadDetails.rst | 11 + ...s.CreatePreauthenticatedRequestDetails.rst | 11 + .../oci.object_storage.models.ListObjects.rst | 11 + ....object_storage.models.MultipartUpload.rst | 11 + ...rage.models.MultipartUploadPartSummary.rst | 11 + ...bject_storage.models.NamespaceMetadata.rst | 11 + ...ci.object_storage.models.ObjectSummary.rst | 11 + ...storage.models.PreauthenticatedRequest.rst | 11 + ....models.PreauthenticatedRequestSummary.rst | 11 + ...ect_storage.models.RenameObjectDetails.rst | 11 + ...t_storage.models.RestoreObjectsDetails.rst | 11 + ...ect_storage.models.UpdateBucketDetails.rst | 11 + ....models.UpdateNamespaceMetadataDetails.rst | 11 + docs/api/retry.rst | 27 + docs/exceptions.rst | 2 + docs/installation.rst | 65 +- docs/sdk_behaviors/retries.rst | 2 +- docs/waiters.rst | 10 +- examples/composite_operations_example.py | 127 ++ src/oci/audit/__init__.py | 3 +- src/oci/audit/audit_client.py | 45 +- .../audit_client_composite_operations.py | 63 + src/oci/audit/models/audit_event.py | 4 +- src/oci/audit/models/configuration.py | 4 +- .../models/update_configuration_details.py | 4 +- src/oci/core/__init__.py | 5 +- src/oci/core/blockstorage_client.py | 45 +- ...lockstorage_client_composite_operations.py | 338 +++ src/oci/core/compute_client.py | 45 +- .../compute_client_composite_operations.py | 727 +++++++ .../core/models/attach_boot_volume_details.py | 4 +- .../models/attach_i_scsi_volume_details.py | 4 +- .../attach_paravirtualized_volume_details.py | 4 +- src/oci/core/models/attach_vnic_details.py | 4 +- src/oci/core/models/attach_volume_details.py | 4 +- src/oci/core/models/boot_volume.py | 4 +- src/oci/core/models/boot_volume_attachment.py | 4 +- ...virtual_circuit_public_prefixes_details.py | 4 +- ...virtual_circuit_public_prefixes_details.py | 4 +- .../models/capture_console_history_details.py | 4 +- .../connect_local_peering_gateways_details.py | 4 +- ...nect_remote_peering_connections_details.py | 4 +- src/oci/core/models/console_history.py | 4 +- src/oci/core/models/cpe.py | 4 +- src/oci/core/models/create_cpe_details.py | 4 +- .../models/create_cross_connect_details.py | 4 +- .../create_cross_connect_group_details.py | 4 +- src/oci/core/models/create_dhcp_details.py | 4 +- .../models/create_drg_attachment_details.py | 4 +- src/oci/core/models/create_drg_details.py | 4 +- src/oci/core/models/create_image_details.py | 4 +- ...ate_instance_console_connection_details.py | 4 +- .../models/create_internet_gateway_details.py | 4 +- .../create_ip_sec_connection_details.py | 4 +- .../create_local_peering_gateway_details.py | 4 +- .../core/models/create_private_ip_details.py | 4 +- .../core/models/create_public_ip_details.py | 4 +- ...reate_remote_peering_connection_details.py | 4 +- .../core/models/create_route_table_details.py | 4 +- .../models/create_security_list_details.py | 4 +- src/oci/core/models/create_subnet_details.py | 4 +- src/oci/core/models/create_vcn_details.py | 4 +- .../models/create_virtual_circuit_details.py | 4 +- ...e_virtual_circuit_public_prefix_details.py | 4 +- src/oci/core/models/create_vnic_details.py | 4 +- .../models/create_volume_backup_details.py | 4 +- ...volume_backup_policy_assignment_details.py | 4 +- src/oci/core/models/create_volume_details.py | 4 +- src/oci/core/models/cross_connect.py | 4 +- src/oci/core/models/cross_connect_group.py | 4 +- src/oci/core/models/cross_connect_location.py | 4 +- src/oci/core/models/cross_connect_mapping.py | 4 +- .../models/cross_connect_port_speed_shape.py | 4 +- src/oci/core/models/cross_connect_status.py | 4 +- ...e_virtual_circuit_public_prefix_details.py | 4 +- src/oci/core/models/dhcp_dns_option.py | 4 +- src/oci/core/models/dhcp_option.py | 4 +- src/oci/core/models/dhcp_options.py | 4 +- .../core/models/dhcp_search_domain_option.py | 4 +- src/oci/core/models/drg.py | 4 +- src/oci/core/models/drg_attachment.py | 4 +- src/oci/core/models/egress_security_rule.py | 4 +- src/oci/core/models/export_image_details.py | 4 +- ..._image_via_object_storage_tuple_details.py | 4 +- ...rt_image_via_object_storage_uri_details.py | 4 +- .../models/fast_connect_provider_service.py | 7 +- .../get_public_ip_by_ip_address_details.py | 4 +- .../get_public_ip_by_private_ip_id_details.py | 4 +- .../core/models/i_scsi_volume_attachment.py | 4 +- src/oci/core/models/icmp_options.py | 4 +- src/oci/core/models/image.py | 4 +- src/oci/core/models/image_source_details.py | 4 +- ...source_via_object_storage_tuple_details.py | 4 +- ...e_source_via_object_storage_uri_details.py | 4 +- src/oci/core/models/ingress_security_rule.py | 4 +- src/oci/core/models/instance.py | 4 +- .../models/instance_console_connection.py | 4 +- src/oci/core/models/instance_credentials.py | 4 +- .../core/models/instance_source_details.py | 4 +- ...instance_source_via_boot_volume_details.py | 4 +- .../instance_source_via_image_details.py | 4 +- src/oci/core/models/internet_gateway.py | 4 +- src/oci/core/models/ip_sec_connection.py | 4 +- .../models/ip_sec_connection_device_config.py | 4 +- .../models/ip_sec_connection_device_status.py | 4 +- .../core/models/launch_instance_details.py | 4 +- src/oci/core/models/launch_options.py | 4 +- src/oci/core/models/letter_of_authority.py | 4 +- src/oci/core/models/local_peering_gateway.py | 4 +- .../paravirtualized_volume_attachment.py | 4 +- .../models/peer_region_for_remote_peering.py | 4 +- src/oci/core/models/port_range.py | 4 +- src/oci/core/models/private_ip.py | 4 +- src/oci/core/models/public_ip.py | 4 +- .../core/models/remote_peering_connection.py | 4 +- src/oci/core/models/route_rule.py | 4 +- src/oci/core/models/route_table.py | 4 +- src/oci/core/models/security_list.py | 4 +- src/oci/core/models/shape.py | 4 +- src/oci/core/models/subnet.py | 4 +- src/oci/core/models/tcp_options.py | 4 +- src/oci/core/models/tunnel_config.py | 4 +- src/oci/core/models/tunnel_status.py | 4 +- src/oci/core/models/udp_options.py | 4 +- .../core/models/update_boot_volume_details.py | 4 +- .../models/update_console_history_details.py | 4 +- src/oci/core/models/update_cpe_details.py | 4 +- .../models/update_cross_connect_details.py | 4 +- .../update_cross_connect_group_details.py | 4 +- src/oci/core/models/update_dhcp_details.py | 4 +- .../models/update_drg_attachment_details.py | 4 +- src/oci/core/models/update_drg_details.py | 4 +- src/oci/core/models/update_image_details.py | 4 +- .../core/models/update_instance_details.py | 4 +- .../models/update_internet_gateway_details.py | 4 +- .../update_ip_sec_connection_details.py | 4 +- .../update_local_peering_gateway_details.py | 4 +- .../core/models/update_private_ip_details.py | 4 +- .../core/models/update_public_ip_details.py | 4 +- ...pdate_remote_peering_connection_details.py | 4 +- .../core/models/update_route_table_details.py | 4 +- .../models/update_security_list_details.py | 4 +- src/oci/core/models/update_subnet_details.py | 4 +- src/oci/core/models/update_vcn_details.py | 4 +- .../models/update_virtual_circuit_details.py | 4 +- src/oci/core/models/update_vnic_details.py | 4 +- .../models/update_volume_backup_details.py | 4 +- src/oci/core/models/update_volume_details.py | 4 +- src/oci/core/models/vcn.py | 4 +- src/oci/core/models/virtual_circuit.py | 4 +- .../models/virtual_circuit_bandwidth_shape.py | 4 +- .../models/virtual_circuit_public_prefix.py | 4 +- src/oci/core/models/vnic.py | 4 +- src/oci/core/models/vnic_attachment.py | 4 +- src/oci/core/models/volume.py | 4 +- src/oci/core/models/volume_attachment.py | 4 +- src/oci/core/models/volume_backup.py | 4 +- src/oci/core/models/volume_backup_policy.py | 4 +- .../models/volume_backup_policy_assignment.py | 4 +- src/oci/core/models/volume_backup_schedule.py | 4 +- src/oci/core/models/volume_source_details.py | 4 +- ...olume_source_from_volume_backup_details.py | 4 +- .../volume_source_from_volume_details.py | 4 +- src/oci/core/virtual_network_client.py | 45 +- ...ual_network_client_composite_operations.py | 1833 +++++++++++++++++ src/oci/database/__init__.py | 3 +- src/oci/database/database_client.py | 54 +- .../database_client_composite_operations.py | 474 +++++ src/oci/database/models/backup.py | 4 +- src/oci/database/models/backup_summary.py | 4 +- .../database/models/create_backup_details.py | 4 +- .../create_data_guard_association_details.py | 4 +- ...sociation_to_existing_db_system_details.py | 4 +- .../models/create_database_details.py | 86 +- .../create_database_from_backup_details.py | 4 +- .../database/models/create_db_home_details.py | 4 +- .../create_db_home_with_db_system_id_base.py | 4 +- ...reate_db_home_with_db_system_id_details.py | 4 +- ...e_with_db_system_id_from_backup_details.py | 4 +- .../database/models/data_guard_association.py | 4 +- .../models/data_guard_association_summary.py | 4 +- src/oci/database/models/database.py | 86 +- src/oci/database/models/database_summary.py | 86 +- src/oci/database/models/db_backup_config.py | 4 +- src/oci/database/models/db_home.py | 4 +- src/oci/database/models/db_home_summary.py | 4 +- src/oci/database/models/db_node.py | 4 +- src/oci/database/models/db_node_summary.py | 4 +- src/oci/database/models/db_system.py | 86 +- .../models/db_system_shape_summary.py | 4 +- src/oci/database/models/db_system_summary.py | 86 +- src/oci/database/models/db_version_summary.py | 4 +- ...failover_data_guard_association_details.py | 4 +- .../models/launch_db_system_details.py | 86 +- src/oci/database/models/patch.py | 7 +- src/oci/database/models/patch_details.py | 4 +- .../database/models/patch_history_entry.py | 4 +- .../models/patch_history_entry_summary.py | 4 +- src/oci/database/models/patch_summary.py | 7 +- ...einstate_data_guard_association_details.py | 4 +- .../models/restore_database_details.py | 4 +- ...itchover_data_guard_association_details.py | 4 +- .../models/update_database_details.py | 90 +- .../database/models/update_db_home_details.py | 4 +- .../models/update_db_system_details.py | 86 +- src/oci/dns/__init__.py | 3 +- src/oci/dns/dns_client.py | 45 +- .../dns/dns_client_composite_operations.py | 140 ++ src/oci/dns/models/create_zone_details.py | 4 +- src/oci/dns/models/external_master.py | 4 +- .../models/patch_domain_records_details.py | 4 +- src/oci/dns/models/patch_rr_set_details.py | 4 +- .../dns/models/patch_zone_records_details.py | 4 +- src/oci/dns/models/record.py | 4 +- src/oci/dns/models/record_collection.py | 4 +- src/oci/dns/models/record_details.py | 4 +- src/oci/dns/models/record_operation.py | 4 +- src/oci/dns/models/rr_set.py | 4 +- src/oci/dns/models/tsig.py | 4 +- .../models/update_domain_records_details.py | 4 +- src/oci/dns/models/update_rr_set_details.py | 4 +- src/oci/dns/models/update_zone_details.py | 4 +- .../dns/models/update_zone_records_details.py | 4 +- src/oci/dns/models/zone.py | 4 +- src/oci/dns/models/zone_summary.py | 4 +- src/oci/email/__init__.py | 3 +- src/oci/email/email_client.py | 45 +- .../email_client_composite_operations.py | 99 + src/oci/email/models/create_sender_details.py | 4 +- .../models/create_suppression_details.py | 4 +- src/oci/email/models/sender.py | 4 +- src/oci/email/models/sender_summary.py | 4 +- src/oci/email/models/suppression.py | 4 +- src/oci/email/models/suppression_summary.py | 4 +- src/oci/exceptions.py | 14 + src/oci/file_storage/__init__.py | 3 +- src/oci/file_storage/file_storage_client.py | 46 +- ...ile_storage_client_composite_operations.py | 453 ++++ .../models/create_export_details.py | 4 +- .../models/create_file_system_details.py | 4 +- .../models/create_mount_target_details.py | 4 +- .../models/create_snapshot_details.py | 4 +- src/oci/file_storage/models/export.py | 4 +- src/oci/file_storage/models/export_set.py | 4 +- .../file_storage/models/export_set_summary.py | 4 +- src/oci/file_storage/models/export_summary.py | 4 +- src/oci/file_storage/models/file_system.py | 4 +- .../models/file_system_summary.py | 4 +- src/oci/file_storage/models/mount_target.py | 4 +- .../models/mount_target_summary.py | 4 +- src/oci/file_storage/models/snapshot.py | 4 +- .../file_storage/models/snapshot_summary.py | 4 +- .../models/update_export_set_details.py | 4 +- .../models/update_file_system_details.py | 4 +- .../models/update_mount_target_details.py | 4 +- src/oci/identity/__init__.py | 3 +- src/oci/identity/identity_client.py | 45 +- .../identity_client_composite_operations.py | 814 ++++++++ .../models/add_user_to_group_details.py | 4 +- src/oci/identity/models/api_key.py | 4 +- .../identity/models/availability_domain.py | 4 +- src/oci/identity/models/compartment.py | 4 +- .../identity/models/create_api_key_details.py | 4 +- .../models/create_compartment_details.py | 4 +- .../create_customer_secret_key_details.py | 4 +- .../models/create_dynamic_group_details.py | 4 +- .../identity/models/create_group_details.py | 4 +- .../create_identity_provider_details.py | 4 +- .../create_idp_group_mapping_details.py | 4 +- .../identity/models/create_policy_details.py | 4 +- .../create_region_subscription_details.py | 4 +- .../create_saml2_identity_provider_details.py | 4 +- .../models/create_smtp_credential_details.py | 4 +- .../models/create_swift_password_details.py | 4 +- src/oci/identity/models/create_tag_details.py | 4 +- .../models/create_tag_namespace_details.py | 4 +- .../identity/models/create_user_details.py | 4 +- .../identity/models/customer_secret_key.py | 4 +- .../models/customer_secret_key_summary.py | 4 +- src/oci/identity/models/dynamic_group.py | 4 +- src/oci/identity/models/group.py | 4 +- src/oci/identity/models/identity_provider.py | 4 +- src/oci/identity/models/idp_group_mapping.py | 4 +- src/oci/identity/models/policy.py | 4 +- src/oci/identity/models/region.py | 4 +- .../identity/models/region_subscription.py | 4 +- .../models/saml2_identity_provider.py | 4 +- src/oci/identity/models/smtp_credential.py | 4 +- .../models/smtp_credential_summary.py | 4 +- src/oci/identity/models/swift_password.py | 4 +- src/oci/identity/models/tag.py | 4 +- src/oci/identity/models/tag_namespace.py | 4 +- .../identity/models/tag_namespace_summary.py | 4 +- src/oci/identity/models/tag_summary.py | 4 +- src/oci/identity/models/tenancy.py | 4 +- src/oci/identity/models/ui_password.py | 4 +- .../models/update_compartment_details.py | 4 +- .../update_customer_secret_key_details.py | 4 +- .../models/update_dynamic_group_details.py | 4 +- .../identity/models/update_group_details.py | 4 +- .../update_identity_provider_details.py | 4 +- .../update_idp_group_mapping_details.py | 4 +- .../identity/models/update_policy_details.py | 4 +- .../update_saml2_identity_provider_details.py | 4 +- .../models/update_smtp_credential_details.py | 4 +- .../identity/models/update_state_details.py | 4 +- .../models/update_swift_password_details.py | 4 +- src/oci/identity/models/update_tag_details.py | 4 +- .../models/update_tag_namespace_details.py | 4 +- .../identity/models/update_user_details.py | 4 +- src/oci/identity/models/user.py | 4 +- .../identity/models/user_group_membership.py | 4 +- src/oci/load_balancer/__init__.py | 3 +- src/oci/load_balancer/load_balancer_client.py | 45 +- ...ad_balancer_client_composite_operations.py | 838 ++++++++ src/oci/load_balancer/models/backend.py | 4 +- .../load_balancer/models/backend_details.py | 4 +- .../load_balancer/models/backend_health.py | 4 +- src/oci/load_balancer/models/backend_set.py | 4 +- .../models/backend_set_details.py | 4 +- .../models/backend_set_health.py | 4 +- src/oci/load_balancer/models/certificate.py | 4 +- .../models/certificate_details.py | 4 +- .../models/connection_configuration.py | 4 +- .../models/create_backend_details.py | 4 +- .../models/create_backend_set_details.py | 4 +- .../models/create_certificate_details.py | 4 +- .../models/create_listener_details.py | 4 +- .../models/create_load_balancer_details.py | 4 +- .../models/create_path_route_set_details.py | 4 +- .../models/health_check_result.py | 4 +- .../load_balancer/models/health_checker.py | 4 +- .../models/health_checker_details.py | 4 +- src/oci/load_balancer/models/ip_address.py | 4 +- src/oci/load_balancer/models/listener.py | 4 +- .../load_balancer/models/listener_details.py | 4 +- src/oci/load_balancer/models/load_balancer.py | 4 +- .../models/load_balancer_health.py | 4 +- .../models/load_balancer_health_summary.py | 4 +- .../models/load_balancer_policy.py | 4 +- .../models/load_balancer_protocol.py | 4 +- .../models/load_balancer_shape.py | 4 +- .../load_balancer/models/path_match_type.py | 4 +- src/oci/load_balancer/models/path_route.py | 4 +- .../load_balancer/models/path_route_set.py | 4 +- .../models/path_route_set_details.py | 4 +- ...ssion_persistence_configuration_details.py | 4 +- .../load_balancer/models/ssl_configuration.py | 4 +- .../models/ssl_configuration_details.py | 4 +- .../models/update_backend_details.py | 4 +- .../models/update_backend_set_details.py | 4 +- .../models/update_health_checker_details.py | 4 +- .../models/update_listener_details.py | 4 +- .../models/update_load_balancer_details.py | 4 +- .../models/update_path_route_set_details.py | 4 +- src/oci/load_balancer/models/work_request.py | 4 +- .../models/work_request_error.py | 4 +- src/oci/object_storage/__init__.py | 3 +- src/oci/object_storage/models/bucket.py | 4 +- .../object_storage/models/bucket_summary.py | 4 +- .../models/commit_multipart_upload_details.py | 4 +- .../commit_multipart_upload_part_details.py | 4 +- .../models/create_bucket_details.py | 4 +- .../models/create_multipart_upload_details.py | 4 +- ...create_preauthenticated_request_details.py | 4 +- src/oci/object_storage/models/list_objects.py | 4 +- .../object_storage/models/multipart_upload.py | 4 +- .../models/multipart_upload_part_summary.py | 4 +- .../models/namespace_metadata.py | 4 +- .../object_storage/models/object_summary.py | 4 +- .../models/preauthenticated_request.py | 4 +- .../preauthenticated_request_summary.py | 4 +- .../models/rename_object_details.py | 4 +- .../models/restore_objects_details.py | 4 +- .../models/update_bucket_details.py | 4 +- .../update_namespace_metadata_details.py | 4 +- .../object_storage/object_storage_client.py | 45 +- ...ect_storage_client_composite_operations.py | 22 + src/oci/retry/__init__.py | 10 +- src/oci/retry/retry.py | 13 +- src/oci/retry/retry_checkers.py | 10 +- src/oci/version.py | 2 +- 730 files changed, 11642 insertions(+), 782 deletions(-) create mode 100644 docs/api/audit/client/oci.audit.AuditClient.rst create mode 100644 docs/api/audit/client/oci.audit.AuditClientCompositeOperations.rst create mode 100644 docs/api/audit/models/oci.audit.models.AuditEvent.rst create mode 100644 docs/api/audit/models/oci.audit.models.Configuration.rst create mode 100644 docs/api/audit/models/oci.audit.models.UpdateConfigurationDetails.rst create mode 100644 docs/api/core/client/oci.core.BlockstorageClient.rst create mode 100644 docs/api/core/client/oci.core.BlockstorageClientCompositeOperations.rst create mode 100644 docs/api/core/client/oci.core.ComputeClient.rst create mode 100644 docs/api/core/client/oci.core.ComputeClientCompositeOperations.rst create mode 100644 docs/api/core/client/oci.core.VirtualNetworkClient.rst create mode 100644 docs/api/core/client/oci.core.VirtualNetworkClientCompositeOperations.rst create mode 100644 docs/api/core/models/oci.core.models.AttachBootVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.AttachIScsiVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.AttachParavirtualizedVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.AttachVnicDetails.rst create mode 100644 docs/api/core/models/oci.core.models.AttachVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.BootVolume.rst create mode 100644 docs/api/core/models/oci.core.models.BootVolumeAttachment.rst create mode 100644 docs/api/core/models/oci.core.models.BulkAddVirtualCircuitPublicPrefixesDetails.rst create mode 100644 docs/api/core/models/oci.core.models.BulkDeleteVirtualCircuitPublicPrefixesDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CaptureConsoleHistoryDetails.rst create mode 100644 docs/api/core/models/oci.core.models.ConnectLocalPeeringGatewaysDetails.rst create mode 100644 docs/api/core/models/oci.core.models.ConnectRemotePeeringConnectionsDetails.rst create mode 100644 docs/api/core/models/oci.core.models.ConsoleHistory.rst create mode 100644 docs/api/core/models/oci.core.models.Cpe.rst create mode 100644 docs/api/core/models/oci.core.models.CreateCpeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateCrossConnectDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateCrossConnectGroupDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateDhcpDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateDrgAttachmentDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateDrgDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateIPSecConnectionDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateImageDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateInstanceConsoleConnectionDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateInternetGatewayDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateLocalPeeringGatewayDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreatePrivateIpDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreatePublicIpDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateRemotePeeringConnectionDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateRouteTableDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateSecurityListDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateSubnetDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateVcnDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateVirtualCircuitDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateVirtualCircuitPublicPrefixDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateVnicDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateVolumeBackupDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateVolumeBackupPolicyAssignmentDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CreateVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.CrossConnect.rst create mode 100644 docs/api/core/models/oci.core.models.CrossConnectGroup.rst create mode 100644 docs/api/core/models/oci.core.models.CrossConnectLocation.rst create mode 100644 docs/api/core/models/oci.core.models.CrossConnectMapping.rst create mode 100644 docs/api/core/models/oci.core.models.CrossConnectPortSpeedShape.rst create mode 100644 docs/api/core/models/oci.core.models.CrossConnectStatus.rst create mode 100644 docs/api/core/models/oci.core.models.DeleteVirtualCircuitPublicPrefixDetails.rst create mode 100644 docs/api/core/models/oci.core.models.DhcpDnsOption.rst create mode 100644 docs/api/core/models/oci.core.models.DhcpOption.rst create mode 100644 docs/api/core/models/oci.core.models.DhcpOptions.rst create mode 100644 docs/api/core/models/oci.core.models.DhcpSearchDomainOption.rst create mode 100644 docs/api/core/models/oci.core.models.Drg.rst create mode 100644 docs/api/core/models/oci.core.models.DrgAttachment.rst create mode 100644 docs/api/core/models/oci.core.models.EgressSecurityRule.rst create mode 100644 docs/api/core/models/oci.core.models.ExportImageDetails.rst create mode 100644 docs/api/core/models/oci.core.models.ExportImageViaObjectStorageTupleDetails.rst create mode 100644 docs/api/core/models/oci.core.models.ExportImageViaObjectStorageUriDetails.rst create mode 100644 docs/api/core/models/oci.core.models.FastConnectProviderService.rst create mode 100644 docs/api/core/models/oci.core.models.GetPublicIpByIpAddressDetails.rst create mode 100644 docs/api/core/models/oci.core.models.GetPublicIpByPrivateIpIdDetails.rst create mode 100644 docs/api/core/models/oci.core.models.IPSecConnection.rst create mode 100644 docs/api/core/models/oci.core.models.IPSecConnectionDeviceConfig.rst create mode 100644 docs/api/core/models/oci.core.models.IPSecConnectionDeviceStatus.rst create mode 100644 docs/api/core/models/oci.core.models.IScsiVolumeAttachment.rst create mode 100644 docs/api/core/models/oci.core.models.IcmpOptions.rst create mode 100644 docs/api/core/models/oci.core.models.Image.rst create mode 100644 docs/api/core/models/oci.core.models.ImageSourceDetails.rst create mode 100644 docs/api/core/models/oci.core.models.ImageSourceViaObjectStorageTupleDetails.rst create mode 100644 docs/api/core/models/oci.core.models.ImageSourceViaObjectStorageUriDetails.rst create mode 100644 docs/api/core/models/oci.core.models.IngressSecurityRule.rst create mode 100644 docs/api/core/models/oci.core.models.Instance.rst create mode 100644 docs/api/core/models/oci.core.models.InstanceConsoleConnection.rst create mode 100644 docs/api/core/models/oci.core.models.InstanceCredentials.rst create mode 100644 docs/api/core/models/oci.core.models.InstanceSourceDetails.rst create mode 100644 docs/api/core/models/oci.core.models.InstanceSourceViaBootVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.InstanceSourceViaImageDetails.rst create mode 100644 docs/api/core/models/oci.core.models.InternetGateway.rst create mode 100644 docs/api/core/models/oci.core.models.LaunchInstanceDetails.rst create mode 100644 docs/api/core/models/oci.core.models.LaunchOptions.rst create mode 100644 docs/api/core/models/oci.core.models.LetterOfAuthority.rst create mode 100644 docs/api/core/models/oci.core.models.LocalPeeringGateway.rst create mode 100644 docs/api/core/models/oci.core.models.ParavirtualizedVolumeAttachment.rst create mode 100644 docs/api/core/models/oci.core.models.PeerRegionForRemotePeering.rst create mode 100644 docs/api/core/models/oci.core.models.PortRange.rst create mode 100644 docs/api/core/models/oci.core.models.PrivateIp.rst create mode 100644 docs/api/core/models/oci.core.models.PublicIp.rst create mode 100644 docs/api/core/models/oci.core.models.RemotePeeringConnection.rst create mode 100644 docs/api/core/models/oci.core.models.RouteRule.rst create mode 100644 docs/api/core/models/oci.core.models.RouteTable.rst create mode 100644 docs/api/core/models/oci.core.models.SecurityList.rst create mode 100644 docs/api/core/models/oci.core.models.Shape.rst create mode 100644 docs/api/core/models/oci.core.models.Subnet.rst create mode 100644 docs/api/core/models/oci.core.models.TcpOptions.rst create mode 100644 docs/api/core/models/oci.core.models.TunnelConfig.rst create mode 100644 docs/api/core/models/oci.core.models.TunnelStatus.rst create mode 100644 docs/api/core/models/oci.core.models.UdpOptions.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateBootVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateConsoleHistoryDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateCpeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateCrossConnectDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateCrossConnectGroupDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateDhcpDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateDrgAttachmentDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateDrgDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateIPSecConnectionDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateImageDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateInstanceDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateInternetGatewayDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateLocalPeeringGatewayDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdatePrivateIpDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdatePublicIpDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateRemotePeeringConnectionDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateRouteTableDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateSecurityListDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateSubnetDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateVcnDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateVirtualCircuitDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateVnicDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateVolumeBackupDetails.rst create mode 100644 docs/api/core/models/oci.core.models.UpdateVolumeDetails.rst create mode 100644 docs/api/core/models/oci.core.models.Vcn.rst create mode 100644 docs/api/core/models/oci.core.models.VirtualCircuit.rst create mode 100644 docs/api/core/models/oci.core.models.VirtualCircuitBandwidthShape.rst create mode 100644 docs/api/core/models/oci.core.models.VirtualCircuitPublicPrefix.rst create mode 100644 docs/api/core/models/oci.core.models.Vnic.rst create mode 100644 docs/api/core/models/oci.core.models.VnicAttachment.rst create mode 100644 docs/api/core/models/oci.core.models.Volume.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeAttachment.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeBackup.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeBackupPolicy.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeBackupPolicyAssignment.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeBackupSchedule.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeSourceDetails.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeSourceFromVolumeBackupDetails.rst create mode 100644 docs/api/core/models/oci.core.models.VolumeSourceFromVolumeDetails.rst create mode 100644 docs/api/database/client/oci.database.DatabaseClient.rst create mode 100644 docs/api/database/client/oci.database.DatabaseClientCompositeOperations.rst create mode 100644 docs/api/database/models/oci.database.models.Backup.rst create mode 100644 docs/api/database/models/oci.database.models.BackupSummary.rst create mode 100644 docs/api/database/models/oci.database.models.CreateBackupDetails.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDataGuardAssociationDetails.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDataGuardAssociationToExistingDbSystemDetails.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDatabaseDetails.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDatabaseFromBackupDetails.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDbHomeDetails.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdBase.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdDetails.rst create mode 100644 docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdFromBackupDetails.rst create mode 100644 docs/api/database/models/oci.database.models.DataGuardAssociation.rst create mode 100644 docs/api/database/models/oci.database.models.DataGuardAssociationSummary.rst create mode 100644 docs/api/database/models/oci.database.models.Database.rst create mode 100644 docs/api/database/models/oci.database.models.DatabaseSummary.rst create mode 100644 docs/api/database/models/oci.database.models.DbBackupConfig.rst create mode 100644 docs/api/database/models/oci.database.models.DbHome.rst create mode 100644 docs/api/database/models/oci.database.models.DbHomeSummary.rst create mode 100644 docs/api/database/models/oci.database.models.DbNode.rst create mode 100644 docs/api/database/models/oci.database.models.DbNodeSummary.rst create mode 100644 docs/api/database/models/oci.database.models.DbSystem.rst create mode 100644 docs/api/database/models/oci.database.models.DbSystemShapeSummary.rst create mode 100644 docs/api/database/models/oci.database.models.DbSystemSummary.rst create mode 100644 docs/api/database/models/oci.database.models.DbVersionSummary.rst create mode 100644 docs/api/database/models/oci.database.models.FailoverDataGuardAssociationDetails.rst create mode 100644 docs/api/database/models/oci.database.models.LaunchDbSystemDetails.rst create mode 100644 docs/api/database/models/oci.database.models.Patch.rst create mode 100644 docs/api/database/models/oci.database.models.PatchDetails.rst create mode 100644 docs/api/database/models/oci.database.models.PatchHistoryEntry.rst create mode 100644 docs/api/database/models/oci.database.models.PatchHistoryEntrySummary.rst create mode 100644 docs/api/database/models/oci.database.models.PatchSummary.rst create mode 100644 docs/api/database/models/oci.database.models.ReinstateDataGuardAssociationDetails.rst create mode 100644 docs/api/database/models/oci.database.models.RestoreDatabaseDetails.rst create mode 100644 docs/api/database/models/oci.database.models.SwitchoverDataGuardAssociationDetails.rst create mode 100644 docs/api/database/models/oci.database.models.UpdateDatabaseDetails.rst create mode 100644 docs/api/database/models/oci.database.models.UpdateDbHomeDetails.rst create mode 100644 docs/api/database/models/oci.database.models.UpdateDbSystemDetails.rst create mode 100644 docs/api/dns/client/oci.dns.DnsClient.rst create mode 100644 docs/api/dns/client/oci.dns.DnsClientCompositeOperations.rst create mode 100644 docs/api/dns/models/oci.dns.models.CreateZoneDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.ExternalMaster.rst create mode 100644 docs/api/dns/models/oci.dns.models.PatchDomainRecordsDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.PatchRRSetDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.PatchZoneRecordsDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.RRSet.rst create mode 100644 docs/api/dns/models/oci.dns.models.Record.rst create mode 100644 docs/api/dns/models/oci.dns.models.RecordCollection.rst create mode 100644 docs/api/dns/models/oci.dns.models.RecordDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.RecordOperation.rst create mode 100644 docs/api/dns/models/oci.dns.models.TSIG.rst create mode 100644 docs/api/dns/models/oci.dns.models.UpdateDomainRecordsDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.UpdateRRSetDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.UpdateZoneDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.UpdateZoneRecordsDetails.rst create mode 100644 docs/api/dns/models/oci.dns.models.Zone.rst create mode 100644 docs/api/dns/models/oci.dns.models.ZoneSummary.rst create mode 100644 docs/api/email/client/oci.email.EmailClient.rst create mode 100644 docs/api/email/client/oci.email.EmailClientCompositeOperations.rst create mode 100644 docs/api/email/models/oci.email.models.CreateSenderDetails.rst create mode 100644 docs/api/email/models/oci.email.models.CreateSuppressionDetails.rst create mode 100644 docs/api/email/models/oci.email.models.Sender.rst create mode 100644 docs/api/email/models/oci.email.models.SenderSummary.rst create mode 100644 docs/api/email/models/oci.email.models.Suppression.rst create mode 100644 docs/api/email/models/oci.email.models.SuppressionSummary.rst create mode 100644 docs/api/file_storage/client/oci.file_storage.FileStorageClient.rst create mode 100644 docs/api/file_storage/client/oci.file_storage.FileStorageClientCompositeOperations.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.CreateExportDetails.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.CreateFileSystemDetails.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.CreateMountTargetDetails.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.CreateSnapshotDetails.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.Export.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.ExportSet.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.ExportSetSummary.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.ExportSummary.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.FileSystem.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.FileSystemSummary.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.MountTarget.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.MountTargetSummary.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.Snapshot.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.SnapshotSummary.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.UpdateExportSetDetails.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.UpdateFileSystemDetails.rst create mode 100644 docs/api/file_storage/models/oci.file_storage.models.UpdateMountTargetDetails.rst create mode 100644 docs/api/identity/client/oci.identity.IdentityClient.rst create mode 100644 docs/api/identity/client/oci.identity.IdentityClientCompositeOperations.rst create mode 100644 docs/api/identity/models/oci.identity.models.AddUserToGroupDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.ApiKey.rst create mode 100644 docs/api/identity/models/oci.identity.models.AvailabilityDomain.rst create mode 100644 docs/api/identity/models/oci.identity.models.Compartment.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateApiKeyDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateCompartmentDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateCustomerSecretKeyDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateDynamicGroupDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateGroupDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateIdentityProviderDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateIdpGroupMappingDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreatePolicyDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateRegionSubscriptionDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateSaml2IdentityProviderDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateSmtpCredentialDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateSwiftPasswordDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateTagDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateTagNamespaceDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CreateUserDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.CustomerSecretKey.rst create mode 100644 docs/api/identity/models/oci.identity.models.CustomerSecretKeySummary.rst create mode 100644 docs/api/identity/models/oci.identity.models.DynamicGroup.rst create mode 100644 docs/api/identity/models/oci.identity.models.Group.rst create mode 100644 docs/api/identity/models/oci.identity.models.IdentityProvider.rst create mode 100644 docs/api/identity/models/oci.identity.models.IdpGroupMapping.rst create mode 100644 docs/api/identity/models/oci.identity.models.Policy.rst create mode 100644 docs/api/identity/models/oci.identity.models.Region.rst create mode 100644 docs/api/identity/models/oci.identity.models.RegionSubscription.rst create mode 100644 docs/api/identity/models/oci.identity.models.Saml2IdentityProvider.rst create mode 100644 docs/api/identity/models/oci.identity.models.SmtpCredential.rst create mode 100644 docs/api/identity/models/oci.identity.models.SmtpCredentialSummary.rst create mode 100644 docs/api/identity/models/oci.identity.models.SwiftPassword.rst create mode 100644 docs/api/identity/models/oci.identity.models.Tag.rst create mode 100644 docs/api/identity/models/oci.identity.models.TagNamespace.rst create mode 100644 docs/api/identity/models/oci.identity.models.TagNamespaceSummary.rst create mode 100644 docs/api/identity/models/oci.identity.models.TagSummary.rst create mode 100644 docs/api/identity/models/oci.identity.models.Tenancy.rst create mode 100644 docs/api/identity/models/oci.identity.models.UIPassword.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateCompartmentDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateCustomerSecretKeyDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateDynamicGroupDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateGroupDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateIdentityProviderDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateIdpGroupMappingDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdatePolicyDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateSaml2IdentityProviderDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateSmtpCredentialDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateStateDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateSwiftPasswordDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateTagDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateTagNamespaceDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.UpdateUserDetails.rst create mode 100644 docs/api/identity/models/oci.identity.models.User.rst create mode 100644 docs/api/identity/models/oci.identity.models.UserGroupMembership.rst create mode 100644 docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClient.rst create mode 100644 docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClientCompositeOperations.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.Backend.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.BackendDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.BackendHealth.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.BackendSet.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.BackendSetDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.BackendSetHealth.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.Certificate.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.CertificateDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.ConnectionConfiguration.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendSetDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.CreateCertificateDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.CreateListenerDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.CreateLoadBalancerDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.CreatePathRouteSetDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckResult.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.HealthChecker.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckerDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.IpAddress.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.Listener.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.ListenerDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancer.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealth.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealthSummary.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerPolicy.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerProtocol.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerShape.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.PathMatchType.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.PathRoute.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSet.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSetDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.SSLConfiguration.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.SSLConfigurationDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.SessionPersistenceConfigurationDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendSetDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.UpdateHealthCheckerDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.UpdateListenerDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.UpdateLoadBalancerDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.UpdatePathRouteSetDetails.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.WorkRequest.rst create mode 100644 docs/api/load_balancer/models/oci.load_balancer.models.WorkRequestError.rst create mode 100644 docs/api/object_storage/client/oci.object_storage.ObjectStorageClient.rst create mode 100644 docs/api/object_storage/client/oci.object_storage.ObjectStorageClientCompositeOperations.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.Bucket.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.BucketSummary.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadPartDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.CreateBucketDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.CreateMultipartUploadDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.CreatePreauthenticatedRequestDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.ListObjects.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.MultipartUpload.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.MultipartUploadPartSummary.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.NamespaceMetadata.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.ObjectSummary.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequest.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequestSummary.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.RenameObjectDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.RestoreObjectsDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.UpdateBucketDetails.rst create mode 100644 docs/api/object_storage/models/oci.object_storage.models.UpdateNamespaceMetadataDetails.rst create mode 100644 docs/api/retry.rst create mode 100644 examples/composite_operations_example.py create mode 100644 src/oci/audit/audit_client_composite_operations.py create mode 100644 src/oci/core/blockstorage_client_composite_operations.py create mode 100644 src/oci/core/compute_client_composite_operations.py create mode 100644 src/oci/core/virtual_network_client_composite_operations.py create mode 100644 src/oci/database/database_client_composite_operations.py create mode 100644 src/oci/dns/dns_client_composite_operations.py create mode 100644 src/oci/email/email_client_composite_operations.py create mode 100644 src/oci/file_storage/file_storage_client_composite_operations.py create mode 100644 src/oci/identity/identity_client_composite_operations.py create mode 100644 src/oci/load_balancer/load_balancer_client_composite_operations.py create mode 100644 src/oci/object_storage/object_storage_client_composite_operations.py diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 00a5bd4d84..a67aea732e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +==================== +1.3.19 - 2018-04-19 +==================== + +Added +----- +* Support for tagging ``DbSystem`` and ``Database`` resources in the Database Service +* Support for filtering by ``DbSystemId`` in ``ListDbVersions`` operation in Database Service +* Support for composite operations that provide convenience methods for operations that can be chained together (e.g. launching an instance and waiting for it to enter the RUNNING state) + + * An example on how to perform these operations can be found on `GitHub `__. + + ==================== 1.3.18 - 2018-04-05 ==================== diff --git a/docs/_templates/autosummary/service_client.rst b/docs/_templates/autosummary/service_client.rst index c7e9cbaf83..5c14ce613a 100644 --- a/docs/_templates/autosummary/service_client.rst +++ b/docs/_templates/autosummary/service_client.rst @@ -3,32 +3,5 @@ .. currentmodule:: {{ module }} .. autoclass:: {{ objname }} - - {% block methods %} - .. automethod:: __init__ - - {% if methods %} - .. rubric:: Methods - - .. autosummary:: - :toctree: operations - :nosignatures: - :template: autosummary/service_operation.rst - {% for item in methods %} - {% if item != "__init__" %} - ~{{ name }}.{{ item }} - {% endif %} - {%- endfor %} - {% endif %} - {% endblock %} - - {% block attributes %} - {% if attributes %} - .. rubric:: Attributes - - .. autosummary:: - {% for item in attributes %} - ~{{ name }}.{{ item }} - {%- endfor %} - {% endif %} - {% endblock %} \ No newline at end of file + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/audit.rst b/docs/api/audit.rst index edaedadc97..2ad8c582cc 100644 --- a/docs/api/audit.rst +++ b/docs/api/audit.rst @@ -7,6 +7,7 @@ Audit :template: autosummary/service_client.rst oci.audit.AuditClient + oci.audit.AuditClientCompositeOperations -------- Models diff --git a/docs/api/audit/client/oci.audit.AuditClient.rst b/docs/api/audit/client/oci.audit.AuditClient.rst new file mode 100644 index 0000000000..b9193c02a0 --- /dev/null +++ b/docs/api/audit/client/oci.audit.AuditClient.rst @@ -0,0 +1,8 @@ +AuditClient +=========== + +.. currentmodule:: oci.audit + +.. autoclass:: AuditClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/audit/client/oci.audit.AuditClientCompositeOperations.rst b/docs/api/audit/client/oci.audit.AuditClientCompositeOperations.rst new file mode 100644 index 0000000000..bf8744dc2c --- /dev/null +++ b/docs/api/audit/client/oci.audit.AuditClientCompositeOperations.rst @@ -0,0 +1,8 @@ +AuditClientCompositeOperations +============================== + +.. currentmodule:: oci.audit + +.. autoclass:: AuditClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/audit/models/oci.audit.models.AuditEvent.rst b/docs/api/audit/models/oci.audit.models.AuditEvent.rst new file mode 100644 index 0000000000..5358c61f7a --- /dev/null +++ b/docs/api/audit/models/oci.audit.models.AuditEvent.rst @@ -0,0 +1,11 @@ +AuditEvent +========== + +.. currentmodule:: oci.audit.models + +.. autoclass:: AuditEvent + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/audit/models/oci.audit.models.Configuration.rst b/docs/api/audit/models/oci.audit.models.Configuration.rst new file mode 100644 index 0000000000..a51015e0f8 --- /dev/null +++ b/docs/api/audit/models/oci.audit.models.Configuration.rst @@ -0,0 +1,11 @@ +Configuration +============= + +.. currentmodule:: oci.audit.models + +.. autoclass:: Configuration + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/audit/models/oci.audit.models.UpdateConfigurationDetails.rst b/docs/api/audit/models/oci.audit.models.UpdateConfigurationDetails.rst new file mode 100644 index 0000000000..1c434ddf36 --- /dev/null +++ b/docs/api/audit/models/oci.audit.models.UpdateConfigurationDetails.rst @@ -0,0 +1,11 @@ +UpdateConfigurationDetails +========================== + +.. currentmodule:: oci.audit.models + +.. autoclass:: UpdateConfigurationDetails + :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 399c476fbb..145feb58c1 100644 --- a/docs/api/core.rst +++ b/docs/api/core.rst @@ -9,6 +9,9 @@ Core Services oci.core.BlockstorageClient oci.core.ComputeClient oci.core.VirtualNetworkClient + oci.core.BlockstorageClientCompositeOperations + oci.core.ComputeClientCompositeOperations + oci.core.VirtualNetworkClientCompositeOperations -------- Models diff --git a/docs/api/core/client/oci.core.BlockstorageClient.rst b/docs/api/core/client/oci.core.BlockstorageClient.rst new file mode 100644 index 0000000000..6278685912 --- /dev/null +++ b/docs/api/core/client/oci.core.BlockstorageClient.rst @@ -0,0 +1,8 @@ +BlockstorageClient +================== + +.. currentmodule:: oci.core + +.. autoclass:: BlockstorageClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/core/client/oci.core.BlockstorageClientCompositeOperations.rst b/docs/api/core/client/oci.core.BlockstorageClientCompositeOperations.rst new file mode 100644 index 0000000000..e189385c66 --- /dev/null +++ b/docs/api/core/client/oci.core.BlockstorageClientCompositeOperations.rst @@ -0,0 +1,8 @@ +BlockstorageClientCompositeOperations +===================================== + +.. currentmodule:: oci.core + +.. autoclass:: BlockstorageClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/core/client/oci.core.ComputeClient.rst b/docs/api/core/client/oci.core.ComputeClient.rst new file mode 100644 index 0000000000..2bd24c8f08 --- /dev/null +++ b/docs/api/core/client/oci.core.ComputeClient.rst @@ -0,0 +1,8 @@ +ComputeClient +============= + +.. currentmodule:: oci.core + +.. autoclass:: ComputeClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/core/client/oci.core.ComputeClientCompositeOperations.rst b/docs/api/core/client/oci.core.ComputeClientCompositeOperations.rst new file mode 100644 index 0000000000..4fcb95f64b --- /dev/null +++ b/docs/api/core/client/oci.core.ComputeClientCompositeOperations.rst @@ -0,0 +1,8 @@ +ComputeClientCompositeOperations +================================ + +.. currentmodule:: oci.core + +.. autoclass:: ComputeClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/core/client/oci.core.VirtualNetworkClient.rst b/docs/api/core/client/oci.core.VirtualNetworkClient.rst new file mode 100644 index 0000000000..7d37b84bc5 --- /dev/null +++ b/docs/api/core/client/oci.core.VirtualNetworkClient.rst @@ -0,0 +1,8 @@ +VirtualNetworkClient +==================== + +.. currentmodule:: oci.core + +.. autoclass:: VirtualNetworkClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/core/client/oci.core.VirtualNetworkClientCompositeOperations.rst b/docs/api/core/client/oci.core.VirtualNetworkClientCompositeOperations.rst new file mode 100644 index 0000000000..0a4ddd8b88 --- /dev/null +++ b/docs/api/core/client/oci.core.VirtualNetworkClientCompositeOperations.rst @@ -0,0 +1,8 @@ +VirtualNetworkClientCompositeOperations +======================================= + +.. currentmodule:: oci.core + +.. autoclass:: VirtualNetworkClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/core/models/oci.core.models.AttachBootVolumeDetails.rst b/docs/api/core/models/oci.core.models.AttachBootVolumeDetails.rst new file mode 100644 index 0000000000..1e028956bb --- /dev/null +++ b/docs/api/core/models/oci.core.models.AttachBootVolumeDetails.rst @@ -0,0 +1,11 @@ +AttachBootVolumeDetails +======================= + +.. currentmodule:: oci.core.models + +.. autoclass:: AttachBootVolumeDetails + :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.AttachIScsiVolumeDetails.rst b/docs/api/core/models/oci.core.models.AttachIScsiVolumeDetails.rst new file mode 100644 index 0000000000..ac1bd80619 --- /dev/null +++ b/docs/api/core/models/oci.core.models.AttachIScsiVolumeDetails.rst @@ -0,0 +1,11 @@ +AttachIScsiVolumeDetails +======================== + +.. currentmodule:: oci.core.models + +.. autoclass:: AttachIScsiVolumeDetails + :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.AttachParavirtualizedVolumeDetails.rst b/docs/api/core/models/oci.core.models.AttachParavirtualizedVolumeDetails.rst new file mode 100644 index 0000000000..bf488d7dfb --- /dev/null +++ b/docs/api/core/models/oci.core.models.AttachParavirtualizedVolumeDetails.rst @@ -0,0 +1,11 @@ +AttachParavirtualizedVolumeDetails +================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: AttachParavirtualizedVolumeDetails + :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.AttachVnicDetails.rst b/docs/api/core/models/oci.core.models.AttachVnicDetails.rst new file mode 100644 index 0000000000..fa25308577 --- /dev/null +++ b/docs/api/core/models/oci.core.models.AttachVnicDetails.rst @@ -0,0 +1,11 @@ +AttachVnicDetails +================= + +.. currentmodule:: oci.core.models + +.. autoclass:: AttachVnicDetails + :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.AttachVolumeDetails.rst b/docs/api/core/models/oci.core.models.AttachVolumeDetails.rst new file mode 100644 index 0000000000..8de6592fa7 --- /dev/null +++ b/docs/api/core/models/oci.core.models.AttachVolumeDetails.rst @@ -0,0 +1,11 @@ +AttachVolumeDetails +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: AttachVolumeDetails + :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.BootVolume.rst b/docs/api/core/models/oci.core.models.BootVolume.rst new file mode 100644 index 0000000000..a7c08d15d7 --- /dev/null +++ b/docs/api/core/models/oci.core.models.BootVolume.rst @@ -0,0 +1,11 @@ +BootVolume +========== + +.. currentmodule:: oci.core.models + +.. autoclass:: BootVolume + :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.BootVolumeAttachment.rst b/docs/api/core/models/oci.core.models.BootVolumeAttachment.rst new file mode 100644 index 0000000000..cabb35755a --- /dev/null +++ b/docs/api/core/models/oci.core.models.BootVolumeAttachment.rst @@ -0,0 +1,11 @@ +BootVolumeAttachment +==================== + +.. currentmodule:: oci.core.models + +.. autoclass:: BootVolumeAttachment + :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.BulkAddVirtualCircuitPublicPrefixesDetails.rst b/docs/api/core/models/oci.core.models.BulkAddVirtualCircuitPublicPrefixesDetails.rst new file mode 100644 index 0000000000..2653f1348a --- /dev/null +++ b/docs/api/core/models/oci.core.models.BulkAddVirtualCircuitPublicPrefixesDetails.rst @@ -0,0 +1,11 @@ +BulkAddVirtualCircuitPublicPrefixesDetails +========================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: BulkAddVirtualCircuitPublicPrefixesDetails + :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.BulkDeleteVirtualCircuitPublicPrefixesDetails.rst b/docs/api/core/models/oci.core.models.BulkDeleteVirtualCircuitPublicPrefixesDetails.rst new file mode 100644 index 0000000000..b2a87321c3 --- /dev/null +++ b/docs/api/core/models/oci.core.models.BulkDeleteVirtualCircuitPublicPrefixesDetails.rst @@ -0,0 +1,11 @@ +BulkDeleteVirtualCircuitPublicPrefixesDetails +============================================= + +.. currentmodule:: oci.core.models + +.. autoclass:: BulkDeleteVirtualCircuitPublicPrefixesDetails + :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.CaptureConsoleHistoryDetails.rst b/docs/api/core/models/oci.core.models.CaptureConsoleHistoryDetails.rst new file mode 100644 index 0000000000..b86f02fe5b --- /dev/null +++ b/docs/api/core/models/oci.core.models.CaptureConsoleHistoryDetails.rst @@ -0,0 +1,11 @@ +CaptureConsoleHistoryDetails +============================ + +.. currentmodule:: oci.core.models + +.. autoclass:: CaptureConsoleHistoryDetails + :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.ConnectLocalPeeringGatewaysDetails.rst b/docs/api/core/models/oci.core.models.ConnectLocalPeeringGatewaysDetails.rst new file mode 100644 index 0000000000..3666bce027 --- /dev/null +++ b/docs/api/core/models/oci.core.models.ConnectLocalPeeringGatewaysDetails.rst @@ -0,0 +1,11 @@ +ConnectLocalPeeringGatewaysDetails +================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: ConnectLocalPeeringGatewaysDetails + :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.ConnectRemotePeeringConnectionsDetails.rst b/docs/api/core/models/oci.core.models.ConnectRemotePeeringConnectionsDetails.rst new file mode 100644 index 0000000000..95070c0b3c --- /dev/null +++ b/docs/api/core/models/oci.core.models.ConnectRemotePeeringConnectionsDetails.rst @@ -0,0 +1,11 @@ +ConnectRemotePeeringConnectionsDetails +====================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: ConnectRemotePeeringConnectionsDetails + :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.ConsoleHistory.rst b/docs/api/core/models/oci.core.models.ConsoleHistory.rst new file mode 100644 index 0000000000..80be48a01f --- /dev/null +++ b/docs/api/core/models/oci.core.models.ConsoleHistory.rst @@ -0,0 +1,11 @@ +ConsoleHistory +============== + +.. currentmodule:: oci.core.models + +.. autoclass:: ConsoleHistory + :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.Cpe.rst b/docs/api/core/models/oci.core.models.Cpe.rst new file mode 100644 index 0000000000..b09d3f8c80 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Cpe.rst @@ -0,0 +1,11 @@ +Cpe +=== + +.. currentmodule:: oci.core.models + +.. autoclass:: Cpe + :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.CreateCpeDetails.rst b/docs/api/core/models/oci.core.models.CreateCpeDetails.rst new file mode 100644 index 0000000000..891b9809a2 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateCpeDetails.rst @@ -0,0 +1,11 @@ +CreateCpeDetails +================ + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateCpeDetails + :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.CreateCrossConnectDetails.rst b/docs/api/core/models/oci.core.models.CreateCrossConnectDetails.rst new file mode 100644 index 0000000000..4c9309afdc --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateCrossConnectDetails.rst @@ -0,0 +1,11 @@ +CreateCrossConnectDetails +========================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateCrossConnectDetails + :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.CreateCrossConnectGroupDetails.rst b/docs/api/core/models/oci.core.models.CreateCrossConnectGroupDetails.rst new file mode 100644 index 0000000000..23e577040d --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateCrossConnectGroupDetails.rst @@ -0,0 +1,11 @@ +CreateCrossConnectGroupDetails +============================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateCrossConnectGroupDetails + :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.CreateDhcpDetails.rst b/docs/api/core/models/oci.core.models.CreateDhcpDetails.rst new file mode 100644 index 0000000000..b6dc16ad75 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateDhcpDetails.rst @@ -0,0 +1,11 @@ +CreateDhcpDetails +================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateDhcpDetails + :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.CreateDrgAttachmentDetails.rst b/docs/api/core/models/oci.core.models.CreateDrgAttachmentDetails.rst new file mode 100644 index 0000000000..3a50b9f818 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateDrgAttachmentDetails.rst @@ -0,0 +1,11 @@ +CreateDrgAttachmentDetails +========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateDrgAttachmentDetails + :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.CreateDrgDetails.rst b/docs/api/core/models/oci.core.models.CreateDrgDetails.rst new file mode 100644 index 0000000000..aaf7d7ef84 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateDrgDetails.rst @@ -0,0 +1,11 @@ +CreateDrgDetails +================ + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateDrgDetails + :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.CreateIPSecConnectionDetails.rst b/docs/api/core/models/oci.core.models.CreateIPSecConnectionDetails.rst new file mode 100644 index 0000000000..a8a9bb94c6 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateIPSecConnectionDetails.rst @@ -0,0 +1,11 @@ +CreateIPSecConnectionDetails +============================ + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateIPSecConnectionDetails + :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.CreateImageDetails.rst b/docs/api/core/models/oci.core.models.CreateImageDetails.rst new file mode 100644 index 0000000000..fe581f57a5 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateImageDetails.rst @@ -0,0 +1,11 @@ +CreateImageDetails +================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateImageDetails + :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.CreateInstanceConsoleConnectionDetails.rst b/docs/api/core/models/oci.core.models.CreateInstanceConsoleConnectionDetails.rst new file mode 100644 index 0000000000..90036be0a5 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateInstanceConsoleConnectionDetails.rst @@ -0,0 +1,11 @@ +CreateInstanceConsoleConnectionDetails +====================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateInstanceConsoleConnectionDetails + :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.CreateInternetGatewayDetails.rst b/docs/api/core/models/oci.core.models.CreateInternetGatewayDetails.rst new file mode 100644 index 0000000000..8fa6160813 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateInternetGatewayDetails.rst @@ -0,0 +1,11 @@ +CreateInternetGatewayDetails +============================ + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateInternetGatewayDetails + :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.CreateLocalPeeringGatewayDetails.rst b/docs/api/core/models/oci.core.models.CreateLocalPeeringGatewayDetails.rst new file mode 100644 index 0000000000..eabdaf492e --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateLocalPeeringGatewayDetails.rst @@ -0,0 +1,11 @@ +CreateLocalPeeringGatewayDetails +================================ + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateLocalPeeringGatewayDetails + :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.CreatePrivateIpDetails.rst b/docs/api/core/models/oci.core.models.CreatePrivateIpDetails.rst new file mode 100644 index 0000000000..bdec898647 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreatePrivateIpDetails.rst @@ -0,0 +1,11 @@ +CreatePrivateIpDetails +====================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreatePrivateIpDetails + :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.CreatePublicIpDetails.rst b/docs/api/core/models/oci.core.models.CreatePublicIpDetails.rst new file mode 100644 index 0000000000..bd33bdba8d --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreatePublicIpDetails.rst @@ -0,0 +1,11 @@ +CreatePublicIpDetails +===================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreatePublicIpDetails + :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.CreateRemotePeeringConnectionDetails.rst b/docs/api/core/models/oci.core.models.CreateRemotePeeringConnectionDetails.rst new file mode 100644 index 0000000000..028c1ddee6 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateRemotePeeringConnectionDetails.rst @@ -0,0 +1,11 @@ +CreateRemotePeeringConnectionDetails +==================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateRemotePeeringConnectionDetails + :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.CreateRouteTableDetails.rst b/docs/api/core/models/oci.core.models.CreateRouteTableDetails.rst new file mode 100644 index 0000000000..2f6ecb01cf --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateRouteTableDetails.rst @@ -0,0 +1,11 @@ +CreateRouteTableDetails +======================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateRouteTableDetails + :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.CreateSecurityListDetails.rst b/docs/api/core/models/oci.core.models.CreateSecurityListDetails.rst new file mode 100644 index 0000000000..c384325cde --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateSecurityListDetails.rst @@ -0,0 +1,11 @@ +CreateSecurityListDetails +========================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateSecurityListDetails + :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.CreateSubnetDetails.rst b/docs/api/core/models/oci.core.models.CreateSubnetDetails.rst new file mode 100644 index 0000000000..945d3c1990 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateSubnetDetails.rst @@ -0,0 +1,11 @@ +CreateSubnetDetails +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateSubnetDetails + :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.CreateVcnDetails.rst b/docs/api/core/models/oci.core.models.CreateVcnDetails.rst new file mode 100644 index 0000000000..609f5ace4a --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateVcnDetails.rst @@ -0,0 +1,11 @@ +CreateVcnDetails +================ + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateVcnDetails + :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.CreateVirtualCircuitDetails.rst b/docs/api/core/models/oci.core.models.CreateVirtualCircuitDetails.rst new file mode 100644 index 0000000000..caab261bff --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateVirtualCircuitDetails.rst @@ -0,0 +1,11 @@ +CreateVirtualCircuitDetails +=========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateVirtualCircuitDetails + :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.CreateVirtualCircuitPublicPrefixDetails.rst b/docs/api/core/models/oci.core.models.CreateVirtualCircuitPublicPrefixDetails.rst new file mode 100644 index 0000000000..9ac68836bf --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateVirtualCircuitPublicPrefixDetails.rst @@ -0,0 +1,11 @@ +CreateVirtualCircuitPublicPrefixDetails +======================================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateVirtualCircuitPublicPrefixDetails + :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.CreateVnicDetails.rst b/docs/api/core/models/oci.core.models.CreateVnicDetails.rst new file mode 100644 index 0000000000..04afe6de9b --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateVnicDetails.rst @@ -0,0 +1,11 @@ +CreateVnicDetails +================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateVnicDetails + :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.CreateVolumeBackupDetails.rst b/docs/api/core/models/oci.core.models.CreateVolumeBackupDetails.rst new file mode 100644 index 0000000000..65784d35bc --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateVolumeBackupDetails.rst @@ -0,0 +1,11 @@ +CreateVolumeBackupDetails +========================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateVolumeBackupDetails + :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.CreateVolumeBackupPolicyAssignmentDetails.rst b/docs/api/core/models/oci.core.models.CreateVolumeBackupPolicyAssignmentDetails.rst new file mode 100644 index 0000000000..c8a8ff0439 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateVolumeBackupPolicyAssignmentDetails.rst @@ -0,0 +1,11 @@ +CreateVolumeBackupPolicyAssignmentDetails +========================================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateVolumeBackupPolicyAssignmentDetails + :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.CreateVolumeDetails.rst b/docs/api/core/models/oci.core.models.CreateVolumeDetails.rst new file mode 100644 index 0000000000..aac96b82c2 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CreateVolumeDetails.rst @@ -0,0 +1,11 @@ +CreateVolumeDetails +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CreateVolumeDetails + :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.CrossConnect.rst b/docs/api/core/models/oci.core.models.CrossConnect.rst new file mode 100644 index 0000000000..3a6e2aebad --- /dev/null +++ b/docs/api/core/models/oci.core.models.CrossConnect.rst @@ -0,0 +1,11 @@ +CrossConnect +============ + +.. currentmodule:: oci.core.models + +.. autoclass:: CrossConnect + :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.CrossConnectGroup.rst b/docs/api/core/models/oci.core.models.CrossConnectGroup.rst new file mode 100644 index 0000000000..16877db3dd --- /dev/null +++ b/docs/api/core/models/oci.core.models.CrossConnectGroup.rst @@ -0,0 +1,11 @@ +CrossConnectGroup +================= + +.. currentmodule:: oci.core.models + +.. autoclass:: CrossConnectGroup + :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.CrossConnectLocation.rst b/docs/api/core/models/oci.core.models.CrossConnectLocation.rst new file mode 100644 index 0000000000..557217508b --- /dev/null +++ b/docs/api/core/models/oci.core.models.CrossConnectLocation.rst @@ -0,0 +1,11 @@ +CrossConnectLocation +==================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CrossConnectLocation + :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.CrossConnectMapping.rst b/docs/api/core/models/oci.core.models.CrossConnectMapping.rst new file mode 100644 index 0000000000..d496760fa7 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CrossConnectMapping.rst @@ -0,0 +1,11 @@ +CrossConnectMapping +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CrossConnectMapping + :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.CrossConnectPortSpeedShape.rst b/docs/api/core/models/oci.core.models.CrossConnectPortSpeedShape.rst new file mode 100644 index 0000000000..48e17589ba --- /dev/null +++ b/docs/api/core/models/oci.core.models.CrossConnectPortSpeedShape.rst @@ -0,0 +1,11 @@ +CrossConnectPortSpeedShape +========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CrossConnectPortSpeedShape + :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.CrossConnectStatus.rst b/docs/api/core/models/oci.core.models.CrossConnectStatus.rst new file mode 100644 index 0000000000..70622a38c2 --- /dev/null +++ b/docs/api/core/models/oci.core.models.CrossConnectStatus.rst @@ -0,0 +1,11 @@ +CrossConnectStatus +================== + +.. currentmodule:: oci.core.models + +.. autoclass:: CrossConnectStatus + :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.DeleteVirtualCircuitPublicPrefixDetails.rst b/docs/api/core/models/oci.core.models.DeleteVirtualCircuitPublicPrefixDetails.rst new file mode 100644 index 0000000000..e823578333 --- /dev/null +++ b/docs/api/core/models/oci.core.models.DeleteVirtualCircuitPublicPrefixDetails.rst @@ -0,0 +1,11 @@ +DeleteVirtualCircuitPublicPrefixDetails +======================================= + +.. currentmodule:: oci.core.models + +.. autoclass:: DeleteVirtualCircuitPublicPrefixDetails + :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.DhcpDnsOption.rst b/docs/api/core/models/oci.core.models.DhcpDnsOption.rst new file mode 100644 index 0000000000..a53782df64 --- /dev/null +++ b/docs/api/core/models/oci.core.models.DhcpDnsOption.rst @@ -0,0 +1,11 @@ +DhcpDnsOption +============= + +.. currentmodule:: oci.core.models + +.. autoclass:: DhcpDnsOption + :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.DhcpOption.rst b/docs/api/core/models/oci.core.models.DhcpOption.rst new file mode 100644 index 0000000000..49a80c3791 --- /dev/null +++ b/docs/api/core/models/oci.core.models.DhcpOption.rst @@ -0,0 +1,11 @@ +DhcpOption +========== + +.. currentmodule:: oci.core.models + +.. autoclass:: DhcpOption + :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.DhcpOptions.rst b/docs/api/core/models/oci.core.models.DhcpOptions.rst new file mode 100644 index 0000000000..48aada435a --- /dev/null +++ b/docs/api/core/models/oci.core.models.DhcpOptions.rst @@ -0,0 +1,11 @@ +DhcpOptions +=========== + +.. currentmodule:: oci.core.models + +.. autoclass:: DhcpOptions + :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.DhcpSearchDomainOption.rst b/docs/api/core/models/oci.core.models.DhcpSearchDomainOption.rst new file mode 100644 index 0000000000..b367fc6a1d --- /dev/null +++ b/docs/api/core/models/oci.core.models.DhcpSearchDomainOption.rst @@ -0,0 +1,11 @@ +DhcpSearchDomainOption +====================== + +.. currentmodule:: oci.core.models + +.. autoclass:: DhcpSearchDomainOption + :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.Drg.rst b/docs/api/core/models/oci.core.models.Drg.rst new file mode 100644 index 0000000000..216d5d96b7 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Drg.rst @@ -0,0 +1,11 @@ +Drg +=== + +.. currentmodule:: oci.core.models + +.. autoclass:: Drg + :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.DrgAttachment.rst b/docs/api/core/models/oci.core.models.DrgAttachment.rst new file mode 100644 index 0000000000..194eb5b8e1 --- /dev/null +++ b/docs/api/core/models/oci.core.models.DrgAttachment.rst @@ -0,0 +1,11 @@ +DrgAttachment +============= + +.. currentmodule:: oci.core.models + +.. autoclass:: DrgAttachment + :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.EgressSecurityRule.rst b/docs/api/core/models/oci.core.models.EgressSecurityRule.rst new file mode 100644 index 0000000000..0db28e56a3 --- /dev/null +++ b/docs/api/core/models/oci.core.models.EgressSecurityRule.rst @@ -0,0 +1,11 @@ +EgressSecurityRule +================== + +.. currentmodule:: oci.core.models + +.. autoclass:: EgressSecurityRule + :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.ExportImageDetails.rst b/docs/api/core/models/oci.core.models.ExportImageDetails.rst new file mode 100644 index 0000000000..5cf0dec8a8 --- /dev/null +++ b/docs/api/core/models/oci.core.models.ExportImageDetails.rst @@ -0,0 +1,11 @@ +ExportImageDetails +================== + +.. currentmodule:: oci.core.models + +.. autoclass:: ExportImageDetails + :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.ExportImageViaObjectStorageTupleDetails.rst b/docs/api/core/models/oci.core.models.ExportImageViaObjectStorageTupleDetails.rst new file mode 100644 index 0000000000..8f1611998a --- /dev/null +++ b/docs/api/core/models/oci.core.models.ExportImageViaObjectStorageTupleDetails.rst @@ -0,0 +1,11 @@ +ExportImageViaObjectStorageTupleDetails +======================================= + +.. currentmodule:: oci.core.models + +.. autoclass:: ExportImageViaObjectStorageTupleDetails + :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.ExportImageViaObjectStorageUriDetails.rst b/docs/api/core/models/oci.core.models.ExportImageViaObjectStorageUriDetails.rst new file mode 100644 index 0000000000..d2402f1554 --- /dev/null +++ b/docs/api/core/models/oci.core.models.ExportImageViaObjectStorageUriDetails.rst @@ -0,0 +1,11 @@ +ExportImageViaObjectStorageUriDetails +===================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: ExportImageViaObjectStorageUriDetails + :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.FastConnectProviderService.rst b/docs/api/core/models/oci.core.models.FastConnectProviderService.rst new file mode 100644 index 0000000000..bcfb99db2d --- /dev/null +++ b/docs/api/core/models/oci.core.models.FastConnectProviderService.rst @@ -0,0 +1,11 @@ +FastConnectProviderService +========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: FastConnectProviderService + :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.GetPublicIpByIpAddressDetails.rst b/docs/api/core/models/oci.core.models.GetPublicIpByIpAddressDetails.rst new file mode 100644 index 0000000000..a89ca0b712 --- /dev/null +++ b/docs/api/core/models/oci.core.models.GetPublicIpByIpAddressDetails.rst @@ -0,0 +1,11 @@ +GetPublicIpByIpAddressDetails +============================= + +.. currentmodule:: oci.core.models + +.. autoclass:: GetPublicIpByIpAddressDetails + :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.GetPublicIpByPrivateIpIdDetails.rst b/docs/api/core/models/oci.core.models.GetPublicIpByPrivateIpIdDetails.rst new file mode 100644 index 0000000000..e8862421a4 --- /dev/null +++ b/docs/api/core/models/oci.core.models.GetPublicIpByPrivateIpIdDetails.rst @@ -0,0 +1,11 @@ +GetPublicIpByPrivateIpIdDetails +=============================== + +.. currentmodule:: oci.core.models + +.. autoclass:: GetPublicIpByPrivateIpIdDetails + :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.IPSecConnection.rst b/docs/api/core/models/oci.core.models.IPSecConnection.rst new file mode 100644 index 0000000000..35d779b380 --- /dev/null +++ b/docs/api/core/models/oci.core.models.IPSecConnection.rst @@ -0,0 +1,11 @@ +IPSecConnection +=============== + +.. currentmodule:: oci.core.models + +.. autoclass:: IPSecConnection + :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.IPSecConnectionDeviceConfig.rst b/docs/api/core/models/oci.core.models.IPSecConnectionDeviceConfig.rst new file mode 100644 index 0000000000..2c50889138 --- /dev/null +++ b/docs/api/core/models/oci.core.models.IPSecConnectionDeviceConfig.rst @@ -0,0 +1,11 @@ +IPSecConnectionDeviceConfig +=========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: IPSecConnectionDeviceConfig + :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.IPSecConnectionDeviceStatus.rst b/docs/api/core/models/oci.core.models.IPSecConnectionDeviceStatus.rst new file mode 100644 index 0000000000..82271660ab --- /dev/null +++ b/docs/api/core/models/oci.core.models.IPSecConnectionDeviceStatus.rst @@ -0,0 +1,11 @@ +IPSecConnectionDeviceStatus +=========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: IPSecConnectionDeviceStatus + :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.IScsiVolumeAttachment.rst b/docs/api/core/models/oci.core.models.IScsiVolumeAttachment.rst new file mode 100644 index 0000000000..6a9862b114 --- /dev/null +++ b/docs/api/core/models/oci.core.models.IScsiVolumeAttachment.rst @@ -0,0 +1,11 @@ +IScsiVolumeAttachment +===================== + +.. currentmodule:: oci.core.models + +.. autoclass:: IScsiVolumeAttachment + :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.IcmpOptions.rst b/docs/api/core/models/oci.core.models.IcmpOptions.rst new file mode 100644 index 0000000000..f1feabd538 --- /dev/null +++ b/docs/api/core/models/oci.core.models.IcmpOptions.rst @@ -0,0 +1,11 @@ +IcmpOptions +=========== + +.. currentmodule:: oci.core.models + +.. autoclass:: IcmpOptions + :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.Image.rst b/docs/api/core/models/oci.core.models.Image.rst new file mode 100644 index 0000000000..c774980255 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Image.rst @@ -0,0 +1,11 @@ +Image +===== + +.. currentmodule:: oci.core.models + +.. autoclass:: Image + :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.ImageSourceDetails.rst b/docs/api/core/models/oci.core.models.ImageSourceDetails.rst new file mode 100644 index 0000000000..92e4646e9c --- /dev/null +++ b/docs/api/core/models/oci.core.models.ImageSourceDetails.rst @@ -0,0 +1,11 @@ +ImageSourceDetails +================== + +.. currentmodule:: oci.core.models + +.. autoclass:: ImageSourceDetails + :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.ImageSourceViaObjectStorageTupleDetails.rst b/docs/api/core/models/oci.core.models.ImageSourceViaObjectStorageTupleDetails.rst new file mode 100644 index 0000000000..096f1cb9fc --- /dev/null +++ b/docs/api/core/models/oci.core.models.ImageSourceViaObjectStorageTupleDetails.rst @@ -0,0 +1,11 @@ +ImageSourceViaObjectStorageTupleDetails +======================================= + +.. currentmodule:: oci.core.models + +.. autoclass:: ImageSourceViaObjectStorageTupleDetails + :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.ImageSourceViaObjectStorageUriDetails.rst b/docs/api/core/models/oci.core.models.ImageSourceViaObjectStorageUriDetails.rst new file mode 100644 index 0000000000..dc3ee36d6a --- /dev/null +++ b/docs/api/core/models/oci.core.models.ImageSourceViaObjectStorageUriDetails.rst @@ -0,0 +1,11 @@ +ImageSourceViaObjectStorageUriDetails +===================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: ImageSourceViaObjectStorageUriDetails + :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.IngressSecurityRule.rst b/docs/api/core/models/oci.core.models.IngressSecurityRule.rst new file mode 100644 index 0000000000..a1c4ed86d2 --- /dev/null +++ b/docs/api/core/models/oci.core.models.IngressSecurityRule.rst @@ -0,0 +1,11 @@ +IngressSecurityRule +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: IngressSecurityRule + :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.Instance.rst b/docs/api/core/models/oci.core.models.Instance.rst new file mode 100644 index 0000000000..a228ee2a2a --- /dev/null +++ b/docs/api/core/models/oci.core.models.Instance.rst @@ -0,0 +1,11 @@ +Instance +======== + +.. currentmodule:: oci.core.models + +.. autoclass:: Instance + :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.InstanceConsoleConnection.rst b/docs/api/core/models/oci.core.models.InstanceConsoleConnection.rst new file mode 100644 index 0000000000..20d40fc854 --- /dev/null +++ b/docs/api/core/models/oci.core.models.InstanceConsoleConnection.rst @@ -0,0 +1,11 @@ +InstanceConsoleConnection +========================= + +.. currentmodule:: oci.core.models + +.. autoclass:: InstanceConsoleConnection + :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.InstanceCredentials.rst b/docs/api/core/models/oci.core.models.InstanceCredentials.rst new file mode 100644 index 0000000000..26794a7b1f --- /dev/null +++ b/docs/api/core/models/oci.core.models.InstanceCredentials.rst @@ -0,0 +1,11 @@ +InstanceCredentials +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: InstanceCredentials + :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.InstanceSourceDetails.rst b/docs/api/core/models/oci.core.models.InstanceSourceDetails.rst new file mode 100644 index 0000000000..f0922fe43b --- /dev/null +++ b/docs/api/core/models/oci.core.models.InstanceSourceDetails.rst @@ -0,0 +1,11 @@ +InstanceSourceDetails +===================== + +.. currentmodule:: oci.core.models + +.. autoclass:: InstanceSourceDetails + :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.InstanceSourceViaBootVolumeDetails.rst b/docs/api/core/models/oci.core.models.InstanceSourceViaBootVolumeDetails.rst new file mode 100644 index 0000000000..e070c9f07d --- /dev/null +++ b/docs/api/core/models/oci.core.models.InstanceSourceViaBootVolumeDetails.rst @@ -0,0 +1,11 @@ +InstanceSourceViaBootVolumeDetails +================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: InstanceSourceViaBootVolumeDetails + :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.InstanceSourceViaImageDetails.rst b/docs/api/core/models/oci.core.models.InstanceSourceViaImageDetails.rst new file mode 100644 index 0000000000..3286168b82 --- /dev/null +++ b/docs/api/core/models/oci.core.models.InstanceSourceViaImageDetails.rst @@ -0,0 +1,11 @@ +InstanceSourceViaImageDetails +============================= + +.. currentmodule:: oci.core.models + +.. autoclass:: InstanceSourceViaImageDetails + :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.InternetGateway.rst b/docs/api/core/models/oci.core.models.InternetGateway.rst new file mode 100644 index 0000000000..fe6cd58f74 --- /dev/null +++ b/docs/api/core/models/oci.core.models.InternetGateway.rst @@ -0,0 +1,11 @@ +InternetGateway +=============== + +.. currentmodule:: oci.core.models + +.. autoclass:: InternetGateway + :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.LaunchInstanceDetails.rst b/docs/api/core/models/oci.core.models.LaunchInstanceDetails.rst new file mode 100644 index 0000000000..c7a988ca21 --- /dev/null +++ b/docs/api/core/models/oci.core.models.LaunchInstanceDetails.rst @@ -0,0 +1,11 @@ +LaunchInstanceDetails +===================== + +.. currentmodule:: oci.core.models + +.. autoclass:: LaunchInstanceDetails + :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.LaunchOptions.rst b/docs/api/core/models/oci.core.models.LaunchOptions.rst new file mode 100644 index 0000000000..a3d9533a88 --- /dev/null +++ b/docs/api/core/models/oci.core.models.LaunchOptions.rst @@ -0,0 +1,11 @@ +LaunchOptions +============= + +.. currentmodule:: oci.core.models + +.. autoclass:: LaunchOptions + :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.LetterOfAuthority.rst b/docs/api/core/models/oci.core.models.LetterOfAuthority.rst new file mode 100644 index 0000000000..0eb0081e8f --- /dev/null +++ b/docs/api/core/models/oci.core.models.LetterOfAuthority.rst @@ -0,0 +1,11 @@ +LetterOfAuthority +================= + +.. currentmodule:: oci.core.models + +.. autoclass:: LetterOfAuthority + :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.LocalPeeringGateway.rst b/docs/api/core/models/oci.core.models.LocalPeeringGateway.rst new file mode 100644 index 0000000000..6c8b8c4fcc --- /dev/null +++ b/docs/api/core/models/oci.core.models.LocalPeeringGateway.rst @@ -0,0 +1,11 @@ +LocalPeeringGateway +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: LocalPeeringGateway + :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.ParavirtualizedVolumeAttachment.rst b/docs/api/core/models/oci.core.models.ParavirtualizedVolumeAttachment.rst new file mode 100644 index 0000000000..69dc8ac4a5 --- /dev/null +++ b/docs/api/core/models/oci.core.models.ParavirtualizedVolumeAttachment.rst @@ -0,0 +1,11 @@ +ParavirtualizedVolumeAttachment +=============================== + +.. currentmodule:: oci.core.models + +.. autoclass:: ParavirtualizedVolumeAttachment + :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.PeerRegionForRemotePeering.rst b/docs/api/core/models/oci.core.models.PeerRegionForRemotePeering.rst new file mode 100644 index 0000000000..84687569c4 --- /dev/null +++ b/docs/api/core/models/oci.core.models.PeerRegionForRemotePeering.rst @@ -0,0 +1,11 @@ +PeerRegionForRemotePeering +========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: PeerRegionForRemotePeering + :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.PortRange.rst b/docs/api/core/models/oci.core.models.PortRange.rst new file mode 100644 index 0000000000..e29f89e540 --- /dev/null +++ b/docs/api/core/models/oci.core.models.PortRange.rst @@ -0,0 +1,11 @@ +PortRange +========= + +.. currentmodule:: oci.core.models + +.. autoclass:: PortRange + :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.PrivateIp.rst b/docs/api/core/models/oci.core.models.PrivateIp.rst new file mode 100644 index 0000000000..312a3d3543 --- /dev/null +++ b/docs/api/core/models/oci.core.models.PrivateIp.rst @@ -0,0 +1,11 @@ +PrivateIp +========= + +.. currentmodule:: oci.core.models + +.. autoclass:: PrivateIp + :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.PublicIp.rst b/docs/api/core/models/oci.core.models.PublicIp.rst new file mode 100644 index 0000000000..53cb804fe8 --- /dev/null +++ b/docs/api/core/models/oci.core.models.PublicIp.rst @@ -0,0 +1,11 @@ +PublicIp +======== + +.. currentmodule:: oci.core.models + +.. autoclass:: PublicIp + :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.RemotePeeringConnection.rst b/docs/api/core/models/oci.core.models.RemotePeeringConnection.rst new file mode 100644 index 0000000000..0df71713c6 --- /dev/null +++ b/docs/api/core/models/oci.core.models.RemotePeeringConnection.rst @@ -0,0 +1,11 @@ +RemotePeeringConnection +======================= + +.. currentmodule:: oci.core.models + +.. autoclass:: RemotePeeringConnection + :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.RouteRule.rst b/docs/api/core/models/oci.core.models.RouteRule.rst new file mode 100644 index 0000000000..ce0127c21c --- /dev/null +++ b/docs/api/core/models/oci.core.models.RouteRule.rst @@ -0,0 +1,11 @@ +RouteRule +========= + +.. currentmodule:: oci.core.models + +.. autoclass:: RouteRule + :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.RouteTable.rst b/docs/api/core/models/oci.core.models.RouteTable.rst new file mode 100644 index 0000000000..eb1d4fa300 --- /dev/null +++ b/docs/api/core/models/oci.core.models.RouteTable.rst @@ -0,0 +1,11 @@ +RouteTable +========== + +.. currentmodule:: oci.core.models + +.. autoclass:: RouteTable + :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.SecurityList.rst b/docs/api/core/models/oci.core.models.SecurityList.rst new file mode 100644 index 0000000000..6099927d84 --- /dev/null +++ b/docs/api/core/models/oci.core.models.SecurityList.rst @@ -0,0 +1,11 @@ +SecurityList +============ + +.. currentmodule:: oci.core.models + +.. autoclass:: SecurityList + :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.Shape.rst b/docs/api/core/models/oci.core.models.Shape.rst new file mode 100644 index 0000000000..08307614c7 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Shape.rst @@ -0,0 +1,11 @@ +Shape +===== + +.. currentmodule:: oci.core.models + +.. autoclass:: Shape + :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.Subnet.rst b/docs/api/core/models/oci.core.models.Subnet.rst new file mode 100644 index 0000000000..a71fa41432 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Subnet.rst @@ -0,0 +1,11 @@ +Subnet +====== + +.. currentmodule:: oci.core.models + +.. autoclass:: Subnet + :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.TcpOptions.rst b/docs/api/core/models/oci.core.models.TcpOptions.rst new file mode 100644 index 0000000000..da12b6b7f2 --- /dev/null +++ b/docs/api/core/models/oci.core.models.TcpOptions.rst @@ -0,0 +1,11 @@ +TcpOptions +========== + +.. currentmodule:: oci.core.models + +.. autoclass:: TcpOptions + :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.TunnelConfig.rst b/docs/api/core/models/oci.core.models.TunnelConfig.rst new file mode 100644 index 0000000000..b766017959 --- /dev/null +++ b/docs/api/core/models/oci.core.models.TunnelConfig.rst @@ -0,0 +1,11 @@ +TunnelConfig +============ + +.. currentmodule:: oci.core.models + +.. autoclass:: TunnelConfig + :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.TunnelStatus.rst b/docs/api/core/models/oci.core.models.TunnelStatus.rst new file mode 100644 index 0000000000..50624cf7e4 --- /dev/null +++ b/docs/api/core/models/oci.core.models.TunnelStatus.rst @@ -0,0 +1,11 @@ +TunnelStatus +============ + +.. currentmodule:: oci.core.models + +.. autoclass:: TunnelStatus + :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.UdpOptions.rst b/docs/api/core/models/oci.core.models.UdpOptions.rst new file mode 100644 index 0000000000..97a0f855a6 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UdpOptions.rst @@ -0,0 +1,11 @@ +UdpOptions +========== + +.. currentmodule:: oci.core.models + +.. autoclass:: UdpOptions + :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.UpdateBootVolumeDetails.rst b/docs/api/core/models/oci.core.models.UpdateBootVolumeDetails.rst new file mode 100644 index 0000000000..28de6ebf68 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateBootVolumeDetails.rst @@ -0,0 +1,11 @@ +UpdateBootVolumeDetails +======================= + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateBootVolumeDetails + :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.UpdateConsoleHistoryDetails.rst b/docs/api/core/models/oci.core.models.UpdateConsoleHistoryDetails.rst new file mode 100644 index 0000000000..a31c543e97 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateConsoleHistoryDetails.rst @@ -0,0 +1,11 @@ +UpdateConsoleHistoryDetails +=========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateConsoleHistoryDetails + :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.UpdateCpeDetails.rst b/docs/api/core/models/oci.core.models.UpdateCpeDetails.rst new file mode 100644 index 0000000000..78dd651e6f --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateCpeDetails.rst @@ -0,0 +1,11 @@ +UpdateCpeDetails +================ + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateCpeDetails + :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.UpdateCrossConnectDetails.rst b/docs/api/core/models/oci.core.models.UpdateCrossConnectDetails.rst new file mode 100644 index 0000000000..8f4a56566f --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateCrossConnectDetails.rst @@ -0,0 +1,11 @@ +UpdateCrossConnectDetails +========================= + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateCrossConnectDetails + :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.UpdateCrossConnectGroupDetails.rst b/docs/api/core/models/oci.core.models.UpdateCrossConnectGroupDetails.rst new file mode 100644 index 0000000000..5408f436aa --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateCrossConnectGroupDetails.rst @@ -0,0 +1,11 @@ +UpdateCrossConnectGroupDetails +============================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateCrossConnectGroupDetails + :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.UpdateDhcpDetails.rst b/docs/api/core/models/oci.core.models.UpdateDhcpDetails.rst new file mode 100644 index 0000000000..a056d356f7 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateDhcpDetails.rst @@ -0,0 +1,11 @@ +UpdateDhcpDetails +================= + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateDhcpDetails + :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.UpdateDrgAttachmentDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgAttachmentDetails.rst new file mode 100644 index 0000000000..113cc668b8 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateDrgAttachmentDetails.rst @@ -0,0 +1,11 @@ +UpdateDrgAttachmentDetails +========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateDrgAttachmentDetails + :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.UpdateDrgDetails.rst b/docs/api/core/models/oci.core.models.UpdateDrgDetails.rst new file mode 100644 index 0000000000..995ceb2b69 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateDrgDetails.rst @@ -0,0 +1,11 @@ +UpdateDrgDetails +================ + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateDrgDetails + :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.UpdateIPSecConnectionDetails.rst b/docs/api/core/models/oci.core.models.UpdateIPSecConnectionDetails.rst new file mode 100644 index 0000000000..573f10678e --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateIPSecConnectionDetails.rst @@ -0,0 +1,11 @@ +UpdateIPSecConnectionDetails +============================ + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateIPSecConnectionDetails + :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.UpdateImageDetails.rst b/docs/api/core/models/oci.core.models.UpdateImageDetails.rst new file mode 100644 index 0000000000..3290c5163a --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateImageDetails.rst @@ -0,0 +1,11 @@ +UpdateImageDetails +================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateImageDetails + :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.UpdateInstanceDetails.rst b/docs/api/core/models/oci.core.models.UpdateInstanceDetails.rst new file mode 100644 index 0000000000..dc911d9bc5 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateInstanceDetails.rst @@ -0,0 +1,11 @@ +UpdateInstanceDetails +===================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateInstanceDetails + :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.UpdateInternetGatewayDetails.rst b/docs/api/core/models/oci.core.models.UpdateInternetGatewayDetails.rst new file mode 100644 index 0000000000..d847b90012 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateInternetGatewayDetails.rst @@ -0,0 +1,11 @@ +UpdateInternetGatewayDetails +============================ + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateInternetGatewayDetails + :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.UpdateLocalPeeringGatewayDetails.rst b/docs/api/core/models/oci.core.models.UpdateLocalPeeringGatewayDetails.rst new file mode 100644 index 0000000000..613f9b4e57 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateLocalPeeringGatewayDetails.rst @@ -0,0 +1,11 @@ +UpdateLocalPeeringGatewayDetails +================================ + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateLocalPeeringGatewayDetails + :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.UpdatePrivateIpDetails.rst b/docs/api/core/models/oci.core.models.UpdatePrivateIpDetails.rst new file mode 100644 index 0000000000..edc5165f93 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdatePrivateIpDetails.rst @@ -0,0 +1,11 @@ +UpdatePrivateIpDetails +====================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdatePrivateIpDetails + :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.UpdatePublicIpDetails.rst b/docs/api/core/models/oci.core.models.UpdatePublicIpDetails.rst new file mode 100644 index 0000000000..5a9e777181 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdatePublicIpDetails.rst @@ -0,0 +1,11 @@ +UpdatePublicIpDetails +===================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdatePublicIpDetails + :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.UpdateRemotePeeringConnectionDetails.rst b/docs/api/core/models/oci.core.models.UpdateRemotePeeringConnectionDetails.rst new file mode 100644 index 0000000000..9315f34fdc --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateRemotePeeringConnectionDetails.rst @@ -0,0 +1,11 @@ +UpdateRemotePeeringConnectionDetails +==================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateRemotePeeringConnectionDetails + :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.UpdateRouteTableDetails.rst b/docs/api/core/models/oci.core.models.UpdateRouteTableDetails.rst new file mode 100644 index 0000000000..1f9fbac45a --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateRouteTableDetails.rst @@ -0,0 +1,11 @@ +UpdateRouteTableDetails +======================= + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateRouteTableDetails + :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.UpdateSecurityListDetails.rst b/docs/api/core/models/oci.core.models.UpdateSecurityListDetails.rst new file mode 100644 index 0000000000..d5a5557207 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateSecurityListDetails.rst @@ -0,0 +1,11 @@ +UpdateSecurityListDetails +========================= + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateSecurityListDetails + :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.UpdateSubnetDetails.rst b/docs/api/core/models/oci.core.models.UpdateSubnetDetails.rst new file mode 100644 index 0000000000..b23b784904 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateSubnetDetails.rst @@ -0,0 +1,11 @@ +UpdateSubnetDetails +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateSubnetDetails + :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.UpdateVcnDetails.rst b/docs/api/core/models/oci.core.models.UpdateVcnDetails.rst new file mode 100644 index 0000000000..77faab1d32 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateVcnDetails.rst @@ -0,0 +1,11 @@ +UpdateVcnDetails +================ + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateVcnDetails + :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.UpdateVirtualCircuitDetails.rst b/docs/api/core/models/oci.core.models.UpdateVirtualCircuitDetails.rst new file mode 100644 index 0000000000..02074eae06 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateVirtualCircuitDetails.rst @@ -0,0 +1,11 @@ +UpdateVirtualCircuitDetails +=========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateVirtualCircuitDetails + :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.UpdateVnicDetails.rst b/docs/api/core/models/oci.core.models.UpdateVnicDetails.rst new file mode 100644 index 0000000000..6e9a29cfa1 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateVnicDetails.rst @@ -0,0 +1,11 @@ +UpdateVnicDetails +================= + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateVnicDetails + :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.UpdateVolumeBackupDetails.rst b/docs/api/core/models/oci.core.models.UpdateVolumeBackupDetails.rst new file mode 100644 index 0000000000..5ffa0e7f37 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateVolumeBackupDetails.rst @@ -0,0 +1,11 @@ +UpdateVolumeBackupDetails +========================= + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateVolumeBackupDetails + :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.UpdateVolumeDetails.rst b/docs/api/core/models/oci.core.models.UpdateVolumeDetails.rst new file mode 100644 index 0000000000..12ec7e3a12 --- /dev/null +++ b/docs/api/core/models/oci.core.models.UpdateVolumeDetails.rst @@ -0,0 +1,11 @@ +UpdateVolumeDetails +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: UpdateVolumeDetails + :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.Vcn.rst b/docs/api/core/models/oci.core.models.Vcn.rst new file mode 100644 index 0000000000..f17cd34a16 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Vcn.rst @@ -0,0 +1,11 @@ +Vcn +=== + +.. currentmodule:: oci.core.models + +.. autoclass:: Vcn + :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.VirtualCircuit.rst b/docs/api/core/models/oci.core.models.VirtualCircuit.rst new file mode 100644 index 0000000000..1962c38026 --- /dev/null +++ b/docs/api/core/models/oci.core.models.VirtualCircuit.rst @@ -0,0 +1,11 @@ +VirtualCircuit +============== + +.. currentmodule:: oci.core.models + +.. autoclass:: VirtualCircuit + :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.VirtualCircuitBandwidthShape.rst b/docs/api/core/models/oci.core.models.VirtualCircuitBandwidthShape.rst new file mode 100644 index 0000000000..cd0f22aca3 --- /dev/null +++ b/docs/api/core/models/oci.core.models.VirtualCircuitBandwidthShape.rst @@ -0,0 +1,11 @@ +VirtualCircuitBandwidthShape +============================ + +.. currentmodule:: oci.core.models + +.. autoclass:: VirtualCircuitBandwidthShape + :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.VirtualCircuitPublicPrefix.rst b/docs/api/core/models/oci.core.models.VirtualCircuitPublicPrefix.rst new file mode 100644 index 0000000000..bc7d0ad29b --- /dev/null +++ b/docs/api/core/models/oci.core.models.VirtualCircuitPublicPrefix.rst @@ -0,0 +1,11 @@ +VirtualCircuitPublicPrefix +========================== + +.. currentmodule:: oci.core.models + +.. autoclass:: VirtualCircuitPublicPrefix + :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.Vnic.rst b/docs/api/core/models/oci.core.models.Vnic.rst new file mode 100644 index 0000000000..024b8fdf17 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Vnic.rst @@ -0,0 +1,11 @@ +Vnic +==== + +.. currentmodule:: oci.core.models + +.. autoclass:: Vnic + :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.VnicAttachment.rst b/docs/api/core/models/oci.core.models.VnicAttachment.rst new file mode 100644 index 0000000000..72b5886ee6 --- /dev/null +++ b/docs/api/core/models/oci.core.models.VnicAttachment.rst @@ -0,0 +1,11 @@ +VnicAttachment +============== + +.. currentmodule:: oci.core.models + +.. autoclass:: VnicAttachment + :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.Volume.rst b/docs/api/core/models/oci.core.models.Volume.rst new file mode 100644 index 0000000000..f787b01eb8 --- /dev/null +++ b/docs/api/core/models/oci.core.models.Volume.rst @@ -0,0 +1,11 @@ +Volume +====== + +.. currentmodule:: oci.core.models + +.. autoclass:: Volume + :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.VolumeAttachment.rst b/docs/api/core/models/oci.core.models.VolumeAttachment.rst new file mode 100644 index 0000000000..1726baf9b1 --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeAttachment.rst @@ -0,0 +1,11 @@ +VolumeAttachment +================ + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeAttachment + :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.VolumeBackup.rst b/docs/api/core/models/oci.core.models.VolumeBackup.rst new file mode 100644 index 0000000000..ac25e38a6c --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeBackup.rst @@ -0,0 +1,11 @@ +VolumeBackup +============ + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeBackup + :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.VolumeBackupPolicy.rst b/docs/api/core/models/oci.core.models.VolumeBackupPolicy.rst new file mode 100644 index 0000000000..570d44d4ce --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeBackupPolicy.rst @@ -0,0 +1,11 @@ +VolumeBackupPolicy +================== + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeBackupPolicy + :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.VolumeBackupPolicyAssignment.rst b/docs/api/core/models/oci.core.models.VolumeBackupPolicyAssignment.rst new file mode 100644 index 0000000000..294f91c49e --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeBackupPolicyAssignment.rst @@ -0,0 +1,11 @@ +VolumeBackupPolicyAssignment +============================ + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeBackupPolicyAssignment + :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.VolumeBackupSchedule.rst b/docs/api/core/models/oci.core.models.VolumeBackupSchedule.rst new file mode 100644 index 0000000000..758c438e9c --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeBackupSchedule.rst @@ -0,0 +1,11 @@ +VolumeBackupSchedule +==================== + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeBackupSchedule + :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.VolumeSourceDetails.rst b/docs/api/core/models/oci.core.models.VolumeSourceDetails.rst new file mode 100644 index 0000000000..232a74e605 --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeSourceDetails.rst @@ -0,0 +1,11 @@ +VolumeSourceDetails +=================== + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeSourceDetails + :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.VolumeSourceFromVolumeBackupDetails.rst b/docs/api/core/models/oci.core.models.VolumeSourceFromVolumeBackupDetails.rst new file mode 100644 index 0000000000..8002488cdb --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeSourceFromVolumeBackupDetails.rst @@ -0,0 +1,11 @@ +VolumeSourceFromVolumeBackupDetails +=================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeSourceFromVolumeBackupDetails + :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.VolumeSourceFromVolumeDetails.rst b/docs/api/core/models/oci.core.models.VolumeSourceFromVolumeDetails.rst new file mode 100644 index 0000000000..0c4d68290e --- /dev/null +++ b/docs/api/core/models/oci.core.models.VolumeSourceFromVolumeDetails.rst @@ -0,0 +1,11 @@ +VolumeSourceFromVolumeDetails +============================= + +.. currentmodule:: oci.core.models + +.. autoclass:: VolumeSourceFromVolumeDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database.rst b/docs/api/database.rst index fca74c3fbf..3033b9e66c 100644 --- a/docs/api/database.rst +++ b/docs/api/database.rst @@ -7,6 +7,7 @@ Database :template: autosummary/service_client.rst oci.database.DatabaseClient + oci.database.DatabaseClientCompositeOperations -------- Models diff --git a/docs/api/database/client/oci.database.DatabaseClient.rst b/docs/api/database/client/oci.database.DatabaseClient.rst new file mode 100644 index 0000000000..8148bf645c --- /dev/null +++ b/docs/api/database/client/oci.database.DatabaseClient.rst @@ -0,0 +1,8 @@ +DatabaseClient +============== + +.. currentmodule:: oci.database + +.. autoclass:: DatabaseClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/database/client/oci.database.DatabaseClientCompositeOperations.rst b/docs/api/database/client/oci.database.DatabaseClientCompositeOperations.rst new file mode 100644 index 0000000000..a7552c2fd1 --- /dev/null +++ b/docs/api/database/client/oci.database.DatabaseClientCompositeOperations.rst @@ -0,0 +1,8 @@ +DatabaseClientCompositeOperations +================================= + +.. currentmodule:: oci.database + +.. autoclass:: DatabaseClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.Backup.rst b/docs/api/database/models/oci.database.models.Backup.rst new file mode 100644 index 0000000000..a4431202e6 --- /dev/null +++ b/docs/api/database/models/oci.database.models.Backup.rst @@ -0,0 +1,11 @@ +Backup +====== + +.. currentmodule:: oci.database.models + +.. autoclass:: Backup + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.BackupSummary.rst b/docs/api/database/models/oci.database.models.BackupSummary.rst new file mode 100644 index 0000000000..df79e1b2cc --- /dev/null +++ b/docs/api/database/models/oci.database.models.BackupSummary.rst @@ -0,0 +1,11 @@ +BackupSummary +============= + +.. currentmodule:: oci.database.models + +.. autoclass:: BackupSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateBackupDetails.rst b/docs/api/database/models/oci.database.models.CreateBackupDetails.rst new file mode 100644 index 0000000000..0841a85510 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateBackupDetails.rst @@ -0,0 +1,11 @@ +CreateBackupDetails +=================== + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateBackupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDataGuardAssociationDetails.rst b/docs/api/database/models/oci.database.models.CreateDataGuardAssociationDetails.rst new file mode 100644 index 0000000000..aa5231cd63 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDataGuardAssociationDetails.rst @@ -0,0 +1,11 @@ +CreateDataGuardAssociationDetails +================================= + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDataGuardAssociationDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDataGuardAssociationToExistingDbSystemDetails.rst b/docs/api/database/models/oci.database.models.CreateDataGuardAssociationToExistingDbSystemDetails.rst new file mode 100644 index 0000000000..5749afa9f5 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDataGuardAssociationToExistingDbSystemDetails.rst @@ -0,0 +1,11 @@ +CreateDataGuardAssociationToExistingDbSystemDetails +=================================================== + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDataGuardAssociationToExistingDbSystemDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDatabaseDetails.rst b/docs/api/database/models/oci.database.models.CreateDatabaseDetails.rst new file mode 100644 index 0000000000..a2c33712bb --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDatabaseDetails.rst @@ -0,0 +1,11 @@ +CreateDatabaseDetails +===================== + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDatabaseDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDatabaseFromBackupDetails.rst b/docs/api/database/models/oci.database.models.CreateDatabaseFromBackupDetails.rst new file mode 100644 index 0000000000..6e1d885f25 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDatabaseFromBackupDetails.rst @@ -0,0 +1,11 @@ +CreateDatabaseFromBackupDetails +=============================== + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDatabaseFromBackupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDbHomeDetails.rst b/docs/api/database/models/oci.database.models.CreateDbHomeDetails.rst new file mode 100644 index 0000000000..2d76574565 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDbHomeDetails.rst @@ -0,0 +1,11 @@ +CreateDbHomeDetails +=================== + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDbHomeDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdBase.rst b/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdBase.rst new file mode 100644 index 0000000000..97ad9828b1 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdBase.rst @@ -0,0 +1,11 @@ +CreateDbHomeWithDbSystemIdBase +============================== + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDbHomeWithDbSystemIdBase + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdDetails.rst b/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdDetails.rst new file mode 100644 index 0000000000..4a9c62f3a1 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdDetails.rst @@ -0,0 +1,11 @@ +CreateDbHomeWithDbSystemIdDetails +================================= + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDbHomeWithDbSystemIdDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdFromBackupDetails.rst b/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdFromBackupDetails.rst new file mode 100644 index 0000000000..7a09c38781 --- /dev/null +++ b/docs/api/database/models/oci.database.models.CreateDbHomeWithDbSystemIdFromBackupDetails.rst @@ -0,0 +1,11 @@ +CreateDbHomeWithDbSystemIdFromBackupDetails +=========================================== + +.. currentmodule:: oci.database.models + +.. autoclass:: CreateDbHomeWithDbSystemIdFromBackupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DataGuardAssociation.rst b/docs/api/database/models/oci.database.models.DataGuardAssociation.rst new file mode 100644 index 0000000000..eeea6b31d6 --- /dev/null +++ b/docs/api/database/models/oci.database.models.DataGuardAssociation.rst @@ -0,0 +1,11 @@ +DataGuardAssociation +==================== + +.. currentmodule:: oci.database.models + +.. autoclass:: DataGuardAssociation + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DataGuardAssociationSummary.rst b/docs/api/database/models/oci.database.models.DataGuardAssociationSummary.rst new file mode 100644 index 0000000000..bcf4c79fbe --- /dev/null +++ b/docs/api/database/models/oci.database.models.DataGuardAssociationSummary.rst @@ -0,0 +1,11 @@ +DataGuardAssociationSummary +=========================== + +.. currentmodule:: oci.database.models + +.. autoclass:: DataGuardAssociationSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.Database.rst b/docs/api/database/models/oci.database.models.Database.rst new file mode 100644 index 0000000000..6ecc9bd730 --- /dev/null +++ b/docs/api/database/models/oci.database.models.Database.rst @@ -0,0 +1,11 @@ +Database +======== + +.. currentmodule:: oci.database.models + +.. autoclass:: Database + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DatabaseSummary.rst b/docs/api/database/models/oci.database.models.DatabaseSummary.rst new file mode 100644 index 0000000000..a73b739d88 --- /dev/null +++ b/docs/api/database/models/oci.database.models.DatabaseSummary.rst @@ -0,0 +1,11 @@ +DatabaseSummary +=============== + +.. currentmodule:: oci.database.models + +.. autoclass:: DatabaseSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbBackupConfig.rst b/docs/api/database/models/oci.database.models.DbBackupConfig.rst new file mode 100644 index 0000000000..5654b89780 --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbBackupConfig.rst @@ -0,0 +1,11 @@ +DbBackupConfig +============== + +.. currentmodule:: oci.database.models + +.. autoclass:: DbBackupConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbHome.rst b/docs/api/database/models/oci.database.models.DbHome.rst new file mode 100644 index 0000000000..924d27c12a --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbHome.rst @@ -0,0 +1,11 @@ +DbHome +====== + +.. currentmodule:: oci.database.models + +.. autoclass:: DbHome + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbHomeSummary.rst b/docs/api/database/models/oci.database.models.DbHomeSummary.rst new file mode 100644 index 0000000000..8faf01601f --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbHomeSummary.rst @@ -0,0 +1,11 @@ +DbHomeSummary +============= + +.. currentmodule:: oci.database.models + +.. autoclass:: DbHomeSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbNode.rst b/docs/api/database/models/oci.database.models.DbNode.rst new file mode 100644 index 0000000000..6c1caa8e5a --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbNode.rst @@ -0,0 +1,11 @@ +DbNode +====== + +.. currentmodule:: oci.database.models + +.. autoclass:: DbNode + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbNodeSummary.rst b/docs/api/database/models/oci.database.models.DbNodeSummary.rst new file mode 100644 index 0000000000..a27de7db53 --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbNodeSummary.rst @@ -0,0 +1,11 @@ +DbNodeSummary +============= + +.. currentmodule:: oci.database.models + +.. autoclass:: DbNodeSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbSystem.rst b/docs/api/database/models/oci.database.models.DbSystem.rst new file mode 100644 index 0000000000..30904b998a --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbSystem.rst @@ -0,0 +1,11 @@ +DbSystem +======== + +.. currentmodule:: oci.database.models + +.. autoclass:: DbSystem + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbSystemShapeSummary.rst b/docs/api/database/models/oci.database.models.DbSystemShapeSummary.rst new file mode 100644 index 0000000000..7929a07615 --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbSystemShapeSummary.rst @@ -0,0 +1,11 @@ +DbSystemShapeSummary +==================== + +.. currentmodule:: oci.database.models + +.. autoclass:: DbSystemShapeSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbSystemSummary.rst b/docs/api/database/models/oci.database.models.DbSystemSummary.rst new file mode 100644 index 0000000000..0a30816a81 --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbSystemSummary.rst @@ -0,0 +1,11 @@ +DbSystemSummary +=============== + +.. currentmodule:: oci.database.models + +.. autoclass:: DbSystemSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.DbVersionSummary.rst b/docs/api/database/models/oci.database.models.DbVersionSummary.rst new file mode 100644 index 0000000000..f05979bcd1 --- /dev/null +++ b/docs/api/database/models/oci.database.models.DbVersionSummary.rst @@ -0,0 +1,11 @@ +DbVersionSummary +================ + +.. currentmodule:: oci.database.models + +.. autoclass:: DbVersionSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.FailoverDataGuardAssociationDetails.rst b/docs/api/database/models/oci.database.models.FailoverDataGuardAssociationDetails.rst new file mode 100644 index 0000000000..f6015cc171 --- /dev/null +++ b/docs/api/database/models/oci.database.models.FailoverDataGuardAssociationDetails.rst @@ -0,0 +1,11 @@ +FailoverDataGuardAssociationDetails +=================================== + +.. currentmodule:: oci.database.models + +.. autoclass:: FailoverDataGuardAssociationDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.LaunchDbSystemDetails.rst b/docs/api/database/models/oci.database.models.LaunchDbSystemDetails.rst new file mode 100644 index 0000000000..6306ec0e06 --- /dev/null +++ b/docs/api/database/models/oci.database.models.LaunchDbSystemDetails.rst @@ -0,0 +1,11 @@ +LaunchDbSystemDetails +===================== + +.. currentmodule:: oci.database.models + +.. autoclass:: LaunchDbSystemDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.Patch.rst b/docs/api/database/models/oci.database.models.Patch.rst new file mode 100644 index 0000000000..e5445f416a --- /dev/null +++ b/docs/api/database/models/oci.database.models.Patch.rst @@ -0,0 +1,11 @@ +Patch +===== + +.. currentmodule:: oci.database.models + +.. autoclass:: Patch + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.PatchDetails.rst b/docs/api/database/models/oci.database.models.PatchDetails.rst new file mode 100644 index 0000000000..9e5972550f --- /dev/null +++ b/docs/api/database/models/oci.database.models.PatchDetails.rst @@ -0,0 +1,11 @@ +PatchDetails +============ + +.. currentmodule:: oci.database.models + +.. autoclass:: PatchDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.PatchHistoryEntry.rst b/docs/api/database/models/oci.database.models.PatchHistoryEntry.rst new file mode 100644 index 0000000000..3d4dc497c6 --- /dev/null +++ b/docs/api/database/models/oci.database.models.PatchHistoryEntry.rst @@ -0,0 +1,11 @@ +PatchHistoryEntry +================= + +.. currentmodule:: oci.database.models + +.. autoclass:: PatchHistoryEntry + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.PatchHistoryEntrySummary.rst b/docs/api/database/models/oci.database.models.PatchHistoryEntrySummary.rst new file mode 100644 index 0000000000..b40aa14ff6 --- /dev/null +++ b/docs/api/database/models/oci.database.models.PatchHistoryEntrySummary.rst @@ -0,0 +1,11 @@ +PatchHistoryEntrySummary +======================== + +.. currentmodule:: oci.database.models + +.. autoclass:: PatchHistoryEntrySummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.PatchSummary.rst b/docs/api/database/models/oci.database.models.PatchSummary.rst new file mode 100644 index 0000000000..4b121cbc7b --- /dev/null +++ b/docs/api/database/models/oci.database.models.PatchSummary.rst @@ -0,0 +1,11 @@ +PatchSummary +============ + +.. currentmodule:: oci.database.models + +.. autoclass:: PatchSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.ReinstateDataGuardAssociationDetails.rst b/docs/api/database/models/oci.database.models.ReinstateDataGuardAssociationDetails.rst new file mode 100644 index 0000000000..39bd035d21 --- /dev/null +++ b/docs/api/database/models/oci.database.models.ReinstateDataGuardAssociationDetails.rst @@ -0,0 +1,11 @@ +ReinstateDataGuardAssociationDetails +==================================== + +.. currentmodule:: oci.database.models + +.. autoclass:: ReinstateDataGuardAssociationDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.RestoreDatabaseDetails.rst b/docs/api/database/models/oci.database.models.RestoreDatabaseDetails.rst new file mode 100644 index 0000000000..f1cdbe1ecd --- /dev/null +++ b/docs/api/database/models/oci.database.models.RestoreDatabaseDetails.rst @@ -0,0 +1,11 @@ +RestoreDatabaseDetails +====================== + +.. currentmodule:: oci.database.models + +.. autoclass:: RestoreDatabaseDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.SwitchoverDataGuardAssociationDetails.rst b/docs/api/database/models/oci.database.models.SwitchoverDataGuardAssociationDetails.rst new file mode 100644 index 0000000000..3c4d6661e4 --- /dev/null +++ b/docs/api/database/models/oci.database.models.SwitchoverDataGuardAssociationDetails.rst @@ -0,0 +1,11 @@ +SwitchoverDataGuardAssociationDetails +===================================== + +.. currentmodule:: oci.database.models + +.. autoclass:: SwitchoverDataGuardAssociationDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.UpdateDatabaseDetails.rst b/docs/api/database/models/oci.database.models.UpdateDatabaseDetails.rst new file mode 100644 index 0000000000..01a9fa3bf5 --- /dev/null +++ b/docs/api/database/models/oci.database.models.UpdateDatabaseDetails.rst @@ -0,0 +1,11 @@ +UpdateDatabaseDetails +===================== + +.. currentmodule:: oci.database.models + +.. autoclass:: UpdateDatabaseDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.UpdateDbHomeDetails.rst b/docs/api/database/models/oci.database.models.UpdateDbHomeDetails.rst new file mode 100644 index 0000000000..5a65f9d149 --- /dev/null +++ b/docs/api/database/models/oci.database.models.UpdateDbHomeDetails.rst @@ -0,0 +1,11 @@ +UpdateDbHomeDetails +=================== + +.. currentmodule:: oci.database.models + +.. autoclass:: UpdateDbHomeDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.UpdateDbSystemDetails.rst b/docs/api/database/models/oci.database.models.UpdateDbSystemDetails.rst new file mode 100644 index 0000000000..ed79cfcf74 --- /dev/null +++ b/docs/api/database/models/oci.database.models.UpdateDbSystemDetails.rst @@ -0,0 +1,11 @@ +UpdateDbSystemDetails +===================== + +.. currentmodule:: oci.database.models + +.. autoclass:: UpdateDbSystemDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns.rst b/docs/api/dns.rst index 952b4a5922..68b3f61df1 100644 --- a/docs/api/dns.rst +++ b/docs/api/dns.rst @@ -7,6 +7,7 @@ DNS :template: autosummary/service_client.rst oci.dns.DnsClient + oci.dns.DnsClientCompositeOperations -------- Models diff --git a/docs/api/dns/client/oci.dns.DnsClient.rst b/docs/api/dns/client/oci.dns.DnsClient.rst new file mode 100644 index 0000000000..716af40c32 --- /dev/null +++ b/docs/api/dns/client/oci.dns.DnsClient.rst @@ -0,0 +1,8 @@ +DnsClient +========= + +.. currentmodule:: oci.dns + +.. autoclass:: DnsClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/dns/client/oci.dns.DnsClientCompositeOperations.rst b/docs/api/dns/client/oci.dns.DnsClientCompositeOperations.rst new file mode 100644 index 0000000000..d95ae3f3aa --- /dev/null +++ b/docs/api/dns/client/oci.dns.DnsClientCompositeOperations.rst @@ -0,0 +1,8 @@ +DnsClientCompositeOperations +============================ + +.. currentmodule:: oci.dns + +.. autoclass:: DnsClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.CreateZoneDetails.rst b/docs/api/dns/models/oci.dns.models.CreateZoneDetails.rst new file mode 100644 index 0000000000..938d46d66a --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.CreateZoneDetails.rst @@ -0,0 +1,11 @@ +CreateZoneDetails +================= + +.. currentmodule:: oci.dns.models + +.. autoclass:: CreateZoneDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.ExternalMaster.rst b/docs/api/dns/models/oci.dns.models.ExternalMaster.rst new file mode 100644 index 0000000000..a183102546 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.ExternalMaster.rst @@ -0,0 +1,11 @@ +ExternalMaster +============== + +.. currentmodule:: oci.dns.models + +.. autoclass:: ExternalMaster + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.PatchDomainRecordsDetails.rst b/docs/api/dns/models/oci.dns.models.PatchDomainRecordsDetails.rst new file mode 100644 index 0000000000..e50b188cd4 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.PatchDomainRecordsDetails.rst @@ -0,0 +1,11 @@ +PatchDomainRecordsDetails +========================= + +.. currentmodule:: oci.dns.models + +.. autoclass:: PatchDomainRecordsDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.PatchRRSetDetails.rst b/docs/api/dns/models/oci.dns.models.PatchRRSetDetails.rst new file mode 100644 index 0000000000..237a02b8e1 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.PatchRRSetDetails.rst @@ -0,0 +1,11 @@ +PatchRRSetDetails +================= + +.. currentmodule:: oci.dns.models + +.. autoclass:: PatchRRSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.PatchZoneRecordsDetails.rst b/docs/api/dns/models/oci.dns.models.PatchZoneRecordsDetails.rst new file mode 100644 index 0000000000..edac68af8b --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.PatchZoneRecordsDetails.rst @@ -0,0 +1,11 @@ +PatchZoneRecordsDetails +======================= + +.. currentmodule:: oci.dns.models + +.. autoclass:: PatchZoneRecordsDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.RRSet.rst b/docs/api/dns/models/oci.dns.models.RRSet.rst new file mode 100644 index 0000000000..e465a0f198 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.RRSet.rst @@ -0,0 +1,11 @@ +RRSet +===== + +.. currentmodule:: oci.dns.models + +.. autoclass:: RRSet + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.Record.rst b/docs/api/dns/models/oci.dns.models.Record.rst new file mode 100644 index 0000000000..b4332aed8d --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.Record.rst @@ -0,0 +1,11 @@ +Record +====== + +.. currentmodule:: oci.dns.models + +.. autoclass:: Record + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.RecordCollection.rst b/docs/api/dns/models/oci.dns.models.RecordCollection.rst new file mode 100644 index 0000000000..119c697788 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.RecordCollection.rst @@ -0,0 +1,11 @@ +RecordCollection +================ + +.. currentmodule:: oci.dns.models + +.. autoclass:: RecordCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.RecordDetails.rst b/docs/api/dns/models/oci.dns.models.RecordDetails.rst new file mode 100644 index 0000000000..3c8713ad0e --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.RecordDetails.rst @@ -0,0 +1,11 @@ +RecordDetails +============= + +.. currentmodule:: oci.dns.models + +.. autoclass:: RecordDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.RecordOperation.rst b/docs/api/dns/models/oci.dns.models.RecordOperation.rst new file mode 100644 index 0000000000..2334afe9f7 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.RecordOperation.rst @@ -0,0 +1,11 @@ +RecordOperation +=============== + +.. currentmodule:: oci.dns.models + +.. autoclass:: RecordOperation + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.TSIG.rst b/docs/api/dns/models/oci.dns.models.TSIG.rst new file mode 100644 index 0000000000..8359ff4003 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.TSIG.rst @@ -0,0 +1,11 @@ +TSIG +==== + +.. currentmodule:: oci.dns.models + +.. autoclass:: TSIG + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.UpdateDomainRecordsDetails.rst b/docs/api/dns/models/oci.dns.models.UpdateDomainRecordsDetails.rst new file mode 100644 index 0000000000..f6b5300694 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.UpdateDomainRecordsDetails.rst @@ -0,0 +1,11 @@ +UpdateDomainRecordsDetails +========================== + +.. currentmodule:: oci.dns.models + +.. autoclass:: UpdateDomainRecordsDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.UpdateRRSetDetails.rst b/docs/api/dns/models/oci.dns.models.UpdateRRSetDetails.rst new file mode 100644 index 0000000000..6523d3932a --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.UpdateRRSetDetails.rst @@ -0,0 +1,11 @@ +UpdateRRSetDetails +================== + +.. currentmodule:: oci.dns.models + +.. autoclass:: UpdateRRSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.UpdateZoneDetails.rst b/docs/api/dns/models/oci.dns.models.UpdateZoneDetails.rst new file mode 100644 index 0000000000..508508a79b --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.UpdateZoneDetails.rst @@ -0,0 +1,11 @@ +UpdateZoneDetails +================= + +.. currentmodule:: oci.dns.models + +.. autoclass:: UpdateZoneDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.UpdateZoneRecordsDetails.rst b/docs/api/dns/models/oci.dns.models.UpdateZoneRecordsDetails.rst new file mode 100644 index 0000000000..4befd99c71 --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.UpdateZoneRecordsDetails.rst @@ -0,0 +1,11 @@ +UpdateZoneRecordsDetails +======================== + +.. currentmodule:: oci.dns.models + +.. autoclass:: UpdateZoneRecordsDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.Zone.rst b/docs/api/dns/models/oci.dns.models.Zone.rst new file mode 100644 index 0000000000..abce2c399c --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.Zone.rst @@ -0,0 +1,11 @@ +Zone +==== + +.. currentmodule:: oci.dns.models + +.. autoclass:: Zone + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/dns/models/oci.dns.models.ZoneSummary.rst b/docs/api/dns/models/oci.dns.models.ZoneSummary.rst new file mode 100644 index 0000000000..805703980b --- /dev/null +++ b/docs/api/dns/models/oci.dns.models.ZoneSummary.rst @@ -0,0 +1,11 @@ +ZoneSummary +=========== + +.. currentmodule:: oci.dns.models + +.. autoclass:: ZoneSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email.rst b/docs/api/email.rst index a1246aa695..1a0d0e5868 100644 --- a/docs/api/email.rst +++ b/docs/api/email.rst @@ -7,6 +7,7 @@ Email :template: autosummary/service_client.rst oci.email.EmailClient + oci.email.EmailClientCompositeOperations -------- Models diff --git a/docs/api/email/client/oci.email.EmailClient.rst b/docs/api/email/client/oci.email.EmailClient.rst new file mode 100644 index 0000000000..ea97fa040b --- /dev/null +++ b/docs/api/email/client/oci.email.EmailClient.rst @@ -0,0 +1,8 @@ +EmailClient +=========== + +.. currentmodule:: oci.email + +.. autoclass:: EmailClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/email/client/oci.email.EmailClientCompositeOperations.rst b/docs/api/email/client/oci.email.EmailClientCompositeOperations.rst new file mode 100644 index 0000000000..e6d4868a3d --- /dev/null +++ b/docs/api/email/client/oci.email.EmailClientCompositeOperations.rst @@ -0,0 +1,8 @@ +EmailClientCompositeOperations +============================== + +.. currentmodule:: oci.email + +.. autoclass:: EmailClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/email/models/oci.email.models.CreateSenderDetails.rst b/docs/api/email/models/oci.email.models.CreateSenderDetails.rst new file mode 100644 index 0000000000..650e7f1d90 --- /dev/null +++ b/docs/api/email/models/oci.email.models.CreateSenderDetails.rst @@ -0,0 +1,11 @@ +CreateSenderDetails +=================== + +.. currentmodule:: oci.email.models + +.. autoclass:: CreateSenderDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email/models/oci.email.models.CreateSuppressionDetails.rst b/docs/api/email/models/oci.email.models.CreateSuppressionDetails.rst new file mode 100644 index 0000000000..a3fe31ade7 --- /dev/null +++ b/docs/api/email/models/oci.email.models.CreateSuppressionDetails.rst @@ -0,0 +1,11 @@ +CreateSuppressionDetails +======================== + +.. currentmodule:: oci.email.models + +.. autoclass:: CreateSuppressionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email/models/oci.email.models.Sender.rst b/docs/api/email/models/oci.email.models.Sender.rst new file mode 100644 index 0000000000..8db90ed5a6 --- /dev/null +++ b/docs/api/email/models/oci.email.models.Sender.rst @@ -0,0 +1,11 @@ +Sender +====== + +.. currentmodule:: oci.email.models + +.. autoclass:: Sender + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email/models/oci.email.models.SenderSummary.rst b/docs/api/email/models/oci.email.models.SenderSummary.rst new file mode 100644 index 0000000000..ec5bfc3224 --- /dev/null +++ b/docs/api/email/models/oci.email.models.SenderSummary.rst @@ -0,0 +1,11 @@ +SenderSummary +============= + +.. currentmodule:: oci.email.models + +.. autoclass:: SenderSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email/models/oci.email.models.Suppression.rst b/docs/api/email/models/oci.email.models.Suppression.rst new file mode 100644 index 0000000000..5809a28472 --- /dev/null +++ b/docs/api/email/models/oci.email.models.Suppression.rst @@ -0,0 +1,11 @@ +Suppression +=========== + +.. currentmodule:: oci.email.models + +.. autoclass:: Suppression + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/email/models/oci.email.models.SuppressionSummary.rst b/docs/api/email/models/oci.email.models.SuppressionSummary.rst new file mode 100644 index 0000000000..1c55d16675 --- /dev/null +++ b/docs/api/email/models/oci.email.models.SuppressionSummary.rst @@ -0,0 +1,11 @@ +SuppressionSummary +================== + +.. currentmodule:: oci.email.models + +.. autoclass:: SuppressionSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage.rst b/docs/api/file_storage.rst index e22f72f9f7..75f7bd94f8 100644 --- a/docs/api/file_storage.rst +++ b/docs/api/file_storage.rst @@ -7,6 +7,7 @@ File Storage :template: autosummary/service_client.rst oci.file_storage.FileStorageClient + oci.file_storage.FileStorageClientCompositeOperations -------- Models diff --git a/docs/api/file_storage/client/oci.file_storage.FileStorageClient.rst b/docs/api/file_storage/client/oci.file_storage.FileStorageClient.rst new file mode 100644 index 0000000000..5d1f92dc40 --- /dev/null +++ b/docs/api/file_storage/client/oci.file_storage.FileStorageClient.rst @@ -0,0 +1,8 @@ +FileStorageClient +================= + +.. currentmodule:: oci.file_storage + +.. autoclass:: FileStorageClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/file_storage/client/oci.file_storage.FileStorageClientCompositeOperations.rst b/docs/api/file_storage/client/oci.file_storage.FileStorageClientCompositeOperations.rst new file mode 100644 index 0000000000..5933779582 --- /dev/null +++ b/docs/api/file_storage/client/oci.file_storage.FileStorageClientCompositeOperations.rst @@ -0,0 +1,8 @@ +FileStorageClientCompositeOperations +==================================== + +.. currentmodule:: oci.file_storage + +.. autoclass:: FileStorageClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.CreateExportDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.CreateExportDetails.rst new file mode 100644 index 0000000000..387c6d425f --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.CreateExportDetails.rst @@ -0,0 +1,11 @@ +CreateExportDetails +=================== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: CreateExportDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.CreateFileSystemDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.CreateFileSystemDetails.rst new file mode 100644 index 0000000000..397e9f5d69 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.CreateFileSystemDetails.rst @@ -0,0 +1,11 @@ +CreateFileSystemDetails +======================= + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: CreateFileSystemDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.CreateMountTargetDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.CreateMountTargetDetails.rst new file mode 100644 index 0000000000..abc5f0ab3f --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.CreateMountTargetDetails.rst @@ -0,0 +1,11 @@ +CreateMountTargetDetails +======================== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: CreateMountTargetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.CreateSnapshotDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.CreateSnapshotDetails.rst new file mode 100644 index 0000000000..120bacf1a8 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.CreateSnapshotDetails.rst @@ -0,0 +1,11 @@ +CreateSnapshotDetails +===================== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: CreateSnapshotDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.Export.rst b/docs/api/file_storage/models/oci.file_storage.models.Export.rst new file mode 100644 index 0000000000..1395ebb524 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.Export.rst @@ -0,0 +1,11 @@ +Export +====== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: Export + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.ExportSet.rst b/docs/api/file_storage/models/oci.file_storage.models.ExportSet.rst new file mode 100644 index 0000000000..db500a5661 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.ExportSet.rst @@ -0,0 +1,11 @@ +ExportSet +========= + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: ExportSet + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.ExportSetSummary.rst b/docs/api/file_storage/models/oci.file_storage.models.ExportSetSummary.rst new file mode 100644 index 0000000000..41ad84d91b --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.ExportSetSummary.rst @@ -0,0 +1,11 @@ +ExportSetSummary +================ + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: ExportSetSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.ExportSummary.rst b/docs/api/file_storage/models/oci.file_storage.models.ExportSummary.rst new file mode 100644 index 0000000000..d9104089df --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.ExportSummary.rst @@ -0,0 +1,11 @@ +ExportSummary +============= + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: ExportSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.FileSystem.rst b/docs/api/file_storage/models/oci.file_storage.models.FileSystem.rst new file mode 100644 index 0000000000..224f31152c --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.FileSystem.rst @@ -0,0 +1,11 @@ +FileSystem +========== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: FileSystem + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.FileSystemSummary.rst b/docs/api/file_storage/models/oci.file_storage.models.FileSystemSummary.rst new file mode 100644 index 0000000000..89747bad20 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.FileSystemSummary.rst @@ -0,0 +1,11 @@ +FileSystemSummary +================= + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: FileSystemSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.MountTarget.rst b/docs/api/file_storage/models/oci.file_storage.models.MountTarget.rst new file mode 100644 index 0000000000..4154003abe --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.MountTarget.rst @@ -0,0 +1,11 @@ +MountTarget +=========== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: MountTarget + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.MountTargetSummary.rst b/docs/api/file_storage/models/oci.file_storage.models.MountTargetSummary.rst new file mode 100644 index 0000000000..ddc13131c9 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.MountTargetSummary.rst @@ -0,0 +1,11 @@ +MountTargetSummary +================== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: MountTargetSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.Snapshot.rst b/docs/api/file_storage/models/oci.file_storage.models.Snapshot.rst new file mode 100644 index 0000000000..d9ac1f9fec --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.Snapshot.rst @@ -0,0 +1,11 @@ +Snapshot +======== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: Snapshot + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.SnapshotSummary.rst b/docs/api/file_storage/models/oci.file_storage.models.SnapshotSummary.rst new file mode 100644 index 0000000000..41a9cdd036 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.SnapshotSummary.rst @@ -0,0 +1,11 @@ +SnapshotSummary +=============== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: SnapshotSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.UpdateExportSetDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.UpdateExportSetDetails.rst new file mode 100644 index 0000000000..53c3187e2c --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.UpdateExportSetDetails.rst @@ -0,0 +1,11 @@ +UpdateExportSetDetails +====================== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: UpdateExportSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.UpdateFileSystemDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.UpdateFileSystemDetails.rst new file mode 100644 index 0000000000..b303ab9140 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.UpdateFileSystemDetails.rst @@ -0,0 +1,11 @@ +UpdateFileSystemDetails +======================= + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: UpdateFileSystemDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/file_storage/models/oci.file_storage.models.UpdateMountTargetDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.UpdateMountTargetDetails.rst new file mode 100644 index 0000000000..bc5f0faa16 --- /dev/null +++ b/docs/api/file_storage/models/oci.file_storage.models.UpdateMountTargetDetails.rst @@ -0,0 +1,11 @@ +UpdateMountTargetDetails +======================== + +.. currentmodule:: oci.file_storage.models + +.. autoclass:: UpdateMountTargetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity.rst b/docs/api/identity.rst index 0ed1b34a2d..17ade3d657 100644 --- a/docs/api/identity.rst +++ b/docs/api/identity.rst @@ -7,6 +7,7 @@ Identity :template: autosummary/service_client.rst oci.identity.IdentityClient + oci.identity.IdentityClientCompositeOperations -------- Models diff --git a/docs/api/identity/client/oci.identity.IdentityClient.rst b/docs/api/identity/client/oci.identity.IdentityClient.rst new file mode 100644 index 0000000000..0c782968ac --- /dev/null +++ b/docs/api/identity/client/oci.identity.IdentityClient.rst @@ -0,0 +1,8 @@ +IdentityClient +============== + +.. currentmodule:: oci.identity + +.. autoclass:: IdentityClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/identity/client/oci.identity.IdentityClientCompositeOperations.rst b/docs/api/identity/client/oci.identity.IdentityClientCompositeOperations.rst new file mode 100644 index 0000000000..1cb095fb6c --- /dev/null +++ b/docs/api/identity/client/oci.identity.IdentityClientCompositeOperations.rst @@ -0,0 +1,8 @@ +IdentityClientCompositeOperations +================================= + +.. currentmodule:: oci.identity + +.. autoclass:: IdentityClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.AddUserToGroupDetails.rst b/docs/api/identity/models/oci.identity.models.AddUserToGroupDetails.rst new file mode 100644 index 0000000000..46c173e47b --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.AddUserToGroupDetails.rst @@ -0,0 +1,11 @@ +AddUserToGroupDetails +===================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: AddUserToGroupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.ApiKey.rst b/docs/api/identity/models/oci.identity.models.ApiKey.rst new file mode 100644 index 0000000000..c3ba13c455 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.ApiKey.rst @@ -0,0 +1,11 @@ +ApiKey +====== + +.. currentmodule:: oci.identity.models + +.. autoclass:: ApiKey + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.AvailabilityDomain.rst b/docs/api/identity/models/oci.identity.models.AvailabilityDomain.rst new file mode 100644 index 0000000000..39cd65c227 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.AvailabilityDomain.rst @@ -0,0 +1,11 @@ +AvailabilityDomain +================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: AvailabilityDomain + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.Compartment.rst b/docs/api/identity/models/oci.identity.models.Compartment.rst new file mode 100644 index 0000000000..0d75272c92 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.Compartment.rst @@ -0,0 +1,11 @@ +Compartment +=========== + +.. currentmodule:: oci.identity.models + +.. autoclass:: Compartment + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateApiKeyDetails.rst b/docs/api/identity/models/oci.identity.models.CreateApiKeyDetails.rst new file mode 100644 index 0000000000..5ed7a324cf --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateApiKeyDetails.rst @@ -0,0 +1,11 @@ +CreateApiKeyDetails +=================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateApiKeyDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateCompartmentDetails.rst b/docs/api/identity/models/oci.identity.models.CreateCompartmentDetails.rst new file mode 100644 index 0000000000..34436f678a --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateCompartmentDetails.rst @@ -0,0 +1,11 @@ +CreateCompartmentDetails +======================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateCompartmentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateCustomerSecretKeyDetails.rst b/docs/api/identity/models/oci.identity.models.CreateCustomerSecretKeyDetails.rst new file mode 100644 index 0000000000..665aaa24aa --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateCustomerSecretKeyDetails.rst @@ -0,0 +1,11 @@ +CreateCustomerSecretKeyDetails +============================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateCustomerSecretKeyDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateDynamicGroupDetails.rst b/docs/api/identity/models/oci.identity.models.CreateDynamicGroupDetails.rst new file mode 100644 index 0000000000..bc14771a7d --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateDynamicGroupDetails.rst @@ -0,0 +1,11 @@ +CreateDynamicGroupDetails +========================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateDynamicGroupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateGroupDetails.rst b/docs/api/identity/models/oci.identity.models.CreateGroupDetails.rst new file mode 100644 index 0000000000..427bdd8982 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateGroupDetails.rst @@ -0,0 +1,11 @@ +CreateGroupDetails +================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateGroupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateIdentityProviderDetails.rst b/docs/api/identity/models/oci.identity.models.CreateIdentityProviderDetails.rst new file mode 100644 index 0000000000..90e8729744 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateIdentityProviderDetails.rst @@ -0,0 +1,11 @@ +CreateIdentityProviderDetails +============================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateIdentityProviderDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateIdpGroupMappingDetails.rst b/docs/api/identity/models/oci.identity.models.CreateIdpGroupMappingDetails.rst new file mode 100644 index 0000000000..9f08674797 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateIdpGroupMappingDetails.rst @@ -0,0 +1,11 @@ +CreateIdpGroupMappingDetails +============================ + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateIdpGroupMappingDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreatePolicyDetails.rst b/docs/api/identity/models/oci.identity.models.CreatePolicyDetails.rst new file mode 100644 index 0000000000..c3eadca860 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreatePolicyDetails.rst @@ -0,0 +1,11 @@ +CreatePolicyDetails +=================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreatePolicyDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateRegionSubscriptionDetails.rst b/docs/api/identity/models/oci.identity.models.CreateRegionSubscriptionDetails.rst new file mode 100644 index 0000000000..98800ae871 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateRegionSubscriptionDetails.rst @@ -0,0 +1,11 @@ +CreateRegionSubscriptionDetails +=============================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateRegionSubscriptionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateSaml2IdentityProviderDetails.rst b/docs/api/identity/models/oci.identity.models.CreateSaml2IdentityProviderDetails.rst new file mode 100644 index 0000000000..07d50c64db --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateSaml2IdentityProviderDetails.rst @@ -0,0 +1,11 @@ +CreateSaml2IdentityProviderDetails +================================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateSaml2IdentityProviderDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateSmtpCredentialDetails.rst b/docs/api/identity/models/oci.identity.models.CreateSmtpCredentialDetails.rst new file mode 100644 index 0000000000..a6325b774e --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateSmtpCredentialDetails.rst @@ -0,0 +1,11 @@ +CreateSmtpCredentialDetails +=========================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateSmtpCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateSwiftPasswordDetails.rst b/docs/api/identity/models/oci.identity.models.CreateSwiftPasswordDetails.rst new file mode 100644 index 0000000000..423bcc1739 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateSwiftPasswordDetails.rst @@ -0,0 +1,11 @@ +CreateSwiftPasswordDetails +========================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateSwiftPasswordDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateTagDetails.rst b/docs/api/identity/models/oci.identity.models.CreateTagDetails.rst new file mode 100644 index 0000000000..54c7664c70 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateTagDetails.rst @@ -0,0 +1,11 @@ +CreateTagDetails +================ + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateTagDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateTagNamespaceDetails.rst b/docs/api/identity/models/oci.identity.models.CreateTagNamespaceDetails.rst new file mode 100644 index 0000000000..37bdc9c3ff --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateTagNamespaceDetails.rst @@ -0,0 +1,11 @@ +CreateTagNamespaceDetails +========================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateTagNamespaceDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CreateUserDetails.rst b/docs/api/identity/models/oci.identity.models.CreateUserDetails.rst new file mode 100644 index 0000000000..4e32357b96 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CreateUserDetails.rst @@ -0,0 +1,11 @@ +CreateUserDetails +================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: CreateUserDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CustomerSecretKey.rst b/docs/api/identity/models/oci.identity.models.CustomerSecretKey.rst new file mode 100644 index 0000000000..133d1f5477 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CustomerSecretKey.rst @@ -0,0 +1,11 @@ +CustomerSecretKey +================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: CustomerSecretKey + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.CustomerSecretKeySummary.rst b/docs/api/identity/models/oci.identity.models.CustomerSecretKeySummary.rst new file mode 100644 index 0000000000..953af15719 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.CustomerSecretKeySummary.rst @@ -0,0 +1,11 @@ +CustomerSecretKeySummary +======================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: CustomerSecretKeySummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.DynamicGroup.rst b/docs/api/identity/models/oci.identity.models.DynamicGroup.rst new file mode 100644 index 0000000000..73cd0ce79b --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.DynamicGroup.rst @@ -0,0 +1,11 @@ +DynamicGroup +============ + +.. currentmodule:: oci.identity.models + +.. autoclass:: DynamicGroup + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.Group.rst b/docs/api/identity/models/oci.identity.models.Group.rst new file mode 100644 index 0000000000..d4871f58d5 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.Group.rst @@ -0,0 +1,11 @@ +Group +===== + +.. currentmodule:: oci.identity.models + +.. autoclass:: Group + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.IdentityProvider.rst b/docs/api/identity/models/oci.identity.models.IdentityProvider.rst new file mode 100644 index 0000000000..12ebc8b008 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.IdentityProvider.rst @@ -0,0 +1,11 @@ +IdentityProvider +================ + +.. currentmodule:: oci.identity.models + +.. autoclass:: IdentityProvider + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.IdpGroupMapping.rst b/docs/api/identity/models/oci.identity.models.IdpGroupMapping.rst new file mode 100644 index 0000000000..63b1c0730d --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.IdpGroupMapping.rst @@ -0,0 +1,11 @@ +IdpGroupMapping +=============== + +.. currentmodule:: oci.identity.models + +.. autoclass:: IdpGroupMapping + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.Policy.rst b/docs/api/identity/models/oci.identity.models.Policy.rst new file mode 100644 index 0000000000..928da87804 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.Policy.rst @@ -0,0 +1,11 @@ +Policy +====== + +.. currentmodule:: oci.identity.models + +.. autoclass:: Policy + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.Region.rst b/docs/api/identity/models/oci.identity.models.Region.rst new file mode 100644 index 0000000000..7f6ff84642 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.Region.rst @@ -0,0 +1,11 @@ +Region +====== + +.. currentmodule:: oci.identity.models + +.. autoclass:: Region + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.RegionSubscription.rst b/docs/api/identity/models/oci.identity.models.RegionSubscription.rst new file mode 100644 index 0000000000..d782b5db60 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.RegionSubscription.rst @@ -0,0 +1,11 @@ +RegionSubscription +================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: RegionSubscription + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.Saml2IdentityProvider.rst b/docs/api/identity/models/oci.identity.models.Saml2IdentityProvider.rst new file mode 100644 index 0000000000..6169f8de38 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.Saml2IdentityProvider.rst @@ -0,0 +1,11 @@ +Saml2IdentityProvider +===================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: Saml2IdentityProvider + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.SmtpCredential.rst b/docs/api/identity/models/oci.identity.models.SmtpCredential.rst new file mode 100644 index 0000000000..20ca781d22 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.SmtpCredential.rst @@ -0,0 +1,11 @@ +SmtpCredential +============== + +.. currentmodule:: oci.identity.models + +.. autoclass:: SmtpCredential + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.SmtpCredentialSummary.rst b/docs/api/identity/models/oci.identity.models.SmtpCredentialSummary.rst new file mode 100644 index 0000000000..0d246d3eac --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.SmtpCredentialSummary.rst @@ -0,0 +1,11 @@ +SmtpCredentialSummary +===================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: SmtpCredentialSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.SwiftPassword.rst b/docs/api/identity/models/oci.identity.models.SwiftPassword.rst new file mode 100644 index 0000000000..f02aef1d4f --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.SwiftPassword.rst @@ -0,0 +1,11 @@ +SwiftPassword +============= + +.. currentmodule:: oci.identity.models + +.. autoclass:: SwiftPassword + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.Tag.rst b/docs/api/identity/models/oci.identity.models.Tag.rst new file mode 100644 index 0000000000..7a1a1e159e --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.Tag.rst @@ -0,0 +1,11 @@ +Tag +=== + +.. currentmodule:: oci.identity.models + +.. autoclass:: Tag + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.TagNamespace.rst b/docs/api/identity/models/oci.identity.models.TagNamespace.rst new file mode 100644 index 0000000000..f3ccf847b4 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.TagNamespace.rst @@ -0,0 +1,11 @@ +TagNamespace +============ + +.. currentmodule:: oci.identity.models + +.. autoclass:: TagNamespace + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.TagNamespaceSummary.rst b/docs/api/identity/models/oci.identity.models.TagNamespaceSummary.rst new file mode 100644 index 0000000000..507a896b80 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.TagNamespaceSummary.rst @@ -0,0 +1,11 @@ +TagNamespaceSummary +=================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: TagNamespaceSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.TagSummary.rst b/docs/api/identity/models/oci.identity.models.TagSummary.rst new file mode 100644 index 0000000000..6249e38a7e --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.TagSummary.rst @@ -0,0 +1,11 @@ +TagSummary +========== + +.. currentmodule:: oci.identity.models + +.. autoclass:: TagSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.Tenancy.rst b/docs/api/identity/models/oci.identity.models.Tenancy.rst new file mode 100644 index 0000000000..8077a97db0 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.Tenancy.rst @@ -0,0 +1,11 @@ +Tenancy +======= + +.. currentmodule:: oci.identity.models + +.. autoclass:: Tenancy + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UIPassword.rst b/docs/api/identity/models/oci.identity.models.UIPassword.rst new file mode 100644 index 0000000000..3f81a64598 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UIPassword.rst @@ -0,0 +1,11 @@ +UIPassword +========== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UIPassword + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateCompartmentDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateCompartmentDetails.rst new file mode 100644 index 0000000000..6efd2b2e08 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateCompartmentDetails.rst @@ -0,0 +1,11 @@ +UpdateCompartmentDetails +======================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateCompartmentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateCustomerSecretKeyDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateCustomerSecretKeyDetails.rst new file mode 100644 index 0000000000..f52651e4b9 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateCustomerSecretKeyDetails.rst @@ -0,0 +1,11 @@ +UpdateCustomerSecretKeyDetails +============================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateCustomerSecretKeyDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateDynamicGroupDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateDynamicGroupDetails.rst new file mode 100644 index 0000000000..b99fdb8f09 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateDynamicGroupDetails.rst @@ -0,0 +1,11 @@ +UpdateDynamicGroupDetails +========================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateDynamicGroupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateGroupDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateGroupDetails.rst new file mode 100644 index 0000000000..9a479683a7 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateGroupDetails.rst @@ -0,0 +1,11 @@ +UpdateGroupDetails +================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateGroupDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateIdentityProviderDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateIdentityProviderDetails.rst new file mode 100644 index 0000000000..58947ff9c0 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateIdentityProviderDetails.rst @@ -0,0 +1,11 @@ +UpdateIdentityProviderDetails +============================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateIdentityProviderDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateIdpGroupMappingDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateIdpGroupMappingDetails.rst new file mode 100644 index 0000000000..1f919cb1ba --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateIdpGroupMappingDetails.rst @@ -0,0 +1,11 @@ +UpdateIdpGroupMappingDetails +============================ + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateIdpGroupMappingDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdatePolicyDetails.rst b/docs/api/identity/models/oci.identity.models.UpdatePolicyDetails.rst new file mode 100644 index 0000000000..0da3ff4927 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdatePolicyDetails.rst @@ -0,0 +1,11 @@ +UpdatePolicyDetails +=================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdatePolicyDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateSaml2IdentityProviderDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateSaml2IdentityProviderDetails.rst new file mode 100644 index 0000000000..314a32c832 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateSaml2IdentityProviderDetails.rst @@ -0,0 +1,11 @@ +UpdateSaml2IdentityProviderDetails +================================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateSaml2IdentityProviderDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateSmtpCredentialDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateSmtpCredentialDetails.rst new file mode 100644 index 0000000000..d8fda165a8 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateSmtpCredentialDetails.rst @@ -0,0 +1,11 @@ +UpdateSmtpCredentialDetails +=========================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateSmtpCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateStateDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateStateDetails.rst new file mode 100644 index 0000000000..e38aa596b8 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateStateDetails.rst @@ -0,0 +1,11 @@ +UpdateStateDetails +================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateStateDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateSwiftPasswordDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateSwiftPasswordDetails.rst new file mode 100644 index 0000000000..4194d3a37c --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateSwiftPasswordDetails.rst @@ -0,0 +1,11 @@ +UpdateSwiftPasswordDetails +========================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateSwiftPasswordDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateTagDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateTagDetails.rst new file mode 100644 index 0000000000..69043509af --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateTagDetails.rst @@ -0,0 +1,11 @@ +UpdateTagDetails +================ + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateTagDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateTagNamespaceDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateTagNamespaceDetails.rst new file mode 100644 index 0000000000..1d0edd0f53 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateTagNamespaceDetails.rst @@ -0,0 +1,11 @@ +UpdateTagNamespaceDetails +========================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateTagNamespaceDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UpdateUserDetails.rst b/docs/api/identity/models/oci.identity.models.UpdateUserDetails.rst new file mode 100644 index 0000000000..77bff72ed4 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UpdateUserDetails.rst @@ -0,0 +1,11 @@ +UpdateUserDetails +================= + +.. currentmodule:: oci.identity.models + +.. autoclass:: UpdateUserDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.User.rst b/docs/api/identity/models/oci.identity.models.User.rst new file mode 100644 index 0000000000..8e9bd9c9cf --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.User.rst @@ -0,0 +1,11 @@ +User +==== + +.. currentmodule:: oci.identity.models + +.. autoclass:: User + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/identity/models/oci.identity.models.UserGroupMembership.rst b/docs/api/identity/models/oci.identity.models.UserGroupMembership.rst new file mode 100644 index 0000000000..46743d40b0 --- /dev/null +++ b/docs/api/identity/models/oci.identity.models.UserGroupMembership.rst @@ -0,0 +1,11 @@ +UserGroupMembership +=================== + +.. currentmodule:: oci.identity.models + +.. autoclass:: UserGroupMembership + :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 3b01ad1aeb..00635263d3 100644 --- a/docs/api/landing.rst +++ b/docs/api/landing.rst @@ -21,6 +21,7 @@ API Reference * :doc:`Exceptions ` * :doc:`Pagination ` * :doc:`Request and Response ` +* :doc:`Retry ` * :doc:`Signing ` * :doc:`Upload Manager ` * :doc:`Utilities ` @@ -47,6 +48,7 @@ API Reference exceptions pagination request_and_response + retry signing upload_manager utilities diff --git a/docs/api/load_balancer.rst b/docs/api/load_balancer.rst index 74a53e1b60..79513e3e3d 100644 --- a/docs/api/load_balancer.rst +++ b/docs/api/load_balancer.rst @@ -7,6 +7,7 @@ Load Balancer :template: autosummary/service_client.rst oci.load_balancer.LoadBalancerClient + oci.load_balancer.LoadBalancerClientCompositeOperations -------- Models diff --git a/docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClient.rst b/docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClient.rst new file mode 100644 index 0000000000..cf69629c45 --- /dev/null +++ b/docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClient.rst @@ -0,0 +1,8 @@ +LoadBalancerClient +================== + +.. currentmodule:: oci.load_balancer + +.. autoclass:: LoadBalancerClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClientCompositeOperations.rst b/docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClientCompositeOperations.rst new file mode 100644 index 0000000000..a6f40fde9f --- /dev/null +++ b/docs/api/load_balancer/client/oci.load_balancer.LoadBalancerClientCompositeOperations.rst @@ -0,0 +1,8 @@ +LoadBalancerClientCompositeOperations +===================================== + +.. currentmodule:: oci.load_balancer + +.. autoclass:: LoadBalancerClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.Backend.rst b/docs/api/load_balancer/models/oci.load_balancer.models.Backend.rst new file mode 100644 index 0000000000..999e392a4c --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.Backend.rst @@ -0,0 +1,11 @@ +Backend +======= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: Backend + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.BackendDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.BackendDetails.rst new file mode 100644 index 0000000000..936fd689e2 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.BackendDetails.rst @@ -0,0 +1,11 @@ +BackendDetails +============== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: BackendDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.BackendHealth.rst b/docs/api/load_balancer/models/oci.load_balancer.models.BackendHealth.rst new file mode 100644 index 0000000000..e8ffcab445 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.BackendHealth.rst @@ -0,0 +1,11 @@ +BackendHealth +============= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: BackendHealth + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.BackendSet.rst b/docs/api/load_balancer/models/oci.load_balancer.models.BackendSet.rst new file mode 100644 index 0000000000..dcf7e23325 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.BackendSet.rst @@ -0,0 +1,11 @@ +BackendSet +========== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: BackendSet + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.BackendSetDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.BackendSetDetails.rst new file mode 100644 index 0000000000..0a0497ec01 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.BackendSetDetails.rst @@ -0,0 +1,11 @@ +BackendSetDetails +================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: BackendSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.BackendSetHealth.rst b/docs/api/load_balancer/models/oci.load_balancer.models.BackendSetHealth.rst new file mode 100644 index 0000000000..164abab6a3 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.BackendSetHealth.rst @@ -0,0 +1,11 @@ +BackendSetHealth +================ + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: BackendSetHealth + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.Certificate.rst b/docs/api/load_balancer/models/oci.load_balancer.models.Certificate.rst new file mode 100644 index 0000000000..0e2205b404 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.Certificate.rst @@ -0,0 +1,11 @@ +Certificate +=========== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: Certificate + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.CertificateDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.CertificateDetails.rst new file mode 100644 index 0000000000..7d34a5b6e4 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.CertificateDetails.rst @@ -0,0 +1,11 @@ +CertificateDetails +================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: CertificateDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.ConnectionConfiguration.rst b/docs/api/load_balancer/models/oci.load_balancer.models.ConnectionConfiguration.rst new file mode 100644 index 0000000000..03c6d26d41 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.ConnectionConfiguration.rst @@ -0,0 +1,11 @@ +ConnectionConfiguration +======================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: ConnectionConfiguration + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendDetails.rst new file mode 100644 index 0000000000..d4bd9991be --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendDetails.rst @@ -0,0 +1,11 @@ +CreateBackendDetails +==================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: CreateBackendDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendSetDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendSetDetails.rst new file mode 100644 index 0000000000..77f99d6ea0 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.CreateBackendSetDetails.rst @@ -0,0 +1,11 @@ +CreateBackendSetDetails +======================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: CreateBackendSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.CreateCertificateDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.CreateCertificateDetails.rst new file mode 100644 index 0000000000..eec42138a1 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.CreateCertificateDetails.rst @@ -0,0 +1,11 @@ +CreateCertificateDetails +======================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: CreateCertificateDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.CreateListenerDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.CreateListenerDetails.rst new file mode 100644 index 0000000000..556b20cc08 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.CreateListenerDetails.rst @@ -0,0 +1,11 @@ +CreateListenerDetails +===================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: CreateListenerDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.CreateLoadBalancerDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.CreateLoadBalancerDetails.rst new file mode 100644 index 0000000000..29f2bdd7a5 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.CreateLoadBalancerDetails.rst @@ -0,0 +1,11 @@ +CreateLoadBalancerDetails +========================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: CreateLoadBalancerDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.CreatePathRouteSetDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.CreatePathRouteSetDetails.rst new file mode 100644 index 0000000000..3d2cea6b3a --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.CreatePathRouteSetDetails.rst @@ -0,0 +1,11 @@ +CreatePathRouteSetDetails +========================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: CreatePathRouteSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckResult.rst b/docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckResult.rst new file mode 100644 index 0000000000..efa849237c --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckResult.rst @@ -0,0 +1,11 @@ +HealthCheckResult +================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: HealthCheckResult + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.HealthChecker.rst b/docs/api/load_balancer/models/oci.load_balancer.models.HealthChecker.rst new file mode 100644 index 0000000000..f7446e3b4d --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.HealthChecker.rst @@ -0,0 +1,11 @@ +HealthChecker +============= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: HealthChecker + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckerDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckerDetails.rst new file mode 100644 index 0000000000..d3226eb796 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.HealthCheckerDetails.rst @@ -0,0 +1,11 @@ +HealthCheckerDetails +==================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: HealthCheckerDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.IpAddress.rst b/docs/api/load_balancer/models/oci.load_balancer.models.IpAddress.rst new file mode 100644 index 0000000000..17c986a859 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.IpAddress.rst @@ -0,0 +1,11 @@ +IpAddress +========= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: IpAddress + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.Listener.rst b/docs/api/load_balancer/models/oci.load_balancer.models.Listener.rst new file mode 100644 index 0000000000..539c37bf5b --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.Listener.rst @@ -0,0 +1,11 @@ +Listener +======== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: Listener + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.ListenerDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.ListenerDetails.rst new file mode 100644 index 0000000000..1a924c51d2 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.ListenerDetails.rst @@ -0,0 +1,11 @@ +ListenerDetails +=============== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: ListenerDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancer.rst b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancer.rst new file mode 100644 index 0000000000..9611bca409 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancer.rst @@ -0,0 +1,11 @@ +LoadBalancer +============ + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: LoadBalancer + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealth.rst b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealth.rst new file mode 100644 index 0000000000..02b202f67d --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealth.rst @@ -0,0 +1,11 @@ +LoadBalancerHealth +================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: LoadBalancerHealth + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealthSummary.rst b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealthSummary.rst new file mode 100644 index 0000000000..f635fa12ce --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerHealthSummary.rst @@ -0,0 +1,11 @@ +LoadBalancerHealthSummary +========================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: LoadBalancerHealthSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerPolicy.rst b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerPolicy.rst new file mode 100644 index 0000000000..6f1c13d03c --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerPolicy.rst @@ -0,0 +1,11 @@ +LoadBalancerPolicy +================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: LoadBalancerPolicy + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerProtocol.rst b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerProtocol.rst new file mode 100644 index 0000000000..d03fbe3866 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerProtocol.rst @@ -0,0 +1,11 @@ +LoadBalancerProtocol +==================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: LoadBalancerProtocol + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerShape.rst b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerShape.rst new file mode 100644 index 0000000000..d8b32de589 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.LoadBalancerShape.rst @@ -0,0 +1,11 @@ +LoadBalancerShape +================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: LoadBalancerShape + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.PathMatchType.rst b/docs/api/load_balancer/models/oci.load_balancer.models.PathMatchType.rst new file mode 100644 index 0000000000..550a0c44d8 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.PathMatchType.rst @@ -0,0 +1,11 @@ +PathMatchType +============= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: PathMatchType + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.PathRoute.rst b/docs/api/load_balancer/models/oci.load_balancer.models.PathRoute.rst new file mode 100644 index 0000000000..c03fbaaff0 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.PathRoute.rst @@ -0,0 +1,11 @@ +PathRoute +========= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: PathRoute + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSet.rst b/docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSet.rst new file mode 100644 index 0000000000..d18477ca78 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSet.rst @@ -0,0 +1,11 @@ +PathRouteSet +============ + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: PathRouteSet + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSetDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSetDetails.rst new file mode 100644 index 0000000000..ea4bb1fb1a --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.PathRouteSetDetails.rst @@ -0,0 +1,11 @@ +PathRouteSetDetails +=================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: PathRouteSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.SSLConfiguration.rst b/docs/api/load_balancer/models/oci.load_balancer.models.SSLConfiguration.rst new file mode 100644 index 0000000000..843900a4e1 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.SSLConfiguration.rst @@ -0,0 +1,11 @@ +SSLConfiguration +================ + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: SSLConfiguration + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.SSLConfigurationDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.SSLConfigurationDetails.rst new file mode 100644 index 0000000000..1df0036e76 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.SSLConfigurationDetails.rst @@ -0,0 +1,11 @@ +SSLConfigurationDetails +======================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: SSLConfigurationDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.SessionPersistenceConfigurationDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.SessionPersistenceConfigurationDetails.rst new file mode 100644 index 0000000000..f3a2e48c3d --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.SessionPersistenceConfigurationDetails.rst @@ -0,0 +1,11 @@ +SessionPersistenceConfigurationDetails +====================================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: SessionPersistenceConfigurationDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendDetails.rst new file mode 100644 index 0000000000..371ece6f28 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendDetails.rst @@ -0,0 +1,11 @@ +UpdateBackendDetails +==================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: UpdateBackendDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendSetDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendSetDetails.rst new file mode 100644 index 0000000000..c32f177864 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateBackendSetDetails.rst @@ -0,0 +1,11 @@ +UpdateBackendSetDetails +======================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: UpdateBackendSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.UpdateHealthCheckerDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateHealthCheckerDetails.rst new file mode 100644 index 0000000000..b1b7f7bd33 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateHealthCheckerDetails.rst @@ -0,0 +1,11 @@ +UpdateHealthCheckerDetails +========================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: UpdateHealthCheckerDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.UpdateListenerDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateListenerDetails.rst new file mode 100644 index 0000000000..0fa67123c6 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateListenerDetails.rst @@ -0,0 +1,11 @@ +UpdateListenerDetails +===================== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: UpdateListenerDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.UpdateLoadBalancerDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateLoadBalancerDetails.rst new file mode 100644 index 0000000000..574ab93625 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.UpdateLoadBalancerDetails.rst @@ -0,0 +1,11 @@ +UpdateLoadBalancerDetails +========================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: UpdateLoadBalancerDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.UpdatePathRouteSetDetails.rst b/docs/api/load_balancer/models/oci.load_balancer.models.UpdatePathRouteSetDetails.rst new file mode 100644 index 0000000000..472deb354e --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.UpdatePathRouteSetDetails.rst @@ -0,0 +1,11 @@ +UpdatePathRouteSetDetails +========================= + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: UpdatePathRouteSetDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.WorkRequest.rst b/docs/api/load_balancer/models/oci.load_balancer.models.WorkRequest.rst new file mode 100644 index 0000000000..e5e8b4489c --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.WorkRequest.rst @@ -0,0 +1,11 @@ +WorkRequest +=========== + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: WorkRequest + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/load_balancer/models/oci.load_balancer.models.WorkRequestError.rst b/docs/api/load_balancer/models/oci.load_balancer.models.WorkRequestError.rst new file mode 100644 index 0000000000..2af88f6771 --- /dev/null +++ b/docs/api/load_balancer/models/oci.load_balancer.models.WorkRequestError.rst @@ -0,0 +1,11 @@ +WorkRequestError +================ + +.. currentmodule:: oci.load_balancer.models + +.. autoclass:: WorkRequestError + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage.rst b/docs/api/object_storage.rst index 0312b72dde..c447c04eb8 100644 --- a/docs/api/object_storage.rst +++ b/docs/api/object_storage.rst @@ -7,6 +7,7 @@ Object Storage :template: autosummary/service_client.rst oci.object_storage.ObjectStorageClient + oci.object_storage.ObjectStorageClientCompositeOperations -------- Models diff --git a/docs/api/object_storage/client/oci.object_storage.ObjectStorageClient.rst b/docs/api/object_storage/client/oci.object_storage.ObjectStorageClient.rst new file mode 100644 index 0000000000..6c16d029e3 --- /dev/null +++ b/docs/api/object_storage/client/oci.object_storage.ObjectStorageClient.rst @@ -0,0 +1,8 @@ +ObjectStorageClient +=================== + +.. currentmodule:: oci.object_storage + +.. autoclass:: ObjectStorageClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/object_storage/client/oci.object_storage.ObjectStorageClientCompositeOperations.rst b/docs/api/object_storage/client/oci.object_storage.ObjectStorageClientCompositeOperations.rst new file mode 100644 index 0000000000..1eb9da100b --- /dev/null +++ b/docs/api/object_storage/client/oci.object_storage.ObjectStorageClientCompositeOperations.rst @@ -0,0 +1,8 @@ +ObjectStorageClientCompositeOperations +====================================== + +.. currentmodule:: oci.object_storage + +.. autoclass:: ObjectStorageClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.Bucket.rst b/docs/api/object_storage/models/oci.object_storage.models.Bucket.rst new file mode 100644 index 0000000000..adcc2933eb --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.Bucket.rst @@ -0,0 +1,11 @@ +Bucket +====== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: Bucket + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.BucketSummary.rst b/docs/api/object_storage/models/oci.object_storage.models.BucketSummary.rst new file mode 100644 index 0000000000..bd56ca911e --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.BucketSummary.rst @@ -0,0 +1,11 @@ +BucketSummary +============= + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: BucketSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadDetails.rst new file mode 100644 index 0000000000..9e54013538 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadDetails.rst @@ -0,0 +1,11 @@ +CommitMultipartUploadDetails +============================ + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: CommitMultipartUploadDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadPartDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadPartDetails.rst new file mode 100644 index 0000000000..b12a171fe4 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.CommitMultipartUploadPartDetails.rst @@ -0,0 +1,11 @@ +CommitMultipartUploadPartDetails +================================ + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: CommitMultipartUploadPartDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.CreateBucketDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.CreateBucketDetails.rst new file mode 100644 index 0000000000..c5d2ae9a4c --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.CreateBucketDetails.rst @@ -0,0 +1,11 @@ +CreateBucketDetails +=================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: CreateBucketDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.CreateMultipartUploadDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.CreateMultipartUploadDetails.rst new file mode 100644 index 0000000000..39a8d327e3 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.CreateMultipartUploadDetails.rst @@ -0,0 +1,11 @@ +CreateMultipartUploadDetails +============================ + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: CreateMultipartUploadDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.CreatePreauthenticatedRequestDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.CreatePreauthenticatedRequestDetails.rst new file mode 100644 index 0000000000..3b9e2bc377 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.CreatePreauthenticatedRequestDetails.rst @@ -0,0 +1,11 @@ +CreatePreauthenticatedRequestDetails +==================================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: CreatePreauthenticatedRequestDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.ListObjects.rst b/docs/api/object_storage/models/oci.object_storage.models.ListObjects.rst new file mode 100644 index 0000000000..261941396c --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.ListObjects.rst @@ -0,0 +1,11 @@ +ListObjects +=========== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: ListObjects + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.MultipartUpload.rst b/docs/api/object_storage/models/oci.object_storage.models.MultipartUpload.rst new file mode 100644 index 0000000000..5f1e85c400 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.MultipartUpload.rst @@ -0,0 +1,11 @@ +MultipartUpload +=============== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: MultipartUpload + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.MultipartUploadPartSummary.rst b/docs/api/object_storage/models/oci.object_storage.models.MultipartUploadPartSummary.rst new file mode 100644 index 0000000000..d438488ed7 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.MultipartUploadPartSummary.rst @@ -0,0 +1,11 @@ +MultipartUploadPartSummary +========================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: MultipartUploadPartSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.NamespaceMetadata.rst b/docs/api/object_storage/models/oci.object_storage.models.NamespaceMetadata.rst new file mode 100644 index 0000000000..92bfcd4da9 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.NamespaceMetadata.rst @@ -0,0 +1,11 @@ +NamespaceMetadata +================= + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: NamespaceMetadata + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.ObjectSummary.rst b/docs/api/object_storage/models/oci.object_storage.models.ObjectSummary.rst new file mode 100644 index 0000000000..45e58491bc --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.ObjectSummary.rst @@ -0,0 +1,11 @@ +ObjectSummary +============= + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: ObjectSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequest.rst b/docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequest.rst new file mode 100644 index 0000000000..6749b9de53 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequest.rst @@ -0,0 +1,11 @@ +PreauthenticatedRequest +======================= + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: PreauthenticatedRequest + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequestSummary.rst b/docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequestSummary.rst new file mode 100644 index 0000000000..4ee9815180 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.PreauthenticatedRequestSummary.rst @@ -0,0 +1,11 @@ +PreauthenticatedRequestSummary +============================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: PreauthenticatedRequestSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.RenameObjectDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.RenameObjectDetails.rst new file mode 100644 index 0000000000..36ca4401c1 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.RenameObjectDetails.rst @@ -0,0 +1,11 @@ +RenameObjectDetails +=================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: RenameObjectDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.RestoreObjectsDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.RestoreObjectsDetails.rst new file mode 100644 index 0000000000..3583ba1d1f --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.RestoreObjectsDetails.rst @@ -0,0 +1,11 @@ +RestoreObjectsDetails +===================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: RestoreObjectsDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.UpdateBucketDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.UpdateBucketDetails.rst new file mode 100644 index 0000000000..0ed298f63a --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.UpdateBucketDetails.rst @@ -0,0 +1,11 @@ +UpdateBucketDetails +=================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: UpdateBucketDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/object_storage/models/oci.object_storage.models.UpdateNamespaceMetadataDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.UpdateNamespaceMetadataDetails.rst new file mode 100644 index 0000000000..49bef74ed8 --- /dev/null +++ b/docs/api/object_storage/models/oci.object_storage.models.UpdateNamespaceMetadataDetails.rst @@ -0,0 +1,11 @@ +UpdateNamespaceMetadataDetails +============================== + +.. currentmodule:: oci.object_storage.models + +.. autoclass:: UpdateNamespaceMetadataDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/retry.rst b/docs/api/retry.rst new file mode 100644 index 0000000000..134dbfe426 --- /dev/null +++ b/docs/api/retry.rst @@ -0,0 +1,27 @@ +=========== + Retry +=========== + +Default Retry Strategy +----------------------- +See :doc:`here ` for information on the settings used for the default retry strategy. + +.. autodata:: oci.retry.DEFAULT_RETRY_STRATEGY + +Retry +------ + +.. automodule:: oci.retry + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: + +Retry Checkers +--------------- + +.. automodule:: oci.retry.retry_checkers + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/exceptions.rst b/docs/exceptions.rst index 006262e2a2..115d968740 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -22,6 +22,8 @@ When using the Python SDK, you should be prepared to handle the following except * If you use the :py:class:`~oci.object_storage.UploadManager` then you should also catch :py:class:`~oci.exceptions.MultipartUploadError` +* If you use any of the ``CompositeOperation`` classes in the SDK (e.g. :py:class:`~oci.core.ComputeClientCompositeOperations`) then you should also catch :py:class:`~oci.exceptions.CompositeOperationError` + * The Python SDK uses the `Requests `_ library to make calls to OCI services but it does not mask or wrap any of the errors originating from this library, so you should also account for these in your code. The exception reference for Requests can be found `here `__ and `here `__ Handling HTTP 3xx responses diff --git a/docs/installation.rst b/docs/installation.rst index 4f138d09c2..806e2805c1 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -53,11 +53,9 @@ You can install the Python SDK through the Python Package Index (PyPI), or alter **PyPi** -To install from `PyPI `_: +To install from `PyPI `_ use the following command:: - Use the following command:: - - pip install oci + pip install oci **GitHub** @@ -68,7 +66,7 @@ To install from GitHub: 2. Extract the files from the zip. 3. Use the following command to install the SDK:: - pip install oci-*-py2.py3-none-any.whl + pip install oci-*-py2.py3-none-any.whl .. note:: @@ -80,18 +78,17 @@ To install from GitHub: Although optional, Oracle recommends that you run the SDK in a virtual environment with virtualenv. - With Linux, it's usually in a separate package from the main Python package. - If you need to install virtualenv, use pip install virtualenv. - To create and activate a virtual environment:: - - virtualenv - . /bin/activate +With Linux, it's usually in a separate package from the main Python package. +If you need to install virtualenv, use pip install virtualenv. +To create and activate a virtual environment:: - For example:: + virtualenv + source /bin/activate - virtualenv oci_sdk_env - . oci_sdk_env/bin/activate +For example:: + virtualenv oci_sdk_env + source oci_sdk_env/bin/activate ===================== @@ -133,8 +130,44 @@ You might encounter issues when installing Python or the SDK, or using the SDK i Service Errors -------------- -Any operation resulting in a service error will cause an exception of type oci.exceptions.ServiceError to be thrown by the SDK. For information about common service errors returned by OCI, see `API Errors `_ -. +Any operation resulting in a service error will cause an exception of type oci.exceptions.ServiceError to be thrown by the SDK. For information about common service errors returned by OCI, see `API Errors `_. + + +pip 10 Installation Errors +--------------------------- +If you are attempting to install the SDK in your system-wide Python using pip 10 then you may encounter conflicts with ``distutils`` installed packages. An example error message is: + +.. code-block:: none + + sudo pip install oci + ... + ... + Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. + +Resolve by using a virtual environment +*************************************** +Installing the SDK in a virtual environment instead of the system-wide Python. See the *Downloading and Installing the SDK* section for more information + +Resolve by using the system-wide Python +**************************************** +If you wish to still use the system-wide Python, you can resolve this issue by downgrading the version of ``pip`` you are using and then trying to re-install the SDK. :: + + sudo pip install pip==9.0.3 + sudo pip install oci + +If you wish to stick with ``pip`` version 10, then you will either have to install the SDK using the ``--user`` switch:: + + pip install oci --user + +Or you will have to uninstall the distutils installed packages manually. To do this, you will have to: + +1. Make a note of what packages cannot be uninstalled. In the example error message, the package is **requests** +2. Find the install location for these packages. You can find this by looking in the directories returned by ``python -m site`` +3. One of the directories should contain a sub-directory with the same name as the package (e.g. in the case of the example error message the folder should be called **requests**) and a ``.egg-info`` file which contains the package name and a version +4. Delete the folder and the ``.egg-info`` file +5. Try and re-install the SDK:: + + sudo pip install oci SSL/TLS or Certificate Issues ----------------------------- diff --git a/docs/sdk_behaviors/retries.rst b/docs/sdk_behaviors/retries.rst index 0bff24cbfb..d75c89000a 100644 --- a/docs/sdk_behaviors/retries.rst +++ b/docs/sdk_behaviors/retries.rst @@ -9,7 +9,7 @@ By default, operations exposed in the SDK do not retry, but retries can be set i * The :py:class:`~oci.retry.NoneRetryStrategy`. This will result in no retries being performed for the operation * A custom strategy produced via the :py:class:`~oci.retry.RetryStrategyBuilder` -A sample on using retries, including the default strategy and a custom strategy, can be found on `GitHub ` +A sample on using retries, including the default strategy and a custom strategy, can be found on `GitHub `__ Default Retry Strategy ------------------------ diff --git a/docs/waiters.rst b/docs/waiters.rst index b226b6bada..e0f2441497 100644 --- a/docs/waiters.rst +++ b/docs/waiters.rst @@ -55,4 +55,12 @@ Instead of using a lambda, an already defined function can be used: In addition to the base parameters shown above, the function can accept optional attributes to control the maximum amount of time it will wait for and the time between calls to the service. For more information on the optional parameters, see the documentation on the :py:func:`~oci.wait_until` function. -For a more comprehensive sample, please see our `examples `_ on GitHub. \ No newline at end of file +For a more comprehensive sample, please see our `examples `_ on GitHub. + +Composite Operations +--------------------- +In addition to using waiters, you can use the ``CompositeOperation`` classes in the SDK (e.g. :py:class:`~oci.core.ComputeClientCompositeOperations`) +to perform an action on a resource and wait for it to enter a particular state (or states). The ``CompositeOperation`` classes provide +convenience methods so that you yourself do not have to invoke an operation and then separately invoke a waiter. + +An example of using ``CompositeOperation`` classes can be found on `GitHub `__. \ No newline at end of file diff --git a/examples/composite_operations_example.py b/examples/composite_operations_example.py new file mode 100644 index 0000000000..213f732ab7 --- /dev/null +++ b/examples/composite_operations_example.py @@ -0,0 +1,127 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +# This script provides a basic example of how to use composite operations in the Python SDK. Composite operations provide +# convenience methods for operations which would otherwise need to be chained together. For example, instead of performing an action +# on a resource and then using a waiter to wait for the resource to enter a given state, you can call a single method in +# a composite operation class to accomplish the same functionality. +# +# This example will use VCNs, subnets and load balancers to demonstrate composite operation functionality. +# +# This script accepts three arguments: +# - The first argument is the compartment where we'll create the load balancer and related resources +# - The second argument is the first availability domain where we'll create a subnet +# - The third argument is a second (different) availability domain where we'll create a subnet + +import oci +import sys + + +def create_vcn_and_subnets(virtual_network_client_composite_ops, compartment_id, first_ad, second_ad): + # Here we use a composite operation to create a VCN and wait for it to enter the given state. Note that the + # states are passed as an array so it is possible to wait on multiple states. The waiter will complete + # (and the method will return) once the resource enters ANY of the provided states. + get_vcn_response = virtual_network_client_composite_ops.create_vcn_and_wait_for_state( + oci.core.models.CreateVcnDetails( + cidr_block='10.0.0.0/16', + display_name='PySdkCompositeOpExample', + compartment_id=compartment_id + ), + [oci.core.models.Vcn.LIFECYCLE_STATE_AVAILABLE] + ) + vcn = get_vcn_response.data + print('Created VCN') + + get_subnet_response = virtual_network_client_composite_ops.create_subnet_and_wait_for_state( + oci.core.models.CreateSubnetDetails( + compartment_id=compartment_id, + availability_domain=first_ad, + display_name='PySdkCompositeOpsExampleSubnet1', + vcn_id=vcn.id, + cidr_block='10.0.0.0/24' + ), + [oci.core.models.Subnet.LIFECYCLE_STATE_AVAILABLE] + ) + subnet_one = get_subnet_response.data + print('Created Subnet 1') + + get_subnet_response = virtual_network_client_composite_ops.create_subnet_and_wait_for_state( + oci.core.models.CreateSubnetDetails( + compartment_id=compartment_id, + availability_domain=second_ad, + display_name='PySdkCompositeOpsExampleSubnet2', + vcn_id=vcn.id, + cidr_block='10.0.1.0/24' + ), + [oci.core.models.Subnet.LIFECYCLE_STATE_AVAILABLE] + ) + subnet_two = get_subnet_response.data + print('Created Subnet 2') + + return {'vcn': vcn, 'subnets': [subnet_one, subnet_two]} + + +def delete_vcn_and_subnets(virtual_network_client_composite_ops, vcn_and_subnets): + vcn = vcn_and_subnets['vcn'] + subnet_one = vcn_and_subnets['subnets'][0] + subnet_two = vcn_and_subnets['subnets'][1] + + virtual_network_client_composite_ops.delete_subnet_and_wait_for_state( + subnet_one.id, + [oci.core.models.Subnet.LIFECYCLE_STATE_TERMINATED] + ) + print('Deleted Subnet 1') + + virtual_network_client_composite_ops.delete_subnet_and_wait_for_state( + subnet_two.id, + [oci.core.models.Subnet.LIFECYCLE_STATE_TERMINATED] + ) + print('Deleted Subnet 2') + + virtual_network_client_composite_ops.delete_vcn_and_wait_for_state( + vcn.id, + [oci.core.models.Vcn.LIFECYCLE_STATE_TERMINATED] + ) + print('Deleted VCN') + + +# Default config file and profile +config = oci.config.from_file() +load_balancer_client = oci.load_balancer.LoadBalancerClient(config) +load_balancer_client_composite_ops = oci.load_balancer.LoadBalancerClientCompositeOperations(load_balancer_client) +virtual_network_client = oci.core.VirtualNetworkClient(config) +virtual_network_client_composite_ops = oci.core.VirtualNetworkClientCompositeOperations(virtual_network_client) + +if len(sys.argv) != 4: + raise RuntimeError('This script needs to be provided a compartment ID and two availability domains') + +compartment_id = sys.argv[1] +first_ad = sys.argv[2] +second_ad = sys.argv[3] + +vcn_and_subnets = create_vcn_and_subnets(virtual_network_client_composite_ops, compartment_id, first_ad, second_ad) + +# Load Balancer operations return work requests so when using composite operations we have to wait for the state of the +# work request (e.g. for it to succeed) rather than the state of the load balancer. However, as a convenience, when the +# composite operation completes we'll return information on the load balancer (if possible) rather than the work +# request +get_load_balancer_response = load_balancer_client_composite_ops.create_load_balancer_and_wait_for_state( + oci.load_balancer.models.CreateLoadBalancerDetails( + compartment_id=compartment_id, + display_name='PySdkCompositeOpsExample', + shape_name='100Mbps', + subnet_ids=[s.id for s in vcn_and_subnets['subnets']] + ), + [oci.load_balancer.models.WorkRequest.LIFECYCLE_STATE_SUCCEEDED] +) +print('Created Load Balancer') + +# Deleting a load balancer also returns a work request, so in this composite operation we have to wait on the +# state of the work request rather than the state of the load balancer +load_balancer_client_composite_ops.delete_load_balancer_and_wait_for_state( + get_load_balancer_response.data.id, + [oci.load_balancer.models.WorkRequest.LIFECYCLE_STATE_SUCCEEDED] +) +print('Deleted Load Balancer') + +delete_vcn_and_subnets(virtual_network_client_composite_ops, vcn_and_subnets) diff --git a/src/oci/audit/__init__.py b/src/oci/audit/__init__.py index 5d108e9ef6..f7580effd5 100644 --- a/src/oci/audit/__init__.py +++ b/src/oci/audit/__init__.py @@ -5,6 +5,7 @@ from .audit_client import AuditClient +from .audit_client_composite_operations import AuditClientCompositeOperations from . import models -__all__ = ["AuditClient", "models"] +__all__ = ["AuditClient", "AuditClientCompositeOperations", "models"] diff --git a/src/oci/audit/audit_client.py b/src/oci/audit/audit_client.py index 7542b04996..40cf57a6e9 100644 --- a/src/oci/audit/audit_client.py +++ b/src/oci/audit/audit_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import audit_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class AuditClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/audit/audit_client_composite_operations.py b/src/oci/audit/audit_client_composite_operations.py new file mode 100644 index 0000000000..e0d3d25320 --- /dev/null +++ b/src/oci/audit/audit_client_composite_operations.py @@ -0,0 +1,63 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class AuditClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.audit.AuditClient` 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 AuditClientCompositeOperations object + + :param AuditClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def update_configuration_and_wait_for_state(self, compartment_id, update_configuration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.audit.AuditClient.update_configuration` and waits for the :py:class:`~oci.audit.models.WorkRequest` + to enter the given state(s). + + :param str compartment_id: (required) + ID of the root compartment (tenancy) + + :param UpdateConfigurationDetails update_configuration_details: (required) + The configuration properties + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.audit.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.audit.AuditClient.update_configuration` + + :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_configuration(compartment_id, update_configuration_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/audit/models/audit_event.py b/src/oci/audit/models/audit_event.py index 27e3038388..5457f54f5a 100644 --- a/src/oci/audit/models/audit_event.py +++ b/src/oci/audit/models/audit_event.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/audit/models/configuration.py b/src/oci/audit/models/configuration.py index 8f668fe8b6..1eac095b38 100644 --- a/src/oci/audit/models/configuration.py +++ b/src/oci/audit/models/configuration.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/audit/models/update_configuration_details.py b/src/oci/audit/models/update_configuration_details.py index ee4ee1b04e..4162adebd8 100644 --- a/src/oci/audit/models/update_configuration_details.py +++ b/src/oci/audit/models/update_configuration_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/__init__.py b/src/oci/core/__init__.py index b087d0b8a6..e09b15aa26 100644 --- a/src/oci/core/__init__.py +++ b/src/oci/core/__init__.py @@ -5,8 +5,11 @@ from .blockstorage_client import BlockstorageClient +from .blockstorage_client_composite_operations import BlockstorageClientCompositeOperations from .compute_client import ComputeClient +from .compute_client_composite_operations import ComputeClientCompositeOperations from .virtual_network_client import VirtualNetworkClient +from .virtual_network_client_composite_operations import VirtualNetworkClientCompositeOperations from . import models -__all__ = ["BlockstorageClient", "ComputeClient", "VirtualNetworkClient", "models"] +__all__ = ["BlockstorageClient", "BlockstorageClientCompositeOperations", "ComputeClient", "ComputeClientCompositeOperations", "VirtualNetworkClient", "VirtualNetworkClientCompositeOperations", "models"] diff --git a/src/oci/core/blockstorage_client.py b/src/oci/core/blockstorage_client.py index 19b791c136..928ad26069 100644 --- a/src/oci/core/blockstorage_client.py +++ b/src/oci/core/blockstorage_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import core_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class BlockstorageClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/core/blockstorage_client_composite_operations.py b/src/oci/core/blockstorage_client_composite_operations.py new file mode 100644 index 0000000000..276f549fea --- /dev/null +++ b/src/oci/core/blockstorage_client_composite_operations.py @@ -0,0 +1,338 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class BlockstorageClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.core.BlockstorageClient` 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 BlockstorageClientCompositeOperations object + + :param BlockstorageClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_volume_and_wait_for_state(self, create_volume_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.create_volume` and waits for the :py:class:`~oci.core.models.Volume` acted upon + to enter the given state(s). + + :param CreateVolumeDetails create_volume_details: (required) + Request to create a new volume. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Volume.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.create_volume` + + :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_volume(create_volume_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_volume(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_volume_backup_and_wait_for_state(self, create_volume_backup_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.create_volume_backup` and waits for the :py:class:`~oci.core.models.VolumeBackup` acted upon + to enter the given state(s). + + :param CreateVolumeBackupDetails create_volume_backup_details: (required) + Request to create a new backup of given volume. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VolumeBackup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.create_volume_backup` + + :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_volume_backup(create_volume_backup_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_volume_backup(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 delete_boot_volume_and_wait_for_state(self, boot_volume_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.delete_boot_volume` and waits for the :py:class:`~oci.core.models.BootVolume` acted upon + to enter the given state(s). + + :param str boot_volume_id: (required) + The OCID of the boot volume. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.BootVolume.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.delete_boot_volume` + + :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_boot_volume(boot_volume_id) + operation_result = self.client.delete_boot_volume(boot_volume_id, **operation_kwargs) + 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_volume_and_wait_for_state(self, volume_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.delete_volume` and waits for the :py:class:`~oci.core.models.Volume` acted upon + to enter the given state(s). + + :param str volume_id: (required) + The OCID of the volume. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Volume.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.delete_volume` + + :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_volume(volume_id) + operation_result = self.client.delete_volume(volume_id, **operation_kwargs) + 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_volume_backup_and_wait_for_state(self, volume_backup_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.delete_volume_backup` and waits for the :py:class:`~oci.core.models.VolumeBackup` acted upon + to enter the given state(s). + + :param str volume_backup_id: (required) + The OCID of the volume backup. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VolumeBackup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.delete_volume_backup` + + :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_volume_backup(volume_backup_id) + operation_result = self.client.delete_volume_backup(volume_backup_id, **operation_kwargs) + 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 update_boot_volume_and_wait_for_state(self, boot_volume_id, update_boot_volume_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.update_boot_volume` and waits for the :py:class:`~oci.core.models.BootVolume` acted upon + to enter the given state(s). + + :param str boot_volume_id: (required) + The OCID of the boot volume. + + :param UpdateBootVolumeDetails update_boot_volume_details: (required) + Update boot volume's display name. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.BootVolume.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.update_boot_volume` + + :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_boot_volume(boot_volume_id, update_boot_volume_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_boot_volume(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_volume_and_wait_for_state(self, volume_id, update_volume_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.update_volume` and waits for the :py:class:`~oci.core.models.Volume` acted upon + to enter the given state(s). + + :param str volume_id: (required) + The OCID of the volume. + + :param UpdateVolumeDetails update_volume_details: (required) + Update volume's display name. Avoid entering confidential information. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Volume.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.update_volume` + + :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_volume(volume_id, update_volume_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_volume(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_volume_backup_and_wait_for_state(self, volume_backup_id, update_volume_backup_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.BlockstorageClient.update_volume_backup` and waits for the :py:class:`~oci.core.models.VolumeBackup` acted upon + to enter the given state(s). + + :param str volume_backup_id: (required) + The OCID of the volume backup. + + :param UpdateVolumeBackupDetails update_volume_backup_details: (required) + Update volume backup fields + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VolumeBackup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.BlockstorageClient.update_volume_backup` + + :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_volume_backup(volume_backup_id, update_volume_backup_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_volume_backup(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) diff --git a/src/oci/core/compute_client.py b/src/oci/core/compute_client.py index 90bba1dae1..c1e821873a 100644 --- a/src/oci/core/compute_client.py +++ b/src/oci/core/compute_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import core_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class ComputeClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/core/compute_client_composite_operations.py b/src/oci/core/compute_client_composite_operations.py new file mode 100644 index 0000000000..69c513626d --- /dev/null +++ b/src/oci/core/compute_client_composite_operations.py @@ -0,0 +1,727 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class ComputeClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.core.ComputeClient` 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 ComputeClientCompositeOperations object + + :param ComputeClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def attach_boot_volume_and_wait_for_state(self, attach_boot_volume_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.attach_boot_volume` and waits for the :py:class:`~oci.core.models.BootVolumeAttachment` acted upon + to enter the given state(s). + + :param AttachBootVolumeDetails attach_boot_volume_details: (required) + Attach boot volume request + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.BootVolumeAttachment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.attach_boot_volume` + + :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.attach_boot_volume(attach_boot_volume_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_boot_volume_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 attach_vnic_and_wait_for_state(self, attach_vnic_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.attach_vnic` and waits for the :py:class:`~oci.core.models.VnicAttachment` acted upon + to enter the given state(s). + + :param AttachVnicDetails attach_vnic_details: (required) + Attach VNIC details. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VnicAttachment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.attach_vnic` + + :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.attach_vnic(attach_vnic_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_vnic_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 attach_volume_and_wait_for_state(self, attach_volume_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.attach_volume` and waits for the :py:class:`~oci.core.models.VolumeAttachment` acted upon + to enter the given state(s). + + :param AttachVolumeDetails attach_volume_details: (required) + Attach volume request + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VolumeAttachment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.attach_volume` + + :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.attach_volume(attach_volume_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_volume_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 capture_console_history_and_wait_for_state(self, capture_console_history_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.capture_console_history` and waits for the :py:class:`~oci.core.models.ConsoleHistory` acted upon + to enter the given state(s). + + :param CaptureConsoleHistoryDetails capture_console_history_details: (required) + Console history details + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.ConsoleHistory.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.capture_console_history` + + :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.capture_console_history(capture_console_history_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_console_history(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_image_and_wait_for_state(self, create_image_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.create_image` and waits for the :py:class:`~oci.core.models.Image` acted upon + to enter the given state(s). + + :param CreateImageDetails create_image_details: (required) + Image creation details + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Image.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.create_image` + + :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_image(create_image_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_image(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_instance_console_connection_and_wait_for_state(self, create_instance_console_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.create_instance_console_connection` and waits for the :py:class:`~oci.core.models.InstanceConsoleConnection` acted upon + to enter the given state(s). + + :param CreateInstanceConsoleConnectionDetails create_instance_console_connection_details: (required) + Request object for creating an InstanceConsoleConnection + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.InstanceConsoleConnection.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.create_instance_console_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_instance_console_connection(create_instance_console_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.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_instance_console_connection(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 delete_console_history_and_wait_for_state(self, instance_console_history_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.delete_console_history` and waits for the :py:class:`~oci.core.models.ConsoleHistory` acted upon + to enter the given state(s). + + :param str instance_console_history_id: (required) + The OCID of the console history. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.ConsoleHistory.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.delete_console_history` + + :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_console_history(instance_console_history_id) + operation_result = self.client.delete_console_history(instance_console_history_id, **operation_kwargs) + 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_image_and_wait_for_state(self, image_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.delete_image` and waits for the :py:class:`~oci.core.models.Image` acted upon + to enter the given state(s). + + :param str image_id: (required) + The OCID of the image. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Image.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.delete_image` + + :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_image(image_id) + operation_result = self.client.delete_image(image_id, **operation_kwargs) + 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_instance_console_connection_and_wait_for_state(self, instance_console_connection_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.delete_instance_console_connection` and waits for the :py:class:`~oci.core.models.InstanceConsoleConnection` acted upon + to enter the given state(s). + + :param str instance_console_connection_id: (required) + The OCID of the intance console connection + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.InstanceConsoleConnection.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.delete_instance_console_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 + """ + initial_get_result = self.client.get_instance_console_connection(instance_console_connection_id) + operation_result = self.client.delete_instance_console_connection(instance_console_connection_id, **operation_kwargs) + 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 detach_boot_volume_and_wait_for_state(self, boot_volume_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.detach_boot_volume` and waits for the :py:class:`~oci.core.models.BootVolumeAttachment` acted upon + to enter the given state(s). + + :param str boot_volume_attachment_id: (required) + The OCID of the boot volume attachment. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.BootVolumeAttachment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.detach_boot_volume` + + :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_boot_volume_attachment(boot_volume_attachment_id) + operation_result = self.client.detach_boot_volume(boot_volume_attachment_id, **operation_kwargs) + 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 detach_vnic_and_wait_for_state(self, vnic_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.detach_vnic` and waits for the :py:class:`~oci.core.models.VnicAttachment` acted upon + to enter the given state(s). + + :param str vnic_attachment_id: (required) + The OCID of the VNIC attachment. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VnicAttachment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.detach_vnic` + + :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_vnic_attachment(vnic_attachment_id) + operation_result = self.client.detach_vnic(vnic_attachment_id, **operation_kwargs) + 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 detach_volume_and_wait_for_state(self, volume_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.detach_volume` and waits for the :py:class:`~oci.core.models.VolumeAttachment` acted upon + to enter the given state(s). + + :param str volume_attachment_id: (required) + The OCID of the volume attachment. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.VolumeAttachment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.detach_volume` + + :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_volume_attachment(volume_attachment_id) + operation_result = self.client.detach_volume(volume_attachment_id, **operation_kwargs) + 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 instance_action_and_wait_for_state(self, instance_id, action, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.instance_action` and waits for the :py:class:`~oci.core.models.Instance` acted upon + to enter the given state(s). + + :param str instance_id: (required) + The OCID of the instance. + + :param str action: (required) + The action to perform on the instance. + + Allowed values are: "STOP", "START", "SOFTRESET", "RESET" + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Instance.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.instance_action` + + :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.instance_action(instance_id, action, **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_instance(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 launch_instance_and_wait_for_state(self, launch_instance_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.launch_instance` and waits for the :py:class:`~oci.core.models.Instance` acted upon + to enter the given state(s). + + :param LaunchInstanceDetails launch_instance_details: (required) + Instance details + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Instance.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.launch_instance` + + :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.launch_instance(launch_instance_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_instance(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 terminate_instance_and_wait_for_state(self, instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.terminate_instance` and waits for the :py:class:`~oci.core.models.Instance` acted upon + to enter the given state(s). + + :param str instance_id: (required) + The OCID of the instance. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Instance.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.terminate_instance` + + :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_instance(instance_id) + operation_result = self.client.terminate_instance(instance_id, **operation_kwargs) + 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 update_console_history_and_wait_for_state(self, instance_console_history_id, update_console_history_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.update_console_history` and waits for the :py:class:`~oci.core.models.ConsoleHistory` acted upon + to enter the given state(s). + + :param str instance_console_history_id: (required) + The OCID of the console history. + + :param UpdateConsoleHistoryDetails update_console_history_details: (required) + Update instance fields + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.ConsoleHistory.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.update_console_history` + + :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_console_history(instance_console_history_id, update_console_history_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_console_history(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_image_and_wait_for_state(self, image_id, update_image_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.update_image` and waits for the :py:class:`~oci.core.models.Image` acted upon + to enter the given state(s). + + :param str image_id: (required) + The OCID of the image. + + :param UpdateImageDetails update_image_details: (required) + Updates the image display name field. Avoid entering confidential information. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Image.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.update_image` + + :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_image(image_id, update_image_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_image(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_instance_and_wait_for_state(self, instance_id, update_instance_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.ComputeClient.update_instance` and waits for the :py:class:`~oci.core.models.Instance` acted upon + to enter the given state(s). + + :param str instance_id: (required) + The OCID of the instance. + + :param UpdateInstanceDetails update_instance_details: (required) + Update instance fields + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Instance.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.ComputeClient.update_instance` + + :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_instance(instance_id, update_instance_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_instance(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) diff --git a/src/oci/core/models/attach_boot_volume_details.py b/src/oci/core/models/attach_boot_volume_details.py index 7f25820697..0b4f8780d1 100644 --- a/src/oci/core/models/attach_boot_volume_details.py +++ b/src/oci/core/models/attach_boot_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/attach_i_scsi_volume_details.py b/src/oci/core/models/attach_i_scsi_volume_details.py index a52199bfe0..d9213ef94a 100644 --- a/src/oci/core/models/attach_i_scsi_volume_details.py +++ b/src/oci/core/models/attach_i_scsi_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .attach_volume_details import AttachVolumeDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/attach_paravirtualized_volume_details.py b/src/oci/core/models/attach_paravirtualized_volume_details.py index f58e81b34f..7a5fd46504 100644 --- a/src/oci/core/models/attach_paravirtualized_volume_details.py +++ b/src/oci/core/models/attach_paravirtualized_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .attach_volume_details import AttachVolumeDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/attach_vnic_details.py b/src/oci/core/models/attach_vnic_details.py index 8591458b68..e995f5d5d0 100644 --- a/src/oci/core/models/attach_vnic_details.py +++ b/src/oci/core/models/attach_vnic_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/attach_volume_details.py b/src/oci/core/models/attach_volume_details.py index b2d2f2f412..2f08782dc3 100644 --- a/src/oci/core/models/attach_volume_details.py +++ b/src/oci/core/models/attach_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/boot_volume.py b/src/oci/core/models/boot_volume.py index ba391b0323..f6887bafb7 100644 --- a/src/oci/core/models/boot_volume.py +++ b/src/oci/core/models/boot_volume.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/boot_volume_attachment.py b/src/oci/core/models/boot_volume_attachment.py index 16154bb9fd..4256221133 100644 --- a/src/oci/core/models/boot_volume_attachment.py +++ b/src/oci/core/models/boot_volume_attachment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.py b/src/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.py index 6b43168b66..c8edf9b046 100644 --- a/src/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.py +++ b/src/oci/core/models/bulk_add_virtual_circuit_public_prefixes_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.py b/src/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.py index 39990746c2..d65c0a9151 100644 --- a/src/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.py +++ b/src/oci/core/models/bulk_delete_virtual_circuit_public_prefixes_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/capture_console_history_details.py b/src/oci/core/models/capture_console_history_details.py index 9d2fb424b1..2f85971732 100644 --- a/src/oci/core/models/capture_console_history_details.py +++ b/src/oci/core/models/capture_console_history_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/connect_local_peering_gateways_details.py b/src/oci/core/models/connect_local_peering_gateways_details.py index c77fca9ed6..0babbcb1c1 100644 --- a/src/oci/core/models/connect_local_peering_gateways_details.py +++ b/src/oci/core/models/connect_local_peering_gateways_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/connect_remote_peering_connections_details.py b/src/oci/core/models/connect_remote_peering_connections_details.py index bbb05e0596..96ba735a76 100644 --- a/src/oci/core/models/connect_remote_peering_connections_details.py +++ b/src/oci/core/models/connect_remote_peering_connections_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/console_history.py b/src/oci/core/models/console_history.py index e714a9a434..ac318407b7 100644 --- a/src/oci/core/models/console_history.py +++ b/src/oci/core/models/console_history.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/cpe.py b/src/oci/core/models/cpe.py index 36277bd35b..7709ccf24d 100644 --- a/src/oci/core/models/cpe.py +++ b/src/oci/core/models/cpe.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_cpe_details.py b/src/oci/core/models/create_cpe_details.py index 089b406b64..54e0247889 100644 --- a/src/oci/core/models/create_cpe_details.py +++ b/src/oci/core/models/create_cpe_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_cross_connect_details.py b/src/oci/core/models/create_cross_connect_details.py index 453a9de0eb..48eff2bc42 100644 --- a/src/oci/core/models/create_cross_connect_details.py +++ b/src/oci/core/models/create_cross_connect_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_cross_connect_group_details.py b/src/oci/core/models/create_cross_connect_group_details.py index 966287073a..cf038422ba 100644 --- a/src/oci/core/models/create_cross_connect_group_details.py +++ b/src/oci/core/models/create_cross_connect_group_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_dhcp_details.py b/src/oci/core/models/create_dhcp_details.py index e859eadad0..9546550fef 100644 --- a/src/oci/core/models/create_dhcp_details.py +++ b/src/oci/core/models/create_dhcp_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_drg_attachment_details.py b/src/oci/core/models/create_drg_attachment_details.py index 867b41fc2c..50567915e8 100644 --- a/src/oci/core/models/create_drg_attachment_details.py +++ b/src/oci/core/models/create_drg_attachment_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_drg_details.py b/src/oci/core/models/create_drg_details.py index e268fbb82c..afab8ce086 100644 --- a/src/oci/core/models/create_drg_details.py +++ b/src/oci/core/models/create_drg_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_image_details.py b/src/oci/core/models/create_image_details.py index 08adf53dae..8680bc9934 100644 --- a/src/oci/core/models/create_image_details.py +++ b/src/oci/core/models/create_image_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_instance_console_connection_details.py b/src/oci/core/models/create_instance_console_connection_details.py index 8a1180ea0e..8ce2d4c1dc 100644 --- a/src/oci/core/models/create_instance_console_connection_details.py +++ b/src/oci/core/models/create_instance_console_connection_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_internet_gateway_details.py b/src/oci/core/models/create_internet_gateway_details.py index 4050e361f9..eaf470c4d8 100644 --- a/src/oci/core/models/create_internet_gateway_details.py +++ b/src/oci/core/models/create_internet_gateway_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs 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 d7fac358be..13aee26a65 100644 --- a/src/oci/core/models/create_ip_sec_connection_details.py +++ b/src/oci/core/models/create_ip_sec_connection_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_local_peering_gateway_details.py b/src/oci/core/models/create_local_peering_gateway_details.py index 57c42613be..4b93c1e2b0 100644 --- a/src/oci/core/models/create_local_peering_gateway_details.py +++ b/src/oci/core/models/create_local_peering_gateway_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_private_ip_details.py b/src/oci/core/models/create_private_ip_details.py index de1feb576b..282cb74b98 100644 --- a/src/oci/core/models/create_private_ip_details.py +++ b/src/oci/core/models/create_private_ip_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_public_ip_details.py b/src/oci/core/models/create_public_ip_details.py index 6bbd2c325f..e1f6f75a96 100644 --- a/src/oci/core/models/create_public_ip_details.py +++ b/src/oci/core/models/create_public_ip_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_remote_peering_connection_details.py b/src/oci/core/models/create_remote_peering_connection_details.py index 52796fb5ac..24b0f5b9a4 100644 --- a/src/oci/core/models/create_remote_peering_connection_details.py +++ b/src/oci/core/models/create_remote_peering_connection_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_route_table_details.py b/src/oci/core/models/create_route_table_details.py index 6c9c2e5edf..3b6e3428dd 100644 --- a/src/oci/core/models/create_route_table_details.py +++ b/src/oci/core/models/create_route_table_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_security_list_details.py b/src/oci/core/models/create_security_list_details.py index b187a13ac5..297de5de65 100644 --- a/src/oci/core/models/create_security_list_details.py +++ b/src/oci/core/models/create_security_list_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_subnet_details.py b/src/oci/core/models/create_subnet_details.py index 2715a0d1a2..92b47ce34e 100644 --- a/src/oci/core/models/create_subnet_details.py +++ b/src/oci/core/models/create_subnet_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_vcn_details.py b/src/oci/core/models/create_vcn_details.py index a87a60c7a2..1af9391c22 100644 --- a/src/oci/core/models/create_vcn_details.py +++ b/src/oci/core/models/create_vcn_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_virtual_circuit_details.py b/src/oci/core/models/create_virtual_circuit_details.py index fddc367ef2..ae0fa9d8ee 100644 --- a/src/oci/core/models/create_virtual_circuit_details.py +++ b/src/oci/core/models/create_virtual_circuit_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_virtual_circuit_public_prefix_details.py b/src/oci/core/models/create_virtual_circuit_public_prefix_details.py index 44e362210a..5407b005a2 100644 --- a/src/oci/core/models/create_virtual_circuit_public_prefix_details.py +++ b/src/oci/core/models/create_virtual_circuit_public_prefix_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_vnic_details.py b/src/oci/core/models/create_vnic_details.py index e272a38689..601a981d68 100644 --- a/src/oci/core/models/create_vnic_details.py +++ b/src/oci/core/models/create_vnic_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_volume_backup_details.py b/src/oci/core/models/create_volume_backup_details.py index d83ea2ac31..04e3e05c62 100644 --- a/src/oci/core/models/create_volume_backup_details.py +++ b/src/oci/core/models/create_volume_backup_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_volume_backup_policy_assignment_details.py b/src/oci/core/models/create_volume_backup_policy_assignment_details.py index 5f5c593d3b..0f59c7ef3d 100644 --- a/src/oci/core/models/create_volume_backup_policy_assignment_details.py +++ b/src/oci/core/models/create_volume_backup_policy_assignment_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/create_volume_details.py b/src/oci/core/models/create_volume_details.py index 73a4dc932e..db19e38e3f 100644 --- a/src/oci/core/models/create_volume_details.py +++ b/src/oci/core/models/create_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/cross_connect.py b/src/oci/core/models/cross_connect.py index 42d715d559..6e4bd1131a 100644 --- a/src/oci/core/models/cross_connect.py +++ b/src/oci/core/models/cross_connect.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/cross_connect_group.py b/src/oci/core/models/cross_connect_group.py index 29db9041ae..aa428f4489 100644 --- a/src/oci/core/models/cross_connect_group.py +++ b/src/oci/core/models/cross_connect_group.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/cross_connect_location.py b/src/oci/core/models/cross_connect_location.py index 4d8b443b8b..7ab041b9be 100644 --- a/src/oci/core/models/cross_connect_location.py +++ b/src/oci/core/models/cross_connect_location.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/cross_connect_mapping.py b/src/oci/core/models/cross_connect_mapping.py index 46318e5943..378c1e0340 100644 --- a/src/oci/core/models/cross_connect_mapping.py +++ b/src/oci/core/models/cross_connect_mapping.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/cross_connect_port_speed_shape.py b/src/oci/core/models/cross_connect_port_speed_shape.py index 32a96d3bff..e7b5eeb1d6 100644 --- a/src/oci/core/models/cross_connect_port_speed_shape.py +++ b/src/oci/core/models/cross_connect_port_speed_shape.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/cross_connect_status.py b/src/oci/core/models/cross_connect_status.py index 953e8b14a1..589787dbf6 100644 --- a/src/oci/core/models/cross_connect_status.py +++ b/src/oci/core/models/cross_connect_status.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/delete_virtual_circuit_public_prefix_details.py b/src/oci/core/models/delete_virtual_circuit_public_prefix_details.py index 74c5c1a8f9..551df3320b 100644 --- a/src/oci/core/models/delete_virtual_circuit_public_prefix_details.py +++ b/src/oci/core/models/delete_virtual_circuit_public_prefix_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/dhcp_dns_option.py b/src/oci/core/models/dhcp_dns_option.py index ed252dd05c..7d0b23ebc0 100644 --- a/src/oci/core/models/dhcp_dns_option.py +++ b/src/oci/core/models/dhcp_dns_option.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .dhcp_option import DhcpOption -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/dhcp_option.py b/src/oci/core/models/dhcp_option.py index a3835b4d3f..d4d934a5ae 100644 --- a/src/oci/core/models/dhcp_option.py +++ b/src/oci/core/models/dhcp_option.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/dhcp_options.py b/src/oci/core/models/dhcp_options.py index b225cb6d3d..058a5a09e1 100644 --- a/src/oci/core/models/dhcp_options.py +++ b/src/oci/core/models/dhcp_options.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/dhcp_search_domain_option.py b/src/oci/core/models/dhcp_search_domain_option.py index 5b96e641dc..11852e81d1 100644 --- a/src/oci/core/models/dhcp_search_domain_option.py +++ b/src/oci/core/models/dhcp_search_domain_option.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .dhcp_option import DhcpOption -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/drg.py b/src/oci/core/models/drg.py index f952c331ab..3e0da3a4c9 100644 --- a/src/oci/core/models/drg.py +++ b/src/oci/core/models/drg.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/drg_attachment.py b/src/oci/core/models/drg_attachment.py index c73c10d403..4b9db9d523 100644 --- a/src/oci/core/models/drg_attachment.py +++ b/src/oci/core/models/drg_attachment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/egress_security_rule.py b/src/oci/core/models/egress_security_rule.py index bbb871c65b..a4baeeb90b 100644 --- a/src/oci/core/models/egress_security_rule.py +++ b/src/oci/core/models/egress_security_rule.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/export_image_details.py b/src/oci/core/models/export_image_details.py index f167755cd4..298072cbf9 100644 --- a/src/oci/core/models/export_image_details.py +++ b/src/oci/core/models/export_image_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/export_image_via_object_storage_tuple_details.py b/src/oci/core/models/export_image_via_object_storage_tuple_details.py index a5f5bc30df..952eec80d6 100644 --- a/src/oci/core/models/export_image_via_object_storage_tuple_details.py +++ b/src/oci/core/models/export_image_via_object_storage_tuple_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .export_image_details import ExportImageDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/export_image_via_object_storage_uri_details.py b/src/oci/core/models/export_image_via_object_storage_uri_details.py index f639d06202..975dc69ad8 100644 --- a/src/oci/core/models/export_image_via_object_storage_uri_details.py +++ b/src/oci/core/models/export_image_via_object_storage_uri_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .export_image_details import ExportImageDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/fast_connect_provider_service.py b/src/oci/core/models/fast_connect_provider_service.py index ec1b72a7db..dd9810ec11 100644 --- a/src/oci/core/models/fast_connect_provider_service.py +++ b/src/oci/core/models/fast_connect_provider_service.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -314,7 +314,8 @@ def supported_virtual_circuit_types(self, supported_virtual_circuit_types): :type: list[str] """ allowed_values = ["PUBLIC", "PRIVATE"] - supported_virtual_circuit_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in supported_virtual_circuit_types] + if supported_virtual_circuit_types: + supported_virtual_circuit_types[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in supported_virtual_circuit_types] self._supported_virtual_circuit_types = supported_virtual_circuit_types @property diff --git a/src/oci/core/models/get_public_ip_by_ip_address_details.py b/src/oci/core/models/get_public_ip_by_ip_address_details.py index fe52ccfd3d..c690596348 100644 --- a/src/oci/core/models/get_public_ip_by_ip_address_details.py +++ b/src/oci/core/models/get_public_ip_by_ip_address_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/get_public_ip_by_private_ip_id_details.py b/src/oci/core/models/get_public_ip_by_private_ip_id_details.py index e18463193e..77a2752ca6 100644 --- a/src/oci/core/models/get_public_ip_by_private_ip_id_details.py +++ b/src/oci/core/models/get_public_ip_by_private_ip_id_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/i_scsi_volume_attachment.py b/src/oci/core/models/i_scsi_volume_attachment.py index 38e160250b..43e161d3a5 100644 --- a/src/oci/core/models/i_scsi_volume_attachment.py +++ b/src/oci/core/models/i_scsi_volume_attachment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .volume_attachment import VolumeAttachment -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/icmp_options.py b/src/oci/core/models/icmp_options.py index 18049381b1..1a3013a371 100644 --- a/src/oci/core/models/icmp_options.py +++ b/src/oci/core/models/icmp_options.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/image.py b/src/oci/core/models/image.py index 25b07141ec..8214c7f101 100644 --- a/src/oci/core/models/image.py +++ b/src/oci/core/models/image.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/image_source_details.py b/src/oci/core/models/image_source_details.py index d03da3e32d..6c64bbc0fb 100644 --- a/src/oci/core/models/image_source_details.py +++ b/src/oci/core/models/image_source_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/image_source_via_object_storage_tuple_details.py b/src/oci/core/models/image_source_via_object_storage_tuple_details.py index 86aa489743..21d660be14 100644 --- a/src/oci/core/models/image_source_via_object_storage_tuple_details.py +++ b/src/oci/core/models/image_source_via_object_storage_tuple_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .image_source_details import ImageSourceDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/image_source_via_object_storage_uri_details.py b/src/oci/core/models/image_source_via_object_storage_uri_details.py index 13825ac463..990f05ab65 100644 --- a/src/oci/core/models/image_source_via_object_storage_uri_details.py +++ b/src/oci/core/models/image_source_via_object_storage_uri_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .image_source_details import ImageSourceDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/ingress_security_rule.py b/src/oci/core/models/ingress_security_rule.py index 79ecab4fe7..82eab251e2 100644 --- a/src/oci/core/models/ingress_security_rule.py +++ b/src/oci/core/models/ingress_security_rule.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/instance.py b/src/oci/core/models/instance.py index 637bfed5da..b8df516e32 100644 --- a/src/oci/core/models/instance.py +++ b/src/oci/core/models/instance.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/instance_console_connection.py b/src/oci/core/models/instance_console_connection.py index dc73d2ef7b..31fbf57247 100644 --- a/src/oci/core/models/instance_console_connection.py +++ b/src/oci/core/models/instance_console_connection.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/instance_credentials.py b/src/oci/core/models/instance_credentials.py index 9ffb1f7fff..8cd3cd888c 100644 --- a/src/oci/core/models/instance_credentials.py +++ b/src/oci/core/models/instance_credentials.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/instance_source_details.py b/src/oci/core/models/instance_source_details.py index d837e22ea1..28ad1bc5ea 100644 --- a/src/oci/core/models/instance_source_details.py +++ b/src/oci/core/models/instance_source_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/instance_source_via_boot_volume_details.py b/src/oci/core/models/instance_source_via_boot_volume_details.py index 606932851f..f0e4118f96 100644 --- a/src/oci/core/models/instance_source_via_boot_volume_details.py +++ b/src/oci/core/models/instance_source_via_boot_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .instance_source_details import InstanceSourceDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/instance_source_via_image_details.py b/src/oci/core/models/instance_source_via_image_details.py index 857b3f8f62..400d5a84e0 100644 --- a/src/oci/core/models/instance_source_via_image_details.py +++ b/src/oci/core/models/instance_source_via_image_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .instance_source_details import InstanceSourceDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/internet_gateway.py b/src/oci/core/models/internet_gateway.py index 5610cdda4e..336223113a 100644 --- a/src/oci/core/models/internet_gateway.py +++ b/src/oci/core/models/internet_gateway.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/ip_sec_connection.py b/src/oci/core/models/ip_sec_connection.py index 28e658f357..c639b87335 100644 --- a/src/oci/core/models/ip_sec_connection.py +++ b/src/oci/core/models/ip_sec_connection.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/ip_sec_connection_device_config.py b/src/oci/core/models/ip_sec_connection_device_config.py index c92ea9951f..0e64869be1 100644 --- a/src/oci/core/models/ip_sec_connection_device_config.py +++ b/src/oci/core/models/ip_sec_connection_device_config.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/ip_sec_connection_device_status.py b/src/oci/core/models/ip_sec_connection_device_status.py index 2643505d71..40958ad5b7 100644 --- a/src/oci/core/models/ip_sec_connection_device_status.py +++ b/src/oci/core/models/ip_sec_connection_device_status.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/launch_instance_details.py b/src/oci/core/models/launch_instance_details.py index f32efbd98d..06cf1e9a5a 100644 --- a/src/oci/core/models/launch_instance_details.py +++ b/src/oci/core/models/launch_instance_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/launch_options.py b/src/oci/core/models/launch_options.py index 628f9878df..87497a5048 100644 --- a/src/oci/core/models/launch_options.py +++ b/src/oci/core/models/launch_options.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/letter_of_authority.py b/src/oci/core/models/letter_of_authority.py index 596576bcc2..fbd3c23e98 100644 --- a/src/oci/core/models/letter_of_authority.py +++ b/src/oci/core/models/letter_of_authority.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/local_peering_gateway.py b/src/oci/core/models/local_peering_gateway.py index 6de87579ef..e81c18efcd 100644 --- a/src/oci/core/models/local_peering_gateway.py +++ b/src/oci/core/models/local_peering_gateway.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/paravirtualized_volume_attachment.py b/src/oci/core/models/paravirtualized_volume_attachment.py index 8f20cfe4bb..952eab9a9f 100644 --- a/src/oci/core/models/paravirtualized_volume_attachment.py +++ b/src/oci/core/models/paravirtualized_volume_attachment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .volume_attachment import VolumeAttachment -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/peer_region_for_remote_peering.py b/src/oci/core/models/peer_region_for_remote_peering.py index af22236ba0..cf53112e36 100644 --- a/src/oci/core/models/peer_region_for_remote_peering.py +++ b/src/oci/core/models/peer_region_for_remote_peering.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/port_range.py b/src/oci/core/models/port_range.py index 1cacb3dd0c..11bd028900 100644 --- a/src/oci/core/models/port_range.py +++ b/src/oci/core/models/port_range.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/private_ip.py b/src/oci/core/models/private_ip.py index e16f5902e7..da31a2d41c 100644 --- a/src/oci/core/models/private_ip.py +++ b/src/oci/core/models/private_ip.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/public_ip.py b/src/oci/core/models/public_ip.py index 4750c01d99..0ca89d22b2 100644 --- a/src/oci/core/models/public_ip.py +++ b/src/oci/core/models/public_ip.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/remote_peering_connection.py b/src/oci/core/models/remote_peering_connection.py index d5408e5702..6345e2d343 100644 --- a/src/oci/core/models/remote_peering_connection.py +++ b/src/oci/core/models/remote_peering_connection.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/route_rule.py b/src/oci/core/models/route_rule.py index 0d8ae11327..2b9e4b59f7 100644 --- a/src/oci/core/models/route_rule.py +++ b/src/oci/core/models/route_rule.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/route_table.py b/src/oci/core/models/route_table.py index d176827800..5115df2af2 100644 --- a/src/oci/core/models/route_table.py +++ b/src/oci/core/models/route_table.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/security_list.py b/src/oci/core/models/security_list.py index abca1356ab..dd6d2bbff9 100644 --- a/src/oci/core/models/security_list.py +++ b/src/oci/core/models/security_list.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/shape.py b/src/oci/core/models/shape.py index cfd9fd4e60..8ee37d7258 100644 --- a/src/oci/core/models/shape.py +++ b/src/oci/core/models/shape.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/subnet.py b/src/oci/core/models/subnet.py index 5acf6a85f8..b9399a8edf 100644 --- a/src/oci/core/models/subnet.py +++ b/src/oci/core/models/subnet.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/tcp_options.py b/src/oci/core/models/tcp_options.py index 064fc683cb..a9da17d471 100644 --- a/src/oci/core/models/tcp_options.py +++ b/src/oci/core/models/tcp_options.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/tunnel_config.py b/src/oci/core/models/tunnel_config.py index 9375f1a403..97da13dce6 100644 --- a/src/oci/core/models/tunnel_config.py +++ b/src/oci/core/models/tunnel_config.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/tunnel_status.py b/src/oci/core/models/tunnel_status.py index 3ecddbcb6b..894a275d0d 100644 --- a/src/oci/core/models/tunnel_status.py +++ b/src/oci/core/models/tunnel_status.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/udp_options.py b/src/oci/core/models/udp_options.py index 3ce680c8a7..deb90495b6 100644 --- a/src/oci/core/models/udp_options.py +++ b/src/oci/core/models/udp_options.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_boot_volume_details.py b/src/oci/core/models/update_boot_volume_details.py index 1c6a562ae6..d57c0df5c2 100644 --- a/src/oci/core/models/update_boot_volume_details.py +++ b/src/oci/core/models/update_boot_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_console_history_details.py b/src/oci/core/models/update_console_history_details.py index 2245655f2e..43d7b7edd0 100644 --- a/src/oci/core/models/update_console_history_details.py +++ b/src/oci/core/models/update_console_history_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_cpe_details.py b/src/oci/core/models/update_cpe_details.py index 7f34996a01..4a8ad74ae2 100644 --- a/src/oci/core/models/update_cpe_details.py +++ b/src/oci/core/models/update_cpe_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_cross_connect_details.py b/src/oci/core/models/update_cross_connect_details.py index 0b79b61af6..84ec40109f 100644 --- a/src/oci/core/models/update_cross_connect_details.py +++ b/src/oci/core/models/update_cross_connect_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_cross_connect_group_details.py b/src/oci/core/models/update_cross_connect_group_details.py index ddde576bb6..35a2d74272 100644 --- a/src/oci/core/models/update_cross_connect_group_details.py +++ b/src/oci/core/models/update_cross_connect_group_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_dhcp_details.py b/src/oci/core/models/update_dhcp_details.py index 18b5f0862b..c87e613f1c 100644 --- a/src/oci/core/models/update_dhcp_details.py +++ b/src/oci/core/models/update_dhcp_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_drg_attachment_details.py b/src/oci/core/models/update_drg_attachment_details.py index 93561c7e46..b1abdf719d 100644 --- a/src/oci/core/models/update_drg_attachment_details.py +++ b/src/oci/core/models/update_drg_attachment_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_drg_details.py b/src/oci/core/models/update_drg_details.py index eeed80e9ef..d6bffd48a5 100644 --- a/src/oci/core/models/update_drg_details.py +++ b/src/oci/core/models/update_drg_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_image_details.py b/src/oci/core/models/update_image_details.py index eab9066bb4..0e58e41dcf 100644 --- a/src/oci/core/models/update_image_details.py +++ b/src/oci/core/models/update_image_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_instance_details.py b/src/oci/core/models/update_instance_details.py index 40e6285dea..5c22000ce5 100644 --- a/src/oci/core/models/update_instance_details.py +++ b/src/oci/core/models/update_instance_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_internet_gateway_details.py b/src/oci/core/models/update_internet_gateway_details.py index e6e30cba4f..97487807e0 100644 --- a/src/oci/core/models/update_internet_gateway_details.py +++ b/src/oci/core/models/update_internet_gateway_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs 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 48d1c76550..b5a8730544 100644 --- a/src/oci/core/models/update_ip_sec_connection_details.py +++ b/src/oci/core/models/update_ip_sec_connection_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_local_peering_gateway_details.py b/src/oci/core/models/update_local_peering_gateway_details.py index 9f8b7bbb55..e7fd74d6b2 100644 --- a/src/oci/core/models/update_local_peering_gateway_details.py +++ b/src/oci/core/models/update_local_peering_gateway_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_private_ip_details.py b/src/oci/core/models/update_private_ip_details.py index 72fb932873..900516d5af 100644 --- a/src/oci/core/models/update_private_ip_details.py +++ b/src/oci/core/models/update_private_ip_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_public_ip_details.py b/src/oci/core/models/update_public_ip_details.py index f0f757e952..7e715c181d 100644 --- a/src/oci/core/models/update_public_ip_details.py +++ b/src/oci/core/models/update_public_ip_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_remote_peering_connection_details.py b/src/oci/core/models/update_remote_peering_connection_details.py index 026d269039..c770560a2f 100644 --- a/src/oci/core/models/update_remote_peering_connection_details.py +++ b/src/oci/core/models/update_remote_peering_connection_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_route_table_details.py b/src/oci/core/models/update_route_table_details.py index 760610827d..3a2d181550 100644 --- a/src/oci/core/models/update_route_table_details.py +++ b/src/oci/core/models/update_route_table_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_security_list_details.py b/src/oci/core/models/update_security_list_details.py index 71cb00515e..851a31602b 100644 --- a/src/oci/core/models/update_security_list_details.py +++ b/src/oci/core/models/update_security_list_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_subnet_details.py b/src/oci/core/models/update_subnet_details.py index f1c1cf8106..379d8aac21 100644 --- a/src/oci/core/models/update_subnet_details.py +++ b/src/oci/core/models/update_subnet_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_vcn_details.py b/src/oci/core/models/update_vcn_details.py index 32d8c3438c..0eea9756fa 100644 --- a/src/oci/core/models/update_vcn_details.py +++ b/src/oci/core/models/update_vcn_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_virtual_circuit_details.py b/src/oci/core/models/update_virtual_circuit_details.py index b2603317ae..78e86ceeed 100644 --- a/src/oci/core/models/update_virtual_circuit_details.py +++ b/src/oci/core/models/update_virtual_circuit_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_vnic_details.py b/src/oci/core/models/update_vnic_details.py index e1f5d4111c..bb02cf4453 100644 --- a/src/oci/core/models/update_vnic_details.py +++ b/src/oci/core/models/update_vnic_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_volume_backup_details.py b/src/oci/core/models/update_volume_backup_details.py index d6902f517f..e7ed5cbedc 100644 --- a/src/oci/core/models/update_volume_backup_details.py +++ b/src/oci/core/models/update_volume_backup_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/update_volume_details.py b/src/oci/core/models/update_volume_details.py index a0a0c95fd3..325b6413ad 100644 --- a/src/oci/core/models/update_volume_details.py +++ b/src/oci/core/models/update_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/vcn.py b/src/oci/core/models/vcn.py index ba2438d95c..7d6bff667b 100644 --- a/src/oci/core/models/vcn.py +++ b/src/oci/core/models/vcn.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/virtual_circuit.py b/src/oci/core/models/virtual_circuit.py index 0035eccd7a..02ff11fc67 100644 --- a/src/oci/core/models/virtual_circuit.py +++ b/src/oci/core/models/virtual_circuit.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/virtual_circuit_bandwidth_shape.py b/src/oci/core/models/virtual_circuit_bandwidth_shape.py index b0d0ccddb4..99d2604c22 100644 --- a/src/oci/core/models/virtual_circuit_bandwidth_shape.py +++ b/src/oci/core/models/virtual_circuit_bandwidth_shape.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/virtual_circuit_public_prefix.py b/src/oci/core/models/virtual_circuit_public_prefix.py index ee47039da2..aedb627f6b 100644 --- a/src/oci/core/models/virtual_circuit_public_prefix.py +++ b/src/oci/core/models/virtual_circuit_public_prefix.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/vnic.py b/src/oci/core/models/vnic.py index 8e9fa0dac5..deb66f9a53 100644 --- a/src/oci/core/models/vnic.py +++ b/src/oci/core/models/vnic.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/vnic_attachment.py b/src/oci/core/models/vnic_attachment.py index 387210b269..10bb9b8429 100644 --- a/src/oci/core/models/vnic_attachment.py +++ b/src/oci/core/models/vnic_attachment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume.py b/src/oci/core/models/volume.py index 86332c218b..12a86adbf5 100644 --- a/src/oci/core/models/volume.py +++ b/src/oci/core/models/volume.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_attachment.py b/src/oci/core/models/volume_attachment.py index 976c21d4d4..f40199b314 100644 --- a/src/oci/core/models/volume_attachment.py +++ b/src/oci/core/models/volume_attachment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_backup.py b/src/oci/core/models/volume_backup.py index 6e838decda..ea9d65e6fd 100644 --- a/src/oci/core/models/volume_backup.py +++ b/src/oci/core/models/volume_backup.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_backup_policy.py b/src/oci/core/models/volume_backup_policy.py index f8e02d6746..668d32faa1 100644 --- a/src/oci/core/models/volume_backup_policy.py +++ b/src/oci/core/models/volume_backup_policy.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_backup_policy_assignment.py b/src/oci/core/models/volume_backup_policy_assignment.py index 591a7f076a..e95a0f4946 100644 --- a/src/oci/core/models/volume_backup_policy_assignment.py +++ b/src/oci/core/models/volume_backup_policy_assignment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_backup_schedule.py b/src/oci/core/models/volume_backup_schedule.py index 179c67aacb..b5d358d6e4 100644 --- a/src/oci/core/models/volume_backup_schedule.py +++ b/src/oci/core/models/volume_backup_schedule.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_source_details.py b/src/oci/core/models/volume_source_details.py index 0c6db5f99e..2f321ab468 100644 --- a/src/oci/core/models/volume_source_details.py +++ b/src/oci/core/models/volume_source_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_source_from_volume_backup_details.py b/src/oci/core/models/volume_source_from_volume_backup_details.py index cc39811ddf..a72270d0cc 100644 --- a/src/oci/core/models/volume_source_from_volume_backup_details.py +++ b/src/oci/core/models/volume_source_from_volume_backup_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .volume_source_details import VolumeSourceDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/models/volume_source_from_volume_details.py b/src/oci/core/models/volume_source_from_volume_details.py index fc1d1e3517..1848cdb2dc 100644 --- a/src/oci/core/models/volume_source_from_volume_details.py +++ b/src/oci/core/models/volume_source_from_volume_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .volume_source_details import VolumeSourceDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/core/virtual_network_client.py b/src/oci/core/virtual_network_client.py index c039f4538e..addcfc8ea7 100644 --- a/src/oci/core/virtual_network_client.py +++ b/src/oci/core/virtual_network_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import core_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class VirtualNetworkClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/core/virtual_network_client_composite_operations.py b/src/oci/core/virtual_network_client_composite_operations.py new file mode 100644 index 0000000000..c513a80863 --- /dev/null +++ b/src/oci/core/virtual_network_client_composite_operations.py @@ -0,0 +1,1833 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class VirtualNetworkClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.core.VirtualNetworkClient` 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 VirtualNetworkClientCompositeOperations object + + :param VirtualNetworkClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_cross_connect_and_wait_for_state(self, create_cross_connect_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_cross_connect` and waits for the :py:class:`~oci.core.models.CrossConnect` acted upon + to enter the given state(s). + + :param CreateCrossConnectDetails create_cross_connect_details: (required) + Details to create a CrossConnect + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_cross_connect` + + :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_cross_connect(create_cross_connect_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_cross_connect(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_cross_connect_group_and_wait_for_state(self, create_cross_connect_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_cross_connect_group` and waits for the :py:class:`~oci.core.models.CrossConnectGroup` acted upon + to enter the given state(s). + + :param CreateCrossConnectGroupDetails create_cross_connect_group_details: (required) + Details to create a CrossConnectGroup + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_cross_connect_group` + + :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_cross_connect_group(create_cross_connect_group_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_cross_connect_group(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_dhcp_options_and_wait_for_state(self, create_dhcp_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_dhcp_options` and waits for the :py:class:`~oci.core.models.DhcpOptions` acted upon + to enter the given state(s). + + :param CreateDhcpDetails create_dhcp_details: (required) + Request object for creating a new set of DHCP options. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_dhcp_options` + + :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_dhcp_options(create_dhcp_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_dhcp_options(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_and_wait_for_state(self, create_drg_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_drg` and waits for the :py:class:`~oci.core.models.Drg` acted upon + to enter the given state(s). + + :param CreateDrgDetails create_drg_details: (required) + Details for creating a DRG. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_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.create_drg(create_drg_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(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_attachment_and_wait_for_state(self, create_drg_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_drg_attachment` and waits for the :py:class:`~oci.core.models.DrgAttachment` acted upon + to enter the given state(s). + + :param CreateDrgAttachmentDetails create_drg_attachment_details: (required) + Details for creating a `DrgAttachment`. + + :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.create_drg_attachment` + + :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_attachment(create_drg_attachment_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_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 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 + to enter the given state(s). + + :param CreateInternetGatewayDetails create_internet_gateway_details: (required) + Details for creating a new Internet Gateway. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_internet_gateway` + + :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_internet_gateway(create_internet_gateway_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_internet_gateway(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_ip_sec_connection_and_wait_for_state(self, create_ip_sec_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_ip_sec_connection` and waits for the :py:class:`~oci.core.models.IPSecConnection` acted upon + to enter the given state(s). + + :param CreateIPSecConnectionDetails create_ip_sec_connection_details: (required) + Details for creating an `IPSecConnection`. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_ip_sec_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_ip_sec_connection(create_ip_sec_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.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_ip_sec_connection(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_local_peering_gateway_and_wait_for_state(self, create_local_peering_gateway_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_local_peering_gateway` and waits for the :py:class:`~oci.core.models.LocalPeeringGateway` acted upon + to enter the given state(s). + + :param CreateLocalPeeringGatewayDetails create_local_peering_gateway_details: (required) + Details for creating a new local peering gateway. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_local_peering_gateway` + + :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_local_peering_gateway(create_local_peering_gateway_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_local_peering_gateway(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_public_ip_and_wait_for_state(self, create_public_ip_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_public_ip` and waits for the :py:class:`~oci.core.models.PublicIp` acted upon + to enter the given state(s). + + :param CreatePublicIpDetails create_public_ip_details: (required) + Create public IP details. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_public_ip` + + :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_public_ip(create_public_ip_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_public_ip(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_remote_peering_connection_and_wait_for_state(self, create_remote_peering_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_remote_peering_connection` and waits for the :py:class:`~oci.core.models.RemotePeeringConnection` acted upon + to enter the given state(s). + + :param CreateRemotePeeringConnectionDetails create_remote_peering_connection_details: (required) + Request to create peering connection to remote region + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_remote_peering_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_remote_peering_connection(create_remote_peering_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.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_remote_peering_connection(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_route_table_and_wait_for_state(self, create_route_table_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_route_table` and waits for the :py:class:`~oci.core.models.RouteTable` acted upon + to enter the given state(s). + + :param CreateRouteTableDetails create_route_table_details: (required) + Details for creating a new 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.RouteTable.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_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_route_table(create_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_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_security_list_and_wait_for_state(self, create_security_list_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_security_list` and waits for the :py:class:`~oci.core.models.SecurityList` acted upon + to enter the given state(s). + + :param CreateSecurityListDetails create_security_list_details: (required) + Details regarding the security list to create. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_security_list` + + :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_security_list(create_security_list_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_security_list(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_subnet_and_wait_for_state(self, create_subnet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_subnet` and waits for the :py:class:`~oci.core.models.Subnet` acted upon + to enter the given state(s). + + :param CreateSubnetDetails create_subnet_details: (required) + Details for creating a subnet. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_subnet` + + :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_subnet(create_subnet_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_subnet(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_vcn_and_wait_for_state(self, create_vcn_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_vcn` and waits for the :py:class:`~oci.core.models.Vcn` acted upon + to enter the given state(s). + + :param CreateVcnDetails create_vcn_details: (required) + Details for creating a new VCN. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Vcn.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_vcn` + + :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_vcn(create_vcn_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_vcn(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_virtual_circuit_and_wait_for_state(self, create_virtual_circuit_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.create_virtual_circuit` and waits for the :py:class:`~oci.core.models.VirtualCircuit` acted upon + to enter the given state(s). + + :param CreateVirtualCircuitDetails create_virtual_circuit_details: (required) + Details to create a VirtualCircuit. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.create_virtual_circuit` + + :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_virtual_circuit(create_virtual_circuit_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_virtual_circuit(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 delete_cross_connect_and_wait_for_state(self, cross_connect_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_cross_connect` and waits for the :py:class:`~oci.core.models.CrossConnect` acted upon + to enter the given state(s). + + :param str cross_connect_id: (required) + The OCID of the cross-connect. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_cross_connect` + + :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_cross_connect(cross_connect_id) + operation_result = self.client.delete_cross_connect(cross_connect_id, **operation_kwargs) + 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_cross_connect_group_and_wait_for_state(self, cross_connect_group_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_cross_connect_group` and waits for the :py:class:`~oci.core.models.CrossConnectGroup` acted upon + to enter the given state(s). + + :param str cross_connect_group_id: (required) + The OCID of the cross-connect group. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_cross_connect_group` + + :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_cross_connect_group(cross_connect_group_id) + operation_result = self.client.delete_cross_connect_group(cross_connect_group_id, **operation_kwargs) + 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_dhcp_options_and_wait_for_state(self, dhcp_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_dhcp_options` and waits for the :py:class:`~oci.core.models.DhcpOptions` acted upon + to enter the given state(s). + + :param str dhcp_id: (required) + The OCID for the set of DHCP options. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_dhcp_options` + + :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_dhcp_options(dhcp_id) + operation_result = self.client.delete_dhcp_options(dhcp_id, **operation_kwargs) + 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_and_wait_for_state(self, drg_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_drg` and waits for the :py:class:`~oci.core.models.Drg` acted upon + to enter the given state(s). + + :param str drg_id: (required) + The OCID of the DRG. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_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 + """ + initial_get_result = self.client.get_drg(drg_id) + operation_result = self.client.delete_drg(drg_id, **operation_kwargs) + 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_attachment_and_wait_for_state(self, drg_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_drg_attachment` 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. + + :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.delete_drg_attachment` + + :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_attachment(drg_attachment_id) + operation_result = self.client.delete_drg_attachment(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] + + 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. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_internet_gateway` + + :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_internet_gateway(ig_id) + operation_result = self.client.delete_internet_gateway(ig_id, **operation_kwargs) + 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_ip_sec_connection_and_wait_for_state(self, ipsc_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_ip_sec_connection` and waits for the :py:class:`~oci.core.models.IPSecConnection` acted upon + to enter the given state(s). + + :param str ipsc_id: (required) + The OCID of the IPSec connection. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_ip_sec_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 + """ + initial_get_result = self.client.get_ip_sec_connection(ipsc_id) + operation_result = self.client.delete_ip_sec_connection(ipsc_id, **operation_kwargs) + 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_local_peering_gateway_and_wait_for_state(self, local_peering_gateway_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_local_peering_gateway` and waits for the :py:class:`~oci.core.models.LocalPeeringGateway` acted upon + to enter the given state(s). + + :param str local_peering_gateway_id: (required) + The OCID of the local peering gateway. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_local_peering_gateway` + + :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_local_peering_gateway(local_peering_gateway_id) + operation_result = self.client.delete_local_peering_gateway(local_peering_gateway_id, **operation_kwargs) + 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_public_ip_and_wait_for_state(self, public_ip_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_public_ip` and waits for the :py:class:`~oci.core.models.PublicIp` acted upon + to enter the given state(s). + + :param str public_ip_id: (required) + The OCID of the public IP. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_public_ip` + + :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_public_ip(public_ip_id) + operation_result = self.client.delete_public_ip(public_ip_id, **operation_kwargs) + 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_remote_peering_connection_and_wait_for_state(self, remote_peering_connection_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_remote_peering_connection` and waits for the :py:class:`~oci.core.models.RemotePeeringConnection` acted upon + to enter the given state(s). + + :param str remote_peering_connection_id: (required) + The OCID of the remote peering connection (RPC). + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_remote_peering_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 + """ + initial_get_result = self.client.get_remote_peering_connection(remote_peering_connection_id) + operation_result = self.client.delete_remote_peering_connection(remote_peering_connection_id, **operation_kwargs) + 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_route_table_and_wait_for_state(self, rt_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_route_table` and waits for the :py:class:`~oci.core.models.RouteTable` acted upon + to enter the given state(s). + + :param str rt_id: (required) + The OCID of the 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.RouteTable.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_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_route_table(rt_id) + operation_result = self.client.delete_route_table(rt_id, **operation_kwargs) + 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_security_list_and_wait_for_state(self, security_list_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_security_list` and waits for the :py:class:`~oci.core.models.SecurityList` acted upon + to enter the given state(s). + + :param str security_list_id: (required) + The OCID of the security list. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_security_list` + + :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_security_list(security_list_id) + operation_result = self.client.delete_security_list(security_list_id, **operation_kwargs) + 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_subnet_and_wait_for_state(self, subnet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_subnet` and waits for the :py:class:`~oci.core.models.Subnet` acted upon + to enter the given state(s). + + :param str subnet_id: (required) + The OCID of the subnet. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_subnet` + + :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_subnet(subnet_id) + operation_result = self.client.delete_subnet(subnet_id, **operation_kwargs) + 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_vcn_and_wait_for_state(self, vcn_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_vcn` and waits for the :py:class:`~oci.core.models.Vcn` acted upon + to enter the given state(s). + + :param str vcn_id: (required) + The OCID of the VCN. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Vcn.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_vcn` + + :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_vcn(vcn_id) + operation_result = self.client.delete_vcn(vcn_id, **operation_kwargs) + 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_virtual_circuit_and_wait_for_state(self, virtual_circuit_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.delete_virtual_circuit` and waits for the :py:class:`~oci.core.models.VirtualCircuit` acted upon + to enter the given state(s). + + :param str virtual_circuit_id: (required) + The OCID of the virtual circuit. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.delete_virtual_circuit` + + :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_virtual_circuit(virtual_circuit_id) + operation_result = self.client.delete_virtual_circuit(virtual_circuit_id, **operation_kwargs) + 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 update_cross_connect_and_wait_for_state(self, cross_connect_id, update_cross_connect_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_cross_connect` and waits for the :py:class:`~oci.core.models.CrossConnect` acted upon + to enter the given state(s). + + :param str cross_connect_id: (required) + The OCID of the cross-connect. + + :param UpdateCrossConnectDetails update_cross_connect_details: (required) + Update CrossConnect fields. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_cross_connect` + + :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_cross_connect(cross_connect_id, update_cross_connect_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_cross_connect(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_cross_connect_group_and_wait_for_state(self, cross_connect_group_id, update_cross_connect_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_cross_connect_group` and waits for the :py:class:`~oci.core.models.CrossConnectGroup` acted upon + to enter the given state(s). + + :param str cross_connect_group_id: (required) + The OCID of the cross-connect group. + + :param UpdateCrossConnectGroupDetails update_cross_connect_group_details: (required) + Update CrossConnectGroup fields + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_cross_connect_group` + + :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_cross_connect_group(cross_connect_group_id, update_cross_connect_group_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_cross_connect_group(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_dhcp_options_and_wait_for_state(self, dhcp_id, update_dhcp_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_dhcp_options` and waits for the :py:class:`~oci.core.models.DhcpOptions` acted upon + to enter the given state(s). + + :param str dhcp_id: (required) + The OCID for the set of DHCP options. + + :param UpdateDhcpDetails update_dhcp_details: (required) + Request object for updating a set of DHCP options. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_dhcp_options` + + :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_dhcp_options(dhcp_id, update_dhcp_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_dhcp_options(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_and_wait_for_state(self, drg_id, update_drg_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_drg` and waits for the :py:class:`~oci.core.models.Drg` acted upon + to enter the given state(s). + + :param str drg_id: (required) + The OCID of the DRG. + + :param UpdateDrgDetails update_drg_details: (required) + Details object for updating a DRG. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_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.update_drg(drg_id, update_drg_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(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_attachment_and_wait_for_state(self, drg_attachment_id, update_drg_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_drg_attachment` 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. + + :param UpdateDrgAttachmentDetails update_drg_attachment_details: (required) + Details object for updating a `DrgAttachment`. + + :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.update_drg_attachment` + + :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_attachment(drg_attachment_id, update_drg_attachment_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_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 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. + + :param UpdateInternetGatewayDetails update_internet_gateway_details: (required) + Details for updating the Internet Gateway. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_internet_gateway` + + :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_internet_gateway(ig_id, update_internet_gateway_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_internet_gateway(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_ip_sec_connection_and_wait_for_state(self, ipsc_id, update_ip_sec_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_ip_sec_connection` and waits for the :py:class:`~oci.core.models.IPSecConnection` acted upon + to enter the given state(s). + + :param str ipsc_id: (required) + The OCID of the IPSec connection. + + :param UpdateIPSecConnectionDetails update_ip_sec_connection_details: (required) + Details object for updating a IPSec connection. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_ip_sec_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_ip_sec_connection(ipsc_id, update_ip_sec_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.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_ip_sec_connection(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_local_peering_gateway_and_wait_for_state(self, local_peering_gateway_id, update_local_peering_gateway_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_local_peering_gateway` and waits for the :py:class:`~oci.core.models.LocalPeeringGateway` acted upon + to enter the given state(s). + + :param str local_peering_gateway_id: (required) + The OCID of the local peering gateway. + + :param UpdateLocalPeeringGatewayDetails update_local_peering_gateway_details: (required) + Details object for updating a local peering gateway. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_local_peering_gateway` + + :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_local_peering_gateway(local_peering_gateway_id, update_local_peering_gateway_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_local_peering_gateway(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_public_ip_and_wait_for_state(self, public_ip_id, update_public_ip_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_public_ip` and waits for the :py:class:`~oci.core.models.PublicIp` acted upon + to enter the given state(s). + + :param str public_ip_id: (required) + The OCID of the public IP. + + :param UpdatePublicIpDetails update_public_ip_details: (required) + Public IP details. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_public_ip` + + :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_public_ip(public_ip_id, update_public_ip_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_public_ip(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_remote_peering_connection_and_wait_for_state(self, remote_peering_connection_id, update_remote_peering_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_remote_peering_connection` and waits for the :py:class:`~oci.core.models.RemotePeeringConnection` acted upon + to enter the given state(s). + + :param str remote_peering_connection_id: (required) + The OCID of the remote peering connection (RPC). + + :param UpdateRemotePeeringConnectionDetails update_remote_peering_connection_details: (required) + Request to the update the peering connection to remote region + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_remote_peering_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_remote_peering_connection(remote_peering_connection_id, update_remote_peering_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.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_remote_peering_connection(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_route_table_and_wait_for_state(self, rt_id, update_route_table_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_route_table` and waits for the :py:class:`~oci.core.models.RouteTable` acted upon + to enter the given state(s). + + :param str rt_id: (required) + The OCID of the route table. + + :param UpdateRouteTableDetails update_route_table_details: (required) + Details object for updating a 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.RouteTable.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_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_route_table(rt_id, update_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_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_security_list_and_wait_for_state(self, security_list_id, update_security_list_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_security_list` and waits for the :py:class:`~oci.core.models.SecurityList` acted upon + to enter the given state(s). + + :param str security_list_id: (required) + The OCID of the security list. + + :param UpdateSecurityListDetails update_security_list_details: (required) + Updated details for the security list. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_security_list` + + :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_security_list(security_list_id, update_security_list_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_security_list(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_subnet_and_wait_for_state(self, subnet_id, update_subnet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_subnet` and waits for the :py:class:`~oci.core.models.Subnet` acted upon + to enter the given state(s). + + :param str subnet_id: (required) + The OCID of the subnet. + + :param UpdateSubnetDetails update_subnet_details: (required) + Details object for updating a subnet. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_subnet` + + :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_subnet(subnet_id, update_subnet_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_subnet(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_vcn_and_wait_for_state(self, vcn_id, update_vcn_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_vcn` and waits for the :py:class:`~oci.core.models.Vcn` acted upon + to enter the given state(s). + + :param str vcn_id: (required) + The OCID of the VCN. + + :param UpdateVcnDetails update_vcn_details: (required) + Details object for updating a VCN. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Vcn.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_vcn` + + :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_vcn(vcn_id, update_vcn_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_vcn(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_virtual_circuit_and_wait_for_state(self, virtual_circuit_id, update_virtual_circuit_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_virtual_circuit` and waits for the :py:class:`~oci.core.models.VirtualCircuit` acted upon + to enter the given state(s). + + :param str virtual_circuit_id: (required) + The OCID of the virtual circuit. + + :param UpdateVirtualCircuitDetails update_virtual_circuit_details: (required) + Update VirtualCircuit fields. + + :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` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_virtual_circuit` + + :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_virtual_circuit(virtual_circuit_id, update_virtual_circuit_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_virtual_circuit(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_vnic_and_wait_for_state(self, vnic_id, update_vnic_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.core.VirtualNetworkClient.update_vnic` and waits for the :py:class:`~oci.core.models.Vnic` acted upon + to enter the given state(s). + + :param str vnic_id: (required) + The OCID of the VNIC. + + :param UpdateVnicDetails update_vnic_details: (required) + Details object for updating a VNIC. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.core.models.Vnic.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.core.VirtualNetworkClient.update_vnic` + + :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_vnic(vnic_id, update_vnic_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_vnic(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) diff --git a/src/oci/database/__init__.py b/src/oci/database/__init__.py index 4f2535aec4..beff9a61a8 100644 --- a/src/oci/database/__init__.py +++ b/src/oci/database/__init__.py @@ -5,6 +5,7 @@ from .database_client import DatabaseClient +from .database_client_composite_operations import DatabaseClientCompositeOperations from . import models -__all__ = ["DatabaseClient", "models"] +__all__ = ["DatabaseClient", "DatabaseClientCompositeOperations", "models"] diff --git a/src/oci/database/database_client.py b/src/oci/database/database_client.py index 6f1f0cf4e8..c50cda1f65 100644 --- a/src/oci/database/database_client.py +++ b/src/oci/database/database_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import database_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class DatabaseClient(object): """ 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 is that the client never times out. 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'] @@ -2091,6 +2126,9 @@ def list_db_versions(self, compartment_id, **kwargs): :param str db_system_shape: (optional) If provided, filters the results to the set of database versions which are supported for the given shape. + :param str db_system_id: (optional) + The DB system OCID. If provided, filters the results to the set of database versions which are supported for the DB system. + :return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.database.models.DbVersionSummary` :rtype: :class:`~oci.response.Response` """ @@ -2102,7 +2140,8 @@ def list_db_versions(self, compartment_id, **kwargs): "retry_strategy", "limit", "page", - "db_system_shape" + "db_system_shape", + "db_system_id" ] extra_kwargs = [key for key in six.iterkeys(kwargs) if key not in expected_kwargs] if extra_kwargs: @@ -2113,7 +2152,8 @@ def list_db_versions(self, compartment_id, **kwargs): "compartmentId": compartment_id, "limit": kwargs.get("limit", missing), "page": kwargs.get("page", missing), - "dbSystemShape": kwargs.get("db_system_shape", missing) + "dbSystemShape": kwargs.get("db_system_shape", missing), + "dbSystemId": kwargs.get("db_system_id", missing) } query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing} diff --git a/src/oci/database/database_client_composite_operations.py b/src/oci/database/database_client_composite_operations.py new file mode 100644 index 0000000000..873c6b13f2 --- /dev/null +++ b/src/oci/database/database_client_composite_operations.py @@ -0,0 +1,474 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class DatabaseClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.database.DatabaseClient` 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 DatabaseClientCompositeOperations object + + :param DatabaseClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_backup_and_wait_for_state(self, create_backup_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.create_backup` and waits for the :py:class:`~oci.database.models.Backup` acted upon + to enter the given state(s). + + :param CreateBackupDetails create_backup_details: (required) + Request to create a new database backup. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.Backup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_backup` + + :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_backup(create_backup_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_backup(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_data_guard_association_and_wait_for_state(self, database_id, create_data_guard_association_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.create_data_guard_association` and waits for the :py:class:`~oci.database.models.DataGuardAssociation` acted upon + to enter the given state(s). + + :param str database_id: (required) + The database `OCID`__. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param CreateDataGuardAssociationDetails create_data_guard_association_details: (required) + A request to create a Data Guard association. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.DataGuardAssociation.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_data_guard_association` + + :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_data_guard_association(database_id, create_data_guard_association_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_data_guard_association(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_db_home_and_wait_for_state(self, create_db_home_with_db_system_id_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.create_db_home` and waits for the :py:class:`~oci.database.models.DbHome` acted upon + to enter the given state(s). + + :param CreateDbHomeWithDbSystemIdBase create_db_home_with_db_system_id_details: (required) + Request to create a new DB Home. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.DbHome.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.create_db_home` + + :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_db_home(create_db_home_with_db_system_id_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_db_home(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 db_node_action_and_wait_for_state(self, db_node_id, action, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.db_node_action` and waits for the :py:class:`~oci.database.models.DbNode` acted upon + to enter the given state(s). + + :param str db_node_id: (required) + The database node `OCID`__. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str action: (required) + The action to perform on the DB Node. + + Allowed values are: "STOP", "START", "SOFTRESET", "RESET" + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.DbNode.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.db_node_action` + + :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.db_node_action(db_node_id, action, **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_db_node(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 delete_backup_and_wait_for_state(self, backup_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.delete_backup` and waits for the :py:class:`~oci.database.models.Backup` acted upon + to enter the given state(s). + + :param str backup_id: (required) + The backup OCID. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.Backup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.delete_backup` + + :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_backup(backup_id) + operation_result = self.client.delete_backup(backup_id, **operation_kwargs) + 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_db_home_and_wait_for_state(self, db_home_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.delete_db_home` and waits for the :py:class:`~oci.database.models.DbHome` acted upon + to enter the given state(s). + + :param str db_home_id: (required) + The database home `OCID`__. + + __ https://docs.us-phoenix-1.oraclecloud.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.database.models.DbHome.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.delete_db_home` + + :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_db_home(db_home_id) + operation_result = self.client.delete_db_home(db_home_id, **operation_kwargs) + 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 launch_db_system_and_wait_for_state(self, launch_db_system_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.launch_db_system` and waits for the :py:class:`~oci.database.models.DbSystem` acted upon + to enter the given state(s). + + :param LaunchDbSystemDetails launch_db_system_details: (required) + Request to launch a DB System. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.DbSystem.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.launch_db_system` + + :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.launch_db_system(launch_db_system_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_db_system(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 terminate_db_system_and_wait_for_state(self, db_system_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.terminate_db_system` and waits for the :py:class:`~oci.database.models.DbSystem` acted upon + to enter the given state(s). + + :param str db_system_id: (required) + The DB System `OCID`__. + + __ https://docs.us-phoenix-1.oraclecloud.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.database.models.DbSystem.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.terminate_db_system` + + :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_db_system(db_system_id) + operation_result = self.client.terminate_db_system(db_system_id, **operation_kwargs) + 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 update_database_and_wait_for_state(self, database_id, update_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.update_database` and waits for the :py:class:`~oci.database.models.Database` acted upon + to enter the given state(s). + + :param str database_id: (required) + The database `OCID`__. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param UpdateDatabaseDetails update_database_details: (required) + Request to perform database update. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.Database.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_database` + + :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_database(database_id, update_database_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_database(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_db_home_and_wait_for_state(self, db_home_id, update_db_home_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.update_db_home` and waits for the :py:class:`~oci.database.models.DbHome` acted upon + to enter the given state(s). + + :param str db_home_id: (required) + The database home `OCID`__. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param UpdateDbHomeDetails update_db_home_details: (required) + Request to update the properties of a DB Home. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.DbHome.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_db_home` + + :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_db_home(db_home_id, update_db_home_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_db_home(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_db_system_and_wait_for_state(self, db_system_id, update_db_system_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.update_db_system` and waits for the :py:class:`~oci.database.models.DbSystem` acted upon + to enter the given state(s). + + :param str db_system_id: (required) + The DB System `OCID`__. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param UpdateDbSystemDetails update_db_system_details: (required) + Request to update the properties of a DB System. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.DbSystem.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.update_db_system` + + :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_db_system(db_system_id, update_db_system_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_db_system(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) diff --git a/src/oci/database/models/backup.py b/src/oci/database/models/backup.py index 423752e4f2..3ea453f992 100644 --- a/src/oci/database/models/backup.py +++ b/src/oci/database/models/backup.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/backup_summary.py b/src/oci/database/models/backup_summary.py index 11c0f2c871..cbec7c43d3 100644 --- a/src/oci/database/models/backup_summary.py +++ b/src/oci/database/models/backup_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_backup_details.py b/src/oci/database/models/create_backup_details.py index 6c9fd8869b..e214a78556 100644 --- a/src/oci/database/models/create_backup_details.py +++ b/src/oci/database/models/create_backup_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_data_guard_association_details.py b/src/oci/database/models/create_data_guard_association_details.py index 93ae9de883..81d020eeb3 100644 --- a/src/oci/database/models/create_data_guard_association_details.py +++ b/src/oci/database/models/create_data_guard_association_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_data_guard_association_to_existing_db_system_details.py b/src/oci/database/models/create_data_guard_association_to_existing_db_system_details.py index 594aca23e5..a353689666 100644 --- a/src/oci/database/models/create_data_guard_association_to_existing_db_system_details.py +++ b/src/oci/database/models/create_data_guard_association_to_existing_db_system_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .create_data_guard_association_details import CreateDataGuardAssociationDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_database_details.py b/src/oci/database/models/create_database_details.py index 954eeb2a84..f0dd02b637 100644 --- a/src/oci/database/models/create_database_details.py +++ b/src/oci/database/models/create_database_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -46,6 +46,14 @@ def __init__(self, **kwargs): Allowed values for this property are: "OLTP", "DSS" :type db_workload: str + :param defined_tags: + The value to assign to the defined_tags property of this CreateDatabaseDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateDatabaseDetails. + :type freeform_tags: dict(str, str) + :param ncharacter_set: The value to assign to the ncharacter_set property of this CreateDatabaseDetails. :type ncharacter_set: str @@ -61,6 +69,8 @@ def __init__(self, **kwargs): 'db_backup_config': 'DbBackupConfig', 'db_name': 'str', 'db_workload': 'str', + 'defined_tags': 'dict(str, dict(str, object))', + 'freeform_tags': 'dict(str, str)', 'ncharacter_set': 'str', 'pdb_name': 'str' } @@ -71,6 +81,8 @@ def __init__(self, **kwargs): 'db_backup_config': 'dbBackupConfig', 'db_name': 'dbName', 'db_workload': 'dbWorkload', + 'defined_tags': 'definedTags', + 'freeform_tags': 'freeformTags', 'ncharacter_set': 'ncharacterSet', 'pdb_name': 'pdbName' } @@ -80,6 +92,8 @@ def __init__(self, **kwargs): self._db_backup_config = None self._db_name = None self._db_workload = None + self._defined_tags = None + self._freeform_tags = None self._ncharacter_set = None self._pdb_name = None @@ -211,6 +225,74 @@ def db_workload(self, db_workload): ) self._db_workload = db_workload + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this CreateDatabaseDetails. + :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 CreateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this CreateDatabaseDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this CreateDatabaseDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this CreateDatabaseDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + @property def ncharacter_set(self): """ diff --git a/src/oci/database/models/create_database_from_backup_details.py b/src/oci/database/models/create_database_from_backup_details.py index 31d01ad5df..9ed4f9f6e3 100644 --- a/src/oci/database/models/create_database_from_backup_details.py +++ b/src/oci/database/models/create_database_from_backup_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_db_home_details.py b/src/oci/database/models/create_db_home_details.py index 322d554b10..11c441add3 100644 --- a/src/oci/database/models/create_db_home_details.py +++ b/src/oci/database/models/create_db_home_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_db_home_with_db_system_id_base.py b/src/oci/database/models/create_db_home_with_db_system_id_base.py index 9b063e95cb..2697443777 100644 --- a/src/oci/database/models/create_db_home_with_db_system_id_base.py +++ b/src/oci/database/models/create_db_home_with_db_system_id_base.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_db_home_with_db_system_id_details.py b/src/oci/database/models/create_db_home_with_db_system_id_details.py index fa4792a181..f431ce8f78 100644 --- a/src/oci/database/models/create_db_home_with_db_system_id_details.py +++ b/src/oci/database/models/create_db_home_with_db_system_id_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .create_db_home_with_db_system_id_base import CreateDbHomeWithDbSystemIdBase -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py b/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py index adcc08cdfd..853a63b142 100644 --- a/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py +++ b/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .create_db_home_with_db_system_id_base import CreateDbHomeWithDbSystemIdBase -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/data_guard_association.py b/src/oci/database/models/data_guard_association.py index e2eae241fb..c297409671 100644 --- a/src/oci/database/models/data_guard_association.py +++ b/src/oci/database/models/data_guard_association.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/data_guard_association_summary.py b/src/oci/database/models/data_guard_association_summary.py index ae70ababcb..76d76f4e8e 100644 --- a/src/oci/database/models/data_guard_association_summary.py +++ b/src/oci/database/models/data_guard_association_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/database.py b/src/oci/database/models/database.py index 92651b3e68..54eea8b3ad 100644 --- a/src/oci/database/models/database.py +++ b/src/oci/database/models/database.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -82,6 +82,14 @@ def __init__(self, **kwargs): The value to assign to the db_workload property of this Database. :type db_workload: str + :param defined_tags: + The value to assign to the defined_tags property of this Database. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this Database. + :type freeform_tags: dict(str, str) + :param id: The value to assign to the id property of this Database. :type id: str @@ -117,6 +125,8 @@ def __init__(self, **kwargs): 'db_name': 'str', 'db_unique_name': 'str', 'db_workload': 'str', + 'defined_tags': 'dict(str, dict(str, object))', + 'freeform_tags': 'dict(str, str)', 'id': 'str', 'lifecycle_details': 'str', 'lifecycle_state': 'str', @@ -133,6 +143,8 @@ def __init__(self, **kwargs): 'db_name': 'dbName', 'db_unique_name': 'dbUniqueName', 'db_workload': 'dbWorkload', + 'defined_tags': 'definedTags', + 'freeform_tags': 'freeformTags', 'id': 'id', 'lifecycle_details': 'lifecycleDetails', 'lifecycle_state': 'lifecycleState', @@ -148,6 +160,8 @@ def __init__(self, **kwargs): self._db_name = None self._db_unique_name = None self._db_workload = None + self._defined_tags = None + self._freeform_tags = None self._id = None self._lifecycle_details = None self._lifecycle_state = None @@ -319,6 +333,74 @@ def db_workload(self, db_workload): """ self._db_workload = db_workload + @property + def defined_tags(self): + """ + Gets the defined_tags of this Database. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this Database. + :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 Database. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this Database. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this Database. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this Database. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this Database. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this Database. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + @property def id(self): """ diff --git a/src/oci/database/models/database_summary.py b/src/oci/database/models/database_summary.py index 72d5787003..e87843474b 100644 --- a/src/oci/database/models/database_summary.py +++ b/src/oci/database/models/database_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -82,6 +82,14 @@ def __init__(self, **kwargs): The value to assign to the db_workload property of this DatabaseSummary. :type db_workload: str + :param defined_tags: + The value to assign to the defined_tags property of this DatabaseSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this DatabaseSummary. + :type freeform_tags: dict(str, str) + :param id: The value to assign to the id property of this DatabaseSummary. :type id: str @@ -117,6 +125,8 @@ def __init__(self, **kwargs): 'db_name': 'str', 'db_unique_name': 'str', 'db_workload': 'str', + 'defined_tags': 'dict(str, dict(str, object))', + 'freeform_tags': 'dict(str, str)', 'id': 'str', 'lifecycle_details': 'str', 'lifecycle_state': 'str', @@ -133,6 +143,8 @@ def __init__(self, **kwargs): 'db_name': 'dbName', 'db_unique_name': 'dbUniqueName', 'db_workload': 'dbWorkload', + 'defined_tags': 'definedTags', + 'freeform_tags': 'freeformTags', 'id': 'id', 'lifecycle_details': 'lifecycleDetails', 'lifecycle_state': 'lifecycleState', @@ -148,6 +160,8 @@ def __init__(self, **kwargs): self._db_name = None self._db_unique_name = None self._db_workload = None + self._defined_tags = None + self._freeform_tags = None self._id = None self._lifecycle_details = None self._lifecycle_state = None @@ -319,6 +333,74 @@ def db_workload(self, db_workload): """ self._db_workload = db_workload + @property + def defined_tags(self): + """ + Gets the defined_tags of this DatabaseSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this DatabaseSummary. + :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 DatabaseSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this DatabaseSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this DatabaseSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this DatabaseSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this DatabaseSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this DatabaseSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + @property def id(self): """ diff --git a/src/oci/database/models/db_backup_config.py b/src/oci/database/models/db_backup_config.py index 4f20be90af..ebc5644fa9 100644 --- a/src/oci/database/models/db_backup_config.py +++ b/src/oci/database/models/db_backup_config.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/db_home.py b/src/oci/database/models/db_home.py index e3b08cdf90..e2ca6c18fe 100644 --- a/src/oci/database/models/db_home.py +++ b/src/oci/database/models/db_home.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/db_home_summary.py b/src/oci/database/models/db_home_summary.py index 25b01d9bab..fad9da3c3d 100644 --- a/src/oci/database/models/db_home_summary.py +++ b/src/oci/database/models/db_home_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/db_node.py b/src/oci/database/models/db_node.py index 1943b15dfe..9de7914cb5 100644 --- a/src/oci/database/models/db_node.py +++ b/src/oci/database/models/db_node.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/db_node_summary.py b/src/oci/database/models/db_node_summary.py index 930289075b..01c77e60d7 100644 --- a/src/oci/database/models/db_node_summary.py +++ b/src/oci/database/models/db_node_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/db_system.py b/src/oci/database/models/db_system.py index 7a743dc07b..7108baa3ec 100644 --- a/src/oci/database/models/db_system.py +++ b/src/oci/database/models/db_system.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -127,6 +127,10 @@ def __init__(self, **kwargs): Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_edition: str + :param defined_tags: + The value to assign to the defined_tags property of this DbSystem. + :type defined_tags: dict(str, dict(str, object)) + :param disk_redundancy: The value to assign to the disk_redundancy property of this DbSystem. Allowed values for this property are: "HIGH", "NORMAL", 'UNKNOWN_ENUM_VALUE'. @@ -141,6 +145,10 @@ def __init__(self, **kwargs): The value to assign to the domain property of this DbSystem. :type domain: str + :param freeform_tags: + The value to assign to the freeform_tags property of this DbSystem. + :type freeform_tags: dict(str, str) + :param hostname: The value to assign to the hostname property of this DbSystem. :type hostname: str @@ -223,9 +231,11 @@ def __init__(self, **kwargs): 'data_storage_percentage': 'int', 'data_storage_size_in_gbs': 'int', 'database_edition': 'str', + 'defined_tags': 'dict(str, dict(str, object))', 'disk_redundancy': 'str', 'display_name': 'str', 'domain': 'str', + 'freeform_tags': 'dict(str, str)', 'hostname': 'str', 'id': 'str', 'last_patch_history_entry_id': 'str', @@ -254,9 +264,11 @@ def __init__(self, **kwargs): 'data_storage_percentage': 'dataStoragePercentage', 'data_storage_size_in_gbs': 'dataStorageSizeInGBs', 'database_edition': 'databaseEdition', + 'defined_tags': 'definedTags', 'disk_redundancy': 'diskRedundancy', 'display_name': 'displayName', 'domain': 'domain', + 'freeform_tags': 'freeformTags', 'hostname': 'hostname', 'id': 'id', 'last_patch_history_entry_id': 'lastPatchHistoryEntryId', @@ -284,9 +296,11 @@ def __init__(self, **kwargs): self._data_storage_percentage = None self._data_storage_size_in_gbs = None self._database_edition = None + self._defined_tags = None self._disk_redundancy = None self._display_name = None self._domain = None + self._freeform_tags = None self._hostname = None self._id = None self._last_patch_history_entry_id = None @@ -511,6 +525,40 @@ def database_edition(self, database_edition): database_edition = 'UNKNOWN_ENUM_VALUE' self._database_edition = database_edition + @property + def defined_tags(self): + """ + Gets the defined_tags of this DbSystem. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this DbSystem. + :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 DbSystem. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this DbSystem. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + @property def disk_redundancy(self): """ @@ -593,6 +641,40 @@ def domain(self, domain): """ self._domain = domain + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this DbSystem. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this DbSystem. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this DbSystem. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this DbSystem. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + @property def hostname(self): """ diff --git a/src/oci/database/models/db_system_shape_summary.py b/src/oci/database/models/db_system_shape_summary.py index 9ea33f11bc..c025a81a31 100644 --- a/src/oci/database/models/db_system_shape_summary.py +++ b/src/oci/database/models/db_system_shape_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/db_system_summary.py b/src/oci/database/models/db_system_summary.py index 6fb01fc4df..1e8c79a77a 100644 --- a/src/oci/database/models/db_system_summary.py +++ b/src/oci/database/models/db_system_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -127,6 +127,10 @@ def __init__(self, **kwargs): Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_edition: str + :param defined_tags: + The value to assign to the defined_tags property of this DbSystemSummary. + :type defined_tags: dict(str, dict(str, object)) + :param disk_redundancy: The value to assign to the disk_redundancy property of this DbSystemSummary. Allowed values for this property are: "HIGH", "NORMAL", 'UNKNOWN_ENUM_VALUE'. @@ -141,6 +145,10 @@ def __init__(self, **kwargs): The value to assign to the domain property of this DbSystemSummary. :type domain: str + :param freeform_tags: + The value to assign to the freeform_tags property of this DbSystemSummary. + :type freeform_tags: dict(str, str) + :param hostname: The value to assign to the hostname property of this DbSystemSummary. :type hostname: str @@ -223,9 +231,11 @@ def __init__(self, **kwargs): 'data_storage_percentage': 'int', 'data_storage_size_in_gbs': 'int', 'database_edition': 'str', + 'defined_tags': 'dict(str, dict(str, object))', 'disk_redundancy': 'str', 'display_name': 'str', 'domain': 'str', + 'freeform_tags': 'dict(str, str)', 'hostname': 'str', 'id': 'str', 'last_patch_history_entry_id': 'str', @@ -254,9 +264,11 @@ def __init__(self, **kwargs): 'data_storage_percentage': 'dataStoragePercentage', 'data_storage_size_in_gbs': 'dataStorageSizeInGBs', 'database_edition': 'databaseEdition', + 'defined_tags': 'definedTags', 'disk_redundancy': 'diskRedundancy', 'display_name': 'displayName', 'domain': 'domain', + 'freeform_tags': 'freeformTags', 'hostname': 'hostname', 'id': 'id', 'last_patch_history_entry_id': 'lastPatchHistoryEntryId', @@ -284,9 +296,11 @@ def __init__(self, **kwargs): self._data_storage_percentage = None self._data_storage_size_in_gbs = None self._database_edition = None + self._defined_tags = None self._disk_redundancy = None self._display_name = None self._domain = None + self._freeform_tags = None self._hostname = None self._id = None self._last_patch_history_entry_id = None @@ -511,6 +525,40 @@ def database_edition(self, database_edition): database_edition = 'UNKNOWN_ENUM_VALUE' self._database_edition = database_edition + @property + def defined_tags(self): + """ + Gets the defined_tags of this DbSystemSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this DbSystemSummary. + :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 DbSystemSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this DbSystemSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + @property def disk_redundancy(self): """ @@ -593,6 +641,40 @@ def domain(self, domain): """ self._domain = domain + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this DbSystemSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this DbSystemSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this DbSystemSummary. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this DbSystemSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + @property def hostname(self): """ diff --git a/src/oci/database/models/db_version_summary.py b/src/oci/database/models/db_version_summary.py index 0484596694..1c19abea2e 100644 --- a/src/oci/database/models/db_version_summary.py +++ b/src/oci/database/models/db_version_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/failover_data_guard_association_details.py b/src/oci/database/models/failover_data_guard_association_details.py index 947414c97f..c5238b3804 100644 --- a/src/oci/database/models/failover_data_guard_association_details.py +++ b/src/oci/database/models/failover_data_guard_association_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/launch_db_system_details.py b/src/oci/database/models/launch_db_system_details.py index a59f35e1af..816e82b212 100644 --- a/src/oci/database/models/launch_db_system_details.py +++ b/src/oci/database/models/launch_db_system_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -82,6 +82,10 @@ def __init__(self, **kwargs): The value to assign to the db_home property of this LaunchDbSystemDetails. :type db_home: CreateDbHomeDetails + :param defined_tags: + The value to assign to the defined_tags property of this LaunchDbSystemDetails. + :type defined_tags: dict(str, dict(str, object)) + :param disk_redundancy: The value to assign to the disk_redundancy property of this LaunchDbSystemDetails. Allowed values for this property are: "HIGH", "NORMAL" @@ -95,6 +99,10 @@ def __init__(self, **kwargs): The value to assign to the domain property of this LaunchDbSystemDetails. :type domain: str + :param freeform_tags: + The value to assign to the freeform_tags property of this LaunchDbSystemDetails. + :type freeform_tags: dict(str, str) + :param hostname: The value to assign to the hostname property of this LaunchDbSystemDetails. :type hostname: str @@ -134,9 +142,11 @@ def __init__(self, **kwargs): 'data_storage_percentage': 'int', 'database_edition': 'str', 'db_home': 'CreateDbHomeDetails', + 'defined_tags': 'dict(str, dict(str, object))', 'disk_redundancy': 'str', 'display_name': 'str', 'domain': 'str', + 'freeform_tags': 'dict(str, str)', 'hostname': 'str', 'initial_data_storage_size_in_gb': 'int', 'license_model': 'str', @@ -155,9 +165,11 @@ def __init__(self, **kwargs): 'data_storage_percentage': 'dataStoragePercentage', 'database_edition': 'databaseEdition', 'db_home': 'dbHome', + 'defined_tags': 'definedTags', 'disk_redundancy': 'diskRedundancy', 'display_name': 'displayName', 'domain': 'domain', + 'freeform_tags': 'freeformTags', 'hostname': 'hostname', 'initial_data_storage_size_in_gb': 'initialDataStorageSizeInGB', 'license_model': 'licenseModel', @@ -175,9 +187,11 @@ def __init__(self, **kwargs): self._data_storage_percentage = None self._database_edition = None self._db_home = None + self._defined_tags = None self._disk_redundancy = None self._display_name = None self._domain = None + self._freeform_tags = None self._hostname = None self._initial_data_storage_size_in_gb = None self._license_model = None @@ -410,6 +424,40 @@ def db_home(self, db_home): """ self._db_home = db_home + @property + def defined_tags(self): + """ + Gets the defined_tags of this LaunchDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this LaunchDbSystemDetails. + :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 LaunchDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this LaunchDbSystemDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + @property def disk_redundancy(self): """ @@ -498,6 +546,40 @@ def domain(self, domain): """ self._domain = domain + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this LaunchDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this LaunchDbSystemDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this LaunchDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this LaunchDbSystemDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + @property def hostname(self): """ diff --git a/src/oci/database/models/patch.py b/src/oci/database/models/patch.py index 2eb16ceeab..c7a095e545 100644 --- a/src/oci/database/models/patch.py +++ b/src/oci/database/models/patch.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -151,7 +151,8 @@ def available_actions(self, available_actions): :type: list[str] """ allowed_values = ["APPLY", "PRECHECK"] - available_actions[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in available_actions] + if available_actions: + available_actions[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in available_actions] self._available_actions = available_actions @property diff --git a/src/oci/database/models/patch_details.py b/src/oci/database/models/patch_details.py index eb5abfead1..95444f20f9 100644 --- a/src/oci/database/models/patch_details.py +++ b/src/oci/database/models/patch_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/patch_history_entry.py b/src/oci/database/models/patch_history_entry.py index 47db624a43..ab8e1f0981 100644 --- a/src/oci/database/models/patch_history_entry.py +++ b/src/oci/database/models/patch_history_entry.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/patch_history_entry_summary.py b/src/oci/database/models/patch_history_entry_summary.py index 00a82bc022..0cdf2065e1 100644 --- a/src/oci/database/models/patch_history_entry_summary.py +++ b/src/oci/database/models/patch_history_entry_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/patch_summary.py b/src/oci/database/models/patch_summary.py index d636442166..9f44892bb4 100644 --- a/src/oci/database/models/patch_summary.py +++ b/src/oci/database/models/patch_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -151,7 +151,8 @@ def available_actions(self, available_actions): :type: list[str] """ allowed_values = ["APPLY", "PRECHECK"] - available_actions[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in available_actions] + if available_actions: + available_actions[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in available_actions] self._available_actions = available_actions @property diff --git a/src/oci/database/models/reinstate_data_guard_association_details.py b/src/oci/database/models/reinstate_data_guard_association_details.py index ef562960b3..5cf07c205c 100644 --- a/src/oci/database/models/reinstate_data_guard_association_details.py +++ b/src/oci/database/models/reinstate_data_guard_association_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/restore_database_details.py b/src/oci/database/models/restore_database_details.py index ed15410f57..d04acf3a70 100644 --- a/src/oci/database/models/restore_database_details.py +++ b/src/oci/database/models/restore_database_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/switchover_data_guard_association_details.py b/src/oci/database/models/switchover_data_guard_association_details.py index 3c87aad865..6fd6e49d31 100644 --- a/src/oci/database/models/switchover_data_guard_association_details.py +++ b/src/oci/database/models/switchover_data_guard_association_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/update_database_details.py b/src/oci/database/models/update_database_details.py index 6f49f920c0..ee0a65545b 100644 --- a/src/oci/database/models/update_database_details.py +++ b/src/oci/database/models/update_database_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -21,16 +21,30 @@ def __init__(self, **kwargs): The value to assign to the db_backup_config property of this UpdateDatabaseDetails. :type db_backup_config: DbBackupConfig + :param defined_tags: + The value to assign to the defined_tags property of this UpdateDatabaseDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateDatabaseDetails. + :type freeform_tags: dict(str, str) + """ self.swagger_types = { - 'db_backup_config': 'DbBackupConfig' + 'db_backup_config': 'DbBackupConfig', + 'defined_tags': 'dict(str, dict(str, object))', + 'freeform_tags': 'dict(str, str)' } self.attribute_map = { - 'db_backup_config': 'dbBackupConfig' + 'db_backup_config': 'dbBackupConfig', + 'defined_tags': 'definedTags', + 'freeform_tags': 'freeformTags' } self._db_backup_config = None + self._defined_tags = None + self._freeform_tags = None @property def db_backup_config(self): @@ -52,6 +66,74 @@ def db_backup_config(self, db_backup_config): """ self._db_backup_config = db_backup_config + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this UpdateDatabaseDetails. + :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 UpdateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this UpdateDatabaseDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this UpdateDatabaseDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateDatabaseDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this UpdateDatabaseDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/update_db_home_details.py b/src/oci/database/models/update_db_home_details.py index 77c28f0841..7b884061d5 100644 --- a/src/oci/database/models/update_db_home_details.py +++ b/src/oci/database/models/update_db_home_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/database/models/update_db_system_details.py b/src/oci/database/models/update_db_system_details.py index 1c77704185..b0f4916338 100644 --- a/src/oci/database/models/update_db_system_details.py +++ b/src/oci/database/models/update_db_system_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs @@ -25,6 +25,14 @@ def __init__(self, **kwargs): The value to assign to the data_storage_size_in_gbs property of this UpdateDbSystemDetails. :type data_storage_size_in_gbs: int + :param defined_tags: + The value to assign to the defined_tags property of this UpdateDbSystemDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateDbSystemDetails. + :type freeform_tags: dict(str, str) + :param ssh_public_keys: The value to assign to the ssh_public_keys property of this UpdateDbSystemDetails. :type ssh_public_keys: list[str] @@ -37,6 +45,8 @@ def __init__(self, **kwargs): self.swagger_types = { 'cpu_core_count': 'int', 'data_storage_size_in_gbs': 'int', + 'defined_tags': 'dict(str, dict(str, object))', + 'freeform_tags': 'dict(str, str)', 'ssh_public_keys': 'list[str]', 'version': 'PatchDetails' } @@ -44,12 +54,16 @@ def __init__(self, **kwargs): self.attribute_map = { 'cpu_core_count': 'cpuCoreCount', 'data_storage_size_in_gbs': 'dataStorageSizeInGBs', + 'defined_tags': 'definedTags', + 'freeform_tags': 'freeformTags', 'ssh_public_keys': 'sshPublicKeys', 'version': 'version' } self._cpu_core_count = None self._data_storage_size_in_gbs = None + self._defined_tags = None + self._freeform_tags = None self._ssh_public_keys = None self._version = None @@ -101,6 +115,74 @@ def data_storage_size_in_gbs(self, data_storage_size_in_gbs): """ self._data_storage_size_in_gbs = data_storage_size_in_gbs + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this UpdateDbSystemDetails. + :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 UpdateDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this UpdateDbSystemDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this UpdateDbSystemDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateDbSystemDetails. + 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.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this UpdateDbSystemDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + @property def ssh_public_keys(self): """ diff --git a/src/oci/dns/__init__.py b/src/oci/dns/__init__.py index 3ce6342836..3a87a31fa6 100644 --- a/src/oci/dns/__init__.py +++ b/src/oci/dns/__init__.py @@ -5,6 +5,7 @@ from .dns_client import DnsClient +from .dns_client_composite_operations import DnsClientCompositeOperations from . import models -__all__ = ["DnsClient", "models"] +__all__ = ["DnsClient", "DnsClientCompositeOperations", "models"] diff --git a/src/oci/dns/dns_client.py b/src/oci/dns/dns_client.py index a0ab65fd9f..ebf81c0de9 100644 --- a/src/oci/dns/dns_client.py +++ b/src/oci/dns/dns_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import dns_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class DnsClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/dns/dns_client_composite_operations.py b/src/oci/dns/dns_client_composite_operations.py new file mode 100644 index 0000000000..04ace2fff3 --- /dev/null +++ b/src/oci/dns/dns_client_composite_operations.py @@ -0,0 +1,140 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class DnsClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.dns.DnsClient` 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 DnsClientCompositeOperations object + + :param DnsClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_zone_and_wait_for_state(self, create_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.create_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon + to enter the given state(s). + + :param CreateZoneDetails create_zone_details: (required) + Details for creating a new zone. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.Zone.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_zone` + + :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_zone(create_zone_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_zone(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 delete_zone_and_wait_for_state(self, zone_name_or_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.delete_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon + to enter the given state(s). + + :param str zone_name_or_id: (required) + The name or OCID of the target zone. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.Zone.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_zone` + + :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_zone(zone_name_or_id) + operation_result = self.client.delete_zone(zone_name_or_id, **operation_kwargs) + 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 update_zone_and_wait_for_state(self, zone_name_or_id, update_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.dns.DnsClient.update_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon + to enter the given state(s). + + :param str zone_name_or_id: (required) + The name or OCID of the target zone. + + :param UpdateZoneDetails update_zone_details: (required) + New data for the zone. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.Zone.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_zone` + + :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_zone(zone_name_or_id, update_zone_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_zone(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) diff --git a/src/oci/dns/models/create_zone_details.py b/src/oci/dns/models/create_zone_details.py index fee199ea6c..5c4ccd967a 100644 --- a/src/oci/dns/models/create_zone_details.py +++ b/src/oci/dns/models/create_zone_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/external_master.py b/src/oci/dns/models/external_master.py index 056ae33bdd..47e85cb133 100644 --- a/src/oci/dns/models/external_master.py +++ b/src/oci/dns/models/external_master.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/patch_domain_records_details.py b/src/oci/dns/models/patch_domain_records_details.py index 6c3b681e57..18540b7449 100644 --- a/src/oci/dns/models/patch_domain_records_details.py +++ b/src/oci/dns/models/patch_domain_records_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/patch_rr_set_details.py b/src/oci/dns/models/patch_rr_set_details.py index 483234996e..72cb23c226 100644 --- a/src/oci/dns/models/patch_rr_set_details.py +++ b/src/oci/dns/models/patch_rr_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/patch_zone_records_details.py b/src/oci/dns/models/patch_zone_records_details.py index 7cae7d1366..e6fa12f024 100644 --- a/src/oci/dns/models/patch_zone_records_details.py +++ b/src/oci/dns/models/patch_zone_records_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/record.py b/src/oci/dns/models/record.py index 4d3c1fb826..1a1ca33547 100644 --- a/src/oci/dns/models/record.py +++ b/src/oci/dns/models/record.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/record_collection.py b/src/oci/dns/models/record_collection.py index f323289b55..889948d1b6 100644 --- a/src/oci/dns/models/record_collection.py +++ b/src/oci/dns/models/record_collection.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/record_details.py b/src/oci/dns/models/record_details.py index 8787d5a84e..481fe1cbe5 100644 --- a/src/oci/dns/models/record_details.py +++ b/src/oci/dns/models/record_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/record_operation.py b/src/oci/dns/models/record_operation.py index 6388dc5a2c..bccef88f43 100644 --- a/src/oci/dns/models/record_operation.py +++ b/src/oci/dns/models/record_operation.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/rr_set.py b/src/oci/dns/models/rr_set.py index 801dc4905f..4687ec5a25 100644 --- a/src/oci/dns/models/rr_set.py +++ b/src/oci/dns/models/rr_set.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/tsig.py b/src/oci/dns/models/tsig.py index 07d32606b4..164f3ce53d 100644 --- a/src/oci/dns/models/tsig.py +++ b/src/oci/dns/models/tsig.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/update_domain_records_details.py b/src/oci/dns/models/update_domain_records_details.py index 00b54ead66..fc23099191 100644 --- a/src/oci/dns/models/update_domain_records_details.py +++ b/src/oci/dns/models/update_domain_records_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/update_rr_set_details.py b/src/oci/dns/models/update_rr_set_details.py index f1412163af..abbc64dd13 100644 --- a/src/oci/dns/models/update_rr_set_details.py +++ b/src/oci/dns/models/update_rr_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/update_zone_details.py b/src/oci/dns/models/update_zone_details.py index 846eb92ecc..179aeb1462 100644 --- a/src/oci/dns/models/update_zone_details.py +++ b/src/oci/dns/models/update_zone_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/update_zone_records_details.py b/src/oci/dns/models/update_zone_records_details.py index 1a4926a355..0a5bd48418 100644 --- a/src/oci/dns/models/update_zone_records_details.py +++ b/src/oci/dns/models/update_zone_records_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/zone.py b/src/oci/dns/models/zone.py index fbf2f669a9..e7927e4e8a 100644 --- a/src/oci/dns/models/zone.py +++ b/src/oci/dns/models/zone.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/dns/models/zone_summary.py b/src/oci/dns/models/zone_summary.py index 5cf5b820a7..1af5e5a7e8 100644 --- a/src/oci/dns/models/zone_summary.py +++ b/src/oci/dns/models/zone_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/email/__init__.py b/src/oci/email/__init__.py index ab553a8ea4..a9b318d7ae 100644 --- a/src/oci/email/__init__.py +++ b/src/oci/email/__init__.py @@ -5,6 +5,7 @@ from .email_client import EmailClient +from .email_client_composite_operations import EmailClientCompositeOperations from . import models -__all__ = ["EmailClient", "models"] +__all__ = ["EmailClient", "EmailClientCompositeOperations", "models"] diff --git a/src/oci/email/email_client.py b/src/oci/email/email_client.py index 6e2d07a796..5f68a69b86 100644 --- a/src/oci/email/email_client.py +++ b/src/oci/email/email_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import email_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class EmailClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/email/email_client_composite_operations.py b/src/oci/email/email_client_composite_operations.py new file mode 100644 index 0000000000..8e13c42055 --- /dev/null +++ b/src/oci/email/email_client_composite_operations.py @@ -0,0 +1,99 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class EmailClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.email.EmailClient` 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 EmailClientCompositeOperations object + + :param EmailClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_sender_and_wait_for_state(self, create_sender_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.email.EmailClient.create_sender` and waits for the :py:class:`~oci.email.models.Sender` acted upon + to enter the given state(s). + + :param CreateSenderDetails create_sender_details: (required) + Create a sender. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.email.models.Sender.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.email.EmailClient.create_sender` + + :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_sender(create_sender_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_sender(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 delete_sender_and_wait_for_state(self, sender_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.email.EmailClient.delete_sender` and waits for the :py:class:`~oci.email.models.Sender` acted upon + to enter the given state(s). + + :param str sender_id: (required) + The unique OCID of the sender. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.email.models.Sender.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.email.EmailClient.delete_sender` + + :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_sender(sender_id) + operation_result = self.client.delete_sender(sender_id, **operation_kwargs) + 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) diff --git a/src/oci/email/models/create_sender_details.py b/src/oci/email/models/create_sender_details.py index 781aee04dd..37ef32006c 100644 --- a/src/oci/email/models/create_sender_details.py +++ b/src/oci/email/models/create_sender_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/email/models/create_suppression_details.py b/src/oci/email/models/create_suppression_details.py index e90998406d..37801e2bac 100644 --- a/src/oci/email/models/create_suppression_details.py +++ b/src/oci/email/models/create_suppression_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/email/models/sender.py b/src/oci/email/models/sender.py index 6581e622c1..0da8ffdee5 100644 --- a/src/oci/email/models/sender.py +++ b/src/oci/email/models/sender.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/email/models/sender_summary.py b/src/oci/email/models/sender_summary.py index cf60917236..cbaf0f78c1 100644 --- a/src/oci/email/models/sender_summary.py +++ b/src/oci/email/models/sender_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/email/models/suppression.py b/src/oci/email/models/suppression.py index c6673c3635..576274668f 100644 --- a/src/oci/email/models/suppression.py +++ b/src/oci/email/models/suppression.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/email/models/suppression_summary.py b/src/oci/email/models/suppression_summary.py index 9d8a934c81..0cfcbc22f6 100644 --- a/src/oci/email/models/suppression_summary.py +++ b/src/oci/email/models/suppression_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/exceptions.py b/src/oci/exceptions.py index 987db5d980..caf1de9e16 100644 --- a/src/oci/exceptions.py +++ b/src/oci/exceptions.py @@ -95,3 +95,17 @@ def __init__(self, **kwargs): if 'error_causes_queue' in kwargs: while not kwargs['error_causes_queue'].empty(): self.error_causes.append(kwargs['error_causes_queue'].get()) + + +class CompositeOperationError(Exception): + """ + An exception occurred during a composite operation (e.g. launching an instance and waiting for state) + but part of the composite operation succeeded. This exception has the following attributes: + + :var list partial_results: Any partial results which are available (e.g. if the :py:meth:`~oci.core.ComputeClient.launch_instance` succeeded and the waiting for state failed then this will contain the :py:meth:`~oci.core.ComputeClient.launch_instance` result) + :var Exception cause: The exception which caused the composite operation to fail + """ + + def __init__(self, partial_results=[], cause=None): + self.partial_results = partial_results + self.cause = cause diff --git a/src/oci/file_storage/__init__.py b/src/oci/file_storage/__init__.py index 761e40baad..e278ab3207 100644 --- a/src/oci/file_storage/__init__.py +++ b/src/oci/file_storage/__init__.py @@ -5,6 +5,7 @@ from .file_storage_client import FileStorageClient +from .file_storage_client_composite_operations import FileStorageClientCompositeOperations from . import models -__all__ = ["FileStorageClient", "models"] +__all__ = ["FileStorageClient", "FileStorageClientCompositeOperations", "models"] diff --git a/src/oci/file_storage/file_storage_client.py b/src/oci/file_storage/file_storage_client.py index f5067453e2..3560bed332 100644 --- a/src/oci/file_storage/file_storage_client.py +++ b/src/oci/file_storage/file_storage_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import file_storage_type_mapping missing = Sentinel("Missing") @@ -18,10 +18,44 @@ class FileStorageClient(object): """ The API for the File Storage Service. - """ 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 is that the client never times out. 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'] diff --git a/src/oci/file_storage/file_storage_client_composite_operations.py b/src/oci/file_storage/file_storage_client_composite_operations.py new file mode 100644 index 0000000000..e9fa6039e8 --- /dev/null +++ b/src/oci/file_storage/file_storage_client_composite_operations.py @@ -0,0 +1,453 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class FileStorageClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.file_storage.FileStorageClient` 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 FileStorageClientCompositeOperations object + + :param FileStorageClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_export_and_wait_for_state(self, create_export_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.create_export` and waits for the :py:class:`~oci.file_storage.models.Export` acted upon + to enter the given state(s). + + :param CreateExportDetails create_export_details: (required) + Details for creating a new export. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Export.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_export` + + :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_export(create_export_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_export(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_file_system_and_wait_for_state(self, create_file_system_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.create_file_system` and waits for the :py:class:`~oci.file_storage.models.FileSystem` acted upon + to enter the given state(s). + + :param CreateFileSystemDetails create_file_system_details: (required) + Details for creating a new file system. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FileSystem.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_file_system` + + :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_file_system(create_file_system_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_file_system(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_mount_target_and_wait_for_state(self, create_mount_target_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.create_mount_target` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon + to enter the given state(s). + + :param CreateMountTargetDetails create_mount_target_details: (required) + Details for creating a new mount target. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_mount_target` + + :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_mount_target(create_mount_target_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_mount_target(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_snapshot_and_wait_for_state(self, create_snapshot_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.create_snapshot` and waits for the :py:class:`~oci.file_storage.models.Snapshot` acted upon + to enter the given state(s). + + :param CreateSnapshotDetails create_snapshot_details: (required) + Details for creating a new snapshot. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Snapshot.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.create_snapshot` + + :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_snapshot(create_snapshot_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_snapshot(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 delete_export_and_wait_for_state(self, export_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.delete_export` and waits for the :py:class:`~oci.file_storage.models.Export` acted upon + to enter the given state(s). + + :param str export_id: (required) + The OCID of the export. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Export.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_export` + + :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_export(export_id) + operation_result = self.client.delete_export(export_id, **operation_kwargs) + 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_file_system_and_wait_for_state(self, file_system_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.delete_file_system` and waits for the :py:class:`~oci.file_storage.models.FileSystem` acted upon + to enter the given state(s). + + :param str file_system_id: (required) + The OCID of the file system. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FileSystem.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_file_system` + + :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_file_system(file_system_id) + operation_result = self.client.delete_file_system(file_system_id, **operation_kwargs) + 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_mount_target_and_wait_for_state(self, mount_target_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.delete_mount_target` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon + to enter the given state(s). + + :param str mount_target_id: (required) + The OCID of the mount target. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_mount_target` + + :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_mount_target(mount_target_id) + operation_result = self.client.delete_mount_target(mount_target_id, **operation_kwargs) + 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_snapshot_and_wait_for_state(self, snapshot_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.delete_snapshot` and waits for the :py:class:`~oci.file_storage.models.Snapshot` acted upon + to enter the given state(s). + + :param str snapshot_id: (required) + The OCID of the snapshot. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.Snapshot.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.delete_snapshot` + + :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_snapshot(snapshot_id) + operation_result = self.client.delete_snapshot(snapshot_id, **operation_kwargs) + 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 update_export_set_and_wait_for_state(self, export_set_id, update_export_set_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.update_export_set` and waits for the :py:class:`~oci.file_storage.models.ExportSet` acted upon + to enter the given state(s). + + :param str export_set_id: (required) + The OCID of the export set. + + :param UpdateExportSetDetails update_export_set_details: (required) + Details object for updating an export set. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.ExportSet.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.update_export_set` + + :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_export_set(export_set_id, update_export_set_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_export_set(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_file_system_and_wait_for_state(self, file_system_id, update_file_system_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.update_file_system` and waits for the :py:class:`~oci.file_storage.models.FileSystem` acted upon + to enter the given state(s). + + :param str file_system_id: (required) + The OCID of the file system. + + :param UpdateFileSystemDetails update_file_system_details: (required) + Details object for updating a file system. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.FileSystem.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.update_file_system` + + :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_file_system(file_system_id, update_file_system_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_file_system(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_mount_target_and_wait_for_state(self, mount_target_id, update_mount_target_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.file_storage.FileStorageClient.update_mount_target` and waits for the :py:class:`~oci.file_storage.models.MountTarget` acted upon + to enter the given state(s). + + :param str mount_target_id: (required) + The OCID of the mount target. + + :param UpdateMountTargetDetails update_mount_target_details: (required) + Details object for updating a mount target. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.file_storage.models.MountTarget.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.file_storage.FileStorageClient.update_mount_target` + + :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_mount_target(mount_target_id, update_mount_target_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_mount_target(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) diff --git a/src/oci/file_storage/models/create_export_details.py b/src/oci/file_storage/models/create_export_details.py index ed8e9a58c8..6d86012301 100644 --- a/src/oci/file_storage/models/create_export_details.py +++ b/src/oci/file_storage/models/create_export_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/create_file_system_details.py b/src/oci/file_storage/models/create_file_system_details.py index b148d99b63..9fd45a347c 100644 --- a/src/oci/file_storage/models/create_file_system_details.py +++ b/src/oci/file_storage/models/create_file_system_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/create_mount_target_details.py b/src/oci/file_storage/models/create_mount_target_details.py index 0e1a0e9b2f..1bedc2cff4 100644 --- a/src/oci/file_storage/models/create_mount_target_details.py +++ b/src/oci/file_storage/models/create_mount_target_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/create_snapshot_details.py b/src/oci/file_storage/models/create_snapshot_details.py index 8e58e54818..c2963e3dbd 100644 --- a/src/oci/file_storage/models/create_snapshot_details.py +++ b/src/oci/file_storage/models/create_snapshot_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/export.py b/src/oci/file_storage/models/export.py index 9af7d88942..a6fb08f365 100644 --- a/src/oci/file_storage/models/export.py +++ b/src/oci/file_storage/models/export.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/export_set.py b/src/oci/file_storage/models/export_set.py index c7b3850514..cf555a8113 100644 --- a/src/oci/file_storage/models/export_set.py +++ b/src/oci/file_storage/models/export_set.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/export_set_summary.py b/src/oci/file_storage/models/export_set_summary.py index 153e70c62b..7d0d7cf32e 100644 --- a/src/oci/file_storage/models/export_set_summary.py +++ b/src/oci/file_storage/models/export_set_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/export_summary.py b/src/oci/file_storage/models/export_summary.py index af3ab4451d..7f22d5bc58 100644 --- a/src/oci/file_storage/models/export_summary.py +++ b/src/oci/file_storage/models/export_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/file_system.py b/src/oci/file_storage/models/file_system.py index e7ab0d8fea..58d013d8ba 100644 --- a/src/oci/file_storage/models/file_system.py +++ b/src/oci/file_storage/models/file_system.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/file_system_summary.py b/src/oci/file_storage/models/file_system_summary.py index e77ab162b5..f5394aa756 100644 --- a/src/oci/file_storage/models/file_system_summary.py +++ b/src/oci/file_storage/models/file_system_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/mount_target.py b/src/oci/file_storage/models/mount_target.py index 7e4a3d65ce..f02d9e515f 100644 --- a/src/oci/file_storage/models/mount_target.py +++ b/src/oci/file_storage/models/mount_target.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/mount_target_summary.py b/src/oci/file_storage/models/mount_target_summary.py index f9c1c917ec..b79bb2685e 100644 --- a/src/oci/file_storage/models/mount_target_summary.py +++ b/src/oci/file_storage/models/mount_target_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/snapshot.py b/src/oci/file_storage/models/snapshot.py index 7cbdbe313d..83a4a32254 100644 --- a/src/oci/file_storage/models/snapshot.py +++ b/src/oci/file_storage/models/snapshot.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/snapshot_summary.py b/src/oci/file_storage/models/snapshot_summary.py index 27b5f6dd77..1625ff448f 100644 --- a/src/oci/file_storage/models/snapshot_summary.py +++ b/src/oci/file_storage/models/snapshot_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/update_export_set_details.py b/src/oci/file_storage/models/update_export_set_details.py index b4cc2009e2..48e5c5e0e0 100644 --- a/src/oci/file_storage/models/update_export_set_details.py +++ b/src/oci/file_storage/models/update_export_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/update_file_system_details.py b/src/oci/file_storage/models/update_file_system_details.py index 00ca87296b..3f3a5fa3f1 100644 --- a/src/oci/file_storage/models/update_file_system_details.py +++ b/src/oci/file_storage/models/update_file_system_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/file_storage/models/update_mount_target_details.py b/src/oci/file_storage/models/update_mount_target_details.py index cac7dc70bc..0d5a4c6db8 100644 --- a/src/oci/file_storage/models/update_mount_target_details.py +++ b/src/oci/file_storage/models/update_mount_target_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/__init__.py b/src/oci/identity/__init__.py index 140c788d18..65c0fa8caa 100644 --- a/src/oci/identity/__init__.py +++ b/src/oci/identity/__init__.py @@ -5,6 +5,7 @@ from .identity_client import IdentityClient +from .identity_client_composite_operations import IdentityClientCompositeOperations from . import models -__all__ = ["IdentityClient", "models"] +__all__ = ["IdentityClient", "IdentityClientCompositeOperations", "models"] diff --git a/src/oci/identity/identity_client.py b/src/oci/identity/identity_client.py index 47b04f9379..e83af8c12d 100644 --- a/src/oci/identity/identity_client.py +++ b/src/oci/identity/identity_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import identity_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class IdentityClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/identity/identity_client_composite_operations.py b/src/oci/identity/identity_client_composite_operations.py new file mode 100644 index 0000000000..eb0934d287 --- /dev/null +++ b/src/oci/identity/identity_client_composite_operations.py @@ -0,0 +1,814 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class IdentityClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.identity.IdentityClient` 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 IdentityClientCompositeOperations object + + :param IdentityClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def add_user_to_group_and_wait_for_state(self, add_user_to_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.add_user_to_group` and waits for the :py:class:`~oci.identity.models.UserGroupMembership` acted upon + to enter the given state(s). + + :param AddUserToGroupDetails add_user_to_group_details: (required) + Request object for adding a user to a group. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.UserGroupMembership.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.add_user_to_group` + + :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_user_to_group(add_user_to_group_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_user_group_membership(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_compartment_and_wait_for_state(self, create_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.create_compartment` and waits for the :py:class:`~oci.identity.models.Compartment` acted upon + to enter the given state(s). + + :param CreateCompartmentDetails create_compartment_details: (required) + Request object for creating a new compartment. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Compartment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.create_compartment` + + :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_compartment(create_compartment_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_compartment(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_dynamic_group_and_wait_for_state(self, create_dynamic_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.create_dynamic_group` and waits for the :py:class:`~oci.identity.models.DynamicGroup` acted upon + to enter the given state(s). + + :param CreateDynamicGroupDetails create_dynamic_group_details: (required) + Request object for creating a new dynamic group. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.DynamicGroup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.create_dynamic_group` + + :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_dynamic_group(create_dynamic_group_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_dynamic_group(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_group_and_wait_for_state(self, create_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.create_group` and waits for the :py:class:`~oci.identity.models.Group` acted upon + to enter the given state(s). + + :param CreateGroupDetails create_group_details: (required) + Request object for creating a new group. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Group.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.create_group` + + :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_group(create_group_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_group(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_identity_provider_and_wait_for_state(self, create_identity_provider_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.create_identity_provider` and waits for the :py:class:`~oci.identity.models.IdentityProvider` acted upon + to enter the given state(s). + + :param CreateIdentityProviderDetails create_identity_provider_details: (required) + Request object for creating a new SAML2 identity provider. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.IdentityProvider.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.create_identity_provider` + + :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_identity_provider(create_identity_provider_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_identity_provider(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_idp_group_mapping_and_wait_for_state(self, create_idp_group_mapping_details, identity_provider_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.create_idp_group_mapping` and waits for the :py:class:`~oci.identity.models.IdpGroupMapping` acted upon + to enter the given state(s). + + :param CreateIdpGroupMappingDetails create_idp_group_mapping_details: (required) + Add a mapping from an SAML2.0 identity provider group to a BMC group. + + :param str identity_provider_id: (required) + The OCID of the identity provider. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.IdpGroupMapping.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.create_idp_group_mapping` + + :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_idp_group_mapping(create_idp_group_mapping_details, identity_provider_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_idp_group_mapping(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_policy_and_wait_for_state(self, create_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.create_policy` and waits for the :py:class:`~oci.identity.models.Policy` acted upon + to enter the given state(s). + + :param CreatePolicyDetails create_policy_details: (required) + Request object for creating a new policy. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Policy.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.create_policy` + + :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_policy(create_policy_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_policy(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_user_and_wait_for_state(self, create_user_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.create_user` and waits for the :py:class:`~oci.identity.models.User` acted upon + to enter the given state(s). + + :param CreateUserDetails create_user_details: (required) + Request object for creating a new user. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.User.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.create_user` + + :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_user(create_user_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_user(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 delete_dynamic_group_and_wait_for_state(self, dynamic_group_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.delete_dynamic_group` and waits for the :py:class:`~oci.identity.models.DynamicGroup` acted upon + to enter the given state(s). + + :param str dynamic_group_id: (required) + The OCID of the dynamic group. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.DynamicGroup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.delete_dynamic_group` + + :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_dynamic_group(dynamic_group_id) + operation_result = self.client.delete_dynamic_group(dynamic_group_id, **operation_kwargs) + 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_group_and_wait_for_state(self, group_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.delete_group` and waits for the :py:class:`~oci.identity.models.Group` acted upon + to enter the given state(s). + + :param str group_id: (required) + The OCID of the group. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Group.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.delete_group` + + :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_group(group_id) + operation_result = self.client.delete_group(group_id, **operation_kwargs) + 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_identity_provider_and_wait_for_state(self, identity_provider_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.delete_identity_provider` and waits for the :py:class:`~oci.identity.models.IdentityProvider` acted upon + to enter the given state(s). + + :param str identity_provider_id: (required) + The OCID of the identity provider. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.IdentityProvider.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.delete_identity_provider` + + :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_identity_provider(identity_provider_id) + operation_result = self.client.delete_identity_provider(identity_provider_id, **operation_kwargs) + 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_policy_and_wait_for_state(self, policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.delete_policy` and waits for the :py:class:`~oci.identity.models.Policy` acted upon + to enter the given state(s). + + :param str policy_id: (required) + The OCID of the policy. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Policy.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.delete_policy` + + :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_policy(policy_id) + operation_result = self.client.delete_policy(policy_id, **operation_kwargs) + 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_user_and_wait_for_state(self, user_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.delete_user` and waits for the :py:class:`~oci.identity.models.User` acted upon + to enter the given state(s). + + :param str user_id: (required) + The OCID of the user. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.User.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.delete_user` + + :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_user(user_id) + operation_result = self.client.delete_user(user_id, **operation_kwargs) + 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 update_compartment_and_wait_for_state(self, compartment_id, update_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.update_compartment` and waits for the :py:class:`~oci.identity.models.Compartment` acted upon + to enter the given state(s). + + :param str compartment_id: (required) + The OCID of the compartment. + + :param UpdateCompartmentDetails update_compartment_details: (required) + Request object for updating a compartment. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Compartment.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.update_compartment` + + :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_compartment(compartment_id, update_compartment_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_compartment(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_dynamic_group_and_wait_for_state(self, dynamic_group_id, update_dynamic_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.update_dynamic_group` and waits for the :py:class:`~oci.identity.models.DynamicGroup` acted upon + to enter the given state(s). + + :param str dynamic_group_id: (required) + The OCID of the dynamic group. + + :param UpdateDynamicGroupDetails update_dynamic_group_details: (required) + Request object for updating an dynamic group. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.DynamicGroup.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.update_dynamic_group` + + :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_dynamic_group(dynamic_group_id, update_dynamic_group_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_dynamic_group(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_group_and_wait_for_state(self, group_id, update_group_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.update_group` and waits for the :py:class:`~oci.identity.models.Group` acted upon + to enter the given state(s). + + :param str group_id: (required) + The OCID of the group. + + :param UpdateGroupDetails update_group_details: (required) + Request object for updating a group. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Group.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.update_group` + + :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_group(group_id, update_group_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_group(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_identity_provider_and_wait_for_state(self, identity_provider_id, update_identity_provider_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.update_identity_provider` and waits for the :py:class:`~oci.identity.models.IdentityProvider` acted upon + to enter the given state(s). + + :param str identity_provider_id: (required) + The OCID of the identity provider. + + :param UpdateIdentityProviderDetails update_identity_provider_details: (required) + Request object for updating a identity provider. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.IdentityProvider.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.update_identity_provider` + + :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_identity_provider(identity_provider_id, update_identity_provider_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_identity_provider(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_idp_group_mapping_and_wait_for_state(self, identity_provider_id, mapping_id, update_idp_group_mapping_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.update_idp_group_mapping` and waits for the :py:class:`~oci.identity.models.IdpGroupMapping` acted upon + to enter the given state(s). + + :param str identity_provider_id: (required) + The OCID of the identity provider. + + :param str mapping_id: (required) + The OCID of the group mapping. + + :param UpdateIdpGroupMappingDetails update_idp_group_mapping_details: (required) + Request object for updating an identity provider group mapping + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.IdpGroupMapping.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.update_idp_group_mapping` + + :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_idp_group_mapping(identity_provider_id, mapping_id, update_idp_group_mapping_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_idp_group_mapping(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_policy_and_wait_for_state(self, policy_id, update_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.update_policy` and waits for the :py:class:`~oci.identity.models.Policy` acted upon + to enter the given state(s). + + :param str policy_id: (required) + The OCID of the policy. + + :param UpdatePolicyDetails update_policy_details: (required) + Request object for updating a policy. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.Policy.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.update_policy` + + :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_policy(policy_id, update_policy_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_policy(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_user_and_wait_for_state(self, user_id, update_user_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.identity.IdentityClient.update_user` and waits for the :py:class:`~oci.identity.models.User` acted upon + to enter the given state(s). + + :param str user_id: (required) + The OCID of the user. + + :param UpdateUserDetails update_user_details: (required) + Request object for updating a user. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.identity.models.User.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.identity.IdentityClient.update_user` + + :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_user(user_id, update_user_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_user(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) diff --git a/src/oci/identity/models/add_user_to_group_details.py b/src/oci/identity/models/add_user_to_group_details.py index 9bc4ca5087..534b5a4754 100644 --- a/src/oci/identity/models/add_user_to_group_details.py +++ b/src/oci/identity/models/add_user_to_group_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/api_key.py b/src/oci/identity/models/api_key.py index 9d90db9ab2..65707d6f57 100644 --- a/src/oci/identity/models/api_key.py +++ b/src/oci/identity/models/api_key.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/availability_domain.py b/src/oci/identity/models/availability_domain.py index 75226b5845..73ae7588e2 100644 --- a/src/oci/identity/models/availability_domain.py +++ b/src/oci/identity/models/availability_domain.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/compartment.py b/src/oci/identity/models/compartment.py index 20cb0e4023..35fcfcf4a3 100644 --- a/src/oci/identity/models/compartment.py +++ b/src/oci/identity/models/compartment.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_api_key_details.py b/src/oci/identity/models/create_api_key_details.py index dd3c7bca40..125f53fc65 100644 --- a/src/oci/identity/models/create_api_key_details.py +++ b/src/oci/identity/models/create_api_key_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_compartment_details.py b/src/oci/identity/models/create_compartment_details.py index 54d25d8c7c..d78cfb0766 100644 --- a/src/oci/identity/models/create_compartment_details.py +++ b/src/oci/identity/models/create_compartment_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_customer_secret_key_details.py b/src/oci/identity/models/create_customer_secret_key_details.py index ea47de134b..eaacd99fc5 100644 --- a/src/oci/identity/models/create_customer_secret_key_details.py +++ b/src/oci/identity/models/create_customer_secret_key_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_dynamic_group_details.py b/src/oci/identity/models/create_dynamic_group_details.py index d96e372f5f..590ab46698 100644 --- a/src/oci/identity/models/create_dynamic_group_details.py +++ b/src/oci/identity/models/create_dynamic_group_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_group_details.py b/src/oci/identity/models/create_group_details.py index 104569fbec..99e56dadd8 100644 --- a/src/oci/identity/models/create_group_details.py +++ b/src/oci/identity/models/create_group_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_identity_provider_details.py b/src/oci/identity/models/create_identity_provider_details.py index cd331168cb..13baa4a135 100644 --- a/src/oci/identity/models/create_identity_provider_details.py +++ b/src/oci/identity/models/create_identity_provider_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_idp_group_mapping_details.py b/src/oci/identity/models/create_idp_group_mapping_details.py index d67a8e34d6..21cc534373 100644 --- a/src/oci/identity/models/create_idp_group_mapping_details.py +++ b/src/oci/identity/models/create_idp_group_mapping_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_policy_details.py b/src/oci/identity/models/create_policy_details.py index c6a3c45f30..a7d19c92bf 100644 --- a/src/oci/identity/models/create_policy_details.py +++ b/src/oci/identity/models/create_policy_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_region_subscription_details.py b/src/oci/identity/models/create_region_subscription_details.py index 75cd2775be..7c826fcb7f 100644 --- a/src/oci/identity/models/create_region_subscription_details.py +++ b/src/oci/identity/models/create_region_subscription_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_saml2_identity_provider_details.py b/src/oci/identity/models/create_saml2_identity_provider_details.py index 33a5396098..d27f7f180b 100644 --- a/src/oci/identity/models/create_saml2_identity_provider_details.py +++ b/src/oci/identity/models/create_saml2_identity_provider_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .create_identity_provider_details import CreateIdentityProviderDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_smtp_credential_details.py b/src/oci/identity/models/create_smtp_credential_details.py index 473360ac27..03818af516 100644 --- a/src/oci/identity/models/create_smtp_credential_details.py +++ b/src/oci/identity/models/create_smtp_credential_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_swift_password_details.py b/src/oci/identity/models/create_swift_password_details.py index e37a1ea366..513d24977a 100644 --- a/src/oci/identity/models/create_swift_password_details.py +++ b/src/oci/identity/models/create_swift_password_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_tag_details.py b/src/oci/identity/models/create_tag_details.py index 1972575e7d..86d3c64025 100644 --- a/src/oci/identity/models/create_tag_details.py +++ b/src/oci/identity/models/create_tag_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_tag_namespace_details.py b/src/oci/identity/models/create_tag_namespace_details.py index afaa7b9582..f9be438e01 100644 --- a/src/oci/identity/models/create_tag_namespace_details.py +++ b/src/oci/identity/models/create_tag_namespace_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/create_user_details.py b/src/oci/identity/models/create_user_details.py index c33c896b65..04ef6e8cde 100644 --- a/src/oci/identity/models/create_user_details.py +++ b/src/oci/identity/models/create_user_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/customer_secret_key.py b/src/oci/identity/models/customer_secret_key.py index c60b7603d9..9d55956f1e 100644 --- a/src/oci/identity/models/customer_secret_key.py +++ b/src/oci/identity/models/customer_secret_key.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/customer_secret_key_summary.py b/src/oci/identity/models/customer_secret_key_summary.py index becefaa4c8..c74ec0150a 100644 --- a/src/oci/identity/models/customer_secret_key_summary.py +++ b/src/oci/identity/models/customer_secret_key_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/dynamic_group.py b/src/oci/identity/models/dynamic_group.py index 279569d2ed..ae59a29b1e 100644 --- a/src/oci/identity/models/dynamic_group.py +++ b/src/oci/identity/models/dynamic_group.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/group.py b/src/oci/identity/models/group.py index 3524300d7e..ad46e7d7a3 100644 --- a/src/oci/identity/models/group.py +++ b/src/oci/identity/models/group.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/identity_provider.py b/src/oci/identity/models/identity_provider.py index 722ed0698d..8414ff323f 100644 --- a/src/oci/identity/models/identity_provider.py +++ b/src/oci/identity/models/identity_provider.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/idp_group_mapping.py b/src/oci/identity/models/idp_group_mapping.py index 6cf517d665..508965d5c5 100644 --- a/src/oci/identity/models/idp_group_mapping.py +++ b/src/oci/identity/models/idp_group_mapping.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/policy.py b/src/oci/identity/models/policy.py index 370537655f..ff3041e9c0 100644 --- a/src/oci/identity/models/policy.py +++ b/src/oci/identity/models/policy.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/region.py b/src/oci/identity/models/region.py index 93d19c9e19..ffebc41239 100644 --- a/src/oci/identity/models/region.py +++ b/src/oci/identity/models/region.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/region_subscription.py b/src/oci/identity/models/region_subscription.py index be582e9224..0a6d9c9614 100644 --- a/src/oci/identity/models/region_subscription.py +++ b/src/oci/identity/models/region_subscription.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/saml2_identity_provider.py b/src/oci/identity/models/saml2_identity_provider.py index b806f88271..d245db751e 100644 --- a/src/oci/identity/models/saml2_identity_provider.py +++ b/src/oci/identity/models/saml2_identity_provider.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .identity_provider import IdentityProvider -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/smtp_credential.py b/src/oci/identity/models/smtp_credential.py index 6aff9f68b4..05927d5c40 100644 --- a/src/oci/identity/models/smtp_credential.py +++ b/src/oci/identity/models/smtp_credential.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/smtp_credential_summary.py b/src/oci/identity/models/smtp_credential_summary.py index 78168774b9..c32955af61 100644 --- a/src/oci/identity/models/smtp_credential_summary.py +++ b/src/oci/identity/models/smtp_credential_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/swift_password.py b/src/oci/identity/models/swift_password.py index 54187e8edb..59ef0354af 100644 --- a/src/oci/identity/models/swift_password.py +++ b/src/oci/identity/models/swift_password.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/tag.py b/src/oci/identity/models/tag.py index 5e492cedc0..22174c9fbb 100644 --- a/src/oci/identity/models/tag.py +++ b/src/oci/identity/models/tag.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/tag_namespace.py b/src/oci/identity/models/tag_namespace.py index b557d71195..3b61db744b 100644 --- a/src/oci/identity/models/tag_namespace.py +++ b/src/oci/identity/models/tag_namespace.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/tag_namespace_summary.py b/src/oci/identity/models/tag_namespace_summary.py index 0ef5846f75..bc4bb0ab40 100644 --- a/src/oci/identity/models/tag_namespace_summary.py +++ b/src/oci/identity/models/tag_namespace_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/tag_summary.py b/src/oci/identity/models/tag_summary.py index 05623e6259..c76776d1a4 100644 --- a/src/oci/identity/models/tag_summary.py +++ b/src/oci/identity/models/tag_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/tenancy.py b/src/oci/identity/models/tenancy.py index 5da79e4dfe..a543122936 100644 --- a/src/oci/identity/models/tenancy.py +++ b/src/oci/identity/models/tenancy.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/ui_password.py b/src/oci/identity/models/ui_password.py index 99eab8fa84..b236f2800c 100644 --- a/src/oci/identity/models/ui_password.py +++ b/src/oci/identity/models/ui_password.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_compartment_details.py b/src/oci/identity/models/update_compartment_details.py index 0471a37a51..7691a47d05 100644 --- a/src/oci/identity/models/update_compartment_details.py +++ b/src/oci/identity/models/update_compartment_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_customer_secret_key_details.py b/src/oci/identity/models/update_customer_secret_key_details.py index 339a0e0b1e..c9cd0a4054 100644 --- a/src/oci/identity/models/update_customer_secret_key_details.py +++ b/src/oci/identity/models/update_customer_secret_key_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_dynamic_group_details.py b/src/oci/identity/models/update_dynamic_group_details.py index 1677aa1614..06ca06f050 100644 --- a/src/oci/identity/models/update_dynamic_group_details.py +++ b/src/oci/identity/models/update_dynamic_group_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_group_details.py b/src/oci/identity/models/update_group_details.py index b24f48c065..4df8ad1fb7 100644 --- a/src/oci/identity/models/update_group_details.py +++ b/src/oci/identity/models/update_group_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_identity_provider_details.py b/src/oci/identity/models/update_identity_provider_details.py index 7c18f50bd7..615080e007 100644 --- a/src/oci/identity/models/update_identity_provider_details.py +++ b/src/oci/identity/models/update_identity_provider_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_idp_group_mapping_details.py b/src/oci/identity/models/update_idp_group_mapping_details.py index b92077cde2..aa07bca30e 100644 --- a/src/oci/identity/models/update_idp_group_mapping_details.py +++ b/src/oci/identity/models/update_idp_group_mapping_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_policy_details.py b/src/oci/identity/models/update_policy_details.py index ee23f346af..f38f2b46a6 100644 --- a/src/oci/identity/models/update_policy_details.py +++ b/src/oci/identity/models/update_policy_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_saml2_identity_provider_details.py b/src/oci/identity/models/update_saml2_identity_provider_details.py index c5dbc3bb04..6fb6617cc9 100644 --- a/src/oci/identity/models/update_saml2_identity_provider_details.py +++ b/src/oci/identity/models/update_saml2_identity_provider_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. from .update_identity_provider_details import UpdateIdentityProviderDetails -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_smtp_credential_details.py b/src/oci/identity/models/update_smtp_credential_details.py index 65f48c3ccb..06103522d2 100644 --- a/src/oci/identity/models/update_smtp_credential_details.py +++ b/src/oci/identity/models/update_smtp_credential_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_state_details.py b/src/oci/identity/models/update_state_details.py index 50e7c6272d..87648dedd5 100644 --- a/src/oci/identity/models/update_state_details.py +++ b/src/oci/identity/models/update_state_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_swift_password_details.py b/src/oci/identity/models/update_swift_password_details.py index afdce68999..cfb101b04d 100644 --- a/src/oci/identity/models/update_swift_password_details.py +++ b/src/oci/identity/models/update_swift_password_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_tag_details.py b/src/oci/identity/models/update_tag_details.py index 91b273e810..666f191157 100644 --- a/src/oci/identity/models/update_tag_details.py +++ b/src/oci/identity/models/update_tag_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_tag_namespace_details.py b/src/oci/identity/models/update_tag_namespace_details.py index 5dc80308aa..4953ef9590 100644 --- a/src/oci/identity/models/update_tag_namespace_details.py +++ b/src/oci/identity/models/update_tag_namespace_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/update_user_details.py b/src/oci/identity/models/update_user_details.py index ce784bf2f3..df81afe6ea 100644 --- a/src/oci/identity/models/update_user_details.py +++ b/src/oci/identity/models/update_user_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/user.py b/src/oci/identity/models/user.py index 2b69673afa..6a794f6331 100644 --- a/src/oci/identity/models/user.py +++ b/src/oci/identity/models/user.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/identity/models/user_group_membership.py b/src/oci/identity/models/user_group_membership.py index 7b8f7459a0..3d72e27e5b 100644 --- a/src/oci/identity/models/user_group_membership.py +++ b/src/oci/identity/models/user_group_membership.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/__init__.py b/src/oci/load_balancer/__init__.py index 812d36457c..9e312da875 100644 --- a/src/oci/load_balancer/__init__.py +++ b/src/oci/load_balancer/__init__.py @@ -5,6 +5,7 @@ from .load_balancer_client import LoadBalancerClient +from .load_balancer_client_composite_operations import LoadBalancerClientCompositeOperations from . import models -__all__ = ["LoadBalancerClient", "models"] +__all__ = ["LoadBalancerClient", "LoadBalancerClientCompositeOperations", "models"] diff --git a/src/oci/load_balancer/load_balancer_client.py b/src/oci/load_balancer/load_balancer_client.py index bab7181c76..5586846286 100644 --- a/src/oci/load_balancer/load_balancer_client.py +++ b/src/oci/load_balancer/load_balancer_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import load_balancer_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class LoadBalancerClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/load_balancer/load_balancer_client_composite_operations.py b/src/oci/load_balancer/load_balancer_client_composite_operations.py new file mode 100644 index 0000000000..c8aff19a01 --- /dev/null +++ b/src/oci/load_balancer/load_balancer_client_composite_operations.py @@ -0,0 +1,838 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class LoadBalancerClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.load_balancer.LoadBalancerClient` 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 LoadBalancerClientCompositeOperations object + + :param LoadBalancerClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_backend_and_wait_for_state(self, create_backend_details, load_balancer_id, backend_set_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.create_backend` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param CreateBackendDetails create_backend_details: (required) + The details to add a backend server to a backend set. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the backend set and servers. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str backend_set_name: (required) + The name of the backend set to add the backend server to. + + Example: `My_backend_set` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.create_backend` + + :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_backend(create_backend_details, load_balancer_id, backend_set_name, **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, '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_backend_set_and_wait_for_state(self, create_backend_set_details, load_balancer_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.create_backend_set` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param CreateBackendSetDetails create_backend_set_details: (required) + The details for adding a backend set. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer on which to add a backend set. + + __ https://docs.us-phoenix-1.oraclecloud.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.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.create_backend_set` + + :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_backend_set(create_backend_set_details, load_balancer_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, '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_certificate_and_wait_for_state(self, create_certificate_details, load_balancer_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.create_certificate` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param CreateCertificateDetails create_certificate_details: (required) + The details of the certificate to add. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer on which to add the certificate. + + __ https://docs.us-phoenix-1.oraclecloud.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.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.create_certificate` + + :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_certificate(create_certificate_details, load_balancer_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, '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_listener_and_wait_for_state(self, create_listener_details, load_balancer_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.create_listener` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param CreateListenerDetails create_listener_details: (required) + Details to add a listener. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer on which to add a listener. + + __ https://docs.us-phoenix-1.oraclecloud.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.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.create_listener` + + :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_listener(create_listener_details, load_balancer_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, '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_load_balancer_and_wait_for_state(self, create_load_balancer_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.create_load_balancer` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param CreateLoadBalancerDetails create_load_balancer_details: (required) + The configuration details for creating a load balancer. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.create_load_balancer` + + :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_load_balancer(create_load_balancer_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, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = self.client.get_load_balancer(waiter_result.data.load_balancer_id) + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_path_route_set_and_wait_for_state(self, create_path_route_set_details, load_balancer_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.create_path_route_set` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param CreatePathRouteSetDetails create_path_route_set_details: (required) + The details of the path route set to add. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer to add the path route set to. + + __ https://docs.us-phoenix-1.oraclecloud.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.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.create_path_route_set` + + :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_path_route_set(create_path_route_set_details, load_balancer_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, '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 delete_backend_and_wait_for_state(self, load_balancer_id, backend_set_name, backend_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.delete_backend` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the backend set and server. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str backend_set_name: (required) + The name of the backend set associated with the backend server. + + Example: `My_backend_set` + + :param str backend_name: (required) + The IP address and port of the backend server to remove. + + Example: `1.1.1.7:42` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.delete_backend` + + :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.delete_backend(load_balancer_id, backend_set_name, backend_name, **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, '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 delete_backend_set_and_wait_for_state(self, load_balancer_id, backend_set_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.delete_backend_set` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the backend set. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str backend_set_name: (required) + The name of the backend set to delete. + + Example: `My_backend_set` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.delete_backend_set` + + :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.delete_backend_set(load_balancer_id, backend_set_name, **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, '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 delete_certificate_and_wait_for_state(self, load_balancer_id, certificate_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.delete_certificate` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the certificate to be deleted. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str certificate_name: (required) + The name of the certificate to delete. + + Example: `My_certificate_bundle` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.delete_certificate` + + :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.delete_certificate(load_balancer_id, certificate_name, **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, '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 delete_listener_and_wait_for_state(self, load_balancer_id, listener_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.delete_listener` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the listener to delete. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str listener_name: (required) + The name of the listener to delete. + + Example: `My listener` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.delete_listener` + + :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.delete_listener(load_balancer_id, listener_name, **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, '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 delete_load_balancer_and_wait_for_state(self, load_balancer_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.delete_load_balancer` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer to delete. + + __ https://docs.us-phoenix-1.oraclecloud.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.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.delete_load_balancer` + + :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.delete_load_balancer(load_balancer_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, '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 delete_path_route_set_and_wait_for_state(self, load_balancer_id, path_route_set_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.delete_path_route_set` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the path route set to delete. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str path_route_set_name: (required) + The name of the path route set to delete. + + Example: `path-route-set-001` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.delete_path_route_set` + + :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.delete_path_route_set(load_balancer_id, path_route_set_name, **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, '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_backend_and_wait_for_state(self, update_backend_details, load_balancer_id, backend_set_name, backend_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.update_backend` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param UpdateBackendDetails update_backend_details: (required) + Details for updating a backend server. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the backend set and server. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str backend_set_name: (required) + The name of the backend set associated with the backend server. + + Example: `My_backend_set` + + :param str backend_name: (required) + The IP address and port of the backend server to update. + + Example: `1.1.1.7:42` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.update_backend` + + :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_backend(update_backend_details, load_balancer_id, backend_set_name, backend_name, **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, '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_backend_set_and_wait_for_state(self, update_backend_set_details, load_balancer_id, backend_set_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.update_backend_set` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param UpdateBackendSetDetails update_backend_set_details: (required) + The details to update a backend set. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the backend set. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str backend_set_name: (required) + The name of the backend set to update. + + Example: `My_backend_set` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.update_backend_set` + + :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_backend_set(update_backend_set_details, load_balancer_id, backend_set_name, **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, '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_health_checker_and_wait_for_state(self, health_checker, load_balancer_id, backend_set_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.update_health_checker` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param UpdateHealthCheckerDetails health_checker: (required) + The health check policy configuration details. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the health check policy to be updated. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str backend_set_name: (required) + The name of the backend set associated with the health check policy to be retrieved. + + Example: `My_backend_set` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.update_health_checker` + + :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_health_checker(health_checker, load_balancer_id, backend_set_name, **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, '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_listener_and_wait_for_state(self, update_listener_details, load_balancer_id, listener_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.update_listener` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param UpdateListenerDetails update_listener_details: (required) + Details to update a listener. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the listener to update. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str listener_name: (required) + The name of the listener to update. + + Example: `My listener` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.update_listener` + + :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_listener(update_listener_details, load_balancer_id, listener_name, **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, '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_load_balancer_and_wait_for_state(self, update_load_balancer_details, load_balancer_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.update_load_balancer` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param UpdateLoadBalancerDetails update_load_balancer_details: (required) + The details for updating a load balancer's configuration. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer to update. + + __ https://docs.us-phoenix-1.oraclecloud.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.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.update_load_balancer` + + :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_load_balancer(update_load_balancer_details, load_balancer_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, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = self.client.get_load_balancer(waiter_result.data.load_balancer_id) + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_path_route_set_and_wait_for_state(self, update_path_route_set_details, load_balancer_id, path_route_set_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.load_balancer.LoadBalancerClient.update_path_route_set` and waits for the :py:class:`~oci.load_balancer.models.WorkRequest` + to enter the given state(s). + + :param UpdatePathRouteSetDetails update_path_route_set_details: (required) + The configuration details to update a path route set. + + :param str load_balancer_id: (required) + The `OCID`__ of the load balancer associated with the path route set to update. + + __ https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm + + :param str path_route_set_name: (required) + The name of the path route set to update. + + Example: `path-route-set-001` + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.load_balancer.models.WorkRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.load_balancer.LoadBalancerClient.update_path_route_set` + + :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_path_route_set(update_path_route_set_details, load_balancer_id, path_route_set_name, **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, '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) diff --git a/src/oci/load_balancer/models/backend.py b/src/oci/load_balancer/models/backend.py index 0edcde5e0d..83a8ba755d 100644 --- a/src/oci/load_balancer/models/backend.py +++ b/src/oci/load_balancer/models/backend.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/backend_details.py b/src/oci/load_balancer/models/backend_details.py index c1ed540a3a..e00fed8b69 100644 --- a/src/oci/load_balancer/models/backend_details.py +++ b/src/oci/load_balancer/models/backend_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/backend_health.py b/src/oci/load_balancer/models/backend_health.py index 726cfdea4a..8721b22ee6 100644 --- a/src/oci/load_balancer/models/backend_health.py +++ b/src/oci/load_balancer/models/backend_health.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/backend_set.py b/src/oci/load_balancer/models/backend_set.py index b3325d281b..1ab9d67675 100644 --- a/src/oci/load_balancer/models/backend_set.py +++ b/src/oci/load_balancer/models/backend_set.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/backend_set_details.py b/src/oci/load_balancer/models/backend_set_details.py index c059768f40..3ff7479ec6 100644 --- a/src/oci/load_balancer/models/backend_set_details.py +++ b/src/oci/load_balancer/models/backend_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/backend_set_health.py b/src/oci/load_balancer/models/backend_set_health.py index 3b5a2852eb..412d92a930 100644 --- a/src/oci/load_balancer/models/backend_set_health.py +++ b/src/oci/load_balancer/models/backend_set_health.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/certificate.py b/src/oci/load_balancer/models/certificate.py index 5db3fbd75d..c75c2195dc 100644 --- a/src/oci/load_balancer/models/certificate.py +++ b/src/oci/load_balancer/models/certificate.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/certificate_details.py b/src/oci/load_balancer/models/certificate_details.py index 923a82700e..73a1d416d9 100644 --- a/src/oci/load_balancer/models/certificate_details.py +++ b/src/oci/load_balancer/models/certificate_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/connection_configuration.py b/src/oci/load_balancer/models/connection_configuration.py index ee2c52d699..02765bca17 100644 --- a/src/oci/load_balancer/models/connection_configuration.py +++ b/src/oci/load_balancer/models/connection_configuration.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/create_backend_details.py b/src/oci/load_balancer/models/create_backend_details.py index 1730ca609a..7aabe2b09d 100644 --- a/src/oci/load_balancer/models/create_backend_details.py +++ b/src/oci/load_balancer/models/create_backend_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/create_backend_set_details.py b/src/oci/load_balancer/models/create_backend_set_details.py index e90a0d9f31..dc75148ee9 100644 --- a/src/oci/load_balancer/models/create_backend_set_details.py +++ b/src/oci/load_balancer/models/create_backend_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/create_certificate_details.py b/src/oci/load_balancer/models/create_certificate_details.py index e7371a7378..5996923be2 100644 --- a/src/oci/load_balancer/models/create_certificate_details.py +++ b/src/oci/load_balancer/models/create_certificate_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/create_listener_details.py b/src/oci/load_balancer/models/create_listener_details.py index 49a97bf6b6..c00480d1f1 100644 --- a/src/oci/load_balancer/models/create_listener_details.py +++ b/src/oci/load_balancer/models/create_listener_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/create_load_balancer_details.py b/src/oci/load_balancer/models/create_load_balancer_details.py index f4eb41523a..eb6f0df72e 100644 --- a/src/oci/load_balancer/models/create_load_balancer_details.py +++ b/src/oci/load_balancer/models/create_load_balancer_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/create_path_route_set_details.py b/src/oci/load_balancer/models/create_path_route_set_details.py index 90c4f128b2..3f5be94338 100644 --- a/src/oci/load_balancer/models/create_path_route_set_details.py +++ b/src/oci/load_balancer/models/create_path_route_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/health_check_result.py b/src/oci/load_balancer/models/health_check_result.py index f748868b8d..ee5f0a5d9e 100644 --- a/src/oci/load_balancer/models/health_check_result.py +++ b/src/oci/load_balancer/models/health_check_result.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/health_checker.py b/src/oci/load_balancer/models/health_checker.py index 050cc0230e..80fbcc936e 100644 --- a/src/oci/load_balancer/models/health_checker.py +++ b/src/oci/load_balancer/models/health_checker.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/health_checker_details.py b/src/oci/load_balancer/models/health_checker_details.py index b2830533b3..7e0b4bf345 100644 --- a/src/oci/load_balancer/models/health_checker_details.py +++ b/src/oci/load_balancer/models/health_checker_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/ip_address.py b/src/oci/load_balancer/models/ip_address.py index 174a5d9713..aac0fdbf8c 100644 --- a/src/oci/load_balancer/models/ip_address.py +++ b/src/oci/load_balancer/models/ip_address.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/listener.py b/src/oci/load_balancer/models/listener.py index 6000cc06cd..62ebd3077f 100644 --- a/src/oci/load_balancer/models/listener.py +++ b/src/oci/load_balancer/models/listener.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/listener_details.py b/src/oci/load_balancer/models/listener_details.py index 3ca237b6ce..5fde16023c 100644 --- a/src/oci/load_balancer/models/listener_details.py +++ b/src/oci/load_balancer/models/listener_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/load_balancer.py b/src/oci/load_balancer/models/load_balancer.py index ddc5b65187..81309bffe7 100644 --- a/src/oci/load_balancer/models/load_balancer.py +++ b/src/oci/load_balancer/models/load_balancer.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/load_balancer_health.py b/src/oci/load_balancer/models/load_balancer_health.py index 313293c6e0..b6ef9e03d3 100644 --- a/src/oci/load_balancer/models/load_balancer_health.py +++ b/src/oci/load_balancer/models/load_balancer_health.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/load_balancer_health_summary.py b/src/oci/load_balancer/models/load_balancer_health_summary.py index 08d20426bc..2f71f72cf8 100644 --- a/src/oci/load_balancer/models/load_balancer_health_summary.py +++ b/src/oci/load_balancer/models/load_balancer_health_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/load_balancer_policy.py b/src/oci/load_balancer/models/load_balancer_policy.py index ba0a5b8989..95f68a360f 100644 --- a/src/oci/load_balancer/models/load_balancer_policy.py +++ b/src/oci/load_balancer/models/load_balancer_policy.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/load_balancer_protocol.py b/src/oci/load_balancer/models/load_balancer_protocol.py index 304f17bd3b..62fd21356c 100644 --- a/src/oci/load_balancer/models/load_balancer_protocol.py +++ b/src/oci/load_balancer/models/load_balancer_protocol.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/load_balancer_shape.py b/src/oci/load_balancer/models/load_balancer_shape.py index 7b6b648125..50d05fead2 100644 --- a/src/oci/load_balancer/models/load_balancer_shape.py +++ b/src/oci/load_balancer/models/load_balancer_shape.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/path_match_type.py b/src/oci/load_balancer/models/path_match_type.py index 1e23234ad5..aece2942db 100644 --- a/src/oci/load_balancer/models/path_match_type.py +++ b/src/oci/load_balancer/models/path_match_type.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/path_route.py b/src/oci/load_balancer/models/path_route.py index 511734f62d..de9197fe7f 100644 --- a/src/oci/load_balancer/models/path_route.py +++ b/src/oci/load_balancer/models/path_route.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/path_route_set.py b/src/oci/load_balancer/models/path_route_set.py index 4c72dae398..e145886826 100644 --- a/src/oci/load_balancer/models/path_route_set.py +++ b/src/oci/load_balancer/models/path_route_set.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/path_route_set_details.py b/src/oci/load_balancer/models/path_route_set_details.py index f687baf54b..44b8eea2dd 100644 --- a/src/oci/load_balancer/models/path_route_set_details.py +++ b/src/oci/load_balancer/models/path_route_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/session_persistence_configuration_details.py b/src/oci/load_balancer/models/session_persistence_configuration_details.py index e24bc66a8d..b9941c5959 100644 --- a/src/oci/load_balancer/models/session_persistence_configuration_details.py +++ b/src/oci/load_balancer/models/session_persistence_configuration_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/ssl_configuration.py b/src/oci/load_balancer/models/ssl_configuration.py index a20471d1af..f1362c79ad 100644 --- a/src/oci/load_balancer/models/ssl_configuration.py +++ b/src/oci/load_balancer/models/ssl_configuration.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/ssl_configuration_details.py b/src/oci/load_balancer/models/ssl_configuration_details.py index 9da023c5b9..63a96009f7 100644 --- a/src/oci/load_balancer/models/ssl_configuration_details.py +++ b/src/oci/load_balancer/models/ssl_configuration_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/update_backend_details.py b/src/oci/load_balancer/models/update_backend_details.py index 61aa87782b..c79ff919d2 100644 --- a/src/oci/load_balancer/models/update_backend_details.py +++ b/src/oci/load_balancer/models/update_backend_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/update_backend_set_details.py b/src/oci/load_balancer/models/update_backend_set_details.py index 7ededfc40c..d2e7d895e1 100644 --- a/src/oci/load_balancer/models/update_backend_set_details.py +++ b/src/oci/load_balancer/models/update_backend_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/update_health_checker_details.py b/src/oci/load_balancer/models/update_health_checker_details.py index 3b9ba84a99..bf1786bd59 100644 --- a/src/oci/load_balancer/models/update_health_checker_details.py +++ b/src/oci/load_balancer/models/update_health_checker_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/update_listener_details.py b/src/oci/load_balancer/models/update_listener_details.py index 4ccfd0d708..4b03f98c51 100644 --- a/src/oci/load_balancer/models/update_listener_details.py +++ b/src/oci/load_balancer/models/update_listener_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/update_load_balancer_details.py b/src/oci/load_balancer/models/update_load_balancer_details.py index 696c52389e..768662cd31 100644 --- a/src/oci/load_balancer/models/update_load_balancer_details.py +++ b/src/oci/load_balancer/models/update_load_balancer_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/update_path_route_set_details.py b/src/oci/load_balancer/models/update_path_route_set_details.py index 13c96d1a23..0bde465385 100644 --- a/src/oci/load_balancer/models/update_path_route_set_details.py +++ b/src/oci/load_balancer/models/update_path_route_set_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/work_request.py b/src/oci/load_balancer/models/work_request.py index b4c0e95f9c..baa0adcb8f 100644 --- a/src/oci/load_balancer/models/work_request.py +++ b/src/oci/load_balancer/models/work_request.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/load_balancer/models/work_request_error.py b/src/oci/load_balancer/models/work_request_error.py index fe1bcf03f8..79270bf56f 100644 --- a/src/oci/load_balancer/models/work_request_error.py +++ b/src/oci/load_balancer/models/work_request_error.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/__init__.py b/src/oci/object_storage/__init__.py index b300c4cb61..6a4fd0b0b4 100644 --- a/src/oci/object_storage/__init__.py +++ b/src/oci/object_storage/__init__.py @@ -6,7 +6,8 @@ from .transfer.internal.multipart_object_assembler import MultipartObjectAssembler from . import models from .object_storage_client import ObjectStorageClient +from .object_storage_client_composite_operations import ObjectStorageClientCompositeOperations from .transfer.upload_manager import UploadManager -__all__ = ["ObjectStorageClient", "models", "MultipartObjectAssembler", +__all__ = ["ObjectStorageClient", "ObjectStorageClientCompositeOperations", "models", "MultipartObjectAssembler", "UploadManager"] diff --git a/src/oci/object_storage/models/bucket.py b/src/oci/object_storage/models/bucket.py index 87b84bfe52..8eef23ce32 100644 --- a/src/oci/object_storage/models/bucket.py +++ b/src/oci/object_storage/models/bucket.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/bucket_summary.py b/src/oci/object_storage/models/bucket_summary.py index 6c05fc73b2..f39350bbc5 100644 --- a/src/oci/object_storage/models/bucket_summary.py +++ b/src/oci/object_storage/models/bucket_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/commit_multipart_upload_details.py b/src/oci/object_storage/models/commit_multipart_upload_details.py index 90b30cc8c2..0328543fcb 100644 --- a/src/oci/object_storage/models/commit_multipart_upload_details.py +++ b/src/oci/object_storage/models/commit_multipart_upload_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/commit_multipart_upload_part_details.py b/src/oci/object_storage/models/commit_multipart_upload_part_details.py index 7245a80a61..c3a557cfab 100644 --- a/src/oci/object_storage/models/commit_multipart_upload_part_details.py +++ b/src/oci/object_storage/models/commit_multipart_upload_part_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/create_bucket_details.py b/src/oci/object_storage/models/create_bucket_details.py index 88179df476..28c2701a4e 100644 --- a/src/oci/object_storage/models/create_bucket_details.py +++ b/src/oci/object_storage/models/create_bucket_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/create_multipart_upload_details.py b/src/oci/object_storage/models/create_multipart_upload_details.py index 427a35b9e5..d3d6550047 100644 --- a/src/oci/object_storage/models/create_multipart_upload_details.py +++ b/src/oci/object_storage/models/create_multipart_upload_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/create_preauthenticated_request_details.py b/src/oci/object_storage/models/create_preauthenticated_request_details.py index 7b48631404..31fb480f4f 100644 --- a/src/oci/object_storage/models/create_preauthenticated_request_details.py +++ b/src/oci/object_storage/models/create_preauthenticated_request_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/list_objects.py b/src/oci/object_storage/models/list_objects.py index 8cb43a4b59..7153eb1de9 100644 --- a/src/oci/object_storage/models/list_objects.py +++ b/src/oci/object_storage/models/list_objects.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/multipart_upload.py b/src/oci/object_storage/models/multipart_upload.py index b8aed196db..028cdfcff3 100644 --- a/src/oci/object_storage/models/multipart_upload.py +++ b/src/oci/object_storage/models/multipart_upload.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/multipart_upload_part_summary.py b/src/oci/object_storage/models/multipart_upload_part_summary.py index 3fa2f70769..db92a7613d 100644 --- a/src/oci/object_storage/models/multipart_upload_part_summary.py +++ b/src/oci/object_storage/models/multipart_upload_part_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/namespace_metadata.py b/src/oci/object_storage/models/namespace_metadata.py index b5c7834a90..f5fd386116 100644 --- a/src/oci/object_storage/models/namespace_metadata.py +++ b/src/oci/object_storage/models/namespace_metadata.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/object_summary.py b/src/oci/object_storage/models/object_summary.py index 30212de700..cfbbdae8b6 100644 --- a/src/oci/object_storage/models/object_summary.py +++ b/src/oci/object_storage/models/object_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/preauthenticated_request.py b/src/oci/object_storage/models/preauthenticated_request.py index 2cdfd862bb..9aa249bf85 100644 --- a/src/oci/object_storage/models/preauthenticated_request.py +++ b/src/oci/object_storage/models/preauthenticated_request.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/preauthenticated_request_summary.py b/src/oci/object_storage/models/preauthenticated_request_summary.py index 167796235e..7423ff568d 100644 --- a/src/oci/object_storage/models/preauthenticated_request_summary.py +++ b/src/oci/object_storage/models/preauthenticated_request_summary.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/rename_object_details.py b/src/oci/object_storage/models/rename_object_details.py index b4ee067a3b..04820a39f6 100644 --- a/src/oci/object_storage/models/rename_object_details.py +++ b/src/oci/object_storage/models/rename_object_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/restore_objects_details.py b/src/oci/object_storage/models/restore_objects_details.py index e033c893b8..1286d38d47 100644 --- a/src/oci/object_storage/models/restore_objects_details.py +++ b/src/oci/object_storage/models/restore_objects_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/update_bucket_details.py b/src/oci/object_storage/models/update_bucket_details.py index c71089e539..75415953bb 100644 --- a/src/oci/object_storage/models/update_bucket_details.py +++ b/src/oci/object_storage/models/update_bucket_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/models/update_namespace_metadata_details.py b/src/oci/object_storage/models/update_namespace_metadata_details.py index 02251f51b8..760cdb9a81 100644 --- a/src/oci/object_storage/models/update_namespace_metadata_details.py +++ b/src/oci/object_storage/models/update_namespace_metadata_details.py @@ -2,8 +2,8 @@ # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 -from ...decorators import init_model_state_from_kwargs +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs diff --git a/src/oci/object_storage/object_storage_client.py b/src/oci/object_storage/object_storage_client.py index 01c87e8521..1806e61fc3 100644 --- a/src/oci/object_storage/object_storage_client.py +++ b/src/oci/object_storage/object_storage_client.py @@ -6,11 +6,11 @@ import requests # noqa: F401 import six -from .. import retry # noqa: F401 -from ..base_client import BaseClient -from ..config import get_config_value_or_default, validate_config -from ..signer import Signer -from ..util import Sentinel +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 from .models import object_storage_type_mapping missing = Sentinel("Missing") @@ -21,6 +21,41 @@ class ObjectStorageClient(object): """ 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 is that the client never times out. 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'] diff --git a/src/oci/object_storage/object_storage_client_composite_operations.py b/src/oci/object_storage/object_storage_client_composite_operations.py new file mode 100644 index 0000000000..35b19f04f2 --- /dev/null +++ b/src/oci/object_storage/object_storage_client_composite_operations.py @@ -0,0 +1,22 @@ +# coding: utf-8 +# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + +import oci # noqa: F401 + + +class ObjectStorageClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.object_storage.ObjectStorageClient` 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 ObjectStorageClientCompositeOperations object + + :param ObjectStorageClient client: + The service client which will be wrapped by this object + """ + self.client = client diff --git a/src/oci/retry/__init__.py b/src/oci/retry/__init__.py index 05d44ad280..51fce638c0 100644 --- a/src/oci/retry/__init__.py +++ b/src/oci/retry/__init__.py @@ -5,7 +5,15 @@ from .retry import RetryStrategyBuilder, NoneRetryStrategy, ExponentialBackoffRetryStrategyBase, ExponentialBackoffWithFullJitterRetryStrategy, ExponentialBackoffWithEqualJitterRetryStrategy, ExponentialBackoffWithFullJitterEqualForThrottlesRetryStrategy from . import retry_checkers -# A retry strategy which has all options enabled and which will use the default settings for those options +#: A retry strategy which has all options enabled and which will use the default settings for those options. These +#: defaults are: +#: +#: * 5 total attempts +#: * Total allowed elapsed time for all requests of 300 seconds (5 minutes) +#: * Exponential backoff with jitter using a base time of 1 second, an exponent of 2 and a maximum wait time between calls of 30 seconds +#: * Exponential backoff with equal jitter is used for throttles as this guarantees some sleep time between attempts +#: * Exponential backoff with full jitter is used for other scenarios where we need to retry (e.g. timeouts, HTTP 5xx) +#: * Retries on the following exception types: timeouts and connection errors, HTTP 429s (throttles), any HTTP 5xx DEFAULT_RETRY_STRATEGY = RetryStrategyBuilder().add_max_attempts() \ .add_total_elapsed_time() \ .add_service_error_check() \ diff --git a/src/oci/retry/retry.py b/src/oci/retry/retry.py index 015a076bff..add6db3256 100644 --- a/src/oci/retry/retry.py +++ b/src/oci/retry/retry.py @@ -19,7 +19,7 @@ class RetryStrategyBuilder(object): """ A class which can build a retry strategy based on provided criteria. Criteria can be provided at construction time or - afterwards via using the add_* (to add/enable criteria) and no_* (to disable/remove criteria) methods. + afterwards via using the ``add_*`` (to add/enable criteria) and ``no_*`` (to disable/remove criteria) methods. Trying to build a strategy when there are no enabled checks will result in a :py:class:`oci.retry.NoneRetryStrategy` being produced. @@ -211,6 +211,15 @@ class NoneRetryStrategy(object): """ def make_retrying_call(self, func_ref, *func_args, **func_kwargs): + """ + Calls the function given by func_ref. Any positional (``*func_args``) and keyword (``**func_kwargs``) + arguments are passed as-is to func_ref. + + :param function func_ref: + The function that we should call with retries + + :return: the result of calling func_ref + """ func_ref(*func_args, **func_kwargs) @@ -246,7 +255,7 @@ def __init__(self, base_sleep_time_seconds, exponent_growth_factor, max_wait_bet def make_retrying_call(self, func_ref, *func_args, **func_kwargs): """ - Calls the function given by func_ref. Any positional (*func_args) and keyword (**func_kwargs) + Calls the function given by func_ref. Any positional (``*func_args``) and keyword (``**func_kwargs``) arguments are passed as-is to func_ref. :param function func_ref: diff --git a/src/oci/retry/retry_checkers.py b/src/oci/retry/retry_checkers.py index 9613bdbb10..527a37dbb7 100644 --- a/src/oci/retry/retry_checkers.py +++ b/src/oci/retry/retry_checkers.py @@ -112,11 +112,6 @@ def should_retry(self, exception=None, response=None, **kwargs): class TimeoutConnectionAndServiceErrorRetryChecker(BaseRetryChecker): - RETRYABLE_STATUSES_AND_CODES = { - -1: [], - 429: [] - } - """ A checker which will retry on certain exceptions. Retries are enabled for the following exception types: @@ -144,6 +139,11 @@ class TimeoutConnectionAndServiceErrorRetryChecker(BaseRetryChecker): configuration and placing an entry for 502 in the dictionary """ + RETRYABLE_STATUSES_AND_CODES = { + -1: [], + 429: [] + } + def __init__(self, service_error_retry_config=RETRYABLE_STATUSES_AND_CODES, retry_any_5xx=True, **kwargs): super(TimeoutConnectionAndServiceErrorRetryChecker, self).__init__(**kwargs) self.retry_any_5xx = retry_any_5xx diff --git a/src/oci/version.py b/src/oci/version.py index 6e90932b75..c8a8923752 100644 --- a/src/oci/version.py +++ b/src/oci/version.py @@ -1,4 +1,4 @@ # coding: utf-8 # Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. -__version__ = "1.3.18" +__version__ = "1.3.19"