예제 #1
0
    def match_type(self, match_type):
        """
        Sets the match_type of this PathMatchType.
        Specifies how the load balancing service compares a :func:`path_route`
        object's `path` string against the incoming URI.

        *  **EXACT_MATCH** - Looks for a `path` string that exactly matches the incoming URI path.

        *  **FORCE_LONGEST_PREFIX_MATCH** - Looks for the `path` string with the best, longest match of the beginning
           portion of the incoming URI path.

        *  **PREFIX_MATCH** - Looks for a `path` string that matches the beginning portion of the incoming URI path.

        *  **SUFFIX_MATCH** - Looks for a `path` string that matches the ending portion of the incoming URI path.

        For a full description of how the system handles `matchType` in a path route set containing multiple rules, see
        `Managing Request Routing`__.

        __ https://docs.us-phoenix-1.oraclecloud.com/Content/Balance/Tasks/managingrequest.htm


        :param match_type: The match_type of this PathMatchType.
        :type: str
        """
        allowed_values = ["EXACT_MATCH", "FORCE_LONGEST_PREFIX_MATCH", "PREFIX_MATCH", "SUFFIX_MATCH"]
        if not value_allowed_none_or_none_sentinel(match_type, allowed_values):
            match_type = 'UNKNOWN_ENUM_VALUE'
        self._match_type = match_type
예제 #2
0
    def lifetime(self, lifetime):
        """
        Sets the lifetime of this PublicIp.
        Defines when the public IP is deleted and released back to Oracle's public IP pool.

        * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned private IP. The
        ephemeral public IP is automatically deleted when its private IP is deleted, when
        the VNIC is terminated, or when the instance is terminated. An ephemeral
        public IP must always be assigned to a private IP.

        * `RESERVED`: You control the public IP's lifetime. You can delete a reserved public IP
        whenever you like. It does not need to be assigned to a private IP at all times.

        For more information and comparison of the two types,
        see `Public IP Addresses`__.

        __ https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Tasks/managingpublicIPs.htm


        :param lifetime: The lifetime of this PublicIp.
        :type: str
        """
        allowed_values = ["EPHEMERAL", "RESERVED"]
        if not value_allowed_none_or_none_sentinel(lifetime, allowed_values):
            lifetime = 'UNKNOWN_ENUM_VALUE'
        self._lifetime = lifetime
    def transport_type(self, transport_type):
        """
        Sets the transport_type of this CreateDataGuardAssociationDetails.
        The redo transport type to use for this Data Guard association.  Valid values depend on the specified `protectionMode`:

        * MAXIMUM_AVAILABILITY - SYNC or FASTSYNC
        * MAXIMUM_PERFORMANCE - ASYNC
        * MAXIMUM_PROTECTION - SYNC

        For more information, see
        `Redo Transport Services`__
        in the Oracle Data Guard documentation.

        **IMPORTANT** - The only transport type currently supported by the Database Service is ASYNC.

        __ http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400


        :param transport_type: The transport_type of this CreateDataGuardAssociationDetails.
        :type: str
        """
        allowed_values = ["SYNC", "ASYNC", "FASTSYNC"]
        if not value_allowed_none_or_none_sentinel(transport_type, allowed_values):
            raise ValueError(
                "Invalid value for `transport_type`, must be None or one of {0}"
                .format(allowed_values)
            )
        self._transport_type = transport_type
예제 #4
0
    def server_type(self, server_type):
        """
        Sets the server_type of this DhcpDnsOption.
        - **VcnLocal:** Reserved for future use.

        - **VcnLocalPlusInternet:** Also referred to as \"Internet and VCN Resolver\".
        Instances can resolve internet hostnames (no Internet Gateway is required),
        and can resolve hostnames of instances in the VCN. This is the default
        value in the default set of DHCP options in the VCN. For the Internet and
        VCN Resolver to work across the VCN, there must also be a DNS label set for
        the VCN, a DNS label set for each subnet, and a hostname for each instance.
        The Internet and VCN Resolver also enables reverse DNS lookup, which lets
        you determine the hostname corresponding to the private IP address. For more
        information, see
        `DNS in Your Virtual Cloud Network`__.

        - **CustomDnsServer:** Instances use a DNS server of your choice (three maximum).

        __ https://docs.us-phoenix-1.oraclecloud.com/Content/Network/Concepts/dns.htm


        :param server_type: The server_type of this DhcpDnsOption.
        :type: str
        """
        allowed_values = ["VcnLocal", "VcnLocalPlusInternet", "CustomDnsServer"]
        if not value_allowed_none_or_none_sentinel(server_type, allowed_values):
            server_type = 'UNKNOWN_ENUM_VALUE'
        self._server_type = server_type
예제 #5
0
    def operation(self, operation):
        """
        Sets the operation of this RecordOperation.
        A description of how a record relates to a PATCH operation.

        - `REQUIRE` indicates a precondition that record data **must** already exist.
        - `PROHIBIT` indicates a precondition that record data **must not** already exist.
        - `ADD` indicates that record data **must** exist after successful application.
        - `REMOVE` indicates that record data **must not** exist after successful application.

          **Note:** `ADD` and `REMOVE` operations can succeed even if
          they require no changes when applied, such as when the described
          records are already present or absent.

          **Note:** `ADD` and `REMOVE` operations can describe changes for
          more than one record.

          **Example:** `{ \"domain\": \"www.example.com\", \"rtype\": \"AAAA\", \"ttl\": 60 }`
          specifies a new TTL for every record in the www.example.com AAAA RRSet.


        :param operation: The operation of this RecordOperation.
        :type: str
        """
        allowed_values = ["REQUIRE", "PROHIBIT", "ADD", "REMOVE"]
        if not value_allowed_none_or_none_sentinel(operation, allowed_values):
            raise ValueError(
                "Invalid value for `operation`, must be None or one of {0}"
                .format(allowed_values)
            )
        self._operation = operation
    def status(self, status):
        """
        Sets the status of this LoadBalancerHealth.
        The overall health status of the load balancer.

        *  **OK:** All backend sets associated with the load balancer return a status of `OK`.

        *  **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`,
        no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`.

        *  **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`.

        *  **UNKNOWN:** If any one of the following conditions is true:

            *  The load balancer life cycle state is not `ACTIVE`.

            *  No backend sets are defined for the load balancer.

            *  More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend
               sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`.

            *  The system could not retrieve metrics for any reason.


        :param status: The status of this LoadBalancerHealth.
        :type: str
        """
        allowed_values = ["OK", "WARNING", "CRITICAL", "UNKNOWN"]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            status = 'UNKNOWN_ENUM_VALUE'
        self._status = status
예제 #7
0
    def error_code(self, error_code):
        """
        Sets the error_code of this WorkRequestError.

        :param error_code: The error_code of this WorkRequestError.
        :type: str
        """
        allowed_values = ["BAD_INPUT", "INTERNAL_ERROR"]
        if not value_allowed_none_or_none_sentinel(error_code, allowed_values):
            error_code = 'UNKNOWN_ENUM_VALUE'
        self._error_code = error_code
예제 #8
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this Image.

        :param lifecycle_state: The lifecycle_state of this Image.
        :type: str
        """
        allowed_values = ["PROVISIONING", "IMPORTING", "AVAILABLE", "EXPORTING", "DISABLED", "DELETED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #9
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this Drg.
        The DRG's current state.


        :param lifecycle_state: The lifecycle_state of this Drg.
        :type: str
        """
        allowed_values = ["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #10
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this LoadBalancer.
        The current state of the load balancer.


        :param lifecycle_state: The lifecycle_state of this LoadBalancer.
        :type: str
        """
        allowed_values = ["CREATING", "FAILED", "ACTIVE", "DELETING", "DELETED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #11
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this TunnelStatus.
        The tunnel's current state.


        :param lifecycle_state: The lifecycle_state of this TunnelStatus.
        :type: str
        """
        allowed_values = ["UP", "DOWN", "DOWN_FOR_MAINTENANCE"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
    def supported_virtual_circuit_types(self, supported_virtual_circuit_types):
        """
        Sets the supported_virtual_circuit_types of this FastConnectProviderService.
        An array of virtual circuit types supported by this service.


        :param supported_virtual_circuit_types: The supported_virtual_circuit_types of this FastConnectProviderService.
        :type: list[str]
        """
        allowed_values = ["PUBLIC", "PRIVATE"]
        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
예제 #13
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this DbNodeSummary.
        The current state of the database node.


        :param lifecycle_state: The lifecycle_state of this DbNodeSummary.
        :type: str
        """
        allowed_values = ["PROVISIONING", "AVAILABLE", "UPDATING", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "FAILED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
    def type(self, type):
        """
        Sets the type of this FastConnectProviderService.
        Provider service type.


        :param type: The type of this FastConnectProviderService.
        :type: str
        """
        allowed_values = ["LAYER2", "LAYER3"]
        if not value_allowed_none_or_none_sentinel(type, allowed_values):
            type = 'UNKNOWN_ENUM_VALUE'
        self._type = type
예제 #15
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this PatchHistoryEntry.
        The current state of the action.


        :param lifecycle_state: The lifecycle_state of this PatchHistoryEntry.
        :type: str
        """
        allowed_values = ["IN_PROGRESS", "SUCCEEDED", "FAILED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
    def public_peering_bgp_management(self, public_peering_bgp_management):
        """
        Sets the public_peering_bgp_management of this FastConnectProviderService.
        Public peering BGP management.


        :param public_peering_bgp_management: The public_peering_bgp_management of this FastConnectProviderService.
        :type: str
        """
        allowed_values = ["CUSTOMER_MANAGED", "PROVIDER_MANAGED", "ORACLE_MANAGED"]
        if not value_allowed_none_or_none_sentinel(public_peering_bgp_management, allowed_values):
            public_peering_bgp_management = 'UNKNOWN_ENUM_VALUE'
        self._public_peering_bgp_management = public_peering_bgp_management
예제 #17
0
    def status(self, status):
        """
        Sets the status of this RegionSubscription.
        The region subscription status.


        :param status: The status of this RegionSubscription.
        :type: str
        """
        allowed_values = ["READY", "IN_PROGRESS"]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            status = 'UNKNOWN_ENUM_VALUE'
        self._status = status
예제 #18
0
    def action(self, action):
        """
        Sets the action of this PatchHistoryEntry.
        The action being performed or was completed.


        :param action: The action of this PatchHistoryEntry.
        :type: str
        """
        allowed_values = ["APPLY", "PRECHECK"]
        if not value_allowed_none_or_none_sentinel(action, allowed_values):
            action = 'UNKNOWN_ENUM_VALUE'
        self._action = action
예제 #19
0
    def zone_type(self, zone_type):
        """
        Sets the zone_type of this ZoneSummary.
        The type of the zone. Must be either `PRIMARY` or `SECONDARY`.


        :param zone_type: The zone_type of this ZoneSummary.
        :type: str
        """
        allowed_values = ["PRIMARY", "SECONDARY"]
        if not value_allowed_none_or_none_sentinel(zone_type, allowed_values):
            zone_type = 'UNKNOWN_ENUM_VALUE'
        self._zone_type = zone_type
예제 #20
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this BootVolume.
        The current state of a boot volume.


        :param lifecycle_state: The lifecycle_state of this BootVolume.
        :type: str
        """
        allowed_values = ["PROVISIONING", "RESTORING", "AVAILABLE", "TERMINATING", "TERMINATED", "FAULTY"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #21
0
    def database_edition(self, database_edition):
        """
        Sets the database_edition of this DbSystemSummary.
        The Oracle Database Edition that applies to all the databases on the DB System.


        :param database_edition: The database_edition of this DbSystemSummary.
        :type: str
        """
        allowed_values = ["STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", "ENTERPRISE_EDITION_HIGH_PERFORMANCE"]
        if not value_allowed_none_or_none_sentinel(database_edition, allowed_values):
            database_edition = 'UNKNOWN_ENUM_VALUE'
        self._database_edition = database_edition
예제 #22
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this Database.
        The current state of the database.


        :param lifecycle_state: The lifecycle_state of this Database.
        :type: str
        """
        allowed_values = ["PROVISIONING", "AVAILABLE", "UPDATING", "BACKUP_IN_PROGRESS", "TERMINATING", "TERMINATED", "RESTORE_FAILED", "FAILED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this InstanceConsoleConnection.
        The current state of the console connection.


        :param lifecycle_state: The lifecycle_state of this InstanceConsoleConnection.
        :type: str
        """
        allowed_values = ["ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
    def access_type(self, access_type):
        """
        Sets the access_type of this PreauthenticatedRequestSummary.
        The operation that can be performed on this resource.


        :param access_type: The access_type of this PreauthenticatedRequestSummary.
        :type: str
        """
        allowed_values = ["ObjectRead", "ObjectWrite", "ObjectReadWrite", "AnyObjectWrite"]
        if not value_allowed_none_or_none_sentinel(access_type, allowed_values):
            access_type = 'UNKNOWN_ENUM_VALUE'
        self._access_type = access_type
예제 #25
0
    def license_model(self, license_model):
        """
        Sets the license_model of this DbSystemSummary.
        The Oracle license model that applies to all the databases on the DB System. The default is LICENSE_INCLUDED.


        :param license_model: The license_model of this DbSystemSummary.
        :type: str
        """
        allowed_values = ["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"]
        if not value_allowed_none_or_none_sentinel(license_model, allowed_values):
            license_model = 'UNKNOWN_ENUM_VALUE'
        self._license_model = license_model
예제 #26
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this ExportSummary.
        The current state of this export.


        :param lifecycle_state: The lifecycle_state of this ExportSummary.
        :type: str
        """
        allowed_values = ["CREATING", "ACTIVE", "DELETING", "DELETED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #27
0
    def reason(self, reason):
        """
        Sets the reason of this SuppressionSummary.
        The reason that the email address was suppressed.


        :param reason: The reason of this SuppressionSummary.
        :type: str
        """
        allowed_values = ["UNKNOWN", "HARDBOUNCE", "COMPLAINT", "MANUAL", "SOFTBOUNCE", "UNSUBSCRIBE"]
        if not value_allowed_none_or_none_sentinel(reason, allowed_values):
            reason = 'UNKNOWN_ENUM_VALUE'
        self._reason = reason
    def backup_type(self, backup_type):
        """
        Sets the backup_type of this VolumeBackupSchedule.
        The type of backup to create.


        :param backup_type: The backup_type of this VolumeBackupSchedule.
        :type: str
        """
        allowed_values = ["FULL", "INCREMENTAL"]
        if not value_allowed_none_or_none_sentinel(backup_type, allowed_values):
            backup_type = 'UNKNOWN_ENUM_VALUE'
        self._backup_type = backup_type
    def period(self, period):
        """
        Sets the period of this VolumeBackupSchedule.
        How often the backup should occur.


        :param period: The period of this VolumeBackupSchedule.
        :type: str
        """
        allowed_values = ["ONE_HOUR", "ONE_DAY", "ONE_WEEK", "ONE_MONTH", "ONE_YEAR"]
        if not value_allowed_none_or_none_sentinel(period, allowed_values):
            period = 'UNKNOWN_ENUM_VALUE'
        self._period = period
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this BootVolumeAttachment.
        The current state of the boot volume attachment.


        :param lifecycle_state: The lifecycle_state of this BootVolumeAttachment.
        :type: str
        """
        allowed_values = ["ATTACHING", "ATTACHED", "DETACHING", "DETACHED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
    def delivery_state(self, delivery_state):
        """
        Sets the delivery_state of this InstanceAgentCommandExecutionSummary.
        The command delivery state.
         * `VISIBLE` - The command is visible to the instance.
         * `PENDING` - The command is pending acknowledgment from the instance.
         * `ACKED` - The command has been received and acknowledged by the instance.
         * `ACKED_CANCELED` - The canceled command has been received and acknowledged by the instance.
         * `EXPIRED` - The instance has not requested for commands and the command's delivery has expired.


        :param delivery_state: The delivery_state of this InstanceAgentCommandExecutionSummary.
        :type: str
        """
        allowed_values = [
            "VISIBLE", "PENDING", "ACKED", "ACKED_CANCELED", "EXPIRED"
        ]
        if not value_allowed_none_or_none_sentinel(delivery_state,
                                                   allowed_values):
            delivery_state = 'UNKNOWN_ENUM_VALUE'
        self._delivery_state = delivery_state
    def operation_type(self, operation_type):
        """
        Sets the operation_type of this UpdateScheduledJobDetails.
        the type of operation this Scheduled Job performs


        :param operation_type: The operation_type of this UpdateScheduledJobDetails.
        :type: str
        """
        allowed_values = [
            "INSTALL", "UPDATE", "REMOVE", "UPDATEALL", "ENABLEMODULESTREAM",
            "DISABLEMODULESTREAM", "SWITCHMODULESTREAM",
            "INSTALLMODULESTREAMPROFILE", "REMOVEMODULESTREAMPROFILE",
            "COMPOUND"
        ]
        if not value_allowed_none_or_none_sentinel(operation_type,
                                                   allowed_values):
            raise ValueError(
                "Invalid value for `operation_type`, must be None or one of {0}"
                .format(allowed_values))
        self._operation_type = operation_type
예제 #33
0
    def status(self, status):
        """
        Sets the status of this User.
        The account status of the User


        :param status: The status of this User.
        :type: str
        """
        allowed_values = [
            "OPEN", "EXPIRED", "EXPIRED_GRACE", "LOCKED", "LOCKED_TIMED",
            "EXPIRED_AND_LOCKED", "EXPIRED_GRACE_AND_LOCKED",
            "EXPIRED_AND_LOCKED_TIMED", "EXPIRED_GRACE_AND_LOCKED_TIMED",
            "OPEN_AND_IN_ROLLOVER", "EXPIRED_AND_IN_ROLLOVER",
            "LOCKED_AND_IN_ROLLOVER", "EXPIRED_AND_LOCKED_AND_IN_ROLLOVER",
            "LOCKED_TIMED_AND_IN_ROLLOVER",
            "EXPIRED_AND_LOCKED_TIMED_AND_IN_ROL"
        ]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            status = 'UNKNOWN_ENUM_VALUE'
        self._status = status
예제 #34
0
    def operation_type(self, operation_type):
        """
        Sets the operation_type of this WorkRequest.
        the original operation ID requested


        :param operation_type: The operation_type of this WorkRequest.
        :type: str
        """
        allowed_values = [
            "CREATE_DBSYSTEM", "UPDATE_DBSYSTEM", "DELETE_DBSYSTEM",
            "START_DBSYSTEM", "STOP_DBSYSTEM", "RESTART_DBSYSTEM",
            "ADD_ANALYTICS_CLUSTER", "UPDATE_ANALYTICS_CLUSTER",
            "DELETE_ANALYTICS_CLUSTER", "START_ANALYTICS_CLUSTER",
            "STOP_ANALYTICS_CLUSTER", "RESTART_ANALYTICS_CLUSTER",
            "GENERATE_ANALYTICS_CLUSTER_MEMORY_ESTIMATE"
        ]
        if not value_allowed_none_or_none_sentinel(operation_type,
                                                   allowed_values):
            operation_type = 'UNKNOWN_ENUM_VALUE'
        self._operation_type = operation_type
예제 #35
0
    def remote_data_volume_type(self, remote_data_volume_type):
        """
        Sets the remote_data_volume_type of this LaunchOptions.
        Emulation type for volume.
        * `ISCSI` - ISCSI attached block storage device.
        * `SCSI` - Emulated SCSI disk.
        * `IDE` - Emulated IDE disk.
        * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data
        volumes on Oracle-provided images.
        * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block
        storage volumes on Oracle-provided images.


        :param remote_data_volume_type: The remote_data_volume_type of this LaunchOptions.
        :type: str
        """
        allowed_values = ["ISCSI", "SCSI", "IDE", "VFIO", "PARAVIRTUALIZED"]
        if not value_allowed_none_or_none_sentinel(remote_data_volume_type,
                                                   allowed_values):
            remote_data_volume_type = 'UNKNOWN_ENUM_VALUE'
        self._remote_data_volume_type = remote_data_volume_type
    def eligibility_reason(self, eligibility_reason):
        """
        Sets the eligibility_reason of this ThirdPartyPaidListingEligibility.
        Reason the account is ineligible to launch paid listings


        :param eligibility_reason: The eligibility_reason of this ThirdPartyPaidListingEligibility.
        :type: str
        """
        allowed_values = [
            "ELIGIBLE", "INELIGIBLE_ACCOUNT_COUNTRY", "INELIGIBLE_REGION",
            "INELIGIBLE_ACCOUNT_BLACKLISTED",
            "INELIGIBLE_ACCOUNT_FEATURE_DISABLED",
            "INELIGIBLE_ACCOUNT_CURRENCY", "INELIGIBLE_ACCOUNT_NOT_PAID",
            "INELIGIBLE_ACCOUNT_INTERNAL",
            "INELIGIBLE_ACCOUNT_GOV_SUBSCRIPTION", "NOT_AUTHORIZED"
        ]
        if not value_allowed_none_or_none_sentinel(eligibility_reason,
                                                   allowed_values):
            eligibility_reason = 'UNKNOWN_ENUM_VALUE'
        self._eligibility_reason = eligibility_reason
예제 #37
0
    def job_type(self, job_type):
        """
        Sets the job_type of this CreateJobDefinitionDetails.
        Type of the job definition.


        :param job_type: The job_type of this CreateJobDefinitionDetails.
        :type: str
        """
        allowed_values = [
            "HARVEST", "PROFILING", "SAMPLING", "PREVIEW", "IMPORT", "EXPORT",
            "IMPORT_GLOSSARY", "EXPORT_GLOSSARY", "INTERNAL", "PURGE",
            "IMMEDIATE", "SCHEDULED", "IMMEDIATE_EXECUTION",
            "SCHEDULED_EXECUTION", "SCHEDULED_EXECUTION_INSTANCE",
            "ASYNC_DELETE", "IMPORT_DATA_ASSET"
        ]
        if not value_allowed_none_or_none_sentinel(job_type, allowed_values):
            raise ValueError(
                "Invalid value for `job_type`, must be None or one of {0}".
                format(allowed_values))
        self._job_type = job_type
예제 #38
0
    def public_access_type(self, public_access_type):
        """
        Sets the public_access_type of this UpdateBucketDetails.
        The type of public access enabled on this bucket. A bucket is set to `NoPublicAccess` by default, which only allows an
        authenticated caller to access the bucket and its contents. When `ObjectRead` is enabled on the bucket, public access
        is allowed for the `GetObject`, `HeadObject`, and `ListObjects` operations. When `ObjectReadWithoutList` is enabled
        on the bucket, public access is allowed for the `GetObject` and `HeadObject` operations.


        :param public_access_type: The public_access_type of this UpdateBucketDetails.
        :type: str
        """
        allowed_values = [
            "NoPublicAccess", "ObjectRead", "ObjectReadWithoutList"
        ]
        if not value_allowed_none_or_none_sentinel(public_access_type,
                                                   allowed_values):
            raise ValueError(
                "Invalid value for `public_access_type`, must be None or one of {0}"
                .format(allowed_values))
        self._public_access_type = public_access_type
예제 #39
0
    def operation_type(self, operation_type):
        """
        Sets the operation_type of this WorkRequest.
        Type of the WorkRequest


        :param operation_type: The operation_type of this WorkRequest.
        :type: str
        """
        allowed_values = [
            "CREATE_WAF_POLICY", "UPDATE_WAF_POLICY", "DELETE_WAF_POLICY",
            "MOVE_WAF_POLICY", "CREATE_NETWORK_ADDRESS_LIST",
            "UPDATE_NETWORK_ADDRESS_LIST", "DELETE_NETWORK_ADDRESS_LIST",
            "MOVE_NETWORK_ADDRESS_LIST", "CREATE_WEB_APP_FIREWALL",
            "UPDATE_WEB_APP_FIREWALL", "DELETE_WEB_APP_FIREWALL",
            "MOVE_WEB_APP_FIREWALL"
        ]
        if not value_allowed_none_or_none_sentinel(operation_type,
                                                   allowed_values):
            operation_type = 'UNKNOWN_ENUM_VALUE'
        self._operation_type = operation_type
예제 #40
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this VirtualCircuit.
        The virtual circuit's current state. For information about
        the different states, see
        `FastConnect Overview`__.

        __ https://docs.cloud.oracle.com/Content/Network/Concepts/fastconnect.htm


        :param lifecycle_state: The lifecycle_state of this VirtualCircuit.
        :type: str
        """
        allowed_values = [
            "PENDING_PROVIDER", "VERIFYING", "PROVISIONING", "PROVISIONED",
            "FAILED", "INACTIVE", "TERMINATING", "TERMINATED"
        ]
        if not value_allowed_none_or_none_sentinel(lifecycle_state,
                                                   allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
    def status(self, status):
        """
        Sets the status of this UpdateModuleStreamProfileDetails.
        The status of the profile.

        A profile with the \"INSTALLED\" status indicates that the
        profile has been installed.

        A profile with the \"AVAILABLE\" status indicates that the
        profile is not installed, but can be.


        :param status: The status of this UpdateModuleStreamProfileDetails.
        :type: str
        """
        allowed_values = ["INSTALLED", "AVAILABLE"]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            raise ValueError(
                "Invalid value for `status`, must be None or one of {0}".
                format(allowed_values))
        self._status = status
예제 #42
0
    def database_edition(self, database_edition):
        """
        Sets the database_edition of this LaunchDbSystemDetails.
        The Oracle Database Edition that applies to all the databases on the DB system.
        Exadata DB systems and 2-node RAC DB systems require ENTERPRISE_EDITION_EXTREME_PERFORMANCE.


        :param database_edition: The database_edition of this LaunchDbSystemDetails.
        :type: str
        """
        allowed_values = [
            "STANDARD_EDITION", "ENTERPRISE_EDITION",
            "ENTERPRISE_EDITION_HIGH_PERFORMANCE",
            "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"
        ]
        if not value_allowed_none_or_none_sentinel(database_edition,
                                                   allowed_values):
            raise ValueError(
                "Invalid value for `database_edition`, must be None or one of {0}"
                .format(allowed_values))
        self._database_edition = database_edition
예제 #43
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this Job.
        Current state of the specified job.
        For more information about job lifecycle states in Resource Manager, see
        `Key Concepts`__.

        __ https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#JobStates


        :param lifecycle_state: The lifecycle_state of this Job.
        :type: str
        """
        allowed_values = [
            "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING",
            "CANCELED"
        ]
        if not value_allowed_none_or_none_sentinel(lifecycle_state,
                                                   allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #44
0
    def operation_type(self, operation_type):
        """
        Sets the operation_type of this WorkRequestSummary.
        Type of the work request.


        :param operation_type: The operation_type of this WorkRequestSummary.
        :type: str
        """
        allowed_values = [
            "CREATE_SENDER_INVITATION", "ACCEPT_RECIPIENT_INVITATION",
            "CANCEL_SENDER_INVITATION", "COMPLETE_ORDER_ACTIVATION",
            "ACTIVATE_ORDER_EXISTING_TENANCY", "REGISTER_DOMAIN",
            "RELEASE_DOMAIN", "CREATE_CHILD_TENANCY",
            "ASSIGN_DEFAULT_SUBSCRIPTION", "MANUAL_LINK_CREATION",
            "TERMINATE_ORGANIZATION_TENANCY"
        ]
        if not value_allowed_none_or_none_sentinel(operation_type,
                                                   allowed_values):
            operation_type = 'UNKNOWN_ENUM_VALUE'
        self._operation_type = operation_type
예제 #45
0
파일: key.py 프로젝트: revnav/sandbox
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this Key.
        The key's current lifecycle state.

        Example: `ENABLED`


        :param lifecycle_state: The lifecycle_state of this Key.
        :type: str
        """
        allowed_values = [
            "CREATING", "ENABLING", "ENABLED", "DISABLING", "DISABLED",
            "DELETING", "DELETED", "PENDING_DELETION", "SCHEDULING_DELETION",
            "CANCELLING_DELETION", "UPDATING", "BACKUP_IN_PROGRESS",
            "RESTORING"
        ]
        if not value_allowed_none_or_none_sentinel(lifecycle_state,
                                                   allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #46
0
    def encryption_algorithm(self, encryption_algorithm):
        """
        Sets the encryption_algorithm of this DecryptDataDetails.
        The encryption algorithm to use to encrypt or decrypt data with a customer-managed key.
        `AES_256_GCM` indicates that the key is a symmetric key that uses the Advanced Encryption Standard (AES) algorithm and
        that the mode of encryption is the Galois/Counter Mode (GCM). `RSA_OAEP_SHA_1` indicates that the
        key is an asymmetric key that uses the RSA encryption algorithm and uses Optimal Asymmetric Encryption Padding (OAEP).
        `RSA_OAEP_SHA_256` indicates that the key is an asymmetric key that uses the RSA encryption algorithm with a SHA-256 hash
        and uses OAEP.


        :param encryption_algorithm: The encryption_algorithm of this DecryptDataDetails.
        :type: str
        """
        allowed_values = ["AES_256_GCM", "RSA_OAEP_SHA_1", "RSA_OAEP_SHA_256"]
        if not value_allowed_none_or_none_sentinel(encryption_algorithm, allowed_values):
            raise ValueError(
                "Invalid value for `encryption_algorithm`, must be None or one of {0}"
                .format(allowed_values)
            )
        self._encryption_algorithm = encryption_algorithm
    def db_workload(self, db_workload):
        """
        Sets the db_workload of this UpdateAutonomousDatabaseDetails.
        The Autonomous Database workload type. The following values are valid:

        - OLTP - indicates an Autonomous Transaction Processing database
        - DW - indicates an Autonomous Data Warehouse database
        - AJD - indicates an Autonomous JSON Database
        - APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.


        :param db_workload: The db_workload of this UpdateAutonomousDatabaseDetails.
        :type: str
        """
        allowed_values = ["OLTP", "DW", "AJD", "APEX"]
        if not value_allowed_none_or_none_sentinel(db_workload,
                                                   allowed_values):
            raise ValueError(
                "Invalid value for `db_workload`, must be None or one of {0}".
                format(allowed_values))
        self._db_workload = db_workload
예제 #48
0
    def managed_list_types(self, managed_list_types):
        """
        Sets the managed_list_types of this DetectorRule.
        List of cloudguard managed list types related to this rule


        :param managed_list_types: The managed_list_types of this DetectorRule.
        :type: list[str]
        """
        allowed_values = [
            "CIDR_BLOCK", "USERS", "GROUPS", "IPV4ADDRESS", "IPV6ADDRESS",
            "RESOURCE_OCID", "REGION", "COUNTRY", "STATE", "CITY", "TAGS",
            "GENERIC"
        ]
        if managed_list_types:
            managed_list_types[:] = [
                'UNKNOWN_ENUM_VALUE'
                if not value_allowed_none_or_none_sentinel(x, allowed_values)
                else x for x in managed_list_types
            ]
        self._managed_list_types = managed_list_types
예제 #49
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this AutonomousDataWarehouse.
        The current state of the database.


        :param lifecycle_state: The lifecycle_state of this AutonomousDataWarehouse.
        :type: str
        """
        allowed_values = [
            "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING",
            "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS",
            "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS",
            "AVAILABLE_NEEDS_ATTENTION", "UPDATING"
        ]
        if not value_allowed_none_or_none_sentinel(lifecycle_state,
                                                   allowed_values):
            raise ValueError(
                "Invalid value for `lifecycle_state`, must be None or one of {0}"
                .format(allowed_values))
        self._lifecycle_state = lifecycle_state
예제 #50
0
    def operation_type(self, operation_type):
        """
        Sets the operation_type of this WorkRequest.
        The resources that are affected by the work request.


        :param operation_type: The operation_type of this WorkRequest.
        :type: str
        """
        allowed_values = [
            "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT",
            "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT",
            "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR",
            "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR",
            "UPDATE_ONPREM_CONNECTOR_WALLET",
            "CHANGE_ONPREM_CONNECTOR_COMPARTMENT"
        ]
        if not value_allowed_none_or_none_sentinel(operation_type,
                                                   allowed_values):
            operation_type = 'UNKNOWN_ENUM_VALUE'
        self._operation_type = operation_type
예제 #51
0
    def ip_mode(self, ip_mode):
        """
        Sets the ip_mode of this CreateLoadBalancerDetails.
        Whether the load balancer has an IPv4 or IPv6 IP address.

        If \"IPV4\", the service assigns an IPv4 address and the load balancer supports IPv4 traffic.

        If \"IPV6\", the service assigns an IPv6 address and the load balancer supports IPv6 traffic.

        Example: \"ipMode\":\"IPV6\"


        :param ip_mode: The ip_mode of this CreateLoadBalancerDetails.
        :type: str
        """
        allowed_values = ["IPV4", "IPV6"]
        if not value_allowed_none_or_none_sentinel(ip_mode, allowed_values):
            raise ValueError(
                "Invalid value for `ip_mode`, must be None or one of {0}".
                format(allowed_values))
        self._ip_mode = ip_mode
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this AutonomousDatabaseStandbySummary.
        The current state of the Autonomous Database.


        :param lifecycle_state: The lifecycle_state of this AutonomousDatabaseStandbySummary.
        :type: str
        """
        allowed_values = [
            "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING",
            "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS",
            "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS",
            "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS",
            "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING",
            "INACCESSIBLE", "STANDBY"
        ]
        if not value_allowed_none_or_none_sentinel(lifecycle_state,
                                                   allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #53
0
    def request_action(self, request_action):
        """
        Sets the request_action of this WorkRequestSummary.
        The type of the operation that's associated with the work request.


        :param request_action: The request_action of this WorkRequestSummary.
        :type: str
        """
        allowed_values = [
            "CREATE_ODA_INSTANCE", "UPGRADE_ODA_INSTANCE",
            "DELETE_ODA_INSTANCE", "PURGE_ODA_INSTANCE",
            "RECOVER_ODA_INSTANCE", "STOP_ODA_INSTANCE", "START_ODA_INSTANCE",
            "CHANGE_ODA_INSTANCE_COMPARTMENT", "CREATE_ASSOCIATION",
            "DELETE_ASSOCIATION", "UPDATE_ENTITLEMENTS_FOR_CACCT",
            "LOOKUP_ODA_INSTANCES_FOR_CACCT"
        ]
        if not value_allowed_none_or_none_sentinel(request_action,
                                                   allowed_values):
            request_action = 'UNKNOWN_ENUM_VALUE'
        self._request_action = request_action
예제 #54
0
    def allowed_actions(self, allowed_actions):
        """
        Sets the allowed_actions of this AppCatalogListingResourceVersion.
        Allowed actions for the listing resource.


        :param allowed_actions: The allowed_actions of this AppCatalogListingResourceVersion.
        :type: list[str]
        """
        allowed_values = [
            "SNAPSHOT", "BOOT_VOLUME_DETACH", "PRESERVE_BOOT_VOLUME",
            "SERIAL_CONSOLE_ACCESS", "BOOT_RECOVERY", "BACKUP_BOOT_VOLUME",
            "CAPTURE_CONSOLE_HISTORY"
        ]
        if allowed_actions:
            allowed_actions[:] = [
                'UNKNOWN_ENUM_VALUE'
                if not value_allowed_none_or_none_sentinel(x, allowed_values)
                else x for x in allowed_actions
            ]
        self._allowed_actions = allowed_actions
예제 #55
0
    def expected_response_code_group(self, expected_response_code_group):
        """
        Sets the expected_response_code_group of this HealthCheck.
        The HTTP response codes that signify a healthy state.
        - **2XX:** Success response code group.
        - **3XX:** Redirection response code group.
        - **4XX:** Client errors response code group.
        - **5XX:** Server errors response code group.


        :param expected_response_code_group: The expected_response_code_group of this HealthCheck.
        :type: list[str]
        """
        allowed_values = ["2XX", "3XX", "4XX", "5XX"]
        if expected_response_code_group:
            expected_response_code_group[:] = [
                'UNKNOWN_ENUM_VALUE'
                if not value_allowed_none_or_none_sentinel(x, allowed_values)
                else x for x in expected_response_code_group
            ]
        self._expected_response_code_group = expected_response_code_group
    def database_edition(self, database_edition):
        """
        Sets the database_edition of this CreateExternalBackupJobDetails.
        The Oracle Database edition to use for creating a database from this standalone backup.
        Note that 2-node RAC DB systems require Enterprise Edition - Extreme Performance.


        :param database_edition: The database_edition of this CreateExternalBackupJobDetails.
        :type: str
        """
        allowed_values = [
            "STANDARD_EDITION", "ENTERPRISE_EDITION",
            "ENTERPRISE_EDITION_HIGH_PERFORMANCE",
            "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"
        ]
        if not value_allowed_none_or_none_sentinel(database_edition,
                                                   allowed_values):
            raise ValueError(
                "Invalid value for `database_edition`, must be None or one of {0}"
                .format(allowed_values))
        self._database_edition = database_edition
예제 #57
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this AccessRequestSummary.
        The current state of the AccessRequest.


        :param lifecycle_state: The lifecycle_state of this AccessRequestSummary.
        :type: str
        """
        allowed_values = [
            "CREATED", "APPROVALWAITING", "PREAPPROVED", "APPROVED",
            "MOREINFO", "REJECTED", "DEPLOYED", "DEPLOYFAILED", "UNDEPLOYED",
            "UNDEPLOYFAILED", "CLOSEFAILED", "REVOKEFAILED", "EXPIRYFAILED",
            "REVOKING", "REVOKED", "EXTENDING", "EXTENDED",
            "EXTENSIONREJECTED", "COMPLETING", "COMPLETED", "EXPIRED",
            "APPROVEDFORFUTURE", "INREVIEW"
        ]
        if not value_allowed_none_or_none_sentinel(lifecycle_state,
                                                   allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #58
0
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this Registry.
        Lifecycle states for registries in Data Connectivity Management Service
        CREATING - The resource is being created and may not be usable until the entire metadata is defined
        UPDATING - The resource is being updated and may not be usable until all changes are commited
        DELETING - The resource is being deleted and might require deep cleanup of children.
        ACTIVE   - The resource is valid and available for access
        INACTIVE - The resource might be incomplete in its definition or might have been made unavailable for
                 administrative reasons
        DELETED  - The resource has been deleted and isn't available
        FAILED   - The resource is in a failed state due to validation or other errors


        :param lifecycle_state: The lifecycle_state of this Registry.
        :type: str
        """
        allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state
예제 #59
0
    def protocol(self, protocol):
        """
        Sets the protocol of this ListenerDetails.
        The protocol on which the listener accepts connection requests.
        For public network load balancers, ANY protocol refers to TCP/UDP.
        For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true).
        To get a list of valid protocols, use the :func:`list_network_load_balancers_protocols`
        operation.

        Example: `TCP`


        :param protocol: The protocol of this ListenerDetails.
        :type: str
        """
        allowed_values = ["ANY", "TCP", "UDP", "TCP_AND_UDP"]
        if not value_allowed_none_or_none_sentinel(protocol, allowed_values):
            raise ValueError(
                "Invalid value for `protocol`, must be None or one of {0}".
                format(allowed_values))
        self._protocol = protocol
    def metric_name(self, metric_name):
        """
        Sets the metric_name of this HostConfigurationMetricGroup.
        Name of the metric group


        :param metric_name: The metric_name of this HostConfigurationMetricGroup.
        :type: str
        """
        allowed_values = [
            "HOST_PRODUCT", "HOST_RESOURCE_ALLOCATION",
            "HOST_MEMORY_CONFIGURATION", "HOST_HARDWARE_CONFIGURATION",
            "HOST_CPU_HARDWARE_CONFIGURATION", "HOST_NETWORK_CONFIGURATION",
            "HOST_ENTITES"
        ]
        if not value_allowed_none_or_none_sentinel(metric_name,
                                                   allowed_values):
            raise ValueError(
                "Invalid value for `metric_name`, must be None or one of {0}".
                format(allowed_values))
        self._metric_name = metric_name