File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/cloud_bridge/models/create_aws_asset_source_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220509 from .create_asset_source_details import CreateAssetSourceDetails from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class CreateAwsAssetSourceDetails(CreateAssetSourceDetails): """ AWS asset source creation request. """ def __init__(self, **kwargs): """ Initializes a new CreateAwsAssetSourceDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.cloud_bridge.models.CreateAwsAssetSourceDetails.type` attribute of this class is ``AWS`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this CreateAwsAssetSourceDetails. Allowed values for this property are: "VMWARE", "AWS" :type type: str :param display_name: The value to assign to the display_name property of this CreateAwsAssetSourceDetails. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this CreateAwsAssetSourceDetails. :type compartment_id: str :param environment_id: The value to assign to the environment_id property of this CreateAwsAssetSourceDetails. :type environment_id: str :param inventory_id: The value to assign to the inventory_id property of this CreateAwsAssetSourceDetails. :type inventory_id: str :param assets_compartment_id: The value to assign to the assets_compartment_id property of this CreateAwsAssetSourceDetails. :type assets_compartment_id: str :param discovery_schedule_id: The value to assign to the discovery_schedule_id property of this CreateAwsAssetSourceDetails. :type discovery_schedule_id: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateAwsAssetSourceDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateAwsAssetSourceDetails. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this CreateAwsAssetSourceDetails. :type system_tags: dict(str, dict(str, object)) :param discovery_credentials: The value to assign to the discovery_credentials property of this CreateAwsAssetSourceDetails. :type discovery_credentials: oci.cloud_bridge.models.AssetSourceCredentials :param replication_credentials: The value to assign to the replication_credentials property of this CreateAwsAssetSourceDetails. :type replication_credentials: oci.cloud_bridge.models.AssetSourceCredentials :param aws_region: The value to assign to the aws_region property of this CreateAwsAssetSourceDetails. :type aws_region: str :param aws_account_key: The value to assign to the aws_account_key property of this CreateAwsAssetSourceDetails. :type aws_account_key: str :param are_historical_metrics_collected: The value to assign to the are_historical_metrics_collected property of this CreateAwsAssetSourceDetails. :type are_historical_metrics_collected: bool :param are_realtime_metrics_collected: The value to assign to the are_realtime_metrics_collected property of this CreateAwsAssetSourceDetails. :type are_realtime_metrics_collected: bool :param is_cost_information_collected: The value to assign to the is_cost_information_collected property of this CreateAwsAssetSourceDetails. :type is_cost_information_collected: bool """ self.swagger_types = { 'type': 'str', 'display_name': 'str', 'compartment_id': 'str', 'environment_id': 'str', 'inventory_id': 'str', 'assets_compartment_id': 'str', 'discovery_schedule_id': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'system_tags': 'dict(str, dict(str, object))', 'discovery_credentials': 'AssetSourceCredentials', 'replication_credentials': 'AssetSourceCredentials', 'aws_region': 'str', 'aws_account_key': 'str', 'are_historical_metrics_collected': 'bool', 'are_realtime_metrics_collected': 'bool', 'is_cost_information_collected': 'bool' } self.attribute_map = { 'type': 'type', 'display_name': 'displayName', 'compartment_id': 'compartmentId', 'environment_id': 'environmentId', 'inventory_id': 'inventoryId', 'assets_compartment_id': 'assetsCompartmentId', 'discovery_schedule_id': 'discoveryScheduleId', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'system_tags': 'systemTags', 'discovery_credentials': 'discoveryCredentials', 'replication_credentials': 'replicationCredentials', 'aws_region': 'awsRegion', 'aws_account_key': 'awsAccountKey', 'are_historical_metrics_collected': 'areHistoricalMetricsCollected', 'are_realtime_metrics_collected': 'areRealtimeMetricsCollected', 'is_cost_information_collected': 'isCostInformationCollected' } self._type = None self._display_name = None self._compartment_id = None self._environment_id = None self._inventory_id = None self._assets_compartment_id = None self._discovery_schedule_id = None self._freeform_tags = None self._defined_tags = None self._system_tags = None self._discovery_credentials = None self._replication_credentials = None self._aws_region = None self._aws_account_key = None self._are_historical_metrics_collected = None self._are_realtime_metrics_collected = None self._is_cost_information_collected = None self._type = 'AWS' @property def discovery_credentials(self): """ **[Required]** Gets the discovery_credentials of this CreateAwsAssetSourceDetails. :return: The discovery_credentials of this CreateAwsAssetSourceDetails. :rtype: oci.cloud_bridge.models.AssetSourceCredentials """ return self._discovery_credentials @discovery_credentials.setter def discovery_credentials(self, discovery_credentials): """ Sets the discovery_credentials of this CreateAwsAssetSourceDetails. :param discovery_credentials: The discovery_credentials of this CreateAwsAssetSourceDetails. :type: oci.cloud_bridge.models.AssetSourceCredentials """ self._discovery_credentials = discovery_credentials @property def replication_credentials(self): """ Gets the replication_credentials of this CreateAwsAssetSourceDetails. :return: The replication_credentials of this CreateAwsAssetSourceDetails. :rtype: oci.cloud_bridge.models.AssetSourceCredentials """ return self._replication_credentials @replication_credentials.setter def replication_credentials(self, replication_credentials): """ Sets the replication_credentials of this CreateAwsAssetSourceDetails. :param replication_credentials: The replication_credentials of this CreateAwsAssetSourceDetails. :type: oci.cloud_bridge.models.AssetSourceCredentials """ self._replication_credentials = replication_credentials @property def aws_region(self): """ **[Required]** Gets the aws_region of this CreateAwsAssetSourceDetails. AWS region information, from where the resources are discovered. :return: The aws_region of this CreateAwsAssetSourceDetails. :rtype: str """ return self._aws_region @aws_region.setter def aws_region(self, aws_region): """ Sets the aws_region of this CreateAwsAssetSourceDetails. AWS region information, from where the resources are discovered. :param aws_region: The aws_region of this CreateAwsAssetSourceDetails. :type: str """ self._aws_region = aws_region @property def aws_account_key(self): """ **[Required]** Gets the aws_account_key of this CreateAwsAssetSourceDetails. The key of customer's aws account to be discovered/migrated. :return: The aws_account_key of this CreateAwsAssetSourceDetails. :rtype: str """ return self._aws_account_key @aws_account_key.setter def aws_account_key(self, aws_account_key): """ Sets the aws_account_key of this CreateAwsAssetSourceDetails. The key of customer's aws account to be discovered/migrated. :param aws_account_key: The aws_account_key of this CreateAwsAssetSourceDetails. :type: str """ self._aws_account_key = aws_account_key @property def are_historical_metrics_collected(self): """ Gets the are_historical_metrics_collected of this CreateAwsAssetSourceDetails. Flag indicating whether historical metrics are collected for assets, originating from this asset source. :return: The are_historical_metrics_collected of this CreateAwsAssetSourceDetails. :rtype: bool """ return self._are_historical_metrics_collected @are_historical_metrics_collected.setter def are_historical_metrics_collected(self, are_historical_metrics_collected): """ Sets the are_historical_metrics_collected of this CreateAwsAssetSourceDetails. Flag indicating whether historical metrics are collected for assets, originating from this asset source. :param are_historical_metrics_collected: The are_historical_metrics_collected of this CreateAwsAssetSourceDetails. :type: bool """ self._are_historical_metrics_collected = are_historical_metrics_collected @property def are_realtime_metrics_collected(self): """ Gets the are_realtime_metrics_collected of this CreateAwsAssetSourceDetails. Flag indicating whether real-time metrics are collected for assets, originating from this asset source. :return: The are_realtime_metrics_collected of this CreateAwsAssetSourceDetails. :rtype: bool """ return self._are_realtime_metrics_collected @are_realtime_metrics_collected.setter def are_realtime_metrics_collected(self, are_realtime_metrics_collected): """ Sets the are_realtime_metrics_collected of this CreateAwsAssetSourceDetails. Flag indicating whether real-time metrics are collected for assets, originating from this asset source. :param are_realtime_metrics_collected: The are_realtime_metrics_collected of this CreateAwsAssetSourceDetails. :type: bool """ self._are_realtime_metrics_collected = are_realtime_metrics_collected @property def is_cost_information_collected(self): """ Gets the is_cost_information_collected of this CreateAwsAssetSourceDetails. Flag indicating whether cost data collection is enabled for assets, originating from this asset source. :return: The is_cost_information_collected of this CreateAwsAssetSourceDetails. :rtype: bool """ return self._is_cost_information_collected @is_cost_information_collected.setter def is_cost_information_collected(self, is_cost_information_collected): """ Sets the is_cost_information_collected of this CreateAwsAssetSourceDetails. Flag indicating whether cost data collection is enabled for assets, originating from this asset source. :param is_cost_information_collected: The is_cost_information_collected of this CreateAwsAssetSourceDetails. :type: bool """ self._is_cost_information_collected = is_cost_information_collected def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings