diff --git a/provider/cmd/pulumi-resource-oci/bridge-metadata.json b/provider/cmd/pulumi-resource-oci/bridge-metadata.json index 026801ac92..cc67f52eb6 100644 --- a/provider/cmd/pulumi-resource-oci/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-oci/bridge-metadata.json @@ -11323,6 +11323,9 @@ "vm_cluster_id": {} } }, + "oci_database_db_node": { + "current": "oci:Database/dbNode:DbNode" + }, "oci_database_db_node_console_connection": { "current": "oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection", "fields": { @@ -71396,6 +71399,7 @@ "oci:Database/databaseSoftwareImage:DatabaseSoftwareImage": "oci_database_database_software_image", "oci:Database/databaseUpgrade:DatabaseUpgrade": "oci_database_database_upgrade", "oci:Database/dbHome:DbHome": "oci_database_db_home", + "oci:Database/dbNode:DbNode": "oci_database_db_node", "oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection": "oci_database_db_node_console_connection", "oci:Database/dbSystem:DbSystem": "oci_database_db_system", "oci:Database/dbSystemsUpgrade:DbSystemsUpgrade": "oci_database_db_systems_upgrade", @@ -89376,6 +89380,7 @@ "createdById": "created_by_id", "displayName": "display_name", "externalKey": "external_key", + "lifecycleDetails": "lifecycle_details", "timeCreated": "time_created", "timeHarvested": "time_harvested", "timeUpdated": "time_updated", @@ -89518,6 +89523,7 @@ "dataAssetKey": "data_asset_key", "displayName": "display_name", "externalKey": "external_key", + "lifecycleDetails": "lifecycle_details", "timeCreated": "time_created", "timeHarvested": "time_harvested", "timeUpdated": "time_updated", @@ -89539,6 +89545,7 @@ "createdById": "created_by_id", "displayName": "display_name", "externalKey": "external_key", + "lifecycleDetails": "lifecycle_details", "timeCreated": "time_created", "timeHarvested": "time_harvested", "timeUpdated": "time_updated", @@ -96218,11 +96225,38 @@ "timeCreated": "time_created", "vmClusterId": "vm_cluster_id" }, + "oci:Database/dbNode:DbNode": { + "additionalDetails": "additional_details", + "backupIpId": "backup_ip_id", + "backupVnic2id": "backup_vnic2id", + "backupVnicId": "backup_vnic_id", + "cpuCoreCount": "cpu_core_count", + "dbNodeId": "db_node_id", + "dbNodeStorageSizeInGbs": "db_node_storage_size_in_gbs", + "dbServerId": "db_server_id", + "dbSystemId": "db_system_id", + "definedTags": "defined_tags", + "faultDomain": "fault_domain", + "freeformTags": "freeform_tags", + "hostIpId": "host_ip_id", + "lifecycleDetails": "lifecycle_details", + "maintenanceType": "maintenance_type", + "memorySizeInGbs": "memory_size_in_gbs", + "softwareStorageSizeInGb": "software_storage_size_in_gb", + "timeCreated": "time_created", + "timeMaintenanceWindowEnd": "time_maintenance_window_end", + "timeMaintenanceWindowStart": "time_maintenance_window_start", + "vnicId": "vnic_id" + }, "oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection": { "compartmentId": "compartment_id", "connectionString": "connection_string", "dbNodeId": "db_node_id", - "publicKey": "public_key" + "definedTags": "defined_tags", + "freeformTags": "freeform_tags", + "lifecycleDetails": "lifecycle_details", + "publicKey": "public_key", + "serviceHostKeyFingerprint": "service_host_key_fingerprint" }, "oci:Database/dbSystem:DbSystem": { "availabilityDomain": "availability_domain", @@ -99008,8 +99042,11 @@ "dbNodeStorageSizeInGbs": "db_node_storage_size_in_gbs", "dbServerId": "db_server_id", "dbSystemId": "db_system_id", + "definedTags": "defined_tags", "faultDomain": "fault_domain", + "freeformTags": "freeform_tags", "hostIpId": "host_ip_id", + "lifecycleDetails": "lifecycle_details", "maintenanceType": "maintenance_type", "memorySizeInGbs": "memory_size_in_gbs", "softwareStorageSizeInGb": "software_storage_size_in_gb", @@ -99022,7 +99059,11 @@ "compartmentId": "compartment_id", "connectionString": "connection_string", "dbNodeId": "db_node_id", - "publicKey": "public_key" + "definedTags": "defined_tags", + "freeformTags": "freeform_tags", + "lifecycleDetails": "lifecycle_details", + "publicKey": "public_key", + "serviceHostKeyFingerprint": "service_host_key_fingerprint" }, "oci:Database/getDbNodeConsoleConnections:getDbNodeConsoleConnections": { "consoleConnections": "console_connections", @@ -99033,7 +99074,11 @@ "compartmentId": "compartment_id", "connectionString": "connection_string", "dbNodeId": "db_node_id", - "publicKey": "public_key" + "definedTags": "defined_tags", + "freeformTags": "freeform_tags", + "lifecycleDetails": "lifecycle_details", + "publicKey": "public_key", + "serviceHostKeyFingerprint": "service_host_key_fingerprint" }, "oci:Database/getDbNodes:getDbNodes": { "compartmentId": "compartment_id", @@ -99053,8 +99098,11 @@ "dbNodeStorageSizeInGbs": "db_node_storage_size_in_gbs", "dbServerId": "db_server_id", "dbSystemId": "db_system_id", + "definedTags": "defined_tags", "faultDomain": "fault_domain", + "freeformTags": "freeform_tags", "hostIpId": "host_ip_id", + "lifecycleDetails": "lifecycle_details", "maintenanceType": "maintenance_type", "memorySizeInGbs": "memory_size_in_gbs", "softwareStorageSizeInGb": "software_storage_size_in_gb", diff --git a/provider/cmd/pulumi-resource-oci/schema.json b/provider/cmd/pulumi-resource-oci/schema.json index 6ca40d4a71..f283bed55f 100644 --- a/provider/cmd/pulumi-resource-oci/schema.json +++ b/provider/cmd/pulumi-resource-oci/schema.json @@ -89297,6 +89297,10 @@ "type": "string", "description": "Unique data asset key that is immutable.\n" }, + "lifecycleDetails": { + "type": "string", + "description": "A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.\n" + }, "properties": { "type": "object", "additionalProperties": { @@ -89341,6 +89345,7 @@ "displayName", "externalKey", "key", + "lifecycleDetails", "properties", "state", "timeCreated", @@ -119005,8 +119010,7 @@ "description": "A filter to return only resources that match the given availability domain exactly.\n" }, "availableCpus": { - "type": "number", - "description": "Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.\u003cbr\u003e For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model.\n" + "type": "number" }, "backupConfigs": { "type": "array", @@ -129408,17 +129412,39 @@ "type": "string", "description": "The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).\n" }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, "fingerprint": { "type": "string", "description": "The SSH public key fingerprint for the console connection.\n" }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}`\n" + }, "id": { "type": "string", "description": "The OCID of the console connection.\n" }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" + }, "publicKey": { "type": "string" }, + "serviceHostKeyFingerprint": { + "type": "string", + "description": "The SSH public key's fingerprint for the console connection service host.\n" + }, "state": { "type": "string", "description": "The current state of the console connection.\n" @@ -129429,9 +129455,13 @@ "compartmentId", "connectionString", "dbNodeId", + "definedTags", "fingerprint", + "freeformTags", "id", + "lifecycleDetails", "publicKey", + "serviceHostKeyFingerprint", "state" ], "language": { @@ -129498,13 +129528,27 @@ "type": "string", "description": "The DB system [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system.\n" }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, "faultDomain": { "type": "string", "description": "The name of the Fault Domain the instance is contained in.\n" }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}`\n" + }, "hostIpId": { "type": "string", - "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" }, "hostname": { "type": "string", @@ -129514,6 +129558,10 @@ "type": "string", "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node.\n" }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" + }, "maintenanceType": { "type": "string", "description": "The type of database node maintenance.\n" @@ -129562,10 +129610,13 @@ "dbNodeStorageSizeInGbs", "dbServerId", "dbSystemId", + "definedTags", "faultDomain", + "freeformTags", "hostIpId", "hostname", "id", + "lifecycleDetails", "maintenanceType", "memorySizeInGbs", "softwareStorageSizeInGb", @@ -323386,6 +323437,10 @@ "type": "string", "description": "Unique data asset key that is immutable.\n" }, + "lifecycleDetails": { + "type": "string", + "description": "A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.\n" + }, "properties": { "type": "object", "additionalProperties": { @@ -323429,6 +323484,7 @@ "displayName", "externalKey", "key", + "lifecycleDetails", "properties", "state", "timeCreated", @@ -323498,6 +323554,10 @@ "type": "string", "description": "Unique data asset key that is immutable.\n" }, + "lifecycleDetails": { + "type": "string", + "description": "A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.\n" + }, "properties": { "type": "object", "additionalProperties": { @@ -335641,11 +335701,10 @@ }, "reclaimableCpus": { "type": "number", - "description": "For Autonomous Databases on Dedicated Exadata Infrastructure:\n* These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database.\n* The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model.\n" + "description": "For Autonomous Databases on Dedicated Exadata Infrastructure:\n* These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database.\n* The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details.\n" }, "reservedCpus": { - "type": "number", - "description": "The number of CPUs reserved in an Autonomous Container Database.\n" + "type": "number" }, "role": { "type": "string", @@ -335677,7 +335736,7 @@ }, "totalCpus": { "type": "integer", - "description": "The number of CPUs allocated to the Autonomous VM cluster.\u003cbr\u003e For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model.\n" + "description": "The number of CPUs allocated to the Autonomous VM cluster.\u003cbr\u003e For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details.\n" }, "vaultId": { "type": "string", @@ -336084,11 +336143,10 @@ }, "reclaimableCpus": { "type": "number", - "description": "For Autonomous Databases on Dedicated Exadata Infrastructure:\n* These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database.\n* The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model.\n" + "description": "For Autonomous Databases on Dedicated Exadata Infrastructure:\n* These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database.\n* The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details.\n" }, "reservedCpus": { - "type": "number", - "description": "The number of CPUs reserved in an Autonomous Container Database.\n" + "type": "number" }, "role": { "type": "string", @@ -336121,7 +336179,7 @@ }, "totalCpus": { "type": "integer", - "description": "The number of CPUs allocated to the Autonomous VM cluster.\u003cbr\u003e For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model.\n" + "description": "The number of CPUs allocated to the Autonomous VM cluster.\u003cbr\u003e For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details.\n" }, "vaultId": { "type": "string", @@ -343793,8 +343851,274 @@ "type": "object" } }, + "oci:Database/dbNode:DbNode": { + "description": "This resource provides the Db Node resource in Oracle Cloud Infrastructure Database service.\n\nUpdates the specified database node.\n\n\n## Import\n\nDbNodes can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import oci:Database/dbNode:DbNode test_db_node \"id\"\n```\n ", + "properties": { + "additionalDetails": { + "type": "string", + "description": "Additional information about the planned maintenance.\n" + }, + "backupIpId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" + }, + "backupVnic2id": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC.\n" + }, + "backupVnicId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC.\n" + }, + "cpuCoreCount": { + "type": "integer", + "description": "The number of CPU cores enabled on the Db node.\n" + }, + "dbNodeId": { + "type": "string", + "description": "The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).\n" + }, + "dbNodeStorageSizeInGbs": { + "type": "integer", + "description": "The allocated local node storage in GBs on the Db node.\n" + }, + "dbServerId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node.\n" + }, + "dbSystemId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system.\n" + }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, + "faultDomain": { + "type": "string", + "description": "The name of the Fault Domain the instance is contained in.\n" + }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}` \n\n\n** IMPORTANT **\nAny change to a property that does not support update will force the destruction and recreation of the resource with the new property values\n" + }, + "hostIpId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" + }, + "hostname": { + "type": "string", + "description": "The host name for the database node.\n" + }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" + }, + "maintenanceType": { + "type": "string", + "description": "The type of database node maintenance.\n" + }, + "memorySizeInGbs": { + "type": "integer", + "description": "The allocated memory in GBs on the Db node.\n" + }, + "softwareStorageSizeInGb": { + "type": "integer", + "description": "The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.\n" + }, + "state": { + "type": "string", + "description": "The current state of the database node.\n" + }, + "timeCreated": { + "type": "string", + "description": "The date and time that the database node was created.\n" + }, + "timeMaintenanceWindowEnd": { + "type": "string", + "description": "End date and time of maintenance window.\n" + }, + "timeMaintenanceWindowStart": { + "type": "string", + "description": "Start date and time of maintenance window.\n" + }, + "vnic2id": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC.\n" + }, + "vnicId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC.\n" + } + }, + "required": [ + "additionalDetails", + "backupIpId", + "backupVnic2id", + "backupVnicId", + "cpuCoreCount", + "dbNodeId", + "dbNodeStorageSizeInGbs", + "dbServerId", + "dbSystemId", + "definedTags", + "faultDomain", + "freeformTags", + "hostIpId", + "hostname", + "lifecycleDetails", + "maintenanceType", + "memorySizeInGbs", + "softwareStorageSizeInGb", + "state", + "timeCreated", + "timeMaintenanceWindowEnd", + "timeMaintenanceWindowStart", + "vnic2id", + "vnicId" + ], + "inputProperties": { + "dbNodeId": { + "type": "string", + "description": "The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).\n", + "willReplaceOnChanges": true + }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}` \n\n\n** IMPORTANT **\nAny change to a property that does not support update will force the destruction and recreation of the resource with the new property values\n" + } + }, + "requiredInputs": [ + "dbNodeId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering DbNode resources.\n", + "properties": { + "additionalDetails": { + "type": "string", + "description": "Additional information about the planned maintenance.\n" + }, + "backupIpId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" + }, + "backupVnic2id": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC.\n" + }, + "backupVnicId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC.\n" + }, + "cpuCoreCount": { + "type": "integer", + "description": "The number of CPU cores enabled on the Db node.\n" + }, + "dbNodeId": { + "type": "string", + "description": "The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).\n", + "willReplaceOnChanges": true + }, + "dbNodeStorageSizeInGbs": { + "type": "integer", + "description": "The allocated local node storage in GBs on the Db node.\n" + }, + "dbServerId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node.\n" + }, + "dbSystemId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system.\n" + }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, + "faultDomain": { + "type": "string", + "description": "The name of the Fault Domain the instance is contained in.\n" + }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}` \n\n\n** IMPORTANT **\nAny change to a property that does not support update will force the destruction and recreation of the resource with the new property values\n" + }, + "hostIpId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" + }, + "hostname": { + "type": "string", + "description": "The host name for the database node.\n" + }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" + }, + "maintenanceType": { + "type": "string", + "description": "The type of database node maintenance.\n" + }, + "memorySizeInGbs": { + "type": "integer", + "description": "The allocated memory in GBs on the Db node.\n" + }, + "softwareStorageSizeInGb": { + "type": "integer", + "description": "The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.\n" + }, + "state": { + "type": "string", + "description": "The current state of the database node.\n" + }, + "timeCreated": { + "type": "string", + "description": "The date and time that the database node was created.\n" + }, + "timeMaintenanceWindowEnd": { + "type": "string", + "description": "End date and time of maintenance window.\n" + }, + "timeMaintenanceWindowStart": { + "type": "string", + "description": "Start date and time of maintenance window.\n" + }, + "vnic2id": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC.\n" + }, + "vnicId": { + "type": "string", + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC.\n" + } + }, + "type": "object" + } + }, "oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection": { - "description": "This resource provides the Db Node Console Connection resource in Oracle Cloud Infrastructure Database service.\n\nCreates a new console connection to the specified database node.\nAfter the console connection has been created and is available,\nyou connect to the console using SSH.\n\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as oci from \"@pulumi/oci\";\n\nconst testDbNodeConsoleConnection = new oci.database.DbNodeConsoleConnection(\"testDbNodeConsoleConnection\", {\n dbNodeId: oci_database_db_node.test_db_node.id,\n publicKey: _var.db_node_console_connection_public_key,\n});\n```\n```python\nimport pulumi\nimport pulumi_oci as oci\n\ntest_db_node_console_connection = oci.database.DbNodeConsoleConnection(\"testDbNodeConsoleConnection\",\n db_node_id=oci_database_db_node[\"test_db_node\"][\"id\"],\n public_key=var[\"db_node_console_connection_public_key\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Oci = Pulumi.Oci;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testDbNodeConsoleConnection = new Oci.Database.DbNodeConsoleConnection(\"testDbNodeConsoleConnection\", new()\n {\n DbNodeId = oci_database_db_node.Test_db_node.Id,\n PublicKey = @var.Db_node_console_connection_public_key,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-oci/sdk/go/oci/Database\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Database.NewDbNodeConsoleConnection(ctx, \"testDbNodeConsoleConnection\", \u0026Database.DbNodeConsoleConnectionArgs{\n\t\t\tDbNodeId: pulumi.Any(oci_database_db_node.Test_db_node.Id),\n\t\t\tPublicKey: pulumi.Any(_var.Db_node_console_connection_public_key),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.oci.Database.DbNodeConsoleConnection;\nimport com.pulumi.oci.Database.DbNodeConsoleConnectionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var testDbNodeConsoleConnection = new DbNodeConsoleConnection(\"testDbNodeConsoleConnection\", DbNodeConsoleConnectionArgs.builder() \n .dbNodeId(oci_database_db_node.test_db_node().id())\n .publicKey(var_.db_node_console_connection_public_key())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testDbNodeConsoleConnection:\n type: oci:Database:DbNodeConsoleConnection\n properties:\n #Required\n dbNodeId: ${oci_database_db_node.test_db_node.id}\n publicKey: ${var.db_node_console_connection_public_key}\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nDbNodeConsoleConnections can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection test_db_node_console_connection \"dbNodes/{dbNodeId}/consoleConnections/{consoleConnectionId}\"\n```\n ", + "description": "This resource provides the Db Node Console Connection resource in Oracle Cloud Infrastructure Database service.\n\nCreates a new console connection to the specified database node.\nAfter the console connection has been created and is available,\nyou connect to the console using SSH.\n\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as oci from \"@pulumi/oci\";\n\nconst testDbNodeConsoleConnection = new oci.database.DbNodeConsoleConnection(\"testDbNodeConsoleConnection\", {\n dbNodeId: oci_database_db_node.test_db_node.id,\n publicKey: _var.db_node_console_connection_public_key,\n definedTags: _var.db_node_console_connection_defined_tags,\n freeformTags: {\n Department: \"Finance\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_oci as oci\n\ntest_db_node_console_connection = oci.database.DbNodeConsoleConnection(\"testDbNodeConsoleConnection\",\n db_node_id=oci_database_db_node[\"test_db_node\"][\"id\"],\n public_key=var[\"db_node_console_connection_public_key\"],\n defined_tags=var[\"db_node_console_connection_defined_tags\"],\n freeform_tags={\n \"Department\": \"Finance\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Oci = Pulumi.Oci;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var testDbNodeConsoleConnection = new Oci.Database.DbNodeConsoleConnection(\"testDbNodeConsoleConnection\", new()\n {\n DbNodeId = oci_database_db_node.Test_db_node.Id,\n PublicKey = @var.Db_node_console_connection_public_key,\n DefinedTags = @var.Db_node_console_connection_defined_tags,\n FreeformTags = \n {\n { \"Department\", \"Finance\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-oci/sdk/go/oci/Database\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := Database.NewDbNodeConsoleConnection(ctx, \"testDbNodeConsoleConnection\", \u0026Database.DbNodeConsoleConnectionArgs{\n\t\t\tDbNodeId: pulumi.Any(oci_database_db_node.Test_db_node.Id),\n\t\t\tPublicKey: pulumi.Any(_var.Db_node_console_connection_public_key),\n\t\t\tDefinedTags: pulumi.Any(_var.Db_node_console_connection_defined_tags),\n\t\t\tFreeformTags: pulumi.AnyMap{\n\t\t\t\t\"Department\": pulumi.Any(\"Finance\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.oci.Database.DbNodeConsoleConnection;\nimport com.pulumi.oci.Database.DbNodeConsoleConnectionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var testDbNodeConsoleConnection = new DbNodeConsoleConnection(\"testDbNodeConsoleConnection\", DbNodeConsoleConnectionArgs.builder() \n .dbNodeId(oci_database_db_node.test_db_node().id())\n .publicKey(var_.db_node_console_connection_public_key())\n .definedTags(var_.db_node_console_connection_defined_tags())\n .freeformTags(Map.of(\"Department\", \"Finance\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n testDbNodeConsoleConnection:\n type: oci:Database:DbNodeConsoleConnection\n properties:\n #Required\n dbNodeId: ${oci_database_db_node.test_db_node.id}\n publicKey: ${var.db_node_console_connection_public_key}\n #Optional\n definedTags: ${var.db_node_console_connection_defined_tags}\n freeformTags:\n Department: Finance\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nDbNodeConsoleConnections can be imported using the `id`, e.g.\n\n```sh\n $ pulumi import oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection test_db_node_console_connection \"dbNodes/{dbNodeId}/consoleConnections/{consoleConnectionId}\"\n```\n ", "properties": { "compartmentId": { "type": "string", @@ -343808,14 +344132,36 @@ "type": "string", "description": "The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).\n" }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, "fingerprint": { "type": "string", "description": "The SSH public key fingerprint for the console connection.\n" }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}`\n" + }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" + }, "publicKey": { "type": "string", "description": "The SSH public key used to authenticate the console connection.\n\n\n** IMPORTANT **\nAny change to a property that does not support update will force the destruction and recreation of the resource with the new property values\n" }, + "serviceHostKeyFingerprint": { + "type": "string", + "description": "The SSH public key's fingerprint for the console connection service host.\n" + }, "state": { "type": "string", "description": "The current state of the console connection.\n" @@ -343825,8 +344171,12 @@ "compartmentId", "connectionString", "dbNodeId", + "definedTags", "fingerprint", + "freeformTags", + "lifecycleDetails", "publicKey", + "serviceHostKeyFingerprint", "state" ], "inputProperties": { @@ -343835,6 +344185,20 @@ "description": "The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).\n", "willReplaceOnChanges": true }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}`\n" + }, "publicKey": { "type": "string", "description": "The SSH public key used to authenticate the console connection.\n\n\n** IMPORTANT **\nAny change to a property that does not support update will force the destruction and recreation of the resource with the new property values\n", @@ -343861,15 +344225,37 @@ "description": "The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).\n", "willReplaceOnChanges": true }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, "fingerprint": { "type": "string", "description": "The SSH public key fingerprint for the console connection.\n" }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "(Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}`\n" + }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" + }, "publicKey": { "type": "string", "description": "The SSH public key used to authenticate the console connection.\n\n\n** IMPORTANT **\nAny change to a property that does not support update will force the destruction and recreation of the resource with the new property values\n", "willReplaceOnChanges": true }, + "serviceHostKeyFingerprint": { + "type": "string", + "description": "The SSH public key's fingerprint for the console connection service host.\n" + }, "state": { "type": "string", "description": "The current state of the console connection.\n" @@ -447778,6 +448164,10 @@ "type": "string", "description": "Unique data asset key that is immutable.\n" }, + "lifecycleDetails": { + "type": "string", + "description": "A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.\n" + }, "properties": { "type": "object", "additionalProperties": { @@ -447824,6 +448214,7 @@ "externalKey", "id", "key", + "lifecycleDetails", "properties", "state", "timeCreated", @@ -463108,11 +463499,10 @@ }, "availabilityDomain": { "type": "string", - "description": "The availability domain of the Autonomous Container Database.\n" + "description": "The availability domain of the Autonomous Container Database.\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n" }, "availableCpus": { - "type": "number", - "description": "Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.\u003cbr\u003e For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model.\n" + "type": "number" }, "backupConfigs": { "type": "array", @@ -463796,7 +464186,7 @@ }, "availabilityDomain": { "type": "string", - "description": "The availability domain of the Autonomous Container Database.\n" + "description": "The availability domain of the Autonomous Container Database.\n\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD\n" }, "cloudAutonomousVmClusterId": { "type": "string", @@ -464216,7 +464606,7 @@ }, "memoryPerOracleComputeUnitInGbs": { "type": "integer", - "description": "The amount of memory (in GBs) enabled per OCPU or ECPU.\n" + "description": "The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster.\n" }, "ncharacterSet": { "type": "string", @@ -469727,13 +470117,27 @@ "type": "string", "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system.\n" }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, "faultDomain": { "type": "string", "description": "The name of the Fault Domain the instance is contained in.\n" }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}`\n" + }, "hostIpId": { "type": "string", - "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection.\n" }, "hostname": { "type": "string", @@ -469741,7 +470145,11 @@ }, "id": { "type": "string", - "description": "The provider-assigned unique ID for this managed resource.\n" + "description": "The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node.\n" + }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" }, "maintenanceType": { "type": "string", @@ -469791,9 +470199,13 @@ "dbNodeStorageSizeInGbs", "dbServerId", "dbSystemId", + "definedTags", "faultDomain", + "freeformTags", "hostIpId", "hostname", + "id", + "lifecycleDetails", "maintenanceType", "memorySizeInGbs", "softwareStorageSizeInGb", @@ -469802,8 +470214,7 @@ "timeMaintenanceWindowEnd", "timeMaintenanceWindowStart", "vnic2id", - "vnicId", - "id" + "vnicId" ] } }, @@ -469842,17 +470253,39 @@ "type": "string", "description": "The OCID of the database node.\n" }, + "definedTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).\n" + }, "fingerprint": { "type": "string", "description": "The SSH public key fingerprint for the console connection.\n" }, + "freeformTags": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{\"Department\": \"Finance\"}`\n" + }, "id": { "type": "string", "description": "The OCID of the console connection.\n" }, + "lifecycleDetails": { + "type": "string", + "description": "Information about the current lifecycle state.\n" + }, "publicKey": { "type": "string" }, + "serviceHostKeyFingerprint": { + "type": "string", + "description": "The SSH public key's fingerprint for the console connection service host.\n" + }, "state": { "type": "string", "description": "The current state of the console connection.\n" @@ -469863,9 +470296,13 @@ "compartmentId", "connectionString", "dbNodeId", + "definedTags", "fingerprint", + "freeformTags", "id", + "lifecycleDetails", "publicKey", + "serviceHostKeyFingerprint", "state" ] } diff --git a/provider/go.mod b/provider/go.mod index ff27873565..d36f1501df 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -9,7 +9,7 @@ replace ( ) require ( - github.com/oracle/terraform-provider-oci v1.0.19-0.20230830045530-6c03c0b74d45 // indirect + github.com/oracle/terraform-provider-oci v1.0.19-0.20230906154912-d224d50d2715 // indirect github.com/oracle/terraform-provider-oci/shim v0.0.0 github.com/pulumi/pulumi-terraform-bridge/v3 v3.58.0 github.com/pulumi/pulumi/pkg/v3 v3.76.1 // indirect @@ -179,7 +179,7 @@ require ( github.com/oklog/run v1.1.0 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/oracle/oci-go-sdk/v65 v65.48.0 // indirect + github.com/oracle/oci-go-sdk/v65 v65.49.0 // indirect github.com/pgavlin/goldmark v1.1.33-0.20200616210433-b5eb04559386 // indirect github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pjbgf/sha1cd v0.3.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index afda6fa037..27c7d83b21 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2039,10 +2039,10 @@ github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxS github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/oracle/oci-go-sdk/v65 v65.48.0 h1:XKhUSM1xjfE1wKJ65ZDYuQOHEdEl9Kido6zedqPE5V0= -github.com/oracle/oci-go-sdk/v65 v65.48.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= -github.com/oracle/terraform-provider-oci v1.0.19-0.20230830045530-6c03c0b74d45 h1:vH5NocEKXTazAV4xehVmVYlycxOBQ4p55Qc5FYe0TlA= -github.com/oracle/terraform-provider-oci v1.0.19-0.20230830045530-6c03c0b74d45/go.mod h1:y/MNoPKOPv6CUhN43xzQ3m36OcnebRKab505+qWD6VI= +github.com/oracle/oci-go-sdk/v65 v65.49.0 h1:A/G4SuzLixNy43DsXj9Vok9TygRZRX15I62ebGTHj2Y= +github.com/oracle/oci-go-sdk/v65 v65.49.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= +github.com/oracle/terraform-provider-oci v1.0.19-0.20230906154912-d224d50d2715 h1:t8OXdKxskuyDdXbc0XlUnggs6DWYK8d2xqfO6qsGJI4= +github.com/oracle/terraform-provider-oci v1.0.19-0.20230906154912-d224d50d2715/go.mod h1:mOPNI/YRsgWpwnDjgtCutGkO+T+A/lpFJVifNmoUE/U= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= diff --git a/provider/shim/go.mod b/provider/shim/go.mod index fadef523f1..41e2044807 100644 --- a/provider/shim/go.mod +++ b/provider/shim/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/hashicorp/terraform-plugin-sdk/v2 v2.22.0 - github.com/oracle/terraform-provider-oci v1.0.19-0.20230830045530-6c03c0b74d45 + github.com/oracle/terraform-provider-oci v1.0.19-0.20230906154912-d224d50d2715 ) replace github.com/hashicorp/terraform-exec => github.com/hashicorp/terraform-exec v0.14.0 @@ -46,7 +46,7 @@ require ( github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/oklog/run v1.1.0 // indirect - github.com/oracle/oci-go-sdk/v65 v65.48.0 // indirect + github.com/oracle/oci-go-sdk/v65 v65.49.0 // indirect github.com/sony/gobreaker v0.5.0 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect diff --git a/provider/shim/go.sum b/provider/shim/go.sum index 4fdcd8b6e9..3d0e8770cd 100644 --- a/provider/shim/go.sum +++ b/provider/shim/go.sum @@ -488,10 +488,10 @@ github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce h1:RPclfga2SEJmgMmz2k github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4v2r9jz+c9i1IfIttS/OkmLfrk1jne5hs= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/oracle/oci-go-sdk/v65 v65.48.0 h1:XKhUSM1xjfE1wKJ65ZDYuQOHEdEl9Kido6zedqPE5V0= -github.com/oracle/oci-go-sdk/v65 v65.48.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= -github.com/oracle/terraform-provider-oci v1.0.19-0.20230830045530-6c03c0b74d45 h1:vH5NocEKXTazAV4xehVmVYlycxOBQ4p55Qc5FYe0TlA= -github.com/oracle/terraform-provider-oci v1.0.19-0.20230830045530-6c03c0b74d45/go.mod h1:y/MNoPKOPv6CUhN43xzQ3m36OcnebRKab505+qWD6VI= +github.com/oracle/oci-go-sdk/v65 v65.49.0 h1:A/G4SuzLixNy43DsXj9Vok9TygRZRX15I62ebGTHj2Y= +github.com/oracle/oci-go-sdk/v65 v65.49.0/go.mod h1:IBEV9l1qBzUpo7zgGaRUhbB05BVfcDGYRFBCPlTcPp0= +github.com/oracle/terraform-provider-oci v1.0.19-0.20230906154912-d224d50d2715 h1:t8OXdKxskuyDdXbc0XlUnggs6DWYK8d2xqfO6qsGJI4= +github.com/oracle/terraform-provider-oci v1.0.19-0.20230906154912-d224d50d2715/go.mod h1:mOPNI/YRsgWpwnDjgtCutGkO+T+A/lpFJVifNmoUE/U= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/sdk/dotnet/DataCatalog/DataAsset.cs b/sdk/dotnet/DataCatalog/DataAsset.cs index f29428cc72..8aab67e457 100644 --- a/sdk/dotnet/DataCatalog/DataAsset.cs +++ b/sdk/dotnet/DataCatalog/DataAsset.cs @@ -83,6 +83,12 @@ public partial class DataAsset : global::Pulumi.CustomResource [Output("key")] public Output Key { get; private set; } = null!; + /// + /// A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + /// + [Output("lifecycleDetails")] + public Output LifecycleDetails { get; private set; } = null!; + /// /// A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` /// @@ -265,6 +271,12 @@ public sealed class DataAssetState : global::Pulumi.ResourceArgs [Input("key")] public Input? Key { get; set; } + /// + /// A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + /// + [Input("lifecycleDetails")] + public Input? LifecycleDetails { get; set; } + [Input("properties")] private InputMap? _properties; diff --git a/sdk/dotnet/DataCatalog/GetDataAsset.cs b/sdk/dotnet/DataCatalog/GetDataAsset.cs index 79af9768b2..f2488554e4 100644 --- a/sdk/dotnet/DataCatalog/GetDataAsset.cs +++ b/sdk/dotnet/DataCatalog/GetDataAsset.cs @@ -173,6 +173,10 @@ public sealed class GetDataAssetResult /// public readonly string Key; /// + /// A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + /// + public readonly string LifecycleDetails; + /// /// A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` /// public readonly ImmutableDictionary Properties; @@ -225,6 +229,8 @@ private GetDataAssetResult( string key, + string lifecycleDetails, + ImmutableDictionary properties, string state, @@ -250,6 +256,7 @@ private GetDataAssetResult( Fields = fields; Id = id; Key = key; + LifecycleDetails = lifecycleDetails; Properties = properties; State = state; TimeCreated = timeCreated; diff --git a/sdk/dotnet/DataCatalog/Outputs/GetDataAssetsDataAssetCollectionItemResult.cs b/sdk/dotnet/DataCatalog/Outputs/GetDataAssetsDataAssetCollectionItemResult.cs index 3bfba10865..12eb3af84b 100644 --- a/sdk/dotnet/DataCatalog/Outputs/GetDataAssetsDataAssetCollectionItemResult.cs +++ b/sdk/dotnet/DataCatalog/Outputs/GetDataAssetsDataAssetCollectionItemResult.cs @@ -38,6 +38,10 @@ public sealed class GetDataAssetsDataAssetCollectionItemResult /// public readonly string Key; /// + /// A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + /// + public readonly string LifecycleDetails; + /// /// A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` /// public readonly ImmutableDictionary Properties; @@ -84,6 +88,8 @@ private GetDataAssetsDataAssetCollectionItemResult( string key, + string lifecycleDetails, + ImmutableDictionary properties, string state, @@ -106,6 +112,7 @@ private GetDataAssetsDataAssetCollectionItemResult( DisplayName = displayName; ExternalKey = externalKey; Key = key; + LifecycleDetails = lifecycleDetails; Properties = properties; State = state; TimeCreated = timeCreated; diff --git a/sdk/dotnet/Database/AutonomousContainerDatabase.cs b/sdk/dotnet/Database/AutonomousContainerDatabase.cs index 39d341c97e..b38acaec3a 100644 --- a/sdk/dotnet/Database/AutonomousContainerDatabase.cs +++ b/sdk/dotnet/Database/AutonomousContainerDatabase.cs @@ -259,14 +259,11 @@ public partial class AutonomousContainerDatabase : global::Pulumi.CustomResource /// /// For Autonomous Databases on Dedicated Exadata Infrastructure: /// * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - /// * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + /// * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. /// [Output("reclaimableCpus")] public Output ReclaimableCpus { get; private set; } = null!; - /// - /// The number of CPUs reserved in an Autonomous Container Database. - /// [Output("reservedCpus")] public Output ReservedCpus { get; private set; } = null!; @@ -317,7 +314,7 @@ public partial class AutonomousContainerDatabase : global::Pulumi.CustomResource public Output TimeSnapshotStandbyRevert { get; private set; } = null!; /// - /// The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + /// The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. /// [Output("totalCpus")] public Output TotalCpus { get; private set; } = null!; @@ -839,14 +836,11 @@ public InputList ProvisionableCpuses /// /// For Autonomous Databases on Dedicated Exadata Infrastructure: /// * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - /// * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + /// * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. /// [Input("reclaimableCpus")] public Input? ReclaimableCpus { get; set; } - /// - /// The number of CPUs reserved in an Autonomous Container Database. - /// [Input("reservedCpus")] public Input? ReservedCpus { get; set; } @@ -897,7 +891,7 @@ public InputList ProvisionableCpuses public Input? TimeSnapshotStandbyRevert { get; set; } /// - /// The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + /// The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. /// [Input("totalCpus")] public Input? TotalCpus { get; set; } diff --git a/sdk/dotnet/Database/DbNode.cs b/sdk/dotnet/Database/DbNode.cs new file mode 100644 index 0000000000..df5abe4b15 --- /dev/null +++ b/sdk/dotnet/Database/DbNode.cs @@ -0,0 +1,429 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Oci.Database +{ + /// + /// This resource provides the Db Node resource in Oracle Cloud Infrastructure Database service. + /// + /// Updates the specified database node. + /// + /// ## Import + /// + /// DbNodes can be imported using the `id`, e.g. + /// + /// ```sh + /// $ pulumi import oci:Database/dbNode:DbNode test_db_node "id" + /// ``` + /// + [OciResourceType("oci:Database/dbNode:DbNode")] + public partial class DbNode : global::Pulumi.CustomResource + { + /// + /// Additional information about the planned maintenance. + /// + [Output("additionalDetails")] + public Output AdditionalDetails { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + /// + [Output("backupIpId")] + public Output BackupIpId { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + /// + [Output("backupVnic2id")] + public Output BackupVnic2id { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + /// + [Output("backupVnicId")] + public Output BackupVnicId { get; private set; } = null!; + + /// + /// The number of CPU cores enabled on the Db node. + /// + [Output("cpuCoreCount")] + public Output CpuCoreCount { get; private set; } = null!; + + /// + /// The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + /// + [Output("dbNodeId")] + public Output DbNodeId { get; private set; } = null!; + + /// + /// The allocated local node storage in GBs on the Db node. + /// + [Output("dbNodeStorageSizeInGbs")] + public Output DbNodeStorageSizeInGbs { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + /// + [Output("dbServerId")] + public Output DbServerId { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + /// + [Output("dbSystemId")] + public Output DbSystemId { get; private set; } = null!; + + /// + /// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + [Output("definedTags")] + public Output> DefinedTags { get; private set; } = null!; + + /// + /// The name of the Fault Domain the instance is contained in. + /// + [Output("faultDomain")] + public Output FaultDomain { get; private set; } = null!; + + /// + /// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + /// + /// ** IMPORTANT ** + /// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + /// + [Output("freeformTags")] + public Output> FreeformTags { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + /// + [Output("hostIpId")] + public Output HostIpId { get; private set; } = null!; + + /// + /// The host name for the database node. + /// + [Output("hostname")] + public Output Hostname { get; private set; } = null!; + + /// + /// Information about the current lifecycle state. + /// + [Output("lifecycleDetails")] + public Output LifecycleDetails { get; private set; } = null!; + + /// + /// The type of database node maintenance. + /// + [Output("maintenanceType")] + public Output MaintenanceType { get; private set; } = null!; + + /// + /// The allocated memory in GBs on the Db node. + /// + [Output("memorySizeInGbs")] + public Output MemorySizeInGbs { get; private set; } = null!; + + /// + /// The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + /// + [Output("softwareStorageSizeInGb")] + public Output SoftwareStorageSizeInGb { get; private set; } = null!; + + /// + /// The current state of the database node. + /// + [Output("state")] + public Output State { get; private set; } = null!; + + /// + /// The date and time that the database node was created. + /// + [Output("timeCreated")] + public Output TimeCreated { get; private set; } = null!; + + /// + /// End date and time of maintenance window. + /// + [Output("timeMaintenanceWindowEnd")] + public Output TimeMaintenanceWindowEnd { get; private set; } = null!; + + /// + /// Start date and time of maintenance window. + /// + [Output("timeMaintenanceWindowStart")] + public Output TimeMaintenanceWindowStart { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + /// + [Output("vnic2id")] + public Output Vnic2id { get; private set; } = null!; + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + /// + [Output("vnicId")] + public Output VnicId { get; private set; } = null!; + + + /// + /// Create a DbNode resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public DbNode(string name, DbNodeArgs args, CustomResourceOptions? options = null) + : base("oci:Database/dbNode:DbNode", name, args ?? new DbNodeArgs(), MakeResourceOptions(options, "")) + { + } + + private DbNode(string name, Input id, DbNodeState? state = null, CustomResourceOptions? options = null) + : base("oci:Database/dbNode:DbNode", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing DbNode resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static DbNode Get(string name, Input id, DbNodeState? state = null, CustomResourceOptions? options = null) + { + return new DbNode(name, id, state, options); + } + } + + public sealed class DbNodeArgs : global::Pulumi.ResourceArgs + { + /// + /// The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + /// + [Input("dbNodeId", required: true)] + public Input DbNodeId { get; set; } = null!; + + [Input("definedTags")] + private InputMap? _definedTags; + + /// + /// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public InputMap DefinedTags + { + get => _definedTags ?? (_definedTags = new InputMap()); + set => _definedTags = value; + } + + [Input("freeformTags")] + private InputMap? _freeformTags; + + /// + /// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + /// + /// ** IMPORTANT ** + /// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + /// + public InputMap FreeformTags + { + get => _freeformTags ?? (_freeformTags = new InputMap()); + set => _freeformTags = value; + } + + public DbNodeArgs() + { + } + public static new DbNodeArgs Empty => new DbNodeArgs(); + } + + public sealed class DbNodeState : global::Pulumi.ResourceArgs + { + /// + /// Additional information about the planned maintenance. + /// + [Input("additionalDetails")] + public Input? AdditionalDetails { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + /// + [Input("backupIpId")] + public Input? BackupIpId { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + /// + [Input("backupVnic2id")] + public Input? BackupVnic2id { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + /// + [Input("backupVnicId")] + public Input? BackupVnicId { get; set; } + + /// + /// The number of CPU cores enabled on the Db node. + /// + [Input("cpuCoreCount")] + public Input? CpuCoreCount { get; set; } + + /// + /// The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + /// + [Input("dbNodeId")] + public Input? DbNodeId { get; set; } + + /// + /// The allocated local node storage in GBs on the Db node. + /// + [Input("dbNodeStorageSizeInGbs")] + public Input? DbNodeStorageSizeInGbs { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + /// + [Input("dbServerId")] + public Input? DbServerId { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + /// + [Input("dbSystemId")] + public Input? DbSystemId { get; set; } + + [Input("definedTags")] + private InputMap? _definedTags; + + /// + /// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public InputMap DefinedTags + { + get => _definedTags ?? (_definedTags = new InputMap()); + set => _definedTags = value; + } + + /// + /// The name of the Fault Domain the instance is contained in. + /// + [Input("faultDomain")] + public Input? FaultDomain { get; set; } + + [Input("freeformTags")] + private InputMap? _freeformTags; + + /// + /// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + /// + /// ** IMPORTANT ** + /// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + /// + public InputMap FreeformTags + { + get => _freeformTags ?? (_freeformTags = new InputMap()); + set => _freeformTags = value; + } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + /// + [Input("hostIpId")] + public Input? HostIpId { get; set; } + + /// + /// The host name for the database node. + /// + [Input("hostname")] + public Input? Hostname { get; set; } + + /// + /// Information about the current lifecycle state. + /// + [Input("lifecycleDetails")] + public Input? LifecycleDetails { get; set; } + + /// + /// The type of database node maintenance. + /// + [Input("maintenanceType")] + public Input? MaintenanceType { get; set; } + + /// + /// The allocated memory in GBs on the Db node. + /// + [Input("memorySizeInGbs")] + public Input? MemorySizeInGbs { get; set; } + + /// + /// The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + /// + [Input("softwareStorageSizeInGb")] + public Input? SoftwareStorageSizeInGb { get; set; } + + /// + /// The current state of the database node. + /// + [Input("state")] + public Input? State { get; set; } + + /// + /// The date and time that the database node was created. + /// + [Input("timeCreated")] + public Input? TimeCreated { get; set; } + + /// + /// End date and time of maintenance window. + /// + [Input("timeMaintenanceWindowEnd")] + public Input? TimeMaintenanceWindowEnd { get; set; } + + /// + /// Start date and time of maintenance window. + /// + [Input("timeMaintenanceWindowStart")] + public Input? TimeMaintenanceWindowStart { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + /// + [Input("vnic2id")] + public Input? Vnic2id { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + /// + [Input("vnicId")] + public Input? VnicId { get; set; } + + public DbNodeState() + { + } + public static new DbNodeState Empty => new DbNodeState(); + } +} diff --git a/sdk/dotnet/Database/DbNodeConsoleConnection.cs b/sdk/dotnet/Database/DbNodeConsoleConnection.cs index 267cea1e00..882f6d7bf9 100644 --- a/sdk/dotnet/Database/DbNodeConsoleConnection.cs +++ b/sdk/dotnet/Database/DbNodeConsoleConnection.cs @@ -30,6 +30,11 @@ namespace Pulumi.Oci.Database /// { /// DbNodeId = oci_database_db_node.Test_db_node.Id, /// PublicKey = @var.Db_node_console_connection_public_key, + /// DefinedTags = @var.Db_node_console_connection_defined_tags, + /// FreeformTags = + /// { + /// { "Department", "Finance" }, + /// }, /// }); /// /// }); @@ -64,12 +69,30 @@ public partial class DbNodeConsoleConnection : global::Pulumi.CustomResource [Output("dbNodeId")] public Output DbNodeId { get; private set; } = null!; + /// + /// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + [Output("definedTags")] + public Output> DefinedTags { get; private set; } = null!; + /// /// The SSH public key fingerprint for the console connection. /// [Output("fingerprint")] public Output Fingerprint { get; private set; } = null!; + /// + /// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + [Output("freeformTags")] + public Output> FreeformTags { get; private set; } = null!; + + /// + /// Information about the current lifecycle state. + /// + [Output("lifecycleDetails")] + public Output LifecycleDetails { get; private set; } = null!; + /// /// The SSH public key used to authenticate the console connection. /// @@ -80,6 +103,12 @@ public partial class DbNodeConsoleConnection : global::Pulumi.CustomResource [Output("publicKey")] public Output PublicKey { get; private set; } = null!; + /// + /// The SSH public key's fingerprint for the console connection service host. + /// + [Output("serviceHostKeyFingerprint")] + public Output ServiceHostKeyFingerprint { get; private set; } = null!; + /// /// The current state of the console connection. /// @@ -138,6 +167,30 @@ public sealed class DbNodeConsoleConnectionArgs : global::Pulumi.ResourceArgs [Input("dbNodeId", required: true)] public Input DbNodeId { get; set; } = null!; + [Input("definedTags")] + private InputMap? _definedTags; + + /// + /// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public InputMap DefinedTags + { + get => _definedTags ?? (_definedTags = new InputMap()); + set => _definedTags = value; + } + + [Input("freeformTags")] + private InputMap? _freeformTags; + + /// + /// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + public InputMap FreeformTags + { + get => _freeformTags ?? (_freeformTags = new InputMap()); + set => _freeformTags = value; + } + /// /// The SSH public key used to authenticate the console connection. /// @@ -174,12 +227,42 @@ public sealed class DbNodeConsoleConnectionState : global::Pulumi.ResourceArgs [Input("dbNodeId")] public Input? DbNodeId { get; set; } + [Input("definedTags")] + private InputMap? _definedTags; + + /// + /// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public InputMap DefinedTags + { + get => _definedTags ?? (_definedTags = new InputMap()); + set => _definedTags = value; + } + /// /// The SSH public key fingerprint for the console connection. /// [Input("fingerprint")] public Input? Fingerprint { get; set; } + [Input("freeformTags")] + private InputMap? _freeformTags; + + /// + /// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + public InputMap FreeformTags + { + get => _freeformTags ?? (_freeformTags = new InputMap()); + set => _freeformTags = value; + } + + /// + /// Information about the current lifecycle state. + /// + [Input("lifecycleDetails")] + public Input? LifecycleDetails { get; set; } + /// /// The SSH public key used to authenticate the console connection. /// @@ -190,6 +273,12 @@ public sealed class DbNodeConsoleConnectionState : global::Pulumi.ResourceArgs [Input("publicKey")] public Input? PublicKey { get; set; } + /// + /// The SSH public key's fingerprint for the console connection service host. + /// + [Input("serviceHostKeyFingerprint")] + public Input? ServiceHostKeyFingerprint { get; set; } + /// /// The current state of the console connection. /// diff --git a/sdk/dotnet/Database/GetAutonomousContainerDatabase.cs b/sdk/dotnet/Database/GetAutonomousContainerDatabase.cs index b76e1bfb12..203309d086 100644 --- a/sdk/dotnet/Database/GetAutonomousContainerDatabase.cs +++ b/sdk/dotnet/Database/GetAutonomousContainerDatabase.cs @@ -116,11 +116,9 @@ public sealed class GetAutonomousContainerDatabaseResult public readonly string AutonomousVmClusterId; /// /// The availability domain of the Autonomous Container Database. + /// <<<<<<< HEAD /// public readonly string AvailabilityDomain; - /// - /// Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - /// public readonly double AvailableCpus; /// /// Backup options for the Autonomous Container Database. diff --git a/sdk/dotnet/Database/GetAutonomousContainerDatabases.cs b/sdk/dotnet/Database/GetAutonomousContainerDatabases.cs index bcf0b429c7..050a0cd3b6 100644 --- a/sdk/dotnet/Database/GetAutonomousContainerDatabases.cs +++ b/sdk/dotnet/Database/GetAutonomousContainerDatabases.cs @@ -249,6 +249,7 @@ public sealed class GetAutonomousContainerDatabasesResult public readonly string? AutonomousVmClusterId; /// /// The availability domain of the Autonomous Container Database. + /// <<<<<<< HEAD /// public readonly string? AvailabilityDomain; /// diff --git a/sdk/dotnet/Database/GetAutonomousDatabase.cs b/sdk/dotnet/Database/GetAutonomousDatabase.cs index 6b64cac5c3..b433cf7a34 100644 --- a/sdk/dotnet/Database/GetAutonomousDatabase.cs +++ b/sdk/dotnet/Database/GetAutonomousDatabase.cs @@ -358,7 +358,7 @@ public sealed class GetAutonomousDatabaseResult /// public readonly int MaxCpuCoreCount; /// - /// The amount of memory (in GBs) enabled per OCPU or ECPU. + /// The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster. /// public readonly int MemoryPerOracleComputeUnitInGbs; /// diff --git a/sdk/dotnet/Database/GetDbNode.cs b/sdk/dotnet/Database/GetDbNode.cs index 3d44b07b85..b562715e94 100644 --- a/sdk/dotnet/Database/GetDbNode.cs +++ b/sdk/dotnet/Database/GetDbNode.cs @@ -139,11 +139,19 @@ public sealed class GetDbNodeResult /// public readonly string DbSystemId; /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public readonly ImmutableDictionary DefinedTags; + /// /// The name of the Fault Domain the instance is contained in. /// public readonly string FaultDomain; /// - /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + /// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + public readonly ImmutableDictionary FreeformTags; + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. /// public readonly string HostIpId; /// @@ -151,10 +159,14 @@ public sealed class GetDbNodeResult /// public readonly string Hostname; /// - /// The provider-assigned unique ID for this managed resource. + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. /// public readonly string Id; /// + /// Information about the current lifecycle state. + /// + public readonly string LifecycleDetails; + /// /// The type of database node maintenance. /// public readonly string MaintenanceType; @@ -211,14 +223,20 @@ private GetDbNodeResult( string dbSystemId, + ImmutableDictionary definedTags, + string faultDomain, + ImmutableDictionary freeformTags, + string hostIpId, string hostname, string id, + string lifecycleDetails, + string maintenanceType, int memorySizeInGbs, @@ -246,10 +264,13 @@ private GetDbNodeResult( DbNodeStorageSizeInGbs = dbNodeStorageSizeInGbs; DbServerId = dbServerId; DbSystemId = dbSystemId; + DefinedTags = definedTags; FaultDomain = faultDomain; + FreeformTags = freeformTags; HostIpId = hostIpId; Hostname = hostname; Id = id; + LifecycleDetails = lifecycleDetails; MaintenanceType = maintenanceType; MemorySizeInGbs = memorySizeInGbs; SoftwareStorageSizeInGb = softwareStorageSizeInGb; diff --git a/sdk/dotnet/Database/GetDbNodeConsoleConnection.cs b/sdk/dotnet/Database/GetDbNodeConsoleConnection.cs index 690ea5739b..96a4943cca 100644 --- a/sdk/dotnet/Database/GetDbNodeConsoleConnection.cs +++ b/sdk/dotnet/Database/GetDbNodeConsoleConnection.cs @@ -132,15 +132,31 @@ public sealed class GetDbNodeConsoleConnectionResult /// public readonly string DbNodeId; /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public readonly ImmutableDictionary DefinedTags; + /// /// The SSH public key fingerprint for the console connection. /// public readonly string Fingerprint; /// + /// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + public readonly ImmutableDictionary FreeformTags; + /// /// The OCID of the console connection. /// public readonly string Id; + /// + /// Information about the current lifecycle state. + /// + public readonly string LifecycleDetails; public readonly string PublicKey; /// + /// The SSH public key's fingerprint for the console connection service host. + /// + public readonly string ServiceHostKeyFingerprint; + /// /// The current state of the console connection. /// public readonly string State; @@ -153,20 +169,32 @@ private GetDbNodeConsoleConnectionResult( string dbNodeId, + ImmutableDictionary definedTags, + string fingerprint, + ImmutableDictionary freeformTags, + string id, + string lifecycleDetails, + string publicKey, + string serviceHostKeyFingerprint, + string state) { CompartmentId = compartmentId; ConnectionString = connectionString; DbNodeId = dbNodeId; + DefinedTags = definedTags; Fingerprint = fingerprint; + FreeformTags = freeformTags; Id = id; + LifecycleDetails = lifecycleDetails; PublicKey = publicKey; + ServiceHostKeyFingerprint = serviceHostKeyFingerprint; State = state; } } diff --git a/sdk/dotnet/Database/Outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabaseResult.cs b/sdk/dotnet/Database/Outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabaseResult.cs index 8a2eea16ea..2fc43dae0d 100644 --- a/sdk/dotnet/Database/Outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabaseResult.cs +++ b/sdk/dotnet/Database/Outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabaseResult.cs @@ -25,9 +25,6 @@ public sealed class GetAutonomousContainerDatabasesAutonomousContainerDatabaseRe /// A filter to return only resources that match the given availability domain exactly. /// public readonly string AvailabilityDomain; - /// - /// Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - /// public readonly double AvailableCpus; /// /// Backup options for the Autonomous Container Database. diff --git a/sdk/dotnet/Database/Outputs/GetDbNodeConsoleConnectionsConsoleConnectionResult.cs b/sdk/dotnet/Database/Outputs/GetDbNodeConsoleConnectionsConsoleConnectionResult.cs index ada2282529..e30dab4cf9 100644 --- a/sdk/dotnet/Database/Outputs/GetDbNodeConsoleConnectionsConsoleConnectionResult.cs +++ b/sdk/dotnet/Database/Outputs/GetDbNodeConsoleConnectionsConsoleConnectionResult.cs @@ -26,15 +26,31 @@ public sealed class GetDbNodeConsoleConnectionsConsoleConnectionResult /// public readonly string DbNodeId; /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public readonly ImmutableDictionary DefinedTags; + /// /// The SSH public key fingerprint for the console connection. /// public readonly string Fingerprint; /// + /// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + public readonly ImmutableDictionary FreeformTags; + /// /// The OCID of the console connection. /// public readonly string Id; + /// + /// Information about the current lifecycle state. + /// + public readonly string LifecycleDetails; public readonly string PublicKey; /// + /// The SSH public key's fingerprint for the console connection service host. + /// + public readonly string ServiceHostKeyFingerprint; + /// /// The current state of the console connection. /// public readonly string State; @@ -47,20 +63,32 @@ private GetDbNodeConsoleConnectionsConsoleConnectionResult( string dbNodeId, + ImmutableDictionary definedTags, + string fingerprint, + ImmutableDictionary freeformTags, + string id, + string lifecycleDetails, + string publicKey, + string serviceHostKeyFingerprint, + string state) { CompartmentId = compartmentId; ConnectionString = connectionString; DbNodeId = dbNodeId; + DefinedTags = definedTags; Fingerprint = fingerprint; + FreeformTags = freeformTags; Id = id; + LifecycleDetails = lifecycleDetails; PublicKey = publicKey; + ServiceHostKeyFingerprint = serviceHostKeyFingerprint; State = state; } } diff --git a/sdk/dotnet/Database/Outputs/GetDbNodesDbNodeResult.cs b/sdk/dotnet/Database/Outputs/GetDbNodesDbNodeResult.cs index 841b7c2c56..740deacdd3 100644 --- a/sdk/dotnet/Database/Outputs/GetDbNodesDbNodeResult.cs +++ b/sdk/dotnet/Database/Outputs/GetDbNodesDbNodeResult.cs @@ -47,11 +47,19 @@ public sealed class GetDbNodesDbNodeResult /// public readonly string DbSystemId; /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// + public readonly ImmutableDictionary DefinedTags; + /// /// The name of the Fault Domain the instance is contained in. /// public readonly string FaultDomain; /// - /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + /// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + /// + public readonly ImmutableDictionary FreeformTags; + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. /// public readonly string HostIpId; /// @@ -63,6 +71,10 @@ public sealed class GetDbNodesDbNodeResult /// public readonly string Id; /// + /// Information about the current lifecycle state. + /// + public readonly string LifecycleDetails; + /// /// The type of database node maintenance. /// public readonly string MaintenanceType; @@ -119,14 +131,20 @@ private GetDbNodesDbNodeResult( string dbSystemId, + ImmutableDictionary definedTags, + string faultDomain, + ImmutableDictionary freeformTags, + string hostIpId, string hostname, string id, + string lifecycleDetails, + string maintenanceType, int memorySizeInGbs, @@ -154,10 +172,13 @@ private GetDbNodesDbNodeResult( DbNodeStorageSizeInGbs = dbNodeStorageSizeInGbs; DbServerId = dbServerId; DbSystemId = dbSystemId; + DefinedTags = definedTags; FaultDomain = faultDomain; + FreeformTags = freeformTags; HostIpId = hostIpId; Hostname = hostname; Id = id; + LifecycleDetails = lifecycleDetails; MaintenanceType = maintenanceType; MemorySizeInGbs = memorySizeInGbs; SoftwareStorageSizeInGb = softwareStorageSizeInGb; diff --git a/sdk/go/oci/database/autonomousContainerDatabase.go b/sdk/go/oci/database/autonomousContainerDatabase.go index 53d9854c0a..b6eb936fa6 100644 --- a/sdk/go/oci/database/autonomousContainerDatabase.go +++ b/sdk/go/oci/database/autonomousContainerDatabase.go @@ -107,10 +107,9 @@ type AutonomousContainerDatabase struct { ProvisionedCpus pulumi.Float64Output `pulumi:"provisionedCpus"` // For Autonomous Databases on Dedicated Exadata Infrastructure: // * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - // * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + // * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. ReclaimableCpus pulumi.Float64Output `pulumi:"reclaimableCpus"` - // The number of CPUs reserved in an Autonomous Container Database. - ReservedCpus pulumi.Float64Output `pulumi:"reservedCpus"` + ReservedCpus pulumi.Float64Output `pulumi:"reservedCpus"` // The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. Role pulumi.StringOutput `pulumi:"role"` // (Updatable) An optional property when flipped triggers rotation of KMS key. It is only applicable on dedicated container databases i.e. where `cloudAutonomousVmClusterId` is set. @@ -128,7 +127,7 @@ type AutonomousContainerDatabase struct { TimeCreated pulumi.StringOutput `pulumi:"timeCreated"` // The date and time the Autonomous Container Database will be reverted to Standby from Snapshot Standby. TimeSnapshotStandbyRevert pulumi.StringOutput `pulumi:"timeSnapshotStandbyRevert"` - // The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + // The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. TotalCpus pulumi.IntOutput `pulumi:"totalCpus"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId pulumi.StringOutput `pulumi:"vaultId"` @@ -251,10 +250,9 @@ type autonomousContainerDatabaseState struct { ProvisionedCpus *float64 `pulumi:"provisionedCpus"` // For Autonomous Databases on Dedicated Exadata Infrastructure: // * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - // * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + // * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. ReclaimableCpus *float64 `pulumi:"reclaimableCpus"` - // The number of CPUs reserved in an Autonomous Container Database. - ReservedCpus *float64 `pulumi:"reservedCpus"` + ReservedCpus *float64 `pulumi:"reservedCpus"` // The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. Role *string `pulumi:"role"` // (Updatable) An optional property when flipped triggers rotation of KMS key. It is only applicable on dedicated container databases i.e. where `cloudAutonomousVmClusterId` is set. @@ -272,7 +270,7 @@ type autonomousContainerDatabaseState struct { TimeCreated *string `pulumi:"timeCreated"` // The date and time the Autonomous Container Database will be reverted to Standby from Snapshot Standby. TimeSnapshotStandbyRevert *string `pulumi:"timeSnapshotStandbyRevert"` - // The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + // The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. TotalCpus *int `pulumi:"totalCpus"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `pulumi:"vaultId"` @@ -360,10 +358,9 @@ type AutonomousContainerDatabaseState struct { ProvisionedCpus pulumi.Float64PtrInput // For Autonomous Databases on Dedicated Exadata Infrastructure: // * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - // * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + // * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. ReclaimableCpus pulumi.Float64PtrInput - // The number of CPUs reserved in an Autonomous Container Database. - ReservedCpus pulumi.Float64PtrInput + ReservedCpus pulumi.Float64PtrInput // The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. Role pulumi.StringPtrInput // (Updatable) An optional property when flipped triggers rotation of KMS key. It is only applicable on dedicated container databases i.e. where `cloudAutonomousVmClusterId` is set. @@ -381,7 +378,7 @@ type AutonomousContainerDatabaseState struct { TimeCreated pulumi.StringPtrInput // The date and time the Autonomous Container Database will be reverted to Standby from Snapshot Standby. TimeSnapshotStandbyRevert pulumi.StringPtrInput - // The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + // The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. TotalCpus pulumi.IntPtrInput // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId pulumi.StringPtrInput @@ -824,12 +821,11 @@ func (o AutonomousContainerDatabaseOutput) ProvisionedCpus() pulumi.Float64Outpu // For Autonomous Databases on Dedicated Exadata Infrastructure: // * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. -// * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. +// * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. func (o AutonomousContainerDatabaseOutput) ReclaimableCpus() pulumi.Float64Output { return o.ApplyT(func(v *AutonomousContainerDatabase) pulumi.Float64Output { return v.ReclaimableCpus }).(pulumi.Float64Output) } -// The number of CPUs reserved in an Autonomous Container Database. func (o AutonomousContainerDatabaseOutput) ReservedCpus() pulumi.Float64Output { return o.ApplyT(func(v *AutonomousContainerDatabase) pulumi.Float64Output { return v.ReservedCpus }).(pulumi.Float64Output) } @@ -872,7 +868,7 @@ func (o AutonomousContainerDatabaseOutput) TimeSnapshotStandbyRevert() pulumi.St return o.ApplyT(func(v *AutonomousContainerDatabase) pulumi.StringOutput { return v.TimeSnapshotStandbyRevert }).(pulumi.StringOutput) } -// The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. +// The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. func (o AutonomousContainerDatabaseOutput) TotalCpus() pulumi.IntOutput { return o.ApplyT(func(v *AutonomousContainerDatabase) pulumi.IntOutput { return v.TotalCpus }).(pulumi.IntOutput) } diff --git a/sdk/go/oci/database/dbNode.go b/sdk/go/oci/database/dbNode.go new file mode 100644 index 0000000000..f6f776e262 --- /dev/null +++ b/sdk/go/oci/database/dbNode.go @@ -0,0 +1,510 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package database + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-oci/sdk/go/oci/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// This resource provides the Db Node resource in Oracle Cloud Infrastructure Database service. +// +// Updates the specified database node. +// +// ## Import +// +// DbNodes can be imported using the `id`, e.g. +// +// ```sh +// +// $ pulumi import oci:Database/dbNode:DbNode test_db_node "id" +// +// ``` +type DbNode struct { + pulumi.CustomResourceState + + // Additional information about the planned maintenance. + AdditionalDetails pulumi.StringOutput `pulumi:"additionalDetails"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + BackupIpId pulumi.StringOutput `pulumi:"backupIpId"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + BackupVnic2id pulumi.StringOutput `pulumi:"backupVnic2id"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + BackupVnicId pulumi.StringOutput `pulumi:"backupVnicId"` + // The number of CPU cores enabled on the Db node. + CpuCoreCount pulumi.IntOutput `pulumi:"cpuCoreCount"` + // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + DbNodeId pulumi.StringOutput `pulumi:"dbNodeId"` + // The allocated local node storage in GBs on the Db node. + DbNodeStorageSizeInGbs pulumi.IntOutput `pulumi:"dbNodeStorageSizeInGbs"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + DbServerId pulumi.StringOutput `pulumi:"dbServerId"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + DbSystemId pulumi.StringOutput `pulumi:"dbSystemId"` + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapOutput `pulumi:"definedTags"` + // The name of the Fault Domain the instance is contained in. + FaultDomain pulumi.StringOutput `pulumi:"faultDomain"` + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + // + // ** IMPORTANT ** + // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + FreeformTags pulumi.MapOutput `pulumi:"freeformTags"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + HostIpId pulumi.StringOutput `pulumi:"hostIpId"` + // The host name for the database node. + Hostname pulumi.StringOutput `pulumi:"hostname"` + // Information about the current lifecycle state. + LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"` + // The type of database node maintenance. + MaintenanceType pulumi.StringOutput `pulumi:"maintenanceType"` + // The allocated memory in GBs on the Db node. + MemorySizeInGbs pulumi.IntOutput `pulumi:"memorySizeInGbs"` + // The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + SoftwareStorageSizeInGb pulumi.IntOutput `pulumi:"softwareStorageSizeInGb"` + // The current state of the database node. + State pulumi.StringOutput `pulumi:"state"` + // The date and time that the database node was created. + TimeCreated pulumi.StringOutput `pulumi:"timeCreated"` + // End date and time of maintenance window. + TimeMaintenanceWindowEnd pulumi.StringOutput `pulumi:"timeMaintenanceWindowEnd"` + // Start date and time of maintenance window. + TimeMaintenanceWindowStart pulumi.StringOutput `pulumi:"timeMaintenanceWindowStart"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + Vnic2id pulumi.StringOutput `pulumi:"vnic2id"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + VnicId pulumi.StringOutput `pulumi:"vnicId"` +} + +// NewDbNode registers a new resource with the given unique name, arguments, and options. +func NewDbNode(ctx *pulumi.Context, + name string, args *DbNodeArgs, opts ...pulumi.ResourceOption) (*DbNode, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.DbNodeId == nil { + return nil, errors.New("invalid value for required argument 'DbNodeId'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource DbNode + err := ctx.RegisterResource("oci:Database/dbNode:DbNode", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetDbNode gets an existing DbNode resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetDbNode(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *DbNodeState, opts ...pulumi.ResourceOption) (*DbNode, error) { + var resource DbNode + err := ctx.ReadResource("oci:Database/dbNode:DbNode", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering DbNode resources. +type dbNodeState struct { + // Additional information about the planned maintenance. + AdditionalDetails *string `pulumi:"additionalDetails"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + BackupIpId *string `pulumi:"backupIpId"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + BackupVnic2id *string `pulumi:"backupVnic2id"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + BackupVnicId *string `pulumi:"backupVnicId"` + // The number of CPU cores enabled on the Db node. + CpuCoreCount *int `pulumi:"cpuCoreCount"` + // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + DbNodeId *string `pulumi:"dbNodeId"` + // The allocated local node storage in GBs on the Db node. + DbNodeStorageSizeInGbs *int `pulumi:"dbNodeStorageSizeInGbs"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + DbServerId *string `pulumi:"dbServerId"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + DbSystemId *string `pulumi:"dbSystemId"` + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` + // The name of the Fault Domain the instance is contained in. + FaultDomain *string `pulumi:"faultDomain"` + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + // + // ** IMPORTANT ** + // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + FreeformTags map[string]interface{} `pulumi:"freeformTags"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + HostIpId *string `pulumi:"hostIpId"` + // The host name for the database node. + Hostname *string `pulumi:"hostname"` + // Information about the current lifecycle state. + LifecycleDetails *string `pulumi:"lifecycleDetails"` + // The type of database node maintenance. + MaintenanceType *string `pulumi:"maintenanceType"` + // The allocated memory in GBs on the Db node. + MemorySizeInGbs *int `pulumi:"memorySizeInGbs"` + // The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + SoftwareStorageSizeInGb *int `pulumi:"softwareStorageSizeInGb"` + // The current state of the database node. + State *string `pulumi:"state"` + // The date and time that the database node was created. + TimeCreated *string `pulumi:"timeCreated"` + // End date and time of maintenance window. + TimeMaintenanceWindowEnd *string `pulumi:"timeMaintenanceWindowEnd"` + // Start date and time of maintenance window. + TimeMaintenanceWindowStart *string `pulumi:"timeMaintenanceWindowStart"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + Vnic2id *string `pulumi:"vnic2id"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + VnicId *string `pulumi:"vnicId"` +} + +type DbNodeState struct { + // Additional information about the planned maintenance. + AdditionalDetails pulumi.StringPtrInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + BackupIpId pulumi.StringPtrInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + BackupVnic2id pulumi.StringPtrInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + BackupVnicId pulumi.StringPtrInput + // The number of CPU cores enabled on the Db node. + CpuCoreCount pulumi.IntPtrInput + // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + DbNodeId pulumi.StringPtrInput + // The allocated local node storage in GBs on the Db node. + DbNodeStorageSizeInGbs pulumi.IntPtrInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + DbServerId pulumi.StringPtrInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + DbSystemId pulumi.StringPtrInput + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapInput + // The name of the Fault Domain the instance is contained in. + FaultDomain pulumi.StringPtrInput + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + // + // ** IMPORTANT ** + // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + FreeformTags pulumi.MapInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + HostIpId pulumi.StringPtrInput + // The host name for the database node. + Hostname pulumi.StringPtrInput + // Information about the current lifecycle state. + LifecycleDetails pulumi.StringPtrInput + // The type of database node maintenance. + MaintenanceType pulumi.StringPtrInput + // The allocated memory in GBs on the Db node. + MemorySizeInGbs pulumi.IntPtrInput + // The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + SoftwareStorageSizeInGb pulumi.IntPtrInput + // The current state of the database node. + State pulumi.StringPtrInput + // The date and time that the database node was created. + TimeCreated pulumi.StringPtrInput + // End date and time of maintenance window. + TimeMaintenanceWindowEnd pulumi.StringPtrInput + // Start date and time of maintenance window. + TimeMaintenanceWindowStart pulumi.StringPtrInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + Vnic2id pulumi.StringPtrInput + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + VnicId pulumi.StringPtrInput +} + +func (DbNodeState) ElementType() reflect.Type { + return reflect.TypeOf((*dbNodeState)(nil)).Elem() +} + +type dbNodeArgs struct { + // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + DbNodeId string `pulumi:"dbNodeId"` + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + // + // ** IMPORTANT ** + // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + FreeformTags map[string]interface{} `pulumi:"freeformTags"` +} + +// The set of arguments for constructing a DbNode resource. +type DbNodeArgs struct { + // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + DbNodeId pulumi.StringInput + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapInput + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + // + // ** IMPORTANT ** + // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + FreeformTags pulumi.MapInput +} + +func (DbNodeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*dbNodeArgs)(nil)).Elem() +} + +type DbNodeInput interface { + pulumi.Input + + ToDbNodeOutput() DbNodeOutput + ToDbNodeOutputWithContext(ctx context.Context) DbNodeOutput +} + +func (*DbNode) ElementType() reflect.Type { + return reflect.TypeOf((**DbNode)(nil)).Elem() +} + +func (i *DbNode) ToDbNodeOutput() DbNodeOutput { + return i.ToDbNodeOutputWithContext(context.Background()) +} + +func (i *DbNode) ToDbNodeOutputWithContext(ctx context.Context) DbNodeOutput { + return pulumi.ToOutputWithContext(ctx, i).(DbNodeOutput) +} + +// DbNodeArrayInput is an input type that accepts DbNodeArray and DbNodeArrayOutput values. +// You can construct a concrete instance of `DbNodeArrayInput` via: +// +// DbNodeArray{ DbNodeArgs{...} } +type DbNodeArrayInput interface { + pulumi.Input + + ToDbNodeArrayOutput() DbNodeArrayOutput + ToDbNodeArrayOutputWithContext(context.Context) DbNodeArrayOutput +} + +type DbNodeArray []DbNodeInput + +func (DbNodeArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*DbNode)(nil)).Elem() +} + +func (i DbNodeArray) ToDbNodeArrayOutput() DbNodeArrayOutput { + return i.ToDbNodeArrayOutputWithContext(context.Background()) +} + +func (i DbNodeArray) ToDbNodeArrayOutputWithContext(ctx context.Context) DbNodeArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(DbNodeArrayOutput) +} + +// DbNodeMapInput is an input type that accepts DbNodeMap and DbNodeMapOutput values. +// You can construct a concrete instance of `DbNodeMapInput` via: +// +// DbNodeMap{ "key": DbNodeArgs{...} } +type DbNodeMapInput interface { + pulumi.Input + + ToDbNodeMapOutput() DbNodeMapOutput + ToDbNodeMapOutputWithContext(context.Context) DbNodeMapOutput +} + +type DbNodeMap map[string]DbNodeInput + +func (DbNodeMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*DbNode)(nil)).Elem() +} + +func (i DbNodeMap) ToDbNodeMapOutput() DbNodeMapOutput { + return i.ToDbNodeMapOutputWithContext(context.Background()) +} + +func (i DbNodeMap) ToDbNodeMapOutputWithContext(ctx context.Context) DbNodeMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(DbNodeMapOutput) +} + +type DbNodeOutput struct{ *pulumi.OutputState } + +func (DbNodeOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DbNode)(nil)).Elem() +} + +func (o DbNodeOutput) ToDbNodeOutput() DbNodeOutput { + return o +} + +func (o DbNodeOutput) ToDbNodeOutputWithContext(ctx context.Context) DbNodeOutput { + return o +} + +// Additional information about the planned maintenance. +func (o DbNodeOutput) AdditionalDetails() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.AdditionalDetails }).(pulumi.StringOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. +func (o DbNodeOutput) BackupIpId() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.BackupIpId }).(pulumi.StringOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. +func (o DbNodeOutput) BackupVnic2id() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.BackupVnic2id }).(pulumi.StringOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. +func (o DbNodeOutput) BackupVnicId() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.BackupVnicId }).(pulumi.StringOutput) +} + +// The number of CPU cores enabled on the Db node. +func (o DbNodeOutput) CpuCoreCount() pulumi.IntOutput { + return o.ApplyT(func(v *DbNode) pulumi.IntOutput { return v.CpuCoreCount }).(pulumi.IntOutput) +} + +// The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). +func (o DbNodeOutput) DbNodeId() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.DbNodeId }).(pulumi.StringOutput) +} + +// The allocated local node storage in GBs on the Db node. +func (o DbNodeOutput) DbNodeStorageSizeInGbs() pulumi.IntOutput { + return o.ApplyT(func(v *DbNode) pulumi.IntOutput { return v.DbNodeStorageSizeInGbs }).(pulumi.IntOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. +func (o DbNodeOutput) DbServerId() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.DbServerId }).(pulumi.StringOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. +func (o DbNodeOutput) DbSystemId() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.DbSystemId }).(pulumi.StringOutput) +} + +// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +func (o DbNodeOutput) DefinedTags() pulumi.MapOutput { + return o.ApplyT(func(v *DbNode) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput) +} + +// The name of the Fault Domain the instance is contained in. +func (o DbNodeOutput) FaultDomain() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.FaultDomain }).(pulumi.StringOutput) +} + +// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +// +// ** IMPORTANT ** +// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values +func (o DbNodeOutput) FreeformTags() pulumi.MapOutput { + return o.ApplyT(func(v *DbNode) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. +func (o DbNodeOutput) HostIpId() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.HostIpId }).(pulumi.StringOutput) +} + +// The host name for the database node. +func (o DbNodeOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.Hostname }).(pulumi.StringOutput) +} + +// Information about the current lifecycle state. +func (o DbNodeOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.LifecycleDetails }).(pulumi.StringOutput) +} + +// The type of database node maintenance. +func (o DbNodeOutput) MaintenanceType() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.MaintenanceType }).(pulumi.StringOutput) +} + +// The allocated memory in GBs on the Db node. +func (o DbNodeOutput) MemorySizeInGbs() pulumi.IntOutput { + return o.ApplyT(func(v *DbNode) pulumi.IntOutput { return v.MemorySizeInGbs }).(pulumi.IntOutput) +} + +// The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. +func (o DbNodeOutput) SoftwareStorageSizeInGb() pulumi.IntOutput { + return o.ApplyT(func(v *DbNode) pulumi.IntOutput { return v.SoftwareStorageSizeInGb }).(pulumi.IntOutput) +} + +// The current state of the database node. +func (o DbNodeOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) +} + +// The date and time that the database node was created. +func (o DbNodeOutput) TimeCreated() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput) +} + +// End date and time of maintenance window. +func (o DbNodeOutput) TimeMaintenanceWindowEnd() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.TimeMaintenanceWindowEnd }).(pulumi.StringOutput) +} + +// Start date and time of maintenance window. +func (o DbNodeOutput) TimeMaintenanceWindowStart() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.TimeMaintenanceWindowStart }).(pulumi.StringOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. +func (o DbNodeOutput) Vnic2id() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.Vnic2id }).(pulumi.StringOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. +func (o DbNodeOutput) VnicId() pulumi.StringOutput { + return o.ApplyT(func(v *DbNode) pulumi.StringOutput { return v.VnicId }).(pulumi.StringOutput) +} + +type DbNodeArrayOutput struct{ *pulumi.OutputState } + +func (DbNodeArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*DbNode)(nil)).Elem() +} + +func (o DbNodeArrayOutput) ToDbNodeArrayOutput() DbNodeArrayOutput { + return o +} + +func (o DbNodeArrayOutput) ToDbNodeArrayOutputWithContext(ctx context.Context) DbNodeArrayOutput { + return o +} + +func (o DbNodeArrayOutput) Index(i pulumi.IntInput) DbNodeOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DbNode { + return vs[0].([]*DbNode)[vs[1].(int)] + }).(DbNodeOutput) +} + +type DbNodeMapOutput struct{ *pulumi.OutputState } + +func (DbNodeMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*DbNode)(nil)).Elem() +} + +func (o DbNodeMapOutput) ToDbNodeMapOutput() DbNodeMapOutput { + return o +} + +func (o DbNodeMapOutput) ToDbNodeMapOutputWithContext(ctx context.Context) DbNodeMapOutput { + return o +} + +func (o DbNodeMapOutput) MapIndex(k pulumi.StringInput) DbNodeOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DbNode { + return vs[0].(map[string]*DbNode)[vs[1].(string)] + }).(DbNodeOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*DbNodeInput)(nil)).Elem(), &DbNode{}) + pulumi.RegisterInputType(reflect.TypeOf((*DbNodeArrayInput)(nil)).Elem(), DbNodeArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*DbNodeMapInput)(nil)).Elem(), DbNodeMap{}) + pulumi.RegisterOutputType(DbNodeOutput{}) + pulumi.RegisterOutputType(DbNodeArrayOutput{}) + pulumi.RegisterOutputType(DbNodeMapOutput{}) +} diff --git a/sdk/go/oci/database/dbNodeConsoleConnection.go b/sdk/go/oci/database/dbNodeConsoleConnection.go index 6252aa7f64..c228a498cb 100644 --- a/sdk/go/oci/database/dbNodeConsoleConnection.go +++ b/sdk/go/oci/database/dbNodeConsoleConnection.go @@ -33,8 +33,12 @@ import ( // func main() { // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := Database.NewDbNodeConsoleConnection(ctx, "testDbNodeConsoleConnection", &Database.DbNodeConsoleConnectionArgs{ -// DbNodeId: pulumi.Any(oci_database_db_node.Test_db_node.Id), -// PublicKey: pulumi.Any(_var.Db_node_console_connection_public_key), +// DbNodeId: pulumi.Any(oci_database_db_node.Test_db_node.Id), +// PublicKey: pulumi.Any(_var.Db_node_console_connection_public_key), +// DefinedTags: pulumi.Any(_var.Db_node_console_connection_defined_tags), +// FreeformTags: pulumi.AnyMap{ +// "Department": pulumi.Any("Finance"), +// }, // }) // if err != nil { // return err @@ -63,13 +67,21 @@ type DbNodeConsoleConnection struct { ConnectionString pulumi.StringOutput `pulumi:"connectionString"` // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId pulumi.StringOutput `pulumi:"dbNodeId"` + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapOutput `pulumi:"definedTags"` // The SSH public key fingerprint for the console connection. Fingerprint pulumi.StringOutput `pulumi:"fingerprint"` + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags pulumi.MapOutput `pulumi:"freeformTags"` + // Information about the current lifecycle state. + LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"` // The SSH public key used to authenticate the console connection. // // ** IMPORTANT ** // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values PublicKey pulumi.StringOutput `pulumi:"publicKey"` + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint pulumi.StringOutput `pulumi:"serviceHostKeyFingerprint"` // The current state of the console connection. State pulumi.StringOutput `pulumi:"state"` } @@ -116,13 +128,21 @@ type dbNodeConsoleConnectionState struct { ConnectionString *string `pulumi:"connectionString"` // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId *string `pulumi:"dbNodeId"` + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` // The SSH public key fingerprint for the console connection. Fingerprint *string `pulumi:"fingerprint"` + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags map[string]interface{} `pulumi:"freeformTags"` + // Information about the current lifecycle state. + LifecycleDetails *string `pulumi:"lifecycleDetails"` // The SSH public key used to authenticate the console connection. // // ** IMPORTANT ** // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values PublicKey *string `pulumi:"publicKey"` + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint *string `pulumi:"serviceHostKeyFingerprint"` // The current state of the console connection. State *string `pulumi:"state"` } @@ -134,13 +154,21 @@ type DbNodeConsoleConnectionState struct { ConnectionString pulumi.StringPtrInput // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId pulumi.StringPtrInput + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapInput // The SSH public key fingerprint for the console connection. Fingerprint pulumi.StringPtrInput + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags pulumi.MapInput + // Information about the current lifecycle state. + LifecycleDetails pulumi.StringPtrInput // The SSH public key used to authenticate the console connection. // // ** IMPORTANT ** // Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values PublicKey pulumi.StringPtrInput + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint pulumi.StringPtrInput // The current state of the console connection. State pulumi.StringPtrInput } @@ -152,6 +180,10 @@ func (DbNodeConsoleConnectionState) ElementType() reflect.Type { type dbNodeConsoleConnectionArgs struct { // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId string `pulumi:"dbNodeId"` + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags map[string]interface{} `pulumi:"freeformTags"` // The SSH public key used to authenticate the console connection. // // ** IMPORTANT ** @@ -163,6 +195,10 @@ type dbNodeConsoleConnectionArgs struct { type DbNodeConsoleConnectionArgs struct { // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId pulumi.StringInput + // (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapInput + // (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags pulumi.MapInput // The SSH public key used to authenticate the console connection. // // ** IMPORTANT ** @@ -272,11 +308,26 @@ func (o DbNodeConsoleConnectionOutput) DbNodeId() pulumi.StringOutput { return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.StringOutput { return v.DbNodeId }).(pulumi.StringOutput) } +// (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +func (o DbNodeConsoleConnectionOutput) DefinedTags() pulumi.MapOutput { + return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.MapOutput { return v.DefinedTags }).(pulumi.MapOutput) +} + // The SSH public key fingerprint for the console connection. func (o DbNodeConsoleConnectionOutput) Fingerprint() pulumi.StringOutput { return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.StringOutput { return v.Fingerprint }).(pulumi.StringOutput) } +// (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +func (o DbNodeConsoleConnectionOutput) FreeformTags() pulumi.MapOutput { + return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.MapOutput { return v.FreeformTags }).(pulumi.MapOutput) +} + +// Information about the current lifecycle state. +func (o DbNodeConsoleConnectionOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.StringOutput { return v.LifecycleDetails }).(pulumi.StringOutput) +} + // The SSH public key used to authenticate the console connection. // // ** IMPORTANT ** @@ -285,6 +336,11 @@ func (o DbNodeConsoleConnectionOutput) PublicKey() pulumi.StringOutput { return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.StringOutput { return v.PublicKey }).(pulumi.StringOutput) } +// The SSH public key's fingerprint for the console connection service host. +func (o DbNodeConsoleConnectionOutput) ServiceHostKeyFingerprint() pulumi.StringOutput { + return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.StringOutput { return v.ServiceHostKeyFingerprint }).(pulumi.StringOutput) +} + // The current state of the console connection. func (o DbNodeConsoleConnectionOutput) State() pulumi.StringOutput { return o.ApplyT(func(v *DbNodeConsoleConnection) pulumi.StringOutput { return v.State }).(pulumi.StringOutput) diff --git a/sdk/go/oci/database/getAutonomousContainerDatabase.go b/sdk/go/oci/database/getAutonomousContainerDatabase.go index 6676e49955..5406f9d629 100644 --- a/sdk/go/oci/database/getAutonomousContainerDatabase.go +++ b/sdk/go/oci/database/getAutonomousContainerDatabase.go @@ -64,9 +64,9 @@ type LookupAutonomousContainerDatabaseResult struct { // The OCID of the Autonomous VM Cluster. AutonomousVmClusterId string `pulumi:"autonomousVmClusterId"` // The availability domain of the Autonomous Container Database. - AvailabilityDomain string `pulumi:"availabilityDomain"` - // Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - AvailableCpus float64 `pulumi:"availableCpus"` + // <<<<<<< HEAD + AvailabilityDomain string `pulumi:"availabilityDomain"` + AvailableCpus float64 `pulumi:"availableCpus"` // Backup options for the Autonomous Container Database. BackupConfigs []GetAutonomousContainerDatabaseBackupConfig `pulumi:"backupConfigs"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud Autonomous Exadata VM Cluster. @@ -209,11 +209,11 @@ func (o LookupAutonomousContainerDatabaseResultOutput) AutonomousVmClusterId() p } // The availability domain of the Autonomous Container Database. +// <<<<<<< HEAD func (o LookupAutonomousContainerDatabaseResultOutput) AvailabilityDomain() pulumi.StringOutput { return o.ApplyT(func(v LookupAutonomousContainerDatabaseResult) string { return v.AvailabilityDomain }).(pulumi.StringOutput) } -// Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. func (o LookupAutonomousContainerDatabaseResultOutput) AvailableCpus() pulumi.Float64Output { return o.ApplyT(func(v LookupAutonomousContainerDatabaseResult) float64 { return v.AvailableCpus }).(pulumi.Float64Output) } diff --git a/sdk/go/oci/database/getAutonomousContainerDatabases.go b/sdk/go/oci/database/getAutonomousContainerDatabases.go index 5c2ea00f5d..732d0d10b4 100644 --- a/sdk/go/oci/database/getAutonomousContainerDatabases.go +++ b/sdk/go/oci/database/getAutonomousContainerDatabases.go @@ -90,6 +90,7 @@ type GetAutonomousContainerDatabasesResult struct { // The OCID of the Autonomous VM Cluster. AutonomousVmClusterId *string `pulumi:"autonomousVmClusterId"` // The availability domain of the Autonomous Container Database. + // <<<<<<< HEAD AvailabilityDomain *string `pulumi:"availabilityDomain"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud Autonomous Exadata VM Cluster. CloudAutonomousVmClusterId *string `pulumi:"cloudAutonomousVmClusterId"` @@ -181,6 +182,7 @@ func (o GetAutonomousContainerDatabasesResultOutput) AutonomousVmClusterId() pul } // The availability domain of the Autonomous Container Database. +// <<<<<<< HEAD func (o GetAutonomousContainerDatabasesResultOutput) AvailabilityDomain() pulumi.StringPtrOutput { return o.ApplyT(func(v GetAutonomousContainerDatabasesResult) *string { return v.AvailabilityDomain }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/oci/database/getAutonomousDatabase.go b/sdk/go/oci/database/getAutonomousDatabase.go index c353e5ba8a..96170aef57 100644 --- a/sdk/go/oci/database/getAutonomousDatabase.go +++ b/sdk/go/oci/database/getAutonomousDatabase.go @@ -188,7 +188,7 @@ type LookupAutonomousDatabaseResult struct { LongTermBackupSchedules []GetAutonomousDatabaseLongTermBackupSchedule `pulumi:"longTermBackupSchedules"` // The number of Max OCPU cores to be made available to the autonomous database with auto scaling of cpu enabled. MaxCpuCoreCount int `pulumi:"maxCpuCoreCount"` - // The amount of memory (in GBs) enabled per OCPU or ECPU. + // The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster. MemoryPerOracleComputeUnitInGbs int `pulumi:"memoryPerOracleComputeUnitInGbs"` // The national character set for the autonomous database. The default is AL16UTF16. Allowed values are: AL16UTF16 or UTF8. NcharacterSet string `pulumi:"ncharacterSet"` @@ -664,7 +664,7 @@ func (o LookupAutonomousDatabaseResultOutput) MaxCpuCoreCount() pulumi.IntOutput return o.ApplyT(func(v LookupAutonomousDatabaseResult) int { return v.MaxCpuCoreCount }).(pulumi.IntOutput) } -// The amount of memory (in GBs) enabled per OCPU or ECPU. +// The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster. func (o LookupAutonomousDatabaseResultOutput) MemoryPerOracleComputeUnitInGbs() pulumi.IntOutput { return o.ApplyT(func(v LookupAutonomousDatabaseResult) int { return v.MemoryPerOracleComputeUnitInGbs }).(pulumi.IntOutput) } diff --git a/sdk/go/oci/database/getDbNode.go b/sdk/go/oci/database/getDbNode.go index 052c724a6a..4b298070e3 100644 --- a/sdk/go/oci/database/getDbNode.go +++ b/sdk/go/oci/database/getDbNode.go @@ -40,9 +40,9 @@ import ( // } // // ``` -func GetDbNode(ctx *pulumi.Context, args *GetDbNodeArgs, opts ...pulumi.InvokeOption) (*GetDbNodeResult, error) { +func LookupDbNode(ctx *pulumi.Context, args *LookupDbNodeArgs, opts ...pulumi.InvokeOption) (*LookupDbNodeResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetDbNodeResult + var rv LookupDbNodeResult err := ctx.Invoke("oci:Database/getDbNode:getDbNode", args, &rv, opts...) if err != nil { return nil, err @@ -51,13 +51,13 @@ func GetDbNode(ctx *pulumi.Context, args *GetDbNodeArgs, opts ...pulumi.InvokeOp } // A collection of arguments for invoking getDbNode. -type GetDbNodeArgs struct { +type LookupDbNodeArgs struct { // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId string `pulumi:"dbNodeId"` } // A collection of values returned by getDbNode. -type GetDbNodeResult struct { +type LookupDbNodeResult struct { // Additional information about the planned maintenance. AdditionalDetails string `pulumi:"additionalDetails"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. @@ -75,14 +75,20 @@ type GetDbNodeResult struct { DbServerId string `pulumi:"dbServerId"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. DbSystemId string `pulumi:"dbSystemId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` // The name of the Fault Domain the instance is contained in. FaultDomain string `pulumi:"faultDomain"` - // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + // 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags map[string]interface{} `pulumi:"freeformTags"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. HostIpId string `pulumi:"hostIpId"` // The host name for the database node. Hostname string `pulumi:"hostname"` - // The provider-assigned unique ID for this managed resource. + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. Id string `pulumi:"id"` + // Information about the current lifecycle state. + LifecycleDetails string `pulumi:"lifecycleDetails"` // The type of database node maintenance. MaintenanceType string `pulumi:"maintenanceType"` // The allocated memory in GBs on the Db node. @@ -103,153 +109,168 @@ type GetDbNodeResult struct { VnicId string `pulumi:"vnicId"` } -func GetDbNodeOutput(ctx *pulumi.Context, args GetDbNodeOutputArgs, opts ...pulumi.InvokeOption) GetDbNodeResultOutput { +func LookupDbNodeOutput(ctx *pulumi.Context, args LookupDbNodeOutputArgs, opts ...pulumi.InvokeOption) LookupDbNodeResultOutput { return pulumi.ToOutputWithContext(context.Background(), args). - ApplyT(func(v interface{}) (GetDbNodeResult, error) { - args := v.(GetDbNodeArgs) - r, err := GetDbNode(ctx, &args, opts...) - var s GetDbNodeResult + ApplyT(func(v interface{}) (LookupDbNodeResult, error) { + args := v.(LookupDbNodeArgs) + r, err := LookupDbNode(ctx, &args, opts...) + var s LookupDbNodeResult if r != nil { s = *r } return s, err - }).(GetDbNodeResultOutput) + }).(LookupDbNodeResultOutput) } // A collection of arguments for invoking getDbNode. -type GetDbNodeOutputArgs struct { +type LookupDbNodeOutputArgs struct { // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId pulumi.StringInput `pulumi:"dbNodeId"` } -func (GetDbNodeOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetDbNodeArgs)(nil)).Elem() +func (LookupDbNodeOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupDbNodeArgs)(nil)).Elem() } // A collection of values returned by getDbNode. -type GetDbNodeResultOutput struct{ *pulumi.OutputState } +type LookupDbNodeResultOutput struct{ *pulumi.OutputState } -func (GetDbNodeResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetDbNodeResult)(nil)).Elem() +func (LookupDbNodeResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupDbNodeResult)(nil)).Elem() } -func (o GetDbNodeResultOutput) ToGetDbNodeResultOutput() GetDbNodeResultOutput { +func (o LookupDbNodeResultOutput) ToLookupDbNodeResultOutput() LookupDbNodeResultOutput { return o } -func (o GetDbNodeResultOutput) ToGetDbNodeResultOutputWithContext(ctx context.Context) GetDbNodeResultOutput { +func (o LookupDbNodeResultOutput) ToLookupDbNodeResultOutputWithContext(ctx context.Context) LookupDbNodeResultOutput { return o } // Additional information about the planned maintenance. -func (o GetDbNodeResultOutput) AdditionalDetails() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.AdditionalDetails }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) AdditionalDetails() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.AdditionalDetails }).(pulumi.StringOutput) } // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. -func (o GetDbNodeResultOutput) BackupIpId() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.BackupIpId }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) BackupIpId() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.BackupIpId }).(pulumi.StringOutput) } // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. -func (o GetDbNodeResultOutput) BackupVnic2id() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.BackupVnic2id }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) BackupVnic2id() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.BackupVnic2id }).(pulumi.StringOutput) } // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. -func (o GetDbNodeResultOutput) BackupVnicId() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.BackupVnicId }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) BackupVnicId() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.BackupVnicId }).(pulumi.StringOutput) } // The number of CPU cores enabled on the Db node. -func (o GetDbNodeResultOutput) CpuCoreCount() pulumi.IntOutput { - return o.ApplyT(func(v GetDbNodeResult) int { return v.CpuCoreCount }).(pulumi.IntOutput) +func (o LookupDbNodeResultOutput) CpuCoreCount() pulumi.IntOutput { + return o.ApplyT(func(v LookupDbNodeResult) int { return v.CpuCoreCount }).(pulumi.IntOutput) } -func (o GetDbNodeResultOutput) DbNodeId() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.DbNodeId }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) DbNodeId() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.DbNodeId }).(pulumi.StringOutput) } // The allocated local node storage in GBs on the Db node. -func (o GetDbNodeResultOutput) DbNodeStorageSizeInGbs() pulumi.IntOutput { - return o.ApplyT(func(v GetDbNodeResult) int { return v.DbNodeStorageSizeInGbs }).(pulumi.IntOutput) +func (o LookupDbNodeResultOutput) DbNodeStorageSizeInGbs() pulumi.IntOutput { + return o.ApplyT(func(v LookupDbNodeResult) int { return v.DbNodeStorageSizeInGbs }).(pulumi.IntOutput) } // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. -func (o GetDbNodeResultOutput) DbServerId() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.DbServerId }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) DbServerId() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.DbServerId }).(pulumi.StringOutput) } // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. -func (o GetDbNodeResultOutput) DbSystemId() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.DbSystemId }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) DbSystemId() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.DbSystemId }).(pulumi.StringOutput) +} + +// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +func (o LookupDbNodeResultOutput) DefinedTags() pulumi.MapOutput { + return o.ApplyT(func(v LookupDbNodeResult) map[string]interface{} { return v.DefinedTags }).(pulumi.MapOutput) } // The name of the Fault Domain the instance is contained in. -func (o GetDbNodeResultOutput) FaultDomain() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.FaultDomain }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) FaultDomain() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.FaultDomain }).(pulumi.StringOutput) +} + +// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +func (o LookupDbNodeResultOutput) FreeformTags() pulumi.MapOutput { + return o.ApplyT(func(v LookupDbNodeResult) map[string]interface{} { return v.FreeformTags }).(pulumi.MapOutput) } -// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. -func (o GetDbNodeResultOutput) HostIpId() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.HostIpId }).(pulumi.StringOutput) +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. +func (o LookupDbNodeResultOutput) HostIpId() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.HostIpId }).(pulumi.StringOutput) } // The host name for the database node. -func (o GetDbNodeResultOutput) Hostname() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.Hostname }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) Hostname() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.Hostname }).(pulumi.StringOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. +func (o LookupDbNodeResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.Id }).(pulumi.StringOutput) } -// The provider-assigned unique ID for this managed resource. -func (o GetDbNodeResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.Id }).(pulumi.StringOutput) +// Information about the current lifecycle state. +func (o LookupDbNodeResultOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.LifecycleDetails }).(pulumi.StringOutput) } // The type of database node maintenance. -func (o GetDbNodeResultOutput) MaintenanceType() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.MaintenanceType }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) MaintenanceType() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.MaintenanceType }).(pulumi.StringOutput) } // The allocated memory in GBs on the Db node. -func (o GetDbNodeResultOutput) MemorySizeInGbs() pulumi.IntOutput { - return o.ApplyT(func(v GetDbNodeResult) int { return v.MemorySizeInGbs }).(pulumi.IntOutput) +func (o LookupDbNodeResultOutput) MemorySizeInGbs() pulumi.IntOutput { + return o.ApplyT(func(v LookupDbNodeResult) int { return v.MemorySizeInGbs }).(pulumi.IntOutput) } // The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. -func (o GetDbNodeResultOutput) SoftwareStorageSizeInGb() pulumi.IntOutput { - return o.ApplyT(func(v GetDbNodeResult) int { return v.SoftwareStorageSizeInGb }).(pulumi.IntOutput) +func (o LookupDbNodeResultOutput) SoftwareStorageSizeInGb() pulumi.IntOutput { + return o.ApplyT(func(v LookupDbNodeResult) int { return v.SoftwareStorageSizeInGb }).(pulumi.IntOutput) } // The current state of the database node. -func (o GetDbNodeResultOutput) State() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.State }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) State() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.State }).(pulumi.StringOutput) } // The date and time that the database node was created. -func (o GetDbNodeResultOutput) TimeCreated() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.TimeCreated }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) TimeCreated() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.TimeCreated }).(pulumi.StringOutput) } // End date and time of maintenance window. -func (o GetDbNodeResultOutput) TimeMaintenanceWindowEnd() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.TimeMaintenanceWindowEnd }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) TimeMaintenanceWindowEnd() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.TimeMaintenanceWindowEnd }).(pulumi.StringOutput) } // Start date and time of maintenance window. -func (o GetDbNodeResultOutput) TimeMaintenanceWindowStart() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.TimeMaintenanceWindowStart }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) TimeMaintenanceWindowStart() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.TimeMaintenanceWindowStart }).(pulumi.StringOutput) } // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. -func (o GetDbNodeResultOutput) Vnic2id() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.Vnic2id }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) Vnic2id() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.Vnic2id }).(pulumi.StringOutput) } // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. -func (o GetDbNodeResultOutput) VnicId() pulumi.StringOutput { - return o.ApplyT(func(v GetDbNodeResult) string { return v.VnicId }).(pulumi.StringOutput) +func (o LookupDbNodeResultOutput) VnicId() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeResult) string { return v.VnicId }).(pulumi.StringOutput) } func init() { - pulumi.RegisterOutputType(GetDbNodeResultOutput{}) + pulumi.RegisterOutputType(LookupDbNodeResultOutput{}) } diff --git a/sdk/go/oci/database/getDbNodeConsoleConnection.go b/sdk/go/oci/database/getDbNodeConsoleConnection.go index bdec1f9dbb..1056af69cc 100644 --- a/sdk/go/oci/database/getDbNodeConsoleConnection.go +++ b/sdk/go/oci/database/getDbNodeConsoleConnection.go @@ -67,11 +67,19 @@ type LookupDbNodeConsoleConnectionResult struct { ConnectionString string `pulumi:"connectionString"` // The OCID of the database node. DbNodeId string `pulumi:"dbNodeId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` // The SSH public key fingerprint for the console connection. Fingerprint string `pulumi:"fingerprint"` + // 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags map[string]interface{} `pulumi:"freeformTags"` // The OCID of the console connection. - Id string `pulumi:"id"` - PublicKey string `pulumi:"publicKey"` + Id string `pulumi:"id"` + // Information about the current lifecycle state. + LifecycleDetails string `pulumi:"lifecycleDetails"` + PublicKey string `pulumi:"publicKey"` + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint string `pulumi:"serviceHostKeyFingerprint"` // The current state of the console connection. State string `pulumi:"state"` } @@ -131,20 +139,40 @@ func (o LookupDbNodeConsoleConnectionResultOutput) DbNodeId() pulumi.StringOutpu return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) string { return v.DbNodeId }).(pulumi.StringOutput) } +// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +func (o LookupDbNodeConsoleConnectionResultOutput) DefinedTags() pulumi.MapOutput { + return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) map[string]interface{} { return v.DefinedTags }).(pulumi.MapOutput) +} + // The SSH public key fingerprint for the console connection. func (o LookupDbNodeConsoleConnectionResultOutput) Fingerprint() pulumi.StringOutput { return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) string { return v.Fingerprint }).(pulumi.StringOutput) } +// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +func (o LookupDbNodeConsoleConnectionResultOutput) FreeformTags() pulumi.MapOutput { + return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) map[string]interface{} { return v.FreeformTags }).(pulumi.MapOutput) +} + // The OCID of the console connection. func (o LookupDbNodeConsoleConnectionResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) string { return v.Id }).(pulumi.StringOutput) } +// Information about the current lifecycle state. +func (o LookupDbNodeConsoleConnectionResultOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) string { return v.LifecycleDetails }).(pulumi.StringOutput) +} + func (o LookupDbNodeConsoleConnectionResultOutput) PublicKey() pulumi.StringOutput { return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) string { return v.PublicKey }).(pulumi.StringOutput) } +// The SSH public key's fingerprint for the console connection service host. +func (o LookupDbNodeConsoleConnectionResultOutput) ServiceHostKeyFingerprint() pulumi.StringOutput { + return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) string { return v.ServiceHostKeyFingerprint }).(pulumi.StringOutput) +} + // The current state of the console connection. func (o LookupDbNodeConsoleConnectionResultOutput) State() pulumi.StringOutput { return o.ApplyT(func(v LookupDbNodeConsoleConnectionResult) string { return v.State }).(pulumi.StringOutput) diff --git a/sdk/go/oci/database/init.go b/sdk/go/oci/database/init.go index 29939bca3b..2e26ef5462 100644 --- a/sdk/go/oci/database/init.go +++ b/sdk/go/oci/database/init.go @@ -75,6 +75,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &DatabaseUpgrade{} case "oci:Database/dbHome:DbHome": r = &DbHome{} + case "oci:Database/dbNode:DbNode": + r = &DbNode{} case "oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection": r = &DbNodeConsoleConnection{} case "oci:Database/dbSystem:DbSystem": @@ -283,6 +285,11 @@ func init() { "Database/dbHome", &module{version}, ) + pulumi.RegisterResourceModule( + "oci", + "Database/dbNode", + &module{version}, + ) pulumi.RegisterResourceModule( "oci", "Database/dbNodeConsoleConnection", diff --git a/sdk/go/oci/database/pulumiTypes.go b/sdk/go/oci/database/pulumiTypes.go index 4977c1bd94..ecc58fd7fa 100644 --- a/sdk/go/oci/database/pulumiTypes.go +++ b/sdk/go/oci/database/pulumiTypes.go @@ -23261,9 +23261,8 @@ type GetAutonomousContainerDatabasesAutonomousContainerDatabase struct { // The Autonomous VM Cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). AutonomousVmClusterId string `pulumi:"autonomousVmClusterId"` // A filter to return only resources that match the given availability domain exactly. - AvailabilityDomain string `pulumi:"availabilityDomain"` - // Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - AvailableCpus float64 `pulumi:"availableCpus"` + AvailabilityDomain string `pulumi:"availabilityDomain"` + AvailableCpus float64 `pulumi:"availableCpus"` // Backup options for the Autonomous Container Database. BackupConfigs []GetAutonomousContainerDatabasesAutonomousContainerDatabaseBackupConfig `pulumi:"backupConfigs"` // The cloud Autonomous VM Cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -23370,9 +23369,8 @@ type GetAutonomousContainerDatabasesAutonomousContainerDatabaseArgs struct { // The Autonomous VM Cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). AutonomousVmClusterId pulumi.StringInput `pulumi:"autonomousVmClusterId"` // A filter to return only resources that match the given availability domain exactly. - AvailabilityDomain pulumi.StringInput `pulumi:"availabilityDomain"` - // Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - AvailableCpus pulumi.Float64Input `pulumi:"availableCpus"` + AvailabilityDomain pulumi.StringInput `pulumi:"availabilityDomain"` + AvailableCpus pulumi.Float64Input `pulumi:"availableCpus"` // Backup options for the Autonomous Container Database. BackupConfigs GetAutonomousContainerDatabasesAutonomousContainerDatabaseBackupConfigArrayInput `pulumi:"backupConfigs"` // The cloud Autonomous VM Cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -23532,7 +23530,6 @@ func (o GetAutonomousContainerDatabasesAutonomousContainerDatabaseOutput) Availa return o.ApplyT(func(v GetAutonomousContainerDatabasesAutonomousContainerDatabase) string { return v.AvailabilityDomain }).(pulumi.StringOutput) } -// Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. func (o GetAutonomousContainerDatabasesAutonomousContainerDatabaseOutput) AvailableCpus() pulumi.Float64Output { return o.ApplyT(func(v GetAutonomousContainerDatabasesAutonomousContainerDatabase) float64 { return v.AvailableCpus }).(pulumi.Float64Output) } @@ -54868,11 +54865,19 @@ type GetDbNodeConsoleConnectionsConsoleConnection struct { ConnectionString string `pulumi:"connectionString"` // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId string `pulumi:"dbNodeId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` // The SSH public key fingerprint for the console connection. Fingerprint string `pulumi:"fingerprint"` + // 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags map[string]interface{} `pulumi:"freeformTags"` // The OCID of the console connection. - Id string `pulumi:"id"` - PublicKey string `pulumi:"publicKey"` + Id string `pulumi:"id"` + // Information about the current lifecycle state. + LifecycleDetails string `pulumi:"lifecycleDetails"` + PublicKey string `pulumi:"publicKey"` + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint string `pulumi:"serviceHostKeyFingerprint"` // The current state of the console connection. State string `pulumi:"state"` } @@ -54895,11 +54900,19 @@ type GetDbNodeConsoleConnectionsConsoleConnectionArgs struct { ConnectionString pulumi.StringInput `pulumi:"connectionString"` // The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). DbNodeId pulumi.StringInput `pulumi:"dbNodeId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapInput `pulumi:"definedTags"` // The SSH public key fingerprint for the console connection. Fingerprint pulumi.StringInput `pulumi:"fingerprint"` + // 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags pulumi.MapInput `pulumi:"freeformTags"` // The OCID of the console connection. - Id pulumi.StringInput `pulumi:"id"` - PublicKey pulumi.StringInput `pulumi:"publicKey"` + Id pulumi.StringInput `pulumi:"id"` + // Information about the current lifecycle state. + LifecycleDetails pulumi.StringInput `pulumi:"lifecycleDetails"` + PublicKey pulumi.StringInput `pulumi:"publicKey"` + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint pulumi.StringInput `pulumi:"serviceHostKeyFingerprint"` // The current state of the console connection. State pulumi.StringInput `pulumi:"state"` } @@ -54970,20 +54983,40 @@ func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) DbNodeId() pulumi.St return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) string { return v.DbNodeId }).(pulumi.StringOutput) } +// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) DefinedTags() pulumi.MapOutput { + return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) map[string]interface{} { return v.DefinedTags }).(pulumi.MapOutput) +} + // The SSH public key fingerprint for the console connection. func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) Fingerprint() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) string { return v.Fingerprint }).(pulumi.StringOutput) } +// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) FreeformTags() pulumi.MapOutput { + return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) map[string]interface{} { return v.FreeformTags }).(pulumi.MapOutput) +} + // The OCID of the console connection. func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) string { return v.Id }).(pulumi.StringOutput) } +// Information about the current lifecycle state. +func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) string { return v.LifecycleDetails }).(pulumi.StringOutput) +} + func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) PublicKey() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) string { return v.PublicKey }).(pulumi.StringOutput) } +// The SSH public key's fingerprint for the console connection service host. +func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) ServiceHostKeyFingerprint() pulumi.StringOutput { + return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) string { return v.ServiceHostKeyFingerprint }).(pulumi.StringOutput) +} + // The current state of the console connection. func (o GetDbNodeConsoleConnectionsConsoleConnectionOutput) State() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodeConsoleConnectionsConsoleConnection) string { return v.State }).(pulumi.StringOutput) @@ -55133,14 +55166,20 @@ type GetDbNodesDbNode struct { DbServerId string `pulumi:"dbServerId"` // The DB system [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. DbSystemId string `pulumi:"dbSystemId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags map[string]interface{} `pulumi:"definedTags"` // The name of the Fault Domain the instance is contained in. FaultDomain string `pulumi:"faultDomain"` - // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + // 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags map[string]interface{} `pulumi:"freeformTags"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. HostIpId string `pulumi:"hostIpId"` // The host name for the database node. Hostname string `pulumi:"hostname"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. Id string `pulumi:"id"` + // Information about the current lifecycle state. + LifecycleDetails string `pulumi:"lifecycleDetails"` // The type of database node maintenance. MaintenanceType string `pulumi:"maintenanceType"` // The allocated memory in GBs on the Db node. @@ -55190,14 +55229,20 @@ type GetDbNodesDbNodeArgs struct { DbServerId pulumi.StringInput `pulumi:"dbServerId"` // The DB system [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. DbSystemId pulumi.StringInput `pulumi:"dbSystemId"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + DefinedTags pulumi.MapInput `pulumi:"definedTags"` // The name of the Fault Domain the instance is contained in. FaultDomain pulumi.StringInput `pulumi:"faultDomain"` - // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + // 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + FreeformTags pulumi.MapInput `pulumi:"freeformTags"` + // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. HostIpId pulumi.StringInput `pulumi:"hostIpId"` // The host name for the database node. Hostname pulumi.StringInput `pulumi:"hostname"` // The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. Id pulumi.StringInput `pulumi:"id"` + // Information about the current lifecycle state. + LifecycleDetails pulumi.StringInput `pulumi:"lifecycleDetails"` // The type of database node maintenance. MaintenanceType pulumi.StringInput `pulumi:"maintenanceType"` // The allocated memory in GBs on the Db node. @@ -55313,12 +55358,22 @@ func (o GetDbNodesDbNodeOutput) DbSystemId() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodesDbNode) string { return v.DbSystemId }).(pulumi.StringOutput) } +// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). +func (o GetDbNodesDbNodeOutput) DefinedTags() pulumi.MapOutput { + return o.ApplyT(func(v GetDbNodesDbNode) map[string]interface{} { return v.DefinedTags }).(pulumi.MapOutput) +} + // The name of the Fault Domain the instance is contained in. func (o GetDbNodesDbNodeOutput) FaultDomain() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodesDbNode) string { return v.FaultDomain }).(pulumi.StringOutput) } -// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. +// 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` +func (o GetDbNodesDbNodeOutput) FreeformTags() pulumi.MapOutput { + return o.ApplyT(func(v GetDbNodesDbNode) map[string]interface{} { return v.FreeformTags }).(pulumi.MapOutput) +} + +// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. func (o GetDbNodesDbNodeOutput) HostIpId() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodesDbNode) string { return v.HostIpId }).(pulumi.StringOutput) } @@ -55333,6 +55388,11 @@ func (o GetDbNodesDbNodeOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodesDbNode) string { return v.Id }).(pulumi.StringOutput) } +// Information about the current lifecycle state. +func (o GetDbNodesDbNodeOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v GetDbNodesDbNode) string { return v.LifecycleDetails }).(pulumi.StringOutput) +} + // The type of database node maintenance. func (o GetDbNodesDbNodeOutput) MaintenanceType() pulumi.StringOutput { return o.ApplyT(func(v GetDbNodesDbNode) string { return v.MaintenanceType }).(pulumi.StringOutput) diff --git a/sdk/go/oci/datacatalog/dataAsset.go b/sdk/go/oci/datacatalog/dataAsset.go index b164dc63ad..8d6418ac23 100644 --- a/sdk/go/oci/datacatalog/dataAsset.go +++ b/sdk/go/oci/datacatalog/dataAsset.go @@ -70,6 +70,8 @@ type DataAsset struct { ExternalKey pulumi.StringOutput `pulumi:"externalKey"` // Unique data asset key that is immutable. Key pulumi.StringOutput `pulumi:"key"` + // A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + LifecycleDetails pulumi.StringOutput `pulumi:"lifecycleDetails"` // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` Properties pulumi.MapOutput `pulumi:"properties"` // The current state of the data asset. @@ -142,6 +144,8 @@ type dataAssetState struct { ExternalKey *string `pulumi:"externalKey"` // Unique data asset key that is immutable. Key *string `pulumi:"key"` + // A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + LifecycleDetails *string `pulumi:"lifecycleDetails"` // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` Properties map[string]interface{} `pulumi:"properties"` // The current state of the data asset. @@ -176,6 +180,8 @@ type DataAssetState struct { ExternalKey pulumi.StringPtrInput // Unique data asset key that is immutable. Key pulumi.StringPtrInput + // A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + LifecycleDetails pulumi.StringPtrInput // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` Properties pulumi.MapInput // The current state of the data asset. @@ -351,6 +357,11 @@ func (o DataAssetOutput) Key() pulumi.StringOutput { return o.ApplyT(func(v *DataAsset) pulumi.StringOutput { return v.Key }).(pulumi.StringOutput) } +// A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. +func (o DataAssetOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v *DataAsset) pulumi.StringOutput { return v.LifecycleDetails }).(pulumi.StringOutput) +} + // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` func (o DataAssetOutput) Properties() pulumi.MapOutput { return o.ApplyT(func(v *DataAsset) pulumi.MapOutput { return v.Properties }).(pulumi.MapOutput) diff --git a/sdk/go/oci/datacatalog/getDataAsset.go b/sdk/go/oci/datacatalog/getDataAsset.go index 7e2d709704..51c18b66e4 100644 --- a/sdk/go/oci/datacatalog/getDataAsset.go +++ b/sdk/go/oci/datacatalog/getDataAsset.go @@ -79,6 +79,8 @@ type LookupDataAssetResult struct { Id string `pulumi:"id"` // Unique data asset key that is immutable. Key string `pulumi:"key"` + // A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + LifecycleDetails string `pulumi:"lifecycleDetails"` // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` Properties map[string]interface{} `pulumi:"properties"` // The current state of the data asset. @@ -181,6 +183,11 @@ func (o LookupDataAssetResultOutput) Key() pulumi.StringOutput { return o.ApplyT(func(v LookupDataAssetResult) string { return v.Key }).(pulumi.StringOutput) } +// A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. +func (o LookupDataAssetResultOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v LookupDataAssetResult) string { return v.LifecycleDetails }).(pulumi.StringOutput) +} + // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` func (o LookupDataAssetResultOutput) Properties() pulumi.MapOutput { return o.ApplyT(func(v LookupDataAssetResult) map[string]interface{} { return v.Properties }).(pulumi.MapOutput) diff --git a/sdk/go/oci/datacatalog/pulumiTypes.go b/sdk/go/oci/datacatalog/pulumiTypes.go index 065ab41275..f40ee2eff4 100644 --- a/sdk/go/oci/datacatalog/pulumiTypes.go +++ b/sdk/go/oci/datacatalog/pulumiTypes.go @@ -1543,6 +1543,8 @@ type GetDataAssetsDataAssetCollectionItem struct { ExternalKey string `pulumi:"externalKey"` // Unique data asset key that is immutable. Key string `pulumi:"key"` + // A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + LifecycleDetails string `pulumi:"lifecycleDetails"` // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` Properties map[string]interface{} `pulumi:"properties"` // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. @@ -1585,6 +1587,8 @@ type GetDataAssetsDataAssetCollectionItemArgs struct { ExternalKey pulumi.StringInput `pulumi:"externalKey"` // Unique data asset key that is immutable. Key pulumi.StringInput `pulumi:"key"` + // A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + LifecycleDetails pulumi.StringInput `pulumi:"lifecycleDetails"` // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` Properties pulumi.MapInput `pulumi:"properties"` // A filter to return only resources that match the specified lifecycle state. The value is case insensitive. @@ -1684,6 +1688,11 @@ func (o GetDataAssetsDataAssetCollectionItemOutput) Key() pulumi.StringOutput { return o.ApplyT(func(v GetDataAssetsDataAssetCollectionItem) string { return v.Key }).(pulumi.StringOutput) } +// A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. +func (o GetDataAssetsDataAssetCollectionItemOutput) LifecycleDetails() pulumi.StringOutput { + return o.ApplyT(func(v GetDataAssetsDataAssetCollectionItem) string { return v.LifecycleDetails }).(pulumi.StringOutput) +} + // A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` func (o GetDataAssetsDataAssetCollectionItemOutput) Properties() pulumi.MapOutput { return o.ApplyT(func(v GetDataAssetsDataAssetCollectionItem) map[string]interface{} { return v.Properties }).(pulumi.MapOutput) diff --git a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/DataAsset.java b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/DataAsset.java index c64418431b..372a945992 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/DataAsset.java +++ b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/DataAsset.java @@ -149,6 +149,20 @@ public Output externalKey() { public Output key() { return this.key; } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + @Export(name="lifecycleDetails", type=String.class, parameters={}) + private Output lifecycleDetails; + + /** + * @return A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + public Output lifecycleDetails() { + return this.lifecycleDetails; + } /** * A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` * diff --git a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/inputs/DataAssetState.java b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/inputs/DataAssetState.java index 5e811abbd4..d320849e60 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/inputs/DataAssetState.java +++ b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/inputs/DataAssetState.java @@ -107,6 +107,21 @@ public Optional> key() { return Optional.ofNullable(this.key); } + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + @Import(name="lifecycleDetails") + private @Nullable Output lifecycleDetails; + + /** + * @return A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + public Optional> lifecycleDetails() { + return Optional.ofNullable(this.lifecycleDetails); + } + /** * A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` * @@ -242,6 +257,7 @@ private DataAssetState(DataAssetState $) { this.displayName = $.displayName; this.externalKey = $.externalKey; this.key = $.key; + this.lifecycleDetails = $.lifecycleDetails; this.properties = $.properties; this.state = $.state; this.timeCreated = $.timeCreated; @@ -396,6 +412,27 @@ public Builder key(String key) { return key(Output.of(key)); } + /** + * @param lifecycleDetails A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + * @return builder + * + */ + public Builder lifecycleDetails(@Nullable Output lifecycleDetails) { + $.lifecycleDetails = lifecycleDetails; + return this; + } + + /** + * @param lifecycleDetails A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + * @return builder + * + */ + public Builder lifecycleDetails(String lifecycleDetails) { + return lifecycleDetails(Output.of(lifecycleDetails)); + } + /** * @param properties A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` * diff --git a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetResult.java b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetResult.java index a5a8677907..a382f283fe 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetResult.java +++ b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetResult.java @@ -46,6 +46,11 @@ public final class GetDataAssetResult { * */ private String key; + /** + * @return A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + private String lifecycleDetails; /** * @return A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` * @@ -139,6 +144,13 @@ public String id() { public String key() { return this.key; } + /** + * @return A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + public String lifecycleDetails() { + return this.lifecycleDetails; + } /** * @return A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` * @@ -214,6 +226,7 @@ public static final class Builder { private @Nullable List fields; private String id; private String key; + private String lifecycleDetails; private Map properties; private String state; private String timeCreated; @@ -234,6 +247,7 @@ public Builder(GetDataAssetResult defaults) { this.fields = defaults.fields; this.id = defaults.id; this.key = defaults.key; + this.lifecycleDetails = defaults.lifecycleDetails; this.properties = defaults.properties; this.state = defaults.state; this.timeCreated = defaults.timeCreated; @@ -293,6 +307,11 @@ public Builder key(String key) { return this; } @CustomType.Setter + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = Objects.requireNonNull(lifecycleDetails); + return this; + } + @CustomType.Setter public Builder properties(Map properties) { this.properties = Objects.requireNonNull(properties); return this; @@ -343,6 +362,7 @@ public GetDataAssetResult build() { o.fields = fields; o.id = id; o.key = key; + o.lifecycleDetails = lifecycleDetails; o.properties = properties; o.state = state; o.timeCreated = timeCreated; diff --git a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetsDataAssetCollectionItem.java b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetsDataAssetCollectionItem.java index a5891e39d5..8d85d6ea44 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetsDataAssetCollectionItem.java +++ b/sdk/java/src/main/java/com/pulumi/oci/DataCatalog/outputs/GetDataAssetsDataAssetCollectionItem.java @@ -41,6 +41,11 @@ public final class GetDataAssetsDataAssetCollectionItem { * */ private String key; + /** + * @return A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + private String lifecycleDetails; /** * @return A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` * @@ -125,6 +130,13 @@ public String externalKey() { public String key() { return this.key; } + /** + * @return A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + * + */ + public String lifecycleDetails() { + return this.lifecycleDetails; + } /** * @return A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` * @@ -197,6 +209,7 @@ public static final class Builder { private String displayName; private String externalKey; private String key; + private String lifecycleDetails; private Map properties; private String state; private String timeCreated; @@ -214,6 +227,7 @@ public Builder(GetDataAssetsDataAssetCollectionItem defaults) { this.displayName = defaults.displayName; this.externalKey = defaults.externalKey; this.key = defaults.key; + this.lifecycleDetails = defaults.lifecycleDetails; this.properties = defaults.properties; this.state = defaults.state; this.timeCreated = defaults.timeCreated; @@ -255,6 +269,11 @@ public Builder key(String key) { return this; } @CustomType.Setter + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = Objects.requireNonNull(lifecycleDetails); + return this; + } + @CustomType.Setter public Builder properties(Map properties) { this.properties = Objects.requireNonNull(properties); return this; @@ -302,6 +321,7 @@ public GetDataAssetsDataAssetCollectionItem build() { o.displayName = displayName; o.externalKey = externalKey; o.key = key; + o.lifecycleDetails = lifecycleDetails; o.properties = properties; o.state = state; o.timeCreated = timeCreated; diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/AutonomousContainerDatabase.java b/sdk/java/src/main/java/com/pulumi/oci/Database/AutonomousContainerDatabase.java index f65d5873a9..65e69eb5b7 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/AutonomousContainerDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/AutonomousContainerDatabase.java @@ -676,7 +676,7 @@ public Output provisionedCpus() { /** * For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ @Export(name="reclaimableCpus", type=Double.class, parameters={}) @@ -685,23 +685,15 @@ public Output provisionedCpus() { /** * @return For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ public Output reclaimableCpus() { return this.reclaimableCpus; } - /** - * The number of CPUs reserved in an Autonomous Container Database. - * - */ @Export(name="reservedCpus", type=Double.class, parameters={}) private Output reservedCpus; - /** - * @return The number of CPUs reserved in an Autonomous Container Database. - * - */ public Output reservedCpus() { return this.reservedCpus; } @@ -810,14 +802,14 @@ public Output timeSnapshotStandbyRevert() { return this.timeSnapshotStandbyRevert; } /** - * The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ @Export(name="totalCpus", type=Integer.class, parameters={}) private Output totalCpus; /** - * @return The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * @return The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ public Output totalCpus() { diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/DbNode.java b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNode.java new file mode 100644 index 0000000000..60b544400f --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNode.java @@ -0,0 +1,426 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.oci.Database; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import com.pulumi.oci.Database.DbNodeArgs; +import com.pulumi.oci.Database.inputs.DbNodeState; +import com.pulumi.oci.Utilities; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import javax.annotation.Nullable; + +/** + * This resource provides the Db Node resource in Oracle Cloud Infrastructure Database service. + * + * Updates the specified database node. + * + * ## Import + * + * DbNodes can be imported using the `id`, e.g. + * + * ```sh + * $ pulumi import oci:Database/dbNode:DbNode test_db_node "id" + * ``` + * + */ +@ResourceType(type="oci:Database/dbNode:DbNode") +public class DbNode extends com.pulumi.resources.CustomResource { + /** + * Additional information about the planned maintenance. + * + */ + @Export(name="additionalDetails", type=String.class, parameters={}) + private Output additionalDetails; + + /** + * @return Additional information about the planned maintenance. + * + */ + public Output additionalDetails() { + return this.additionalDetails; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + @Export(name="backupIpId", type=String.class, parameters={}) + private Output backupIpId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + public Output backupIpId() { + return this.backupIpId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + * + */ + @Export(name="backupVnic2id", type=String.class, parameters={}) + private Output backupVnic2id; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + * + */ + public Output backupVnic2id() { + return this.backupVnic2id; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + * + */ + @Export(name="backupVnicId", type=String.class, parameters={}) + private Output backupVnicId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + * + */ + public Output backupVnicId() { + return this.backupVnicId; + } + /** + * The number of CPU cores enabled on the Db node. + * + */ + @Export(name="cpuCoreCount", type=Integer.class, parameters={}) + private Output cpuCoreCount; + + /** + * @return The number of CPU cores enabled on the Db node. + * + */ + public Output cpuCoreCount() { + return this.cpuCoreCount; + } + /** + * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + */ + @Export(name="dbNodeId", type=String.class, parameters={}) + private Output dbNodeId; + + /** + * @return The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + */ + public Output dbNodeId() { + return this.dbNodeId; + } + /** + * The allocated local node storage in GBs on the Db node. + * + */ + @Export(name="dbNodeStorageSizeInGbs", type=Integer.class, parameters={}) + private Output dbNodeStorageSizeInGbs; + + /** + * @return The allocated local node storage in GBs on the Db node. + * + */ + public Output dbNodeStorageSizeInGbs() { + return this.dbNodeStorageSizeInGbs; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + * + */ + @Export(name="dbServerId", type=String.class, parameters={}) + private Output dbServerId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + * + */ + public Output dbServerId() { + return this.dbServerId; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * + */ + @Export(name="dbSystemId", type=String.class, parameters={}) + private Output dbSystemId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * + */ + public Output dbSystemId() { + return this.dbSystemId; + } + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + @Export(name="definedTags", type=Map.class, parameters={String.class, Object.class}) + private Output> definedTags; + + /** + * @return (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Output> definedTags() { + return this.definedTags; + } + /** + * The name of the Fault Domain the instance is contained in. + * + */ + @Export(name="faultDomain", type=String.class, parameters={}) + private Output faultDomain; + + /** + * @return The name of the Fault Domain the instance is contained in. + * + */ + public Output faultDomain() { + return this.faultDomain; + } + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + */ + @Export(name="freeformTags", type=Map.class, parameters={String.class, Object.class}) + private Output> freeformTags; + + /** + * @return (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + */ + public Output> freeformTags() { + return this.freeformTags; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + @Export(name="hostIpId", type=String.class, parameters={}) + private Output hostIpId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + public Output hostIpId() { + return this.hostIpId; + } + /** + * The host name for the database node. + * + */ + @Export(name="hostname", type=String.class, parameters={}) + private Output hostname; + + /** + * @return The host name for the database node. + * + */ + public Output hostname() { + return this.hostname; + } + /** + * Information about the current lifecycle state. + * + */ + @Export(name="lifecycleDetails", type=String.class, parameters={}) + private Output lifecycleDetails; + + /** + * @return Information about the current lifecycle state. + * + */ + public Output lifecycleDetails() { + return this.lifecycleDetails; + } + /** + * The type of database node maintenance. + * + */ + @Export(name="maintenanceType", type=String.class, parameters={}) + private Output maintenanceType; + + /** + * @return The type of database node maintenance. + * + */ + public Output maintenanceType() { + return this.maintenanceType; + } + /** + * The allocated memory in GBs on the Db node. + * + */ + @Export(name="memorySizeInGbs", type=Integer.class, parameters={}) + private Output memorySizeInGbs; + + /** + * @return The allocated memory in GBs on the Db node. + * + */ + public Output memorySizeInGbs() { + return this.memorySizeInGbs; + } + /** + * The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + * + */ + @Export(name="softwareStorageSizeInGb", type=Integer.class, parameters={}) + private Output softwareStorageSizeInGb; + + /** + * @return The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + * + */ + public Output softwareStorageSizeInGb() { + return this.softwareStorageSizeInGb; + } + /** + * The current state of the database node. + * + */ + @Export(name="state", type=String.class, parameters={}) + private Output state; + + /** + * @return The current state of the database node. + * + */ + public Output state() { + return this.state; + } + /** + * The date and time that the database node was created. + * + */ + @Export(name="timeCreated", type=String.class, parameters={}) + private Output timeCreated; + + /** + * @return The date and time that the database node was created. + * + */ + public Output timeCreated() { + return this.timeCreated; + } + /** + * End date and time of maintenance window. + * + */ + @Export(name="timeMaintenanceWindowEnd", type=String.class, parameters={}) + private Output timeMaintenanceWindowEnd; + + /** + * @return End date and time of maintenance window. + * + */ + public Output timeMaintenanceWindowEnd() { + return this.timeMaintenanceWindowEnd; + } + /** + * Start date and time of maintenance window. + * + */ + @Export(name="timeMaintenanceWindowStart", type=String.class, parameters={}) + private Output timeMaintenanceWindowStart; + + /** + * @return Start date and time of maintenance window. + * + */ + public Output timeMaintenanceWindowStart() { + return this.timeMaintenanceWindowStart; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + * + */ + @Export(name="vnic2id", type=String.class, parameters={}) + private Output vnic2id; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + * + */ + public Output vnic2id() { + return this.vnic2id; + } + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + * + */ + @Export(name="vnicId", type=String.class, parameters={}) + private Output vnicId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + * + */ + public Output vnicId() { + return this.vnicId; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public DbNode(String name) { + this(name, DbNodeArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public DbNode(String name, DbNodeArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public DbNode(String name, DbNodeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("oci:Database/dbNode:DbNode", name, args == null ? DbNodeArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + } + + private DbNode(String name, Output id, @Nullable DbNodeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("oci:Database/dbNode:DbNode", name, state, makeResourceOptions(options, id)); + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static DbNode get(String name, Output id, @Nullable DbNodeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new DbNode(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeArgs.java b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeArgs.java new file mode 100644 index 0000000000..f4fca1d33a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeArgs.java @@ -0,0 +1,172 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.oci.Database; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class DbNodeArgs extends com.pulumi.resources.ResourceArgs { + + public static final DbNodeArgs Empty = new DbNodeArgs(); + + /** + * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + */ + @Import(name="dbNodeId", required=true) + private Output dbNodeId; + + /** + * @return The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + */ + public Output dbNodeId() { + return this.dbNodeId; + } + + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + @Import(name="definedTags") + private @Nullable Output> definedTags; + + /** + * @return (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Optional>> definedTags() { + return Optional.ofNullable(this.definedTags); + } + + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + */ + @Import(name="freeformTags") + private @Nullable Output> freeformTags; + + /** + * @return (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + */ + public Optional>> freeformTags() { + return Optional.ofNullable(this.freeformTags); + } + + private DbNodeArgs() {} + + private DbNodeArgs(DbNodeArgs $) { + this.dbNodeId = $.dbNodeId; + this.definedTags = $.definedTags; + this.freeformTags = $.freeformTags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(DbNodeArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private DbNodeArgs $; + + public Builder() { + $ = new DbNodeArgs(); + } + + public Builder(DbNodeArgs defaults) { + $ = new DbNodeArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param dbNodeId The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @return builder + * + */ + public Builder dbNodeId(Output dbNodeId) { + $.dbNodeId = dbNodeId; + return this; + } + + /** + * @param dbNodeId The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @return builder + * + */ + public Builder dbNodeId(String dbNodeId) { + return dbNodeId(Output.of(dbNodeId)); + } + + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(@Nullable Output> definedTags) { + $.definedTags = definedTags; + return this; + } + + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(Map definedTags) { + return definedTags(Output.of(definedTags)); + } + + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + * @return builder + * + */ + public Builder freeformTags(@Nullable Output> freeformTags) { + $.freeformTags = freeformTags; + return this; + } + + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + * @return builder + * + */ + public Builder freeformTags(Map freeformTags) { + return freeformTags(Output.of(freeformTags)); + } + + public DbNodeArgs build() { + $.dbNodeId = Objects.requireNonNull($.dbNodeId, "expected parameter 'dbNodeId' to be non-null"); + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnection.java b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnection.java index 6199bc2056..3199d5a7c3 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnection.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnection.java @@ -10,7 +10,9 @@ import com.pulumi.oci.Database.DbNodeConsoleConnectionArgs; import com.pulumi.oci.Database.inputs.DbNodeConsoleConnectionState; import com.pulumi.oci.Utilities; +import java.lang.Object; import java.lang.String; +import java.util.Map; import javax.annotation.Nullable; /** @@ -45,6 +47,8 @@ * var testDbNodeConsoleConnection = new DbNodeConsoleConnection("testDbNodeConsoleConnection", DbNodeConsoleConnectionArgs.builder() * .dbNodeId(oci_database_db_node.test_db_node().id()) * .publicKey(var_.db_node_console_connection_public_key()) + * .definedTags(var_.db_node_console_connection_defined_tags()) + * .freeformTags(Map.of("Department", "Finance")) * .build()); * * } @@ -104,6 +108,20 @@ public Output connectionString() { public Output dbNodeId() { return this.dbNodeId; } + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + @Export(name="definedTags", type=Map.class, parameters={String.class, Object.class}) + private Output> definedTags; + + /** + * @return (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Output> definedTags() { + return this.definedTags; + } /** * The SSH public key fingerprint for the console connection. * @@ -118,6 +136,34 @@ public Output dbNodeId() { public Output fingerprint() { return this.fingerprint; } + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + @Export(name="freeformTags", type=Map.class, parameters={String.class, Object.class}) + private Output> freeformTags; + + /** + * @return (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + public Output> freeformTags() { + return this.freeformTags; + } + /** + * Information about the current lifecycle state. + * + */ + @Export(name="lifecycleDetails", type=String.class, parameters={}) + private Output lifecycleDetails; + + /** + * @return Information about the current lifecycle state. + * + */ + public Output lifecycleDetails() { + return this.lifecycleDetails; + } /** * The SSH public key used to authenticate the console connection. * @@ -138,6 +184,20 @@ public Output fingerprint() { public Output publicKey() { return this.publicKey; } + /** + * The SSH public key's fingerprint for the console connection service host. + * + */ + @Export(name="serviceHostKeyFingerprint", type=String.class, parameters={}) + private Output serviceHostKeyFingerprint; + + /** + * @return The SSH public key's fingerprint for the console connection service host. + * + */ + public Output serviceHostKeyFingerprint() { + return this.serviceHostKeyFingerprint; + } /** * The current state of the console connection. * diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnectionArgs.java b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnectionArgs.java index deecb0dda2..cd95245f00 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnectionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/DbNodeConsoleConnectionArgs.java @@ -5,8 +5,12 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Object; import java.lang.String; +import java.util.Map; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class DbNodeConsoleConnectionArgs extends com.pulumi.resources.ResourceArgs { @@ -28,6 +32,36 @@ public Output dbNodeId() { return this.dbNodeId; } + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + @Import(name="definedTags") + private @Nullable Output> definedTags; + + /** + * @return (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Optional>> definedTags() { + return Optional.ofNullable(this.definedTags); + } + + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + @Import(name="freeformTags") + private @Nullable Output> freeformTags; + + /** + * @return (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + public Optional>> freeformTags() { + return Optional.ofNullable(this.freeformTags); + } + /** * The SSH public key used to authenticate the console connection. * @@ -53,6 +87,8 @@ private DbNodeConsoleConnectionArgs() {} private DbNodeConsoleConnectionArgs(DbNodeConsoleConnectionArgs $) { this.dbNodeId = $.dbNodeId; + this.definedTags = $.definedTags; + this.freeformTags = $.freeformTags; this.publicKey = $.publicKey; } @@ -95,6 +131,48 @@ public Builder dbNodeId(String dbNodeId) { return dbNodeId(Output.of(dbNodeId)); } + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(@Nullable Output> definedTags) { + $.definedTags = definedTags; + return this; + } + + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(Map definedTags) { + return definedTags(Output.of(definedTags)); + } + + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * @return builder + * + */ + public Builder freeformTags(@Nullable Output> freeformTags) { + $.freeformTags = freeformTags; + return this; + } + + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * @return builder + * + */ + public Builder freeformTags(Map freeformTags) { + return freeformTags(Output.of(freeformTags)); + } + /** * @param publicKey The SSH public key used to authenticate the console connection. * diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/AutonomousContainerDatabaseState.java b/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/AutonomousContainerDatabaseState.java index afb26f813c..5cbf929fd2 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/AutonomousContainerDatabaseState.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/AutonomousContainerDatabaseState.java @@ -605,7 +605,7 @@ public Optional> provisionedCpus() { /** * For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ @Import(name="reclaimableCpus") @@ -614,24 +614,16 @@ public Optional> provisionedCpus() { /** * @return For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ public Optional> reclaimableCpus() { return Optional.ofNullable(this.reclaimableCpus); } - /** - * The number of CPUs reserved in an Autonomous Container Database. - * - */ @Import(name="reservedCpus") private @Nullable Output reservedCpus; - /** - * @return The number of CPUs reserved in an Autonomous Container Database. - * - */ public Optional> reservedCpus() { return Optional.ofNullable(this.reservedCpus); } @@ -748,14 +740,14 @@ public Optional> timeSnapshotStandbyRevert() { } /** - * The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ @Import(name="totalCpus") private @Nullable Output totalCpus; /** - * @return The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * @return The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * */ public Optional> totalCpus() { @@ -1704,7 +1696,7 @@ public Builder provisionedCpus(Double provisionedCpus) { /** * @param reclaimableCpus For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * * @return builder * @@ -1717,7 +1709,7 @@ public Builder reclaimableCpus(@Nullable Output reclaimableCpus) { /** * @param reclaimableCpus For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * * @return builder * @@ -1726,23 +1718,11 @@ public Builder reclaimableCpus(Double reclaimableCpus) { return reclaimableCpus(Output.of(reclaimableCpus)); } - /** - * @param reservedCpus The number of CPUs reserved in an Autonomous Container Database. - * - * @return builder - * - */ public Builder reservedCpus(@Nullable Output reservedCpus) { $.reservedCpus = reservedCpus; return this; } - /** - * @param reservedCpus The number of CPUs reserved in an Autonomous Container Database. - * - * @return builder - * - */ public Builder reservedCpus(Double reservedCpus) { return reservedCpus(Output.of(reservedCpus)); } @@ -1901,7 +1881,7 @@ public Builder timeSnapshotStandbyRevert(String timeSnapshotStandbyRevert) { } /** - * @param totalCpus The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * @param totalCpus The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * * @return builder * @@ -1912,7 +1892,7 @@ public Builder totalCpus(@Nullable Output totalCpus) { } /** - * @param totalCpus The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * @param totalCpus The number of CPUs allocated to the Autonomous VM cluster.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/DbNodeConsoleConnectionState.java b/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/DbNodeConsoleConnectionState.java index 059f5f9c76..866d19241a 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/DbNodeConsoleConnectionState.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/DbNodeConsoleConnectionState.java @@ -5,7 +5,9 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Object; import java.lang.String; +import java.util.Map; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -60,6 +62,21 @@ public Optional> dbNodeId() { return Optional.ofNullable(this.dbNodeId); } + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + @Import(name="definedTags") + private @Nullable Output> definedTags; + + /** + * @return (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Optional>> definedTags() { + return Optional.ofNullable(this.definedTags); + } + /** * The SSH public key fingerprint for the console connection. * @@ -75,6 +92,36 @@ public Optional> fingerprint() { return Optional.ofNullable(this.fingerprint); } + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + @Import(name="freeformTags") + private @Nullable Output> freeformTags; + + /** + * @return (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + public Optional>> freeformTags() { + return Optional.ofNullable(this.freeformTags); + } + + /** + * Information about the current lifecycle state. + * + */ + @Import(name="lifecycleDetails") + private @Nullable Output lifecycleDetails; + + /** + * @return Information about the current lifecycle state. + * + */ + public Optional> lifecycleDetails() { + return Optional.ofNullable(this.lifecycleDetails); + } + /** * The SSH public key used to authenticate the console connection. * @@ -96,6 +143,21 @@ public Optional> publicKey() { return Optional.ofNullable(this.publicKey); } + /** + * The SSH public key's fingerprint for the console connection service host. + * + */ + @Import(name="serviceHostKeyFingerprint") + private @Nullable Output serviceHostKeyFingerprint; + + /** + * @return The SSH public key's fingerprint for the console connection service host. + * + */ + public Optional> serviceHostKeyFingerprint() { + return Optional.ofNullable(this.serviceHostKeyFingerprint); + } + /** * The current state of the console connection. * @@ -117,8 +179,12 @@ private DbNodeConsoleConnectionState(DbNodeConsoleConnectionState $) { this.compartmentId = $.compartmentId; this.connectionString = $.connectionString; this.dbNodeId = $.dbNodeId; + this.definedTags = $.definedTags; this.fingerprint = $.fingerprint; + this.freeformTags = $.freeformTags; + this.lifecycleDetails = $.lifecycleDetails; this.publicKey = $.publicKey; + this.serviceHostKeyFingerprint = $.serviceHostKeyFingerprint; this.state = $.state; } @@ -203,6 +269,27 @@ public Builder dbNodeId(String dbNodeId) { return dbNodeId(Output.of(dbNodeId)); } + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(@Nullable Output> definedTags) { + $.definedTags = definedTags; + return this; + } + + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(Map definedTags) { + return definedTags(Output.of(definedTags)); + } + /** * @param fingerprint The SSH public key fingerprint for the console connection. * @@ -224,6 +311,48 @@ public Builder fingerprint(String fingerprint) { return fingerprint(Output.of(fingerprint)); } + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * @return builder + * + */ + public Builder freeformTags(@Nullable Output> freeformTags) { + $.freeformTags = freeformTags; + return this; + } + + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * @return builder + * + */ + public Builder freeformTags(Map freeformTags) { + return freeformTags(Output.of(freeformTags)); + } + + /** + * @param lifecycleDetails Information about the current lifecycle state. + * + * @return builder + * + */ + public Builder lifecycleDetails(@Nullable Output lifecycleDetails) { + $.lifecycleDetails = lifecycleDetails; + return this; + } + + /** + * @param lifecycleDetails Information about the current lifecycle state. + * + * @return builder + * + */ + public Builder lifecycleDetails(String lifecycleDetails) { + return lifecycleDetails(Output.of(lifecycleDetails)); + } + /** * @param publicKey The SSH public key used to authenticate the console connection. * @@ -251,6 +380,27 @@ public Builder publicKey(String publicKey) { return publicKey(Output.of(publicKey)); } + /** + * @param serviceHostKeyFingerprint The SSH public key's fingerprint for the console connection service host. + * + * @return builder + * + */ + public Builder serviceHostKeyFingerprint(@Nullable Output serviceHostKeyFingerprint) { + $.serviceHostKeyFingerprint = serviceHostKeyFingerprint; + return this; + } + + /** + * @param serviceHostKeyFingerprint The SSH public key's fingerprint for the console connection service host. + * + * @return builder + * + */ + public Builder serviceHostKeyFingerprint(String serviceHostKeyFingerprint) { + return serviceHostKeyFingerprint(Output.of(serviceHostKeyFingerprint)); + } + /** * @param state The current state of the console connection. * diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/DbNodeState.java b/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/DbNodeState.java new file mode 100644 index 0000000000..4b60a4581c --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/inputs/DbNodeState.java @@ -0,0 +1,949 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.oci.Database.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class DbNodeState extends com.pulumi.resources.ResourceArgs { + + public static final DbNodeState Empty = new DbNodeState(); + + /** + * Additional information about the planned maintenance. + * + */ + @Import(name="additionalDetails") + private @Nullable Output additionalDetails; + + /** + * @return Additional information about the planned maintenance. + * + */ + public Optional> additionalDetails() { + return Optional.ofNullable(this.additionalDetails); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + @Import(name="backupIpId") + private @Nullable Output backupIpId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + public Optional> backupIpId() { + return Optional.ofNullable(this.backupIpId); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + * + */ + @Import(name="backupVnic2id") + private @Nullable Output backupVnic2id; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + * + */ + public Optional> backupVnic2id() { + return Optional.ofNullable(this.backupVnic2id); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + * + */ + @Import(name="backupVnicId") + private @Nullable Output backupVnicId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + * + */ + public Optional> backupVnicId() { + return Optional.ofNullable(this.backupVnicId); + } + + /** + * The number of CPU cores enabled on the Db node. + * + */ + @Import(name="cpuCoreCount") + private @Nullable Output cpuCoreCount; + + /** + * @return The number of CPU cores enabled on the Db node. + * + */ + public Optional> cpuCoreCount() { + return Optional.ofNullable(this.cpuCoreCount); + } + + /** + * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + */ + @Import(name="dbNodeId") + private @Nullable Output dbNodeId; + + /** + * @return The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + */ + public Optional> dbNodeId() { + return Optional.ofNullable(this.dbNodeId); + } + + /** + * The allocated local node storage in GBs on the Db node. + * + */ + @Import(name="dbNodeStorageSizeInGbs") + private @Nullable Output dbNodeStorageSizeInGbs; + + /** + * @return The allocated local node storage in GBs on the Db node. + * + */ + public Optional> dbNodeStorageSizeInGbs() { + return Optional.ofNullable(this.dbNodeStorageSizeInGbs); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + * + */ + @Import(name="dbServerId") + private @Nullable Output dbServerId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + * + */ + public Optional> dbServerId() { + return Optional.ofNullable(this.dbServerId); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * + */ + @Import(name="dbSystemId") + private @Nullable Output dbSystemId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * + */ + public Optional> dbSystemId() { + return Optional.ofNullable(this.dbSystemId); + } + + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + @Import(name="definedTags") + private @Nullable Output> definedTags; + + /** + * @return (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Optional>> definedTags() { + return Optional.ofNullable(this.definedTags); + } + + /** + * The name of the Fault Domain the instance is contained in. + * + */ + @Import(name="faultDomain") + private @Nullable Output faultDomain; + + /** + * @return The name of the Fault Domain the instance is contained in. + * + */ + public Optional> faultDomain() { + return Optional.ofNullable(this.faultDomain); + } + + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + */ + @Import(name="freeformTags") + private @Nullable Output> freeformTags; + + /** + * @return (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + */ + public Optional>> freeformTags() { + return Optional.ofNullable(this.freeformTags); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + @Import(name="hostIpId") + private @Nullable Output hostIpId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + */ + public Optional> hostIpId() { + return Optional.ofNullable(this.hostIpId); + } + + /** + * The host name for the database node. + * + */ + @Import(name="hostname") + private @Nullable Output hostname; + + /** + * @return The host name for the database node. + * + */ + public Optional> hostname() { + return Optional.ofNullable(this.hostname); + } + + /** + * Information about the current lifecycle state. + * + */ + @Import(name="lifecycleDetails") + private @Nullable Output lifecycleDetails; + + /** + * @return Information about the current lifecycle state. + * + */ + public Optional> lifecycleDetails() { + return Optional.ofNullable(this.lifecycleDetails); + } + + /** + * The type of database node maintenance. + * + */ + @Import(name="maintenanceType") + private @Nullable Output maintenanceType; + + /** + * @return The type of database node maintenance. + * + */ + public Optional> maintenanceType() { + return Optional.ofNullable(this.maintenanceType); + } + + /** + * The allocated memory in GBs on the Db node. + * + */ + @Import(name="memorySizeInGbs") + private @Nullable Output memorySizeInGbs; + + /** + * @return The allocated memory in GBs on the Db node. + * + */ + public Optional> memorySizeInGbs() { + return Optional.ofNullable(this.memorySizeInGbs); + } + + /** + * The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + * + */ + @Import(name="softwareStorageSizeInGb") + private @Nullable Output softwareStorageSizeInGb; + + /** + * @return The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + * + */ + public Optional> softwareStorageSizeInGb() { + return Optional.ofNullable(this.softwareStorageSizeInGb); + } + + /** + * The current state of the database node. + * + */ + @Import(name="state") + private @Nullable Output state; + + /** + * @return The current state of the database node. + * + */ + public Optional> state() { + return Optional.ofNullable(this.state); + } + + /** + * The date and time that the database node was created. + * + */ + @Import(name="timeCreated") + private @Nullable Output timeCreated; + + /** + * @return The date and time that the database node was created. + * + */ + public Optional> timeCreated() { + return Optional.ofNullable(this.timeCreated); + } + + /** + * End date and time of maintenance window. + * + */ + @Import(name="timeMaintenanceWindowEnd") + private @Nullable Output timeMaintenanceWindowEnd; + + /** + * @return End date and time of maintenance window. + * + */ + public Optional> timeMaintenanceWindowEnd() { + return Optional.ofNullable(this.timeMaintenanceWindowEnd); + } + + /** + * Start date and time of maintenance window. + * + */ + @Import(name="timeMaintenanceWindowStart") + private @Nullable Output timeMaintenanceWindowStart; + + /** + * @return Start date and time of maintenance window. + * + */ + public Optional> timeMaintenanceWindowStart() { + return Optional.ofNullable(this.timeMaintenanceWindowStart); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + * + */ + @Import(name="vnic2id") + private @Nullable Output vnic2id; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + * + */ + public Optional> vnic2id() { + return Optional.ofNullable(this.vnic2id); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + * + */ + @Import(name="vnicId") + private @Nullable Output vnicId; + + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + * + */ + public Optional> vnicId() { + return Optional.ofNullable(this.vnicId); + } + + private DbNodeState() {} + + private DbNodeState(DbNodeState $) { + this.additionalDetails = $.additionalDetails; + this.backupIpId = $.backupIpId; + this.backupVnic2id = $.backupVnic2id; + this.backupVnicId = $.backupVnicId; + this.cpuCoreCount = $.cpuCoreCount; + this.dbNodeId = $.dbNodeId; + this.dbNodeStorageSizeInGbs = $.dbNodeStorageSizeInGbs; + this.dbServerId = $.dbServerId; + this.dbSystemId = $.dbSystemId; + this.definedTags = $.definedTags; + this.faultDomain = $.faultDomain; + this.freeformTags = $.freeformTags; + this.hostIpId = $.hostIpId; + this.hostname = $.hostname; + this.lifecycleDetails = $.lifecycleDetails; + this.maintenanceType = $.maintenanceType; + this.memorySizeInGbs = $.memorySizeInGbs; + this.softwareStorageSizeInGb = $.softwareStorageSizeInGb; + this.state = $.state; + this.timeCreated = $.timeCreated; + this.timeMaintenanceWindowEnd = $.timeMaintenanceWindowEnd; + this.timeMaintenanceWindowStart = $.timeMaintenanceWindowStart; + this.vnic2id = $.vnic2id; + this.vnicId = $.vnicId; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(DbNodeState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private DbNodeState $; + + public Builder() { + $ = new DbNodeState(); + } + + public Builder(DbNodeState defaults) { + $ = new DbNodeState(Objects.requireNonNull(defaults)); + } + + /** + * @param additionalDetails Additional information about the planned maintenance. + * + * @return builder + * + */ + public Builder additionalDetails(@Nullable Output additionalDetails) { + $.additionalDetails = additionalDetails; + return this; + } + + /** + * @param additionalDetails Additional information about the planned maintenance. + * + * @return builder + * + */ + public Builder additionalDetails(String additionalDetails) { + return additionalDetails(Output.of(additionalDetails)); + } + + /** + * @param backupIpId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + * @return builder + * + */ + public Builder backupIpId(@Nullable Output backupIpId) { + $.backupIpId = backupIpId; + return this; + } + + /** + * @param backupIpId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + * @return builder + * + */ + public Builder backupIpId(String backupIpId) { + return backupIpId(Output.of(backupIpId)); + } + + /** + * @param backupVnic2id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + * + * @return builder + * + */ + public Builder backupVnic2id(@Nullable Output backupVnic2id) { + $.backupVnic2id = backupVnic2id; + return this; + } + + /** + * @param backupVnic2id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + * + * @return builder + * + */ + public Builder backupVnic2id(String backupVnic2id) { + return backupVnic2id(Output.of(backupVnic2id)); + } + + /** + * @param backupVnicId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + * + * @return builder + * + */ + public Builder backupVnicId(@Nullable Output backupVnicId) { + $.backupVnicId = backupVnicId; + return this; + } + + /** + * @param backupVnicId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + * + * @return builder + * + */ + public Builder backupVnicId(String backupVnicId) { + return backupVnicId(Output.of(backupVnicId)); + } + + /** + * @param cpuCoreCount The number of CPU cores enabled on the Db node. + * + * @return builder + * + */ + public Builder cpuCoreCount(@Nullable Output cpuCoreCount) { + $.cpuCoreCount = cpuCoreCount; + return this; + } + + /** + * @param cpuCoreCount The number of CPU cores enabled on the Db node. + * + * @return builder + * + */ + public Builder cpuCoreCount(Integer cpuCoreCount) { + return cpuCoreCount(Output.of(cpuCoreCount)); + } + + /** + * @param dbNodeId The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @return builder + * + */ + public Builder dbNodeId(@Nullable Output dbNodeId) { + $.dbNodeId = dbNodeId; + return this; + } + + /** + * @param dbNodeId The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @return builder + * + */ + public Builder dbNodeId(String dbNodeId) { + return dbNodeId(Output.of(dbNodeId)); + } + + /** + * @param dbNodeStorageSizeInGbs The allocated local node storage in GBs on the Db node. + * + * @return builder + * + */ + public Builder dbNodeStorageSizeInGbs(@Nullable Output dbNodeStorageSizeInGbs) { + $.dbNodeStorageSizeInGbs = dbNodeStorageSizeInGbs; + return this; + } + + /** + * @param dbNodeStorageSizeInGbs The allocated local node storage in GBs on the Db node. + * + * @return builder + * + */ + public Builder dbNodeStorageSizeInGbs(Integer dbNodeStorageSizeInGbs) { + return dbNodeStorageSizeInGbs(Output.of(dbNodeStorageSizeInGbs)); + } + + /** + * @param dbServerId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + * + * @return builder + * + */ + public Builder dbServerId(@Nullable Output dbServerId) { + $.dbServerId = dbServerId; + return this; + } + + /** + * @param dbServerId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + * + * @return builder + * + */ + public Builder dbServerId(String dbServerId) { + return dbServerId(Output.of(dbServerId)); + } + + /** + * @param dbSystemId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * + * @return builder + * + */ + public Builder dbSystemId(@Nullable Output dbSystemId) { + $.dbSystemId = dbSystemId; + return this; + } + + /** + * @param dbSystemId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * + * @return builder + * + */ + public Builder dbSystemId(String dbSystemId) { + return dbSystemId(Output.of(dbSystemId)); + } + + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(@Nullable Output> definedTags) { + $.definedTags = definedTags; + return this; + } + + /** + * @param definedTags (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return builder + * + */ + public Builder definedTags(Map definedTags) { + return definedTags(Output.of(definedTags)); + } + + /** + * @param faultDomain The name of the Fault Domain the instance is contained in. + * + * @return builder + * + */ + public Builder faultDomain(@Nullable Output faultDomain) { + $.faultDomain = faultDomain; + return this; + } + + /** + * @param faultDomain The name of the Fault Domain the instance is contained in. + * + * @return builder + * + */ + public Builder faultDomain(String faultDomain) { + return faultDomain(Output.of(faultDomain)); + } + + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + * @return builder + * + */ + public Builder freeformTags(@Nullable Output> freeformTags) { + $.freeformTags = freeformTags; + return this; + } + + /** + * @param freeformTags (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + * + * @return builder + * + */ + public Builder freeformTags(Map freeformTags) { + return freeformTags(Output.of(freeformTags)); + } + + /** + * @param hostIpId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + * @return builder + * + */ + public Builder hostIpId(@Nullable Output hostIpId) { + $.hostIpId = hostIpId; + return this; + } + + /** + * @param hostIpId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * + * @return builder + * + */ + public Builder hostIpId(String hostIpId) { + return hostIpId(Output.of(hostIpId)); + } + + /** + * @param hostname The host name for the database node. + * + * @return builder + * + */ + public Builder hostname(@Nullable Output hostname) { + $.hostname = hostname; + return this; + } + + /** + * @param hostname The host name for the database node. + * + * @return builder + * + */ + public Builder hostname(String hostname) { + return hostname(Output.of(hostname)); + } + + /** + * @param lifecycleDetails Information about the current lifecycle state. + * + * @return builder + * + */ + public Builder lifecycleDetails(@Nullable Output lifecycleDetails) { + $.lifecycleDetails = lifecycleDetails; + return this; + } + + /** + * @param lifecycleDetails Information about the current lifecycle state. + * + * @return builder + * + */ + public Builder lifecycleDetails(String lifecycleDetails) { + return lifecycleDetails(Output.of(lifecycleDetails)); + } + + /** + * @param maintenanceType The type of database node maintenance. + * + * @return builder + * + */ + public Builder maintenanceType(@Nullable Output maintenanceType) { + $.maintenanceType = maintenanceType; + return this; + } + + /** + * @param maintenanceType The type of database node maintenance. + * + * @return builder + * + */ + public Builder maintenanceType(String maintenanceType) { + return maintenanceType(Output.of(maintenanceType)); + } + + /** + * @param memorySizeInGbs The allocated memory in GBs on the Db node. + * + * @return builder + * + */ + public Builder memorySizeInGbs(@Nullable Output memorySizeInGbs) { + $.memorySizeInGbs = memorySizeInGbs; + return this; + } + + /** + * @param memorySizeInGbs The allocated memory in GBs on the Db node. + * + * @return builder + * + */ + public Builder memorySizeInGbs(Integer memorySizeInGbs) { + return memorySizeInGbs(Output.of(memorySizeInGbs)); + } + + /** + * @param softwareStorageSizeInGb The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + * + * @return builder + * + */ + public Builder softwareStorageSizeInGb(@Nullable Output softwareStorageSizeInGb) { + $.softwareStorageSizeInGb = softwareStorageSizeInGb; + return this; + } + + /** + * @param softwareStorageSizeInGb The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + * + * @return builder + * + */ + public Builder softwareStorageSizeInGb(Integer softwareStorageSizeInGb) { + return softwareStorageSizeInGb(Output.of(softwareStorageSizeInGb)); + } + + /** + * @param state The current state of the database node. + * + * @return builder + * + */ + public Builder state(@Nullable Output state) { + $.state = state; + return this; + } + + /** + * @param state The current state of the database node. + * + * @return builder + * + */ + public Builder state(String state) { + return state(Output.of(state)); + } + + /** + * @param timeCreated The date and time that the database node was created. + * + * @return builder + * + */ + public Builder timeCreated(@Nullable Output timeCreated) { + $.timeCreated = timeCreated; + return this; + } + + /** + * @param timeCreated The date and time that the database node was created. + * + * @return builder + * + */ + public Builder timeCreated(String timeCreated) { + return timeCreated(Output.of(timeCreated)); + } + + /** + * @param timeMaintenanceWindowEnd End date and time of maintenance window. + * + * @return builder + * + */ + public Builder timeMaintenanceWindowEnd(@Nullable Output timeMaintenanceWindowEnd) { + $.timeMaintenanceWindowEnd = timeMaintenanceWindowEnd; + return this; + } + + /** + * @param timeMaintenanceWindowEnd End date and time of maintenance window. + * + * @return builder + * + */ + public Builder timeMaintenanceWindowEnd(String timeMaintenanceWindowEnd) { + return timeMaintenanceWindowEnd(Output.of(timeMaintenanceWindowEnd)); + } + + /** + * @param timeMaintenanceWindowStart Start date and time of maintenance window. + * + * @return builder + * + */ + public Builder timeMaintenanceWindowStart(@Nullable Output timeMaintenanceWindowStart) { + $.timeMaintenanceWindowStart = timeMaintenanceWindowStart; + return this; + } + + /** + * @param timeMaintenanceWindowStart Start date and time of maintenance window. + * + * @return builder + * + */ + public Builder timeMaintenanceWindowStart(String timeMaintenanceWindowStart) { + return timeMaintenanceWindowStart(Output.of(timeMaintenanceWindowStart)); + } + + /** + * @param vnic2id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + * + * @return builder + * + */ + public Builder vnic2id(@Nullable Output vnic2id) { + $.vnic2id = vnic2id; + return this; + } + + /** + * @param vnic2id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + * + * @return builder + * + */ + public Builder vnic2id(String vnic2id) { + return vnic2id(Output.of(vnic2id)); + } + + /** + * @param vnicId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + * + * @return builder + * + */ + public Builder vnicId(@Nullable Output vnicId) { + $.vnicId = vnicId; + return this; + } + + /** + * @param vnicId The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + * + * @return builder + * + */ + public Builder vnicId(String vnicId) { + return vnicId(Output.of(vnicId)); + } + + public DbNodeState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabaseResult.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabaseResult.java index 4c4bf7ab43..6132a88888 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabaseResult.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabaseResult.java @@ -33,13 +33,10 @@ public final class GetAutonomousContainerDatabaseResult { private String autonomousVmClusterId; /** * @return The availability domain of the Autonomous Container Database. + * <<<<<<< HEAD * */ private String availabilityDomain; - /** - * @return Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - * - */ private Double availableCpus; /** * @return Backup options for the Autonomous Container Database. @@ -257,15 +254,12 @@ public String autonomousVmClusterId() { } /** * @return The availability domain of the Autonomous Container Database. + * <<<<<<< HEAD * */ public String availabilityDomain() { return this.availabilityDomain; } - /** - * @return Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - * - */ public Double availableCpus() { return this.availableCpus; } diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabase.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabase.java index d63fa3f672..b1ed4d091a 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabase.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesAutonomousContainerDatabase.java @@ -35,10 +35,6 @@ public final class GetAutonomousContainerDatabasesAutonomousContainerDatabase { * */ private String availabilityDomain; - /** - * @return Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - * - */ private Double availableCpus; /** * @return Backup options for the Autonomous Container Database. @@ -258,10 +254,6 @@ public String autonomousVmClusterId() { public String availabilityDomain() { return this.availabilityDomain; } - /** - * @return Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.<br> For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - * - */ public Double availableCpus() { return this.availableCpus; } diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesResult.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesResult.java index 3514080460..1dccd24748 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesResult.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousContainerDatabasesResult.java @@ -31,6 +31,7 @@ public final class GetAutonomousContainerDatabasesResult { private @Nullable String autonomousVmClusterId; /** * @return The availability domain of the Autonomous Container Database. + * <<<<<<< HEAD * */ private @Nullable String availabilityDomain; @@ -95,6 +96,7 @@ public Optional autonomousVmClusterId() { } /** * @return The availability domain of the Autonomous Container Database. + * <<<<<<< HEAD * */ public Optional availabilityDomain() { diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousDatabaseResult.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousDatabaseResult.java index 85125a58c6..3f44bb28aa 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousDatabaseResult.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetAutonomousDatabaseResult.java @@ -337,7 +337,7 @@ public final class GetAutonomousDatabaseResult { */ private Integer maxCpuCoreCount; /** - * @return The amount of memory (in GBs) enabled per OCPU or ECPU. + * @return The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster. * */ private Integer memoryPerOracleComputeUnitInGbs; @@ -1016,7 +1016,7 @@ public Integer maxCpuCoreCount() { return this.maxCpuCoreCount; } /** - * @return The amount of memory (in GBs) enabled per OCPU or ECPU. + * @return The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster. * */ public Integer memoryPerOracleComputeUnitInGbs() { diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionResult.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionResult.java index 94367d3af5..2b2b0447bb 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionResult.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionResult.java @@ -4,7 +4,9 @@ package com.pulumi.oci.Database.outputs; import com.pulumi.core.annotations.CustomType; +import java.lang.Object; import java.lang.String; +import java.util.Map; import java.util.Objects; @CustomType @@ -24,17 +26,37 @@ public final class GetDbNodeConsoleConnectionResult { * */ private String dbNodeId; + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + private Map definedTags; /** * @return The SSH public key fingerprint for the console connection. * */ private String fingerprint; + /** + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + private Map freeformTags; /** * @return The OCID of the console connection. * */ private String id; + /** + * @return Information about the current lifecycle state. + * + */ + private String lifecycleDetails; private String publicKey; + /** + * @return The SSH public key's fingerprint for the console connection service host. + * + */ + private String serviceHostKeyFingerprint; /** * @return The current state of the console connection. * @@ -63,6 +85,13 @@ public String connectionString() { public String dbNodeId() { return this.dbNodeId; } + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Map definedTags() { + return this.definedTags; + } /** * @return The SSH public key fingerprint for the console connection. * @@ -70,6 +99,13 @@ public String dbNodeId() { public String fingerprint() { return this.fingerprint; } + /** + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + public Map freeformTags() { + return this.freeformTags; + } /** * @return The OCID of the console connection. * @@ -77,9 +113,23 @@ public String fingerprint() { public String id() { return this.id; } + /** + * @return Information about the current lifecycle state. + * + */ + public String lifecycleDetails() { + return this.lifecycleDetails; + } public String publicKey() { return this.publicKey; } + /** + * @return The SSH public key's fingerprint for the console connection service host. + * + */ + public String serviceHostKeyFingerprint() { + return this.serviceHostKeyFingerprint; + } /** * @return The current state of the console connection. * @@ -100,9 +150,13 @@ public static final class Builder { private String compartmentId; private String connectionString; private String dbNodeId; + private Map definedTags; private String fingerprint; + private Map freeformTags; private String id; + private String lifecycleDetails; private String publicKey; + private String serviceHostKeyFingerprint; private String state; public Builder() {} public Builder(GetDbNodeConsoleConnectionResult defaults) { @@ -110,9 +164,13 @@ public Builder(GetDbNodeConsoleConnectionResult defaults) { this.compartmentId = defaults.compartmentId; this.connectionString = defaults.connectionString; this.dbNodeId = defaults.dbNodeId; + this.definedTags = defaults.definedTags; this.fingerprint = defaults.fingerprint; + this.freeformTags = defaults.freeformTags; this.id = defaults.id; + this.lifecycleDetails = defaults.lifecycleDetails; this.publicKey = defaults.publicKey; + this.serviceHostKeyFingerprint = defaults.serviceHostKeyFingerprint; this.state = defaults.state; } @@ -132,21 +190,41 @@ public Builder dbNodeId(String dbNodeId) { return this; } @CustomType.Setter + public Builder definedTags(Map definedTags) { + this.definedTags = Objects.requireNonNull(definedTags); + return this; + } + @CustomType.Setter public Builder fingerprint(String fingerprint) { this.fingerprint = Objects.requireNonNull(fingerprint); return this; } @CustomType.Setter + public Builder freeformTags(Map freeformTags) { + this.freeformTags = Objects.requireNonNull(freeformTags); + return this; + } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } @CustomType.Setter + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = Objects.requireNonNull(lifecycleDetails); + return this; + } + @CustomType.Setter public Builder publicKey(String publicKey) { this.publicKey = Objects.requireNonNull(publicKey); return this; } @CustomType.Setter + public Builder serviceHostKeyFingerprint(String serviceHostKeyFingerprint) { + this.serviceHostKeyFingerprint = Objects.requireNonNull(serviceHostKeyFingerprint); + return this; + } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; @@ -156,9 +234,13 @@ public GetDbNodeConsoleConnectionResult build() { o.compartmentId = compartmentId; o.connectionString = connectionString; o.dbNodeId = dbNodeId; + o.definedTags = definedTags; o.fingerprint = fingerprint; + o.freeformTags = freeformTags; o.id = id; + o.lifecycleDetails = lifecycleDetails; o.publicKey = publicKey; + o.serviceHostKeyFingerprint = serviceHostKeyFingerprint; o.state = state; return o; } diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionsConsoleConnection.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionsConsoleConnection.java index 30f0f606c3..3f6b17df7e 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionsConsoleConnection.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeConsoleConnectionsConsoleConnection.java @@ -4,7 +4,9 @@ package com.pulumi.oci.Database.outputs; import com.pulumi.core.annotations.CustomType; +import java.lang.Object; import java.lang.String; +import java.util.Map; import java.util.Objects; @CustomType @@ -24,17 +26,37 @@ public final class GetDbNodeConsoleConnectionsConsoleConnection { * */ private String dbNodeId; + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + private Map definedTags; /** * @return The SSH public key fingerprint for the console connection. * */ private String fingerprint; + /** + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + private Map freeformTags; /** * @return The OCID of the console connection. * */ private String id; + /** + * @return Information about the current lifecycle state. + * + */ + private String lifecycleDetails; private String publicKey; + /** + * @return The SSH public key's fingerprint for the console connection service host. + * + */ + private String serviceHostKeyFingerprint; /** * @return The current state of the console connection. * @@ -63,6 +85,13 @@ public String connectionString() { public String dbNodeId() { return this.dbNodeId; } + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Map definedTags() { + return this.definedTags; + } /** * @return The SSH public key fingerprint for the console connection. * @@ -70,6 +99,13 @@ public String dbNodeId() { public String fingerprint() { return this.fingerprint; } + /** + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + public Map freeformTags() { + return this.freeformTags; + } /** * @return The OCID of the console connection. * @@ -77,9 +113,23 @@ public String fingerprint() { public String id() { return this.id; } + /** + * @return Information about the current lifecycle state. + * + */ + public String lifecycleDetails() { + return this.lifecycleDetails; + } public String publicKey() { return this.publicKey; } + /** + * @return The SSH public key's fingerprint for the console connection service host. + * + */ + public String serviceHostKeyFingerprint() { + return this.serviceHostKeyFingerprint; + } /** * @return The current state of the console connection. * @@ -100,9 +150,13 @@ public static final class Builder { private String compartmentId; private String connectionString; private String dbNodeId; + private Map definedTags; private String fingerprint; + private Map freeformTags; private String id; + private String lifecycleDetails; private String publicKey; + private String serviceHostKeyFingerprint; private String state; public Builder() {} public Builder(GetDbNodeConsoleConnectionsConsoleConnection defaults) { @@ -110,9 +164,13 @@ public Builder(GetDbNodeConsoleConnectionsConsoleConnection defaults) { this.compartmentId = defaults.compartmentId; this.connectionString = defaults.connectionString; this.dbNodeId = defaults.dbNodeId; + this.definedTags = defaults.definedTags; this.fingerprint = defaults.fingerprint; + this.freeformTags = defaults.freeformTags; this.id = defaults.id; + this.lifecycleDetails = defaults.lifecycleDetails; this.publicKey = defaults.publicKey; + this.serviceHostKeyFingerprint = defaults.serviceHostKeyFingerprint; this.state = defaults.state; } @@ -132,21 +190,41 @@ public Builder dbNodeId(String dbNodeId) { return this; } @CustomType.Setter + public Builder definedTags(Map definedTags) { + this.definedTags = Objects.requireNonNull(definedTags); + return this; + } + @CustomType.Setter public Builder fingerprint(String fingerprint) { this.fingerprint = Objects.requireNonNull(fingerprint); return this; } @CustomType.Setter + public Builder freeformTags(Map freeformTags) { + this.freeformTags = Objects.requireNonNull(freeformTags); + return this; + } + @CustomType.Setter public Builder id(String id) { this.id = Objects.requireNonNull(id); return this; } @CustomType.Setter + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = Objects.requireNonNull(lifecycleDetails); + return this; + } + @CustomType.Setter public Builder publicKey(String publicKey) { this.publicKey = Objects.requireNonNull(publicKey); return this; } @CustomType.Setter + public Builder serviceHostKeyFingerprint(String serviceHostKeyFingerprint) { + this.serviceHostKeyFingerprint = Objects.requireNonNull(serviceHostKeyFingerprint); + return this; + } + @CustomType.Setter public Builder state(String state) { this.state = Objects.requireNonNull(state); return this; @@ -156,9 +234,13 @@ public GetDbNodeConsoleConnectionsConsoleConnection build() { o.compartmentId = compartmentId; o.connectionString = connectionString; o.dbNodeId = dbNodeId; + o.definedTags = definedTags; o.fingerprint = fingerprint; + o.freeformTags = freeformTags; o.id = id; + o.lifecycleDetails = lifecycleDetails; o.publicKey = publicKey; + o.serviceHostKeyFingerprint = serviceHostKeyFingerprint; o.state = state; return o; } diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeResult.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeResult.java index 7a784d6117..902b085a3b 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeResult.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodeResult.java @@ -5,7 +5,9 @@ import com.pulumi.core.annotations.CustomType; import java.lang.Integer; +import java.lang.Object; import java.lang.String; +import java.util.Map; import java.util.Objects; @CustomType @@ -51,13 +53,23 @@ public final class GetDbNodeResult { * */ private String dbSystemId; + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + private Map definedTags; /** * @return The name of the Fault Domain the instance is contained in. * */ private String faultDomain; /** - * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + private Map freeformTags; + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. * */ private String hostIpId; @@ -67,10 +79,15 @@ public final class GetDbNodeResult { */ private String hostname; /** - * @return The provider-assigned unique ID for this managed resource. + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. * */ private String id; + /** + * @return Information about the current lifecycle state. + * + */ + private String lifecycleDetails; /** * @return The type of database node maintenance. * @@ -177,6 +194,13 @@ public String dbServerId() { public String dbSystemId() { return this.dbSystemId; } + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Map definedTags() { + return this.definedTags; + } /** * @return The name of the Fault Domain the instance is contained in. * @@ -185,7 +209,14 @@ public String faultDomain() { return this.faultDomain; } /** - * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + public Map freeformTags() { + return this.freeformTags; + } + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. * */ public String hostIpId() { @@ -199,12 +230,19 @@ public String hostname() { return this.hostname; } /** - * @return The provider-assigned unique ID for this managed resource. + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. * */ public String id() { return this.id; } + /** + * @return Information about the current lifecycle state. + * + */ + public String lifecycleDetails() { + return this.lifecycleDetails; + } /** * @return The type of database node maintenance. * @@ -287,10 +325,13 @@ public static final class Builder { private Integer dbNodeStorageSizeInGbs; private String dbServerId; private String dbSystemId; + private Map definedTags; private String faultDomain; + private Map freeformTags; private String hostIpId; private String hostname; private String id; + private String lifecycleDetails; private String maintenanceType; private Integer memorySizeInGbs; private Integer softwareStorageSizeInGb; @@ -312,10 +353,13 @@ public Builder(GetDbNodeResult defaults) { this.dbNodeStorageSizeInGbs = defaults.dbNodeStorageSizeInGbs; this.dbServerId = defaults.dbServerId; this.dbSystemId = defaults.dbSystemId; + this.definedTags = defaults.definedTags; this.faultDomain = defaults.faultDomain; + this.freeformTags = defaults.freeformTags; this.hostIpId = defaults.hostIpId; this.hostname = defaults.hostname; this.id = defaults.id; + this.lifecycleDetails = defaults.lifecycleDetails; this.maintenanceType = defaults.maintenanceType; this.memorySizeInGbs = defaults.memorySizeInGbs; this.softwareStorageSizeInGb = defaults.softwareStorageSizeInGb; @@ -373,11 +417,21 @@ public Builder dbSystemId(String dbSystemId) { return this; } @CustomType.Setter + public Builder definedTags(Map definedTags) { + this.definedTags = Objects.requireNonNull(definedTags); + return this; + } + @CustomType.Setter public Builder faultDomain(String faultDomain) { this.faultDomain = Objects.requireNonNull(faultDomain); return this; } @CustomType.Setter + public Builder freeformTags(Map freeformTags) { + this.freeformTags = Objects.requireNonNull(freeformTags); + return this; + } + @CustomType.Setter public Builder hostIpId(String hostIpId) { this.hostIpId = Objects.requireNonNull(hostIpId); return this; @@ -393,6 +447,11 @@ public Builder id(String id) { return this; } @CustomType.Setter + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = Objects.requireNonNull(lifecycleDetails); + return this; + } + @CustomType.Setter public Builder maintenanceType(String maintenanceType) { this.maintenanceType = Objects.requireNonNull(maintenanceType); return this; @@ -448,10 +507,13 @@ public GetDbNodeResult build() { o.dbNodeStorageSizeInGbs = dbNodeStorageSizeInGbs; o.dbServerId = dbServerId; o.dbSystemId = dbSystemId; + o.definedTags = definedTags; o.faultDomain = faultDomain; + o.freeformTags = freeformTags; o.hostIpId = hostIpId; o.hostname = hostname; o.id = id; + o.lifecycleDetails = lifecycleDetails; o.maintenanceType = maintenanceType; o.memorySizeInGbs = memorySizeInGbs; o.softwareStorageSizeInGb = softwareStorageSizeInGb; diff --git a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodesDbNode.java b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodesDbNode.java index 3d3be5bf45..c772f91f8b 100644 --- a/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodesDbNode.java +++ b/sdk/java/src/main/java/com/pulumi/oci/Database/outputs/GetDbNodesDbNode.java @@ -5,7 +5,9 @@ import com.pulumi.core.annotations.CustomType; import java.lang.Integer; +import java.lang.Object; import java.lang.String; +import java.util.Map; import java.util.Objects; @CustomType @@ -51,13 +53,23 @@ public final class GetDbNodesDbNode { * */ private String dbSystemId; + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + private Map definedTags; /** * @return The name of the Fault Domain the instance is contained in. * */ private String faultDomain; /** - * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + private Map freeformTags; + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. * */ private String hostIpId; @@ -71,6 +83,11 @@ public final class GetDbNodesDbNode { * */ private String id; + /** + * @return Information about the current lifecycle state. + * + */ + private String lifecycleDetails; /** * @return The type of database node maintenance. * @@ -177,6 +194,13 @@ public String dbServerId() { public String dbSystemId() { return this.dbSystemId; } + /** + * @return Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + */ + public Map definedTags() { + return this.definedTags; + } /** * @return The name of the Fault Domain the instance is contained in. * @@ -185,7 +209,14 @@ public String faultDomain() { return this.faultDomain; } /** - * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * @return 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + */ + public Map freeformTags() { + return this.freeformTags; + } + /** + * @return The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. * */ public String hostIpId() { @@ -205,6 +236,13 @@ public String hostname() { public String id() { return this.id; } + /** + * @return Information about the current lifecycle state. + * + */ + public String lifecycleDetails() { + return this.lifecycleDetails; + } /** * @return The type of database node maintenance. * @@ -287,10 +325,13 @@ public static final class Builder { private Integer dbNodeStorageSizeInGbs; private String dbServerId; private String dbSystemId; + private Map definedTags; private String faultDomain; + private Map freeformTags; private String hostIpId; private String hostname; private String id; + private String lifecycleDetails; private String maintenanceType; private Integer memorySizeInGbs; private Integer softwareStorageSizeInGb; @@ -312,10 +353,13 @@ public Builder(GetDbNodesDbNode defaults) { this.dbNodeStorageSizeInGbs = defaults.dbNodeStorageSizeInGbs; this.dbServerId = defaults.dbServerId; this.dbSystemId = defaults.dbSystemId; + this.definedTags = defaults.definedTags; this.faultDomain = defaults.faultDomain; + this.freeformTags = defaults.freeformTags; this.hostIpId = defaults.hostIpId; this.hostname = defaults.hostname; this.id = defaults.id; + this.lifecycleDetails = defaults.lifecycleDetails; this.maintenanceType = defaults.maintenanceType; this.memorySizeInGbs = defaults.memorySizeInGbs; this.softwareStorageSizeInGb = defaults.softwareStorageSizeInGb; @@ -373,11 +417,21 @@ public Builder dbSystemId(String dbSystemId) { return this; } @CustomType.Setter + public Builder definedTags(Map definedTags) { + this.definedTags = Objects.requireNonNull(definedTags); + return this; + } + @CustomType.Setter public Builder faultDomain(String faultDomain) { this.faultDomain = Objects.requireNonNull(faultDomain); return this; } @CustomType.Setter + public Builder freeformTags(Map freeformTags) { + this.freeformTags = Objects.requireNonNull(freeformTags); + return this; + } + @CustomType.Setter public Builder hostIpId(String hostIpId) { this.hostIpId = Objects.requireNonNull(hostIpId); return this; @@ -393,6 +447,11 @@ public Builder id(String id) { return this; } @CustomType.Setter + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = Objects.requireNonNull(lifecycleDetails); + return this; + } + @CustomType.Setter public Builder maintenanceType(String maintenanceType) { this.maintenanceType = Objects.requireNonNull(maintenanceType); return this; @@ -448,10 +507,13 @@ public GetDbNodesDbNode build() { o.dbNodeStorageSizeInGbs = dbNodeStorageSizeInGbs; o.dbServerId = dbServerId; o.dbSystemId = dbSystemId; + o.definedTags = definedTags; o.faultDomain = faultDomain; + o.freeformTags = freeformTags; o.hostIpId = hostIpId; o.hostname = hostname; o.id = id; + o.lifecycleDetails = lifecycleDetails; o.maintenanceType = maintenanceType; o.memorySizeInGbs = memorySizeInGbs; o.softwareStorageSizeInGb = softwareStorageSizeInGb; diff --git a/sdk/nodejs/database/autonomousContainerDatabase.ts b/sdk/nodejs/database/autonomousContainerDatabase.ts index 7b2ae73d85..ba43cf051c 100644 --- a/sdk/nodejs/database/autonomousContainerDatabase.ts +++ b/sdk/nodejs/database/autonomousContainerDatabase.ts @@ -201,12 +201,9 @@ export class AutonomousContainerDatabase extends pulumi.CustomResource { /** * For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. */ public /*out*/ readonly reclaimableCpus!: pulumi.Output; - /** - * The number of CPUs reserved in an Autonomous Container Database. - */ public /*out*/ readonly reservedCpus!: pulumi.Output; /** * The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. @@ -241,7 +238,7 @@ export class AutonomousContainerDatabase extends pulumi.CustomResource { */ public /*out*/ readonly timeSnapshotStandbyRevert!: pulumi.Output; /** - * The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. */ public /*out*/ readonly totalCpus!: pulumi.Output; /** @@ -542,12 +539,9 @@ export interface AutonomousContainerDatabaseState { /** * For Autonomous Databases on Dedicated Exadata Infrastructure: * * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. */ reclaimableCpus?: pulumi.Input; - /** - * The number of CPUs reserved in an Autonomous Container Database. - */ reservedCpus?: pulumi.Input; /** * The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. @@ -582,7 +576,7 @@ export interface AutonomousContainerDatabaseState { */ timeSnapshotStandbyRevert?: pulumi.Input; /** - * The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. */ totalCpus?: pulumi.Input; /** diff --git a/sdk/nodejs/database/dbNode.ts b/sdk/nodejs/database/dbNode.ts new file mode 100644 index 0000000000..d7aedda107 --- /dev/null +++ b/sdk/nodejs/database/dbNode.ts @@ -0,0 +1,347 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * This resource provides the Db Node resource in Oracle Cloud Infrastructure Database service. + * + * Updates the specified database node. + * + * ## Import + * + * DbNodes can be imported using the `id`, e.g. + * + * ```sh + * $ pulumi import oci:Database/dbNode:DbNode test_db_node "id" + * ``` + */ +export class DbNode extends pulumi.CustomResource { + /** + * Get an existing DbNode resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: DbNodeState, opts?: pulumi.CustomResourceOptions): DbNode { + return new DbNode(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'oci:Database/dbNode:DbNode'; + + /** + * Returns true if the given object is an instance of DbNode. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is DbNode { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === DbNode.__pulumiType; + } + + /** + * Additional information about the planned maintenance. + */ + public /*out*/ readonly additionalDetails!: pulumi.Output; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + */ + public /*out*/ readonly backupIpId!: pulumi.Output; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + */ + public /*out*/ readonly backupVnic2id!: pulumi.Output; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + */ + public /*out*/ readonly backupVnicId!: pulumi.Output; + /** + * The number of CPU cores enabled on the Db node. + */ + public /*out*/ readonly cpuCoreCount!: pulumi.Output; + /** + * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public readonly dbNodeId!: pulumi.Output; + /** + * The allocated local node storage in GBs on the Db node. + */ + public /*out*/ readonly dbNodeStorageSizeInGbs!: pulumi.Output; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + */ + public /*out*/ readonly dbServerId!: pulumi.Output; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + */ + public /*out*/ readonly dbSystemId!: pulumi.Output; + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + public readonly definedTags!: pulumi.Output<{[key: string]: any}>; + /** + * The name of the Fault Domain the instance is contained in. + */ + public /*out*/ readonly faultDomain!: pulumi.Output; + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + */ + public readonly freeformTags!: pulumi.Output<{[key: string]: any}>; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + */ + public /*out*/ readonly hostIpId!: pulumi.Output; + /** + * The host name for the database node. + */ + public /*out*/ readonly hostname!: pulumi.Output; + /** + * Information about the current lifecycle state. + */ + public /*out*/ readonly lifecycleDetails!: pulumi.Output; + /** + * The type of database node maintenance. + */ + public /*out*/ readonly maintenanceType!: pulumi.Output; + /** + * The allocated memory in GBs on the Db node. + */ + public /*out*/ readonly memorySizeInGbs!: pulumi.Output; + /** + * The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + */ + public /*out*/ readonly softwareStorageSizeInGb!: pulumi.Output; + /** + * The current state of the database node. + */ + public /*out*/ readonly state!: pulumi.Output; + /** + * The date and time that the database node was created. + */ + public /*out*/ readonly timeCreated!: pulumi.Output; + /** + * End date and time of maintenance window. + */ + public /*out*/ readonly timeMaintenanceWindowEnd!: pulumi.Output; + /** + * Start date and time of maintenance window. + */ + public /*out*/ readonly timeMaintenanceWindowStart!: pulumi.Output; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + */ + public /*out*/ readonly vnic2id!: pulumi.Output; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + */ + public /*out*/ readonly vnicId!: pulumi.Output; + + /** + * Create a DbNode resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: DbNodeArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: DbNodeArgs | DbNodeState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as DbNodeState | undefined; + resourceInputs["additionalDetails"] = state ? state.additionalDetails : undefined; + resourceInputs["backupIpId"] = state ? state.backupIpId : undefined; + resourceInputs["backupVnic2id"] = state ? state.backupVnic2id : undefined; + resourceInputs["backupVnicId"] = state ? state.backupVnicId : undefined; + resourceInputs["cpuCoreCount"] = state ? state.cpuCoreCount : undefined; + resourceInputs["dbNodeId"] = state ? state.dbNodeId : undefined; + resourceInputs["dbNodeStorageSizeInGbs"] = state ? state.dbNodeStorageSizeInGbs : undefined; + resourceInputs["dbServerId"] = state ? state.dbServerId : undefined; + resourceInputs["dbSystemId"] = state ? state.dbSystemId : undefined; + resourceInputs["definedTags"] = state ? state.definedTags : undefined; + resourceInputs["faultDomain"] = state ? state.faultDomain : undefined; + resourceInputs["freeformTags"] = state ? state.freeformTags : undefined; + resourceInputs["hostIpId"] = state ? state.hostIpId : undefined; + resourceInputs["hostname"] = state ? state.hostname : undefined; + resourceInputs["lifecycleDetails"] = state ? state.lifecycleDetails : undefined; + resourceInputs["maintenanceType"] = state ? state.maintenanceType : undefined; + resourceInputs["memorySizeInGbs"] = state ? state.memorySizeInGbs : undefined; + resourceInputs["softwareStorageSizeInGb"] = state ? state.softwareStorageSizeInGb : undefined; + resourceInputs["state"] = state ? state.state : undefined; + resourceInputs["timeCreated"] = state ? state.timeCreated : undefined; + resourceInputs["timeMaintenanceWindowEnd"] = state ? state.timeMaintenanceWindowEnd : undefined; + resourceInputs["timeMaintenanceWindowStart"] = state ? state.timeMaintenanceWindowStart : undefined; + resourceInputs["vnic2id"] = state ? state.vnic2id : undefined; + resourceInputs["vnicId"] = state ? state.vnicId : undefined; + } else { + const args = argsOrState as DbNodeArgs | undefined; + if ((!args || args.dbNodeId === undefined) && !opts.urn) { + throw new Error("Missing required property 'dbNodeId'"); + } + resourceInputs["dbNodeId"] = args ? args.dbNodeId : undefined; + resourceInputs["definedTags"] = args ? args.definedTags : undefined; + resourceInputs["freeformTags"] = args ? args.freeformTags : undefined; + resourceInputs["additionalDetails"] = undefined /*out*/; + resourceInputs["backupIpId"] = undefined /*out*/; + resourceInputs["backupVnic2id"] = undefined /*out*/; + resourceInputs["backupVnicId"] = undefined /*out*/; + resourceInputs["cpuCoreCount"] = undefined /*out*/; + resourceInputs["dbNodeStorageSizeInGbs"] = undefined /*out*/; + resourceInputs["dbServerId"] = undefined /*out*/; + resourceInputs["dbSystemId"] = undefined /*out*/; + resourceInputs["faultDomain"] = undefined /*out*/; + resourceInputs["hostIpId"] = undefined /*out*/; + resourceInputs["hostname"] = undefined /*out*/; + resourceInputs["lifecycleDetails"] = undefined /*out*/; + resourceInputs["maintenanceType"] = undefined /*out*/; + resourceInputs["memorySizeInGbs"] = undefined /*out*/; + resourceInputs["softwareStorageSizeInGb"] = undefined /*out*/; + resourceInputs["state"] = undefined /*out*/; + resourceInputs["timeCreated"] = undefined /*out*/; + resourceInputs["timeMaintenanceWindowEnd"] = undefined /*out*/; + resourceInputs["timeMaintenanceWindowStart"] = undefined /*out*/; + resourceInputs["vnic2id"] = undefined /*out*/; + resourceInputs["vnicId"] = undefined /*out*/; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(DbNode.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering DbNode resources. + */ +export interface DbNodeState { + /** + * Additional information about the planned maintenance. + */ + additionalDetails?: pulumi.Input; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + */ + backupIpId?: pulumi.Input; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + */ + backupVnic2id?: pulumi.Input; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + */ + backupVnicId?: pulumi.Input; + /** + * The number of CPU cores enabled on the Db node. + */ + cpuCoreCount?: pulumi.Input; + /** + * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + dbNodeId?: pulumi.Input; + /** + * The allocated local node storage in GBs on the Db node. + */ + dbNodeStorageSizeInGbs?: pulumi.Input; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + */ + dbServerId?: pulumi.Input; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + */ + dbSystemId?: pulumi.Input; + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + definedTags?: pulumi.Input<{[key: string]: any}>; + /** + * The name of the Fault Domain the instance is contained in. + */ + faultDomain?: pulumi.Input; + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + */ + freeformTags?: pulumi.Input<{[key: string]: any}>; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + */ + hostIpId?: pulumi.Input; + /** + * The host name for the database node. + */ + hostname?: pulumi.Input; + /** + * Information about the current lifecycle state. + */ + lifecycleDetails?: pulumi.Input; + /** + * The type of database node maintenance. + */ + maintenanceType?: pulumi.Input; + /** + * The allocated memory in GBs on the Db node. + */ + memorySizeInGbs?: pulumi.Input; + /** + * The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + */ + softwareStorageSizeInGb?: pulumi.Input; + /** + * The current state of the database node. + */ + state?: pulumi.Input; + /** + * The date and time that the database node was created. + */ + timeCreated?: pulumi.Input; + /** + * End date and time of maintenance window. + */ + timeMaintenanceWindowEnd?: pulumi.Input; + /** + * Start date and time of maintenance window. + */ + timeMaintenanceWindowStart?: pulumi.Input; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + */ + vnic2id?: pulumi.Input; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + */ + vnicId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a DbNode resource. + */ +export interface DbNodeArgs { + /** + * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + dbNodeId: pulumi.Input; + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + definedTags?: pulumi.Input<{[key: string]: any}>; + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + * + * + * ** IMPORTANT ** + * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + */ + freeformTags?: pulumi.Input<{[key: string]: any}>; +} diff --git a/sdk/nodejs/database/dbNodeConsoleConnection.ts b/sdk/nodejs/database/dbNodeConsoleConnection.ts index b242b02d23..d36db9d471 100644 --- a/sdk/nodejs/database/dbNodeConsoleConnection.ts +++ b/sdk/nodejs/database/dbNodeConsoleConnection.ts @@ -20,6 +20,10 @@ import * as utilities from "../utilities"; * const testDbNodeConsoleConnection = new oci.database.DbNodeConsoleConnection("testDbNodeConsoleConnection", { * dbNodeId: oci_database_db_node.test_db_node.id, * publicKey: _var.db_node_console_connection_public_key, + * definedTags: _var.db_node_console_connection_defined_tags, + * freeformTags: { + * Department: "Finance", + * }, * }); * ``` * @@ -71,10 +75,22 @@ export class DbNodeConsoleConnection extends pulumi.CustomResource { * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ public readonly dbNodeId!: pulumi.Output; + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + public readonly definedTags!: pulumi.Output<{[key: string]: any}>; /** * The SSH public key fingerprint for the console connection. */ public /*out*/ readonly fingerprint!: pulumi.Output; + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + */ + public readonly freeformTags!: pulumi.Output<{[key: string]: any}>; + /** + * Information about the current lifecycle state. + */ + public /*out*/ readonly lifecycleDetails!: pulumi.Output; /** * The SSH public key used to authenticate the console connection. * @@ -83,6 +99,10 @@ export class DbNodeConsoleConnection extends pulumi.CustomResource { * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ public readonly publicKey!: pulumi.Output; + /** + * The SSH public key's fingerprint for the console connection service host. + */ + public /*out*/ readonly serviceHostKeyFingerprint!: pulumi.Output; /** * The current state of the console connection. */ @@ -104,8 +124,12 @@ export class DbNodeConsoleConnection extends pulumi.CustomResource { resourceInputs["compartmentId"] = state ? state.compartmentId : undefined; resourceInputs["connectionString"] = state ? state.connectionString : undefined; resourceInputs["dbNodeId"] = state ? state.dbNodeId : undefined; + resourceInputs["definedTags"] = state ? state.definedTags : undefined; resourceInputs["fingerprint"] = state ? state.fingerprint : undefined; + resourceInputs["freeformTags"] = state ? state.freeformTags : undefined; + resourceInputs["lifecycleDetails"] = state ? state.lifecycleDetails : undefined; resourceInputs["publicKey"] = state ? state.publicKey : undefined; + resourceInputs["serviceHostKeyFingerprint"] = state ? state.serviceHostKeyFingerprint : undefined; resourceInputs["state"] = state ? state.state : undefined; } else { const args = argsOrState as DbNodeConsoleConnectionArgs | undefined; @@ -116,10 +140,14 @@ export class DbNodeConsoleConnection extends pulumi.CustomResource { throw new Error("Missing required property 'publicKey'"); } resourceInputs["dbNodeId"] = args ? args.dbNodeId : undefined; + resourceInputs["definedTags"] = args ? args.definedTags : undefined; + resourceInputs["freeformTags"] = args ? args.freeformTags : undefined; resourceInputs["publicKey"] = args ? args.publicKey : undefined; resourceInputs["compartmentId"] = undefined /*out*/; resourceInputs["connectionString"] = undefined /*out*/; resourceInputs["fingerprint"] = undefined /*out*/; + resourceInputs["lifecycleDetails"] = undefined /*out*/; + resourceInputs["serviceHostKeyFingerprint"] = undefined /*out*/; resourceInputs["state"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -143,10 +171,22 @@ export interface DbNodeConsoleConnectionState { * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ dbNodeId?: pulumi.Input; + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + definedTags?: pulumi.Input<{[key: string]: any}>; /** * The SSH public key fingerprint for the console connection. */ fingerprint?: pulumi.Input; + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + */ + freeformTags?: pulumi.Input<{[key: string]: any}>; + /** + * Information about the current lifecycle state. + */ + lifecycleDetails?: pulumi.Input; /** * The SSH public key used to authenticate the console connection. * @@ -155,6 +195,10 @@ export interface DbNodeConsoleConnectionState { * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ publicKey?: pulumi.Input; + /** + * The SSH public key's fingerprint for the console connection service host. + */ + serviceHostKeyFingerprint?: pulumi.Input; /** * The current state of the console connection. */ @@ -169,6 +213,14 @@ export interface DbNodeConsoleConnectionArgs { * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ dbNodeId: pulumi.Input; + /** + * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + definedTags?: pulumi.Input<{[key: string]: any}>; + /** + * (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + */ + freeformTags?: pulumi.Input<{[key: string]: any}>; /** * The SSH public key used to authenticate the console connection. * diff --git a/sdk/nodejs/database/getAutonomousContainerDatabase.ts b/sdk/nodejs/database/getAutonomousContainerDatabase.ts index a37dd3688b..4968e6af8d 100644 --- a/sdk/nodejs/database/getAutonomousContainerDatabase.ts +++ b/sdk/nodejs/database/getAutonomousContainerDatabase.ts @@ -55,11 +55,9 @@ export interface GetAutonomousContainerDatabaseResult { readonly autonomousVmClusterId: string; /** * The availability domain of the Autonomous Container Database. + * <<<<<<< HEAD */ readonly availabilityDomain: string; - /** - * Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - */ readonly availableCpus: number; /** * Backup options for the Autonomous Container Database. diff --git a/sdk/nodejs/database/getAutonomousContainerDatabases.ts b/sdk/nodejs/database/getAutonomousContainerDatabases.ts index ddcc30ca9b..2f44de9209 100644 --- a/sdk/nodejs/database/getAutonomousContainerDatabases.ts +++ b/sdk/nodejs/database/getAutonomousContainerDatabases.ts @@ -108,6 +108,7 @@ export interface GetAutonomousContainerDatabasesResult { readonly autonomousVmClusterId?: string; /** * The availability domain of the Autonomous Container Database. + * <<<<<<< HEAD */ readonly availabilityDomain?: string; /** diff --git a/sdk/nodejs/database/getAutonomousDatabase.ts b/sdk/nodejs/database/getAutonomousDatabase.ts index c36d8cb2fa..98ad93222e 100644 --- a/sdk/nodejs/database/getAutonomousDatabase.ts +++ b/sdk/nodejs/database/getAutonomousDatabase.ts @@ -295,7 +295,7 @@ export interface GetAutonomousDatabaseResult { */ readonly maxCpuCoreCount: number; /** - * The amount of memory (in GBs) enabled per OCPU or ECPU. + * The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster. */ readonly memoryPerOracleComputeUnitInGbs: number; /** diff --git a/sdk/nodejs/database/getDbNode.ts b/sdk/nodejs/database/getDbNode.ts index 721cb309c5..0efd51d73b 100644 --- a/sdk/nodejs/database/getDbNode.ts +++ b/sdk/nodejs/database/getDbNode.ts @@ -75,12 +75,20 @@ export interface GetDbNodeResult { * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. */ readonly dbSystemId: string; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + readonly definedTags: {[key: string]: any}; /** * The name of the Fault Domain the instance is contained in. */ readonly faultDomain: string; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + */ + readonly freeformTags: {[key: string]: any}; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. */ readonly hostIpId: string; /** @@ -88,9 +96,13 @@ export interface GetDbNodeResult { */ readonly hostname: string; /** - * The provider-assigned unique ID for this managed resource. + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. */ readonly id: string; + /** + * Information about the current lifecycle state. + */ + readonly lifecycleDetails: string; /** * The type of database node maintenance. */ diff --git a/sdk/nodejs/database/getDbNodeConsoleConnection.ts b/sdk/nodejs/database/getDbNodeConsoleConnection.ts index 9324ccb600..b7c9ec55b9 100644 --- a/sdk/nodejs/database/getDbNodeConsoleConnection.ts +++ b/sdk/nodejs/database/getDbNodeConsoleConnection.ts @@ -60,15 +60,31 @@ export interface GetDbNodeConsoleConnectionResult { * The OCID of the database node. */ readonly dbNodeId: string; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + readonly definedTags: {[key: string]: any}; /** * The SSH public key fingerprint for the console connection. */ readonly fingerprint: string; + /** + * 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + */ + readonly freeformTags: {[key: string]: any}; /** * The OCID of the console connection. */ readonly id: string; + /** + * Information about the current lifecycle state. + */ + readonly lifecycleDetails: string; readonly publicKey: string; + /** + * The SSH public key's fingerprint for the console connection service host. + */ + readonly serviceHostKeyFingerprint: string; /** * The current state of the console connection. */ diff --git a/sdk/nodejs/database/index.ts b/sdk/nodejs/database/index.ts index 40c124e366..e18a45574c 100644 --- a/sdk/nodejs/database/index.ts +++ b/sdk/nodejs/database/index.ts @@ -140,6 +140,11 @@ export type DbHome = import("./dbHome").DbHome; export const DbHome: typeof import("./dbHome").DbHome = null as any; utilities.lazyLoad(exports, ["DbHome"], () => require("./dbHome")); +export { DbNodeArgs, DbNodeState } from "./dbNode"; +export type DbNode = import("./dbNode").DbNode; +export const DbNode: typeof import("./dbNode").DbNode = null as any; +utilities.lazyLoad(exports, ["DbNode"], () => require("./dbNode")); + export { DbNodeConsoleConnectionArgs, DbNodeConsoleConnectionState } from "./dbNodeConsoleConnection"; export type DbNodeConsoleConnection = import("./dbNodeConsoleConnection").DbNodeConsoleConnection; export const DbNodeConsoleConnection: typeof import("./dbNodeConsoleConnection").DbNodeConsoleConnection = null as any; @@ -928,6 +933,8 @@ const _module = { return new DatabaseUpgrade(name, undefined, { urn }) case "oci:Database/dbHome:DbHome": return new DbHome(name, undefined, { urn }) + case "oci:Database/dbNode:DbNode": + return new DbNode(name, undefined, { urn }) case "oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection": return new DbNodeConsoleConnection(name, undefined, { urn }) case "oci:Database/dbSystem:DbSystem": @@ -1020,6 +1027,7 @@ pulumi.runtime.registerResourceModule("oci", "Database/database", _module) pulumi.runtime.registerResourceModule("oci", "Database/databaseSoftwareImage", _module) pulumi.runtime.registerResourceModule("oci", "Database/databaseUpgrade", _module) pulumi.runtime.registerResourceModule("oci", "Database/dbHome", _module) +pulumi.runtime.registerResourceModule("oci", "Database/dbNode", _module) pulumi.runtime.registerResourceModule("oci", "Database/dbNodeConsoleConnection", _module) pulumi.runtime.registerResourceModule("oci", "Database/dbSystem", _module) pulumi.runtime.registerResourceModule("oci", "Database/dbSystemsUpgrade", _module) diff --git a/sdk/nodejs/datacatalog/dataAsset.ts b/sdk/nodejs/datacatalog/dataAsset.ts index f5cdf3567e..ba19191956 100644 --- a/sdk/nodejs/datacatalog/dataAsset.ts +++ b/sdk/nodejs/datacatalog/dataAsset.ts @@ -84,6 +84,10 @@ export class DataAsset extends pulumi.CustomResource { * Unique data asset key that is immutable. */ public /*out*/ readonly key!: pulumi.Output; + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + */ + public /*out*/ readonly lifecycleDetails!: pulumi.Output; /** * A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` */ @@ -140,6 +144,7 @@ export class DataAsset extends pulumi.CustomResource { resourceInputs["displayName"] = state ? state.displayName : undefined; resourceInputs["externalKey"] = state ? state.externalKey : undefined; resourceInputs["key"] = state ? state.key : undefined; + resourceInputs["lifecycleDetails"] = state ? state.lifecycleDetails : undefined; resourceInputs["properties"] = state ? state.properties : undefined; resourceInputs["state"] = state ? state.state : undefined; resourceInputs["timeCreated"] = state ? state.timeCreated : undefined; @@ -167,6 +172,7 @@ export class DataAsset extends pulumi.CustomResource { resourceInputs["createdById"] = undefined /*out*/; resourceInputs["externalKey"] = undefined /*out*/; resourceInputs["key"] = undefined /*out*/; + resourceInputs["lifecycleDetails"] = undefined /*out*/; resourceInputs["state"] = undefined /*out*/; resourceInputs["timeCreated"] = undefined /*out*/; resourceInputs["timeHarvested"] = undefined /*out*/; @@ -207,6 +213,10 @@ export interface DataAssetState { * Unique data asset key that is immutable. */ key?: pulumi.Input; + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + */ + lifecycleDetails?: pulumi.Input; /** * A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` */ diff --git a/sdk/nodejs/datacatalog/getDataAsset.ts b/sdk/nodejs/datacatalog/getDataAsset.ts index fb28c3fa39..eaf0c7a04b 100644 --- a/sdk/nodejs/datacatalog/getDataAsset.ts +++ b/sdk/nodejs/datacatalog/getDataAsset.ts @@ -81,6 +81,10 @@ export interface GetDataAssetResult { * Unique data asset key that is immutable. */ readonly key: string; + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + */ + readonly lifecycleDetails: string; /** * A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` */ diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 579dc29d4b..5c969cbee6 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -569,6 +569,7 @@ "database/databaseSoftwareImage.ts", "database/databaseUpgrade.ts", "database/dbHome.ts", + "database/dbNode.ts", "database/dbNodeConsoleConnection.ts", "database/dbSystem.ts", "database/dbSystemsUpgrade.ts", diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index bb33cbb99d..bb0978a64c 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -49358,6 +49358,10 @@ export namespace DataCatalog { * Unique data asset key that is immutable. */ key: string; + /** + * A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + */ + lifecycleDetails: string; /** * A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` */ @@ -65694,9 +65698,6 @@ export namespace Database { * A filter to return only resources that match the given availability domain exactly. */ availabilityDomain: string; - /** - * Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - */ availableCpus: number; /** * Backup options for the Autonomous Container Database. @@ -71684,15 +71685,31 @@ export namespace Database { * The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ dbNodeId: string; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + definedTags: {[key: string]: any}; /** * The SSH public key fingerprint for the console connection. */ fingerprint: string; + /** + * 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + */ + freeformTags: {[key: string]: any}; /** * The OCID of the console connection. */ id: string; + /** + * Information about the current lifecycle state. + */ + lifecycleDetails: string; publicKey: string; + /** + * The SSH public key's fingerprint for the console connection service host. + */ + serviceHostKeyFingerprint: string; /** * The current state of the console connection. */ @@ -71739,12 +71756,20 @@ export namespace Database { * The DB system [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. */ dbSystemId: string; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + */ + definedTags: {[key: string]: any}; /** * The name of the Fault Domain the instance is contained in. */ faultDomain: string; /** - * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + * 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + */ + freeformTags: {[key: string]: any}; + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. */ hostIpId: string; /** @@ -71755,6 +71780,10 @@ export namespace Database { * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. */ id: string; + /** + * Information about the current lifecycle state. + */ + lifecycleDetails: string; /** * The type of database node maintenance. */ diff --git a/sdk/python/pulumi_oci/__init__.py b/sdk/python/pulumi_oci/__init__.py index d2a693d0ec..464aa79658 100644 --- a/sdk/python/pulumi_oci/__init__.py +++ b/sdk/python/pulumi_oci/__init__.py @@ -2239,6 +2239,14 @@ "oci:Database/dbHome:DbHome": "DbHome" } }, + { + "pkg": "oci", + "mod": "Database/dbNode", + "fqn": "pulumi_oci.database", + "classes": { + "oci:Database/dbNode:DbNode": "DbNode" + } + }, { "pkg": "oci", "mod": "Database/dbNodeConsoleConnection", diff --git a/sdk/python/pulumi_oci/database/__init__.py b/sdk/python/pulumi_oci/database/__init__.py index 0889d5dac0..95b6b27a3e 100644 --- a/sdk/python/pulumi_oci/database/__init__.py +++ b/sdk/python/pulumi_oci/database/__init__.py @@ -32,6 +32,7 @@ from .database_software_image import * from .database_upgrade import * from .db_home import * +from .db_node import * from .db_node_console_connection import * from .db_system import * from .db_systems_upgrade import * diff --git a/sdk/python/pulumi_oci/database/autonomous_container_database.py b/sdk/python/pulumi_oci/database/autonomous_container_database.py index 54bf4f0ff8..599fa65087 100644 --- a/sdk/python/pulumi_oci/database/autonomous_container_database.py +++ b/sdk/python/pulumi_oci/database/autonomous_container_database.py @@ -591,8 +591,7 @@ def __init__(__self__, *, :param pulumi.Input[float] provisioned_cpus: The number of CPUs provisioned in an Autonomous Container Database. :param pulumi.Input[float] reclaimable_cpus: For Autonomous Databases on Dedicated Exadata Infrastructure: * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - :param pulumi.Input[float] reserved_cpus: The number of CPUs reserved in an Autonomous Container Database. + * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. :param pulumi.Input[str] role: The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. :param pulumi.Input[bool] rotate_key_trigger: (Updatable) An optional property when flipped triggers rotation of KMS key. It is only applicable on dedicated container databases i.e. where `cloud_autonomous_vm_cluster_id` is set. :param pulumi.Input[str] service_level_agreement_type: The service level agreement type of the Autonomous Container Database. The default is STANDARD. For an autonomous dataguard Autonomous Container Database, the specified Autonomous Exadata Infrastructure must be associated with a remote Autonomous Exadata Infrastructure. @@ -604,7 +603,7 @@ def __init__(__self__, *, :param pulumi.Input[str] state: The current state of the Autonomous Container Database. :param pulumi.Input[str] time_created: The date and time the Autonomous Container Database was created. :param pulumi.Input[str] time_snapshot_standby_revert: The date and time the Autonomous Container Database will be reverted to Standby from Snapshot Standby. - :param pulumi.Input[int] total_cpus: The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + :param pulumi.Input[int] total_cpus: The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. :param pulumi.Input[str] vault_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). :param pulumi.Input[str] version_preference: (Updatable) The next maintenance version preference. """ @@ -1190,7 +1189,7 @@ def reclaimable_cpus(self) -> Optional[pulumi.Input[float]]: """ For Autonomous Databases on Dedicated Exadata Infrastructure: * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. """ return pulumi.get(self, "reclaimable_cpus") @@ -1201,9 +1200,6 @@ def reclaimable_cpus(self, value: Optional[pulumi.Input[float]]): @property @pulumi.getter(name="reservedCpus") def reserved_cpus(self) -> Optional[pulumi.Input[float]]: - """ - The number of CPUs reserved in an Autonomous Container Database. - """ return pulumi.get(self, "reserved_cpus") @reserved_cpus.setter @@ -1302,7 +1298,7 @@ def time_snapshot_standby_revert(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="totalCpus") def total_cpus(self) -> Optional[pulumi.Input[int]]: """ - The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. """ return pulumi.get(self, "total_cpus") @@ -1655,8 +1651,7 @@ def get(resource_name: str, :param pulumi.Input[float] provisioned_cpus: The number of CPUs provisioned in an Autonomous Container Database. :param pulumi.Input[float] reclaimable_cpus: For Autonomous Databases on Dedicated Exadata Infrastructure: * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - :param pulumi.Input[float] reserved_cpus: The number of CPUs reserved in an Autonomous Container Database. + * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. :param pulumi.Input[str] role: The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. :param pulumi.Input[bool] rotate_key_trigger: (Updatable) An optional property when flipped triggers rotation of KMS key. It is only applicable on dedicated container databases i.e. where `cloud_autonomous_vm_cluster_id` is set. :param pulumi.Input[str] service_level_agreement_type: The service level agreement type of the Autonomous Container Database. The default is STANDARD. For an autonomous dataguard Autonomous Container Database, the specified Autonomous Exadata Infrastructure must be associated with a remote Autonomous Exadata Infrastructure. @@ -1668,7 +1663,7 @@ def get(resource_name: str, :param pulumi.Input[str] state: The current state of the Autonomous Container Database. :param pulumi.Input[str] time_created: The date and time the Autonomous Container Database was created. :param pulumi.Input[str] time_snapshot_standby_revert: The date and time the Autonomous Container Database will be reverted to Standby from Snapshot Standby. - :param pulumi.Input[int] total_cpus: The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + :param pulumi.Input[int] total_cpus: The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. :param pulumi.Input[str] vault_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). :param pulumi.Input[str] version_preference: (Updatable) The next maintenance version preference. """ @@ -2047,16 +2042,13 @@ def reclaimable_cpus(self) -> pulumi.Output[float]: """ For Autonomous Databases on Dedicated Exadata Infrastructure: * These are the CPUs that continue to be included in the count of CPUs available to the Autonomous Container Database even after one of its Autonomous Database is terminated or scaled down. You can release them to the available CPUs at its parent Autonomous VM Cluster level by restarting the Autonomous Container Database. - * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + * The CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. """ return pulumi.get(self, "reclaimable_cpus") @property @pulumi.getter(name="reservedCpus") def reserved_cpus(self) -> pulumi.Output[float]: - """ - The number of CPUs reserved in an Autonomous Container Database. - """ return pulumi.get(self, "reserved_cpus") @property @@ -2123,7 +2115,7 @@ def time_snapshot_standby_revert(self) -> pulumi.Output[str]: @pulumi.getter(name="totalCpus") def total_cpus(self) -> pulumi.Output[int]: """ - The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. + The number of CPUs allocated to the Autonomous VM cluster.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. See [Compute Models in Autonomous Database on Dedicated Exadata Infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbak) for more details. """ return pulumi.get(self, "total_cpus") diff --git a/sdk/python/pulumi_oci/database/db_node.py b/sdk/python/pulumi_oci/database/db_node.py new file mode 100644 index 0000000000..78e55993eb --- /dev/null +++ b/sdk/python/pulumi_oci/database/db_node.py @@ -0,0 +1,876 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +from .. import _utilities + +__all__ = ['DbNodeArgs', 'DbNode'] + +@pulumi.input_type +class DbNodeArgs: + def __init__(__self__, *, + db_node_id: pulumi.Input[str], + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None): + """ + The set of arguments for constructing a DbNode resource. + :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + + + ** IMPORTANT ** + Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + """ + pulumi.set(__self__, "db_node_id", db_node_id) + if defined_tags is not None: + pulumi.set(__self__, "defined_tags", defined_tags) + if freeform_tags is not None: + pulumi.set(__self__, "freeform_tags", freeform_tags) + + @property + @pulumi.getter(name="dbNodeId") + def db_node_id(self) -> pulumi.Input[str]: + """ + The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + """ + return pulumi.get(self, "db_node_id") + + @db_node_id.setter + def db_node_id(self, value: pulumi.Input[str]): + pulumi.set(self, "db_node_id", value) + + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + + @defined_tags.setter + def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "defined_tags", value) + + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + + + ** IMPORTANT ** + Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + """ + return pulumi.get(self, "freeform_tags") + + @freeform_tags.setter + def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "freeform_tags", value) + + +@pulumi.input_type +class _DbNodeState: + def __init__(__self__, *, + additional_details: Optional[pulumi.Input[str]] = None, + backup_ip_id: Optional[pulumi.Input[str]] = None, + backup_vnic2id: Optional[pulumi.Input[str]] = None, + backup_vnic_id: Optional[pulumi.Input[str]] = None, + cpu_core_count: Optional[pulumi.Input[int]] = None, + db_node_id: Optional[pulumi.Input[str]] = None, + db_node_storage_size_in_gbs: Optional[pulumi.Input[int]] = None, + db_server_id: Optional[pulumi.Input[str]] = None, + db_system_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + fault_domain: Optional[pulumi.Input[str]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + host_ip_id: Optional[pulumi.Input[str]] = None, + hostname: Optional[pulumi.Input[str]] = None, + lifecycle_details: Optional[pulumi.Input[str]] = None, + maintenance_type: Optional[pulumi.Input[str]] = None, + memory_size_in_gbs: Optional[pulumi.Input[int]] = None, + software_storage_size_in_gb: Optional[pulumi.Input[int]] = None, + state: Optional[pulumi.Input[str]] = None, + time_created: Optional[pulumi.Input[str]] = None, + time_maintenance_window_end: Optional[pulumi.Input[str]] = None, + time_maintenance_window_start: Optional[pulumi.Input[str]] = None, + vnic2id: Optional[pulumi.Input[str]] = None, + vnic_id: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering DbNode resources. + :param pulumi.Input[str] additional_details: Additional information about the planned maintenance. + :param pulumi.Input[str] backup_ip_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + :param pulumi.Input[str] backup_vnic2id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + :param pulumi.Input[str] backup_vnic_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + :param pulumi.Input[int] cpu_core_count: The number of CPU cores enabled on the Db node. + :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param pulumi.Input[int] db_node_storage_size_in_gbs: The allocated local node storage in GBs on the Db node. + :param pulumi.Input[str] db_server_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + :param pulumi.Input[str] db_system_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + :param pulumi.Input[str] fault_domain: The name of the Fault Domain the instance is contained in. + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + + + ** IMPORTANT ** + Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + :param pulumi.Input[str] host_ip_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + :param pulumi.Input[str] hostname: The host name for the database node. + :param pulumi.Input[str] lifecycle_details: Information about the current lifecycle state. + :param pulumi.Input[str] maintenance_type: The type of database node maintenance. + :param pulumi.Input[int] memory_size_in_gbs: The allocated memory in GBs on the Db node. + :param pulumi.Input[int] software_storage_size_in_gb: The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + :param pulumi.Input[str] state: The current state of the database node. + :param pulumi.Input[str] time_created: The date and time that the database node was created. + :param pulumi.Input[str] time_maintenance_window_end: End date and time of maintenance window. + :param pulumi.Input[str] time_maintenance_window_start: Start date and time of maintenance window. + :param pulumi.Input[str] vnic2id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + :param pulumi.Input[str] vnic_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + """ + if additional_details is not None: + pulumi.set(__self__, "additional_details", additional_details) + if backup_ip_id is not None: + pulumi.set(__self__, "backup_ip_id", backup_ip_id) + if backup_vnic2id is not None: + pulumi.set(__self__, "backup_vnic2id", backup_vnic2id) + if backup_vnic_id is not None: + pulumi.set(__self__, "backup_vnic_id", backup_vnic_id) + if cpu_core_count is not None: + pulumi.set(__self__, "cpu_core_count", cpu_core_count) + if db_node_id is not None: + pulumi.set(__self__, "db_node_id", db_node_id) + if db_node_storage_size_in_gbs is not None: + pulumi.set(__self__, "db_node_storage_size_in_gbs", db_node_storage_size_in_gbs) + if db_server_id is not None: + pulumi.set(__self__, "db_server_id", db_server_id) + if db_system_id is not None: + pulumi.set(__self__, "db_system_id", db_system_id) + if defined_tags is not None: + pulumi.set(__self__, "defined_tags", defined_tags) + if fault_domain is not None: + pulumi.set(__self__, "fault_domain", fault_domain) + if freeform_tags is not None: + pulumi.set(__self__, "freeform_tags", freeform_tags) + if host_ip_id is not None: + pulumi.set(__self__, "host_ip_id", host_ip_id) + if hostname is not None: + pulumi.set(__self__, "hostname", hostname) + if lifecycle_details is not None: + pulumi.set(__self__, "lifecycle_details", lifecycle_details) + if maintenance_type is not None: + pulumi.set(__self__, "maintenance_type", maintenance_type) + if memory_size_in_gbs is not None: + pulumi.set(__self__, "memory_size_in_gbs", memory_size_in_gbs) + if software_storage_size_in_gb is not None: + pulumi.set(__self__, "software_storage_size_in_gb", software_storage_size_in_gb) + if state is not None: + pulumi.set(__self__, "state", state) + if time_created is not None: + pulumi.set(__self__, "time_created", time_created) + if time_maintenance_window_end is not None: + pulumi.set(__self__, "time_maintenance_window_end", time_maintenance_window_end) + if time_maintenance_window_start is not None: + pulumi.set(__self__, "time_maintenance_window_start", time_maintenance_window_start) + if vnic2id is not None: + pulumi.set(__self__, "vnic2id", vnic2id) + if vnic_id is not None: + pulumi.set(__self__, "vnic_id", vnic_id) + + @property + @pulumi.getter(name="additionalDetails") + def additional_details(self) -> Optional[pulumi.Input[str]]: + """ + Additional information about the planned maintenance. + """ + return pulumi.get(self, "additional_details") + + @additional_details.setter + def additional_details(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "additional_details", value) + + @property + @pulumi.getter(name="backupIpId") + def backup_ip_id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + """ + return pulumi.get(self, "backup_ip_id") + + @backup_ip_id.setter + def backup_ip_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "backup_ip_id", value) + + @property + @pulumi.getter(name="backupVnic2id") + def backup_vnic2id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + """ + return pulumi.get(self, "backup_vnic2id") + + @backup_vnic2id.setter + def backup_vnic2id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "backup_vnic2id", value) + + @property + @pulumi.getter(name="backupVnicId") + def backup_vnic_id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + """ + return pulumi.get(self, "backup_vnic_id") + + @backup_vnic_id.setter + def backup_vnic_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "backup_vnic_id", value) + + @property + @pulumi.getter(name="cpuCoreCount") + def cpu_core_count(self) -> Optional[pulumi.Input[int]]: + """ + The number of CPU cores enabled on the Db node. + """ + return pulumi.get(self, "cpu_core_count") + + @cpu_core_count.setter + def cpu_core_count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "cpu_core_count", value) + + @property + @pulumi.getter(name="dbNodeId") + def db_node_id(self) -> Optional[pulumi.Input[str]]: + """ + The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + """ + return pulumi.get(self, "db_node_id") + + @db_node_id.setter + def db_node_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "db_node_id", value) + + @property + @pulumi.getter(name="dbNodeStorageSizeInGbs") + def db_node_storage_size_in_gbs(self) -> Optional[pulumi.Input[int]]: + """ + The allocated local node storage in GBs on the Db node. + """ + return pulumi.get(self, "db_node_storage_size_in_gbs") + + @db_node_storage_size_in_gbs.setter + def db_node_storage_size_in_gbs(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "db_node_storage_size_in_gbs", value) + + @property + @pulumi.getter(name="dbServerId") + def db_server_id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + """ + return pulumi.get(self, "db_server_id") + + @db_server_id.setter + def db_server_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "db_server_id", value) + + @property + @pulumi.getter(name="dbSystemId") + def db_system_id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + """ + return pulumi.get(self, "db_system_id") + + @db_system_id.setter + def db_system_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "db_system_id", value) + + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + + @defined_tags.setter + def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "defined_tags", value) + + @property + @pulumi.getter(name="faultDomain") + def fault_domain(self) -> Optional[pulumi.Input[str]]: + """ + The name of the Fault Domain the instance is contained in. + """ + return pulumi.get(self, "fault_domain") + + @fault_domain.setter + def fault_domain(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "fault_domain", value) + + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + + + ** IMPORTANT ** + Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + """ + return pulumi.get(self, "freeform_tags") + + @freeform_tags.setter + def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "freeform_tags", value) + + @property + @pulumi.getter(name="hostIpId") + def host_ip_id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + """ + return pulumi.get(self, "host_ip_id") + + @host_ip_id.setter + def host_ip_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "host_ip_id", value) + + @property + @pulumi.getter + def hostname(self) -> Optional[pulumi.Input[str]]: + """ + The host name for the database node. + """ + return pulumi.get(self, "hostname") + + @hostname.setter + def hostname(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "hostname", value) + + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> Optional[pulumi.Input[str]]: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + + @lifecycle_details.setter + def lifecycle_details(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "lifecycle_details", value) + + @property + @pulumi.getter(name="maintenanceType") + def maintenance_type(self) -> Optional[pulumi.Input[str]]: + """ + The type of database node maintenance. + """ + return pulumi.get(self, "maintenance_type") + + @maintenance_type.setter + def maintenance_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "maintenance_type", value) + + @property + @pulumi.getter(name="memorySizeInGbs") + def memory_size_in_gbs(self) -> Optional[pulumi.Input[int]]: + """ + The allocated memory in GBs on the Db node. + """ + return pulumi.get(self, "memory_size_in_gbs") + + @memory_size_in_gbs.setter + def memory_size_in_gbs(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "memory_size_in_gbs", value) + + @property + @pulumi.getter(name="softwareStorageSizeInGb") + def software_storage_size_in_gb(self) -> Optional[pulumi.Input[int]]: + """ + The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + """ + return pulumi.get(self, "software_storage_size_in_gb") + + @software_storage_size_in_gb.setter + def software_storage_size_in_gb(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "software_storage_size_in_gb", value) + + @property + @pulumi.getter + def state(self) -> Optional[pulumi.Input[str]]: + """ + The current state of the database node. + """ + return pulumi.get(self, "state") + + @state.setter + def state(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "state", value) + + @property + @pulumi.getter(name="timeCreated") + def time_created(self) -> Optional[pulumi.Input[str]]: + """ + The date and time that the database node was created. + """ + return pulumi.get(self, "time_created") + + @time_created.setter + def time_created(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "time_created", value) + + @property + @pulumi.getter(name="timeMaintenanceWindowEnd") + def time_maintenance_window_end(self) -> Optional[pulumi.Input[str]]: + """ + End date and time of maintenance window. + """ + return pulumi.get(self, "time_maintenance_window_end") + + @time_maintenance_window_end.setter + def time_maintenance_window_end(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "time_maintenance_window_end", value) + + @property + @pulumi.getter(name="timeMaintenanceWindowStart") + def time_maintenance_window_start(self) -> Optional[pulumi.Input[str]]: + """ + Start date and time of maintenance window. + """ + return pulumi.get(self, "time_maintenance_window_start") + + @time_maintenance_window_start.setter + def time_maintenance_window_start(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "time_maintenance_window_start", value) + + @property + @pulumi.getter + def vnic2id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + """ + return pulumi.get(self, "vnic2id") + + @vnic2id.setter + def vnic2id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vnic2id", value) + + @property + @pulumi.getter(name="vnicId") + def vnic_id(self) -> Optional[pulumi.Input[str]]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + """ + return pulumi.get(self, "vnic_id") + + @vnic_id.setter + def vnic_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "vnic_id", value) + + +class DbNode(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + db_node_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + __props__=None): + """ + This resource provides the Db Node resource in Oracle Cloud Infrastructure Database service. + + Updates the specified database node. + + ## Import + + DbNodes can be imported using the `id`, e.g. + + ```sh + $ pulumi import oci:Database/dbNode:DbNode test_db_node "id" + ``` + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + + + ** IMPORTANT ** + Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: DbNodeArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + This resource provides the Db Node resource in Oracle Cloud Infrastructure Database service. + + Updates the specified database node. + + ## Import + + DbNodes can be imported using the `id`, e.g. + + ```sh + $ pulumi import oci:Database/dbNode:DbNode test_db_node "id" + ``` + + :param str resource_name: The name of the resource. + :param DbNodeArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(DbNodeArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + db_node_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = DbNodeArgs.__new__(DbNodeArgs) + + if db_node_id is None and not opts.urn: + raise TypeError("Missing required property 'db_node_id'") + __props__.__dict__["db_node_id"] = db_node_id + __props__.__dict__["defined_tags"] = defined_tags + __props__.__dict__["freeform_tags"] = freeform_tags + __props__.__dict__["additional_details"] = None + __props__.__dict__["backup_ip_id"] = None + __props__.__dict__["backup_vnic2id"] = None + __props__.__dict__["backup_vnic_id"] = None + __props__.__dict__["cpu_core_count"] = None + __props__.__dict__["db_node_storage_size_in_gbs"] = None + __props__.__dict__["db_server_id"] = None + __props__.__dict__["db_system_id"] = None + __props__.__dict__["fault_domain"] = None + __props__.__dict__["host_ip_id"] = None + __props__.__dict__["hostname"] = None + __props__.__dict__["lifecycle_details"] = None + __props__.__dict__["maintenance_type"] = None + __props__.__dict__["memory_size_in_gbs"] = None + __props__.__dict__["software_storage_size_in_gb"] = None + __props__.__dict__["state"] = None + __props__.__dict__["time_created"] = None + __props__.__dict__["time_maintenance_window_end"] = None + __props__.__dict__["time_maintenance_window_start"] = None + __props__.__dict__["vnic2id"] = None + __props__.__dict__["vnic_id"] = None + super(DbNode, __self__).__init__( + 'oci:Database/dbNode:DbNode', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + additional_details: Optional[pulumi.Input[str]] = None, + backup_ip_id: Optional[pulumi.Input[str]] = None, + backup_vnic2id: Optional[pulumi.Input[str]] = None, + backup_vnic_id: Optional[pulumi.Input[str]] = None, + cpu_core_count: Optional[pulumi.Input[int]] = None, + db_node_id: Optional[pulumi.Input[str]] = None, + db_node_storage_size_in_gbs: Optional[pulumi.Input[int]] = None, + db_server_id: Optional[pulumi.Input[str]] = None, + db_system_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + fault_domain: Optional[pulumi.Input[str]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + host_ip_id: Optional[pulumi.Input[str]] = None, + hostname: Optional[pulumi.Input[str]] = None, + lifecycle_details: Optional[pulumi.Input[str]] = None, + maintenance_type: Optional[pulumi.Input[str]] = None, + memory_size_in_gbs: Optional[pulumi.Input[int]] = None, + software_storage_size_in_gb: Optional[pulumi.Input[int]] = None, + state: Optional[pulumi.Input[str]] = None, + time_created: Optional[pulumi.Input[str]] = None, + time_maintenance_window_end: Optional[pulumi.Input[str]] = None, + time_maintenance_window_start: Optional[pulumi.Input[str]] = None, + vnic2id: Optional[pulumi.Input[str]] = None, + vnic_id: Optional[pulumi.Input[str]] = None) -> 'DbNode': + """ + Get an existing DbNode resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] additional_details: Additional information about the planned maintenance. + :param pulumi.Input[str] backup_ip_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + :param pulumi.Input[str] backup_vnic2id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + :param pulumi.Input[str] backup_vnic_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + :param pulumi.Input[int] cpu_core_count: The number of CPU cores enabled on the Db node. + :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param pulumi.Input[int] db_node_storage_size_in_gbs: The allocated local node storage in GBs on the Db node. + :param pulumi.Input[str] db_server_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + :param pulumi.Input[str] db_system_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + :param pulumi.Input[str] fault_domain: The name of the Fault Domain the instance is contained in. + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + + + ** IMPORTANT ** + Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + :param pulumi.Input[str] host_ip_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + :param pulumi.Input[str] hostname: The host name for the database node. + :param pulumi.Input[str] lifecycle_details: Information about the current lifecycle state. + :param pulumi.Input[str] maintenance_type: The type of database node maintenance. + :param pulumi.Input[int] memory_size_in_gbs: The allocated memory in GBs on the Db node. + :param pulumi.Input[int] software_storage_size_in_gb: The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + :param pulumi.Input[str] state: The current state of the database node. + :param pulumi.Input[str] time_created: The date and time that the database node was created. + :param pulumi.Input[str] time_maintenance_window_end: End date and time of maintenance window. + :param pulumi.Input[str] time_maintenance_window_start: Start date and time of maintenance window. + :param pulumi.Input[str] vnic2id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + :param pulumi.Input[str] vnic_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _DbNodeState.__new__(_DbNodeState) + + __props__.__dict__["additional_details"] = additional_details + __props__.__dict__["backup_ip_id"] = backup_ip_id + __props__.__dict__["backup_vnic2id"] = backup_vnic2id + __props__.__dict__["backup_vnic_id"] = backup_vnic_id + __props__.__dict__["cpu_core_count"] = cpu_core_count + __props__.__dict__["db_node_id"] = db_node_id + __props__.__dict__["db_node_storage_size_in_gbs"] = db_node_storage_size_in_gbs + __props__.__dict__["db_server_id"] = db_server_id + __props__.__dict__["db_system_id"] = db_system_id + __props__.__dict__["defined_tags"] = defined_tags + __props__.__dict__["fault_domain"] = fault_domain + __props__.__dict__["freeform_tags"] = freeform_tags + __props__.__dict__["host_ip_id"] = host_ip_id + __props__.__dict__["hostname"] = hostname + __props__.__dict__["lifecycle_details"] = lifecycle_details + __props__.__dict__["maintenance_type"] = maintenance_type + __props__.__dict__["memory_size_in_gbs"] = memory_size_in_gbs + __props__.__dict__["software_storage_size_in_gb"] = software_storage_size_in_gb + __props__.__dict__["state"] = state + __props__.__dict__["time_created"] = time_created + __props__.__dict__["time_maintenance_window_end"] = time_maintenance_window_end + __props__.__dict__["time_maintenance_window_start"] = time_maintenance_window_start + __props__.__dict__["vnic2id"] = vnic2id + __props__.__dict__["vnic_id"] = vnic_id + return DbNode(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="additionalDetails") + def additional_details(self) -> pulumi.Output[str]: + """ + Additional information about the planned maintenance. + """ + return pulumi.get(self, "additional_details") + + @property + @pulumi.getter(name="backupIpId") + def backup_ip_id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + """ + return pulumi.get(self, "backup_ip_id") + + @property + @pulumi.getter(name="backupVnic2id") + def backup_vnic2id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second backup VNIC. + """ + return pulumi.get(self, "backup_vnic2id") + + @property + @pulumi.getter(name="backupVnicId") + def backup_vnic_id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup VNIC. + """ + return pulumi.get(self, "backup_vnic_id") + + @property + @pulumi.getter(name="cpuCoreCount") + def cpu_core_count(self) -> pulumi.Output[int]: + """ + The number of CPU cores enabled on the Db node. + """ + return pulumi.get(self, "cpu_core_count") + + @property + @pulumi.getter(name="dbNodeId") + def db_node_id(self) -> pulumi.Output[str]: + """ + The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + """ + return pulumi.get(self, "db_node_id") + + @property + @pulumi.getter(name="dbNodeStorageSizeInGbs") + def db_node_storage_size_in_gbs(self) -> pulumi.Output[int]: + """ + The allocated local node storage in GBs on the Db node. + """ + return pulumi.get(self, "db_node_storage_size_in_gbs") + + @property + @pulumi.getter(name="dbServerId") + def db_server_id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server associated with the database node. + """ + return pulumi.get(self, "db_server_id") + + @property + @pulumi.getter(name="dbSystemId") + def db_system_id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + """ + return pulumi.get(self, "db_system_id") + + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]: + """ + (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + + @property + @pulumi.getter(name="faultDomain") + def fault_domain(self) -> pulumi.Output[str]: + """ + The name of the Fault Domain the instance is contained in. + """ + return pulumi.get(self, "fault_domain") + + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]: + """ + (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + + + ** IMPORTANT ** + Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + """ + return pulumi.get(self, "freeform_tags") + + @property + @pulumi.getter(name="hostIpId") + def host_ip_id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + """ + return pulumi.get(self, "host_ip_id") + + @property + @pulumi.getter + def hostname(self) -> pulumi.Output[str]: + """ + The host name for the database node. + """ + return pulumi.get(self, "hostname") + + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> pulumi.Output[str]: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + + @property + @pulumi.getter(name="maintenanceType") + def maintenance_type(self) -> pulumi.Output[str]: + """ + The type of database node maintenance. + """ + return pulumi.get(self, "maintenance_type") + + @property + @pulumi.getter(name="memorySizeInGbs") + def memory_size_in_gbs(self) -> pulumi.Output[int]: + """ + The allocated memory in GBs on the Db node. + """ + return pulumi.get(self, "memory_size_in_gbs") + + @property + @pulumi.getter(name="softwareStorageSizeInGb") + def software_storage_size_in_gb(self) -> pulumi.Output[int]: + """ + The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. + """ + return pulumi.get(self, "software_storage_size_in_gb") + + @property + @pulumi.getter + def state(self) -> pulumi.Output[str]: + """ + The current state of the database node. + """ + return pulumi.get(self, "state") + + @property + @pulumi.getter(name="timeCreated") + def time_created(self) -> pulumi.Output[str]: + """ + The date and time that the database node was created. + """ + return pulumi.get(self, "time_created") + + @property + @pulumi.getter(name="timeMaintenanceWindowEnd") + def time_maintenance_window_end(self) -> pulumi.Output[str]: + """ + End date and time of maintenance window. + """ + return pulumi.get(self, "time_maintenance_window_end") + + @property + @pulumi.getter(name="timeMaintenanceWindowStart") + def time_maintenance_window_start(self) -> pulumi.Output[str]: + """ + Start date and time of maintenance window. + """ + return pulumi.get(self, "time_maintenance_window_start") + + @property + @pulumi.getter + def vnic2id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second VNIC. + """ + return pulumi.get(self, "vnic2id") + + @property + @pulumi.getter(name="vnicId") + def vnic_id(self) -> pulumi.Output[str]: + """ + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + """ + return pulumi.get(self, "vnic_id") + diff --git a/sdk/python/pulumi_oci/database/db_node_console_connection.py b/sdk/python/pulumi_oci/database/db_node_console_connection.py index 4cc9e4994c..39483115c5 100644 --- a/sdk/python/pulumi_oci/database/db_node_console_connection.py +++ b/sdk/python/pulumi_oci/database/db_node_console_connection.py @@ -15,7 +15,9 @@ class DbNodeConsoleConnectionArgs: def __init__(__self__, *, db_node_id: pulumi.Input[str], - public_key: pulumi.Input[str]): + public_key: pulumi.Input[str], + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None): """ The set of arguments for constructing a DbNodeConsoleConnection resource. :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -24,9 +26,15 @@ def __init__(__self__, *, ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` """ pulumi.set(__self__, "db_node_id", db_node_id) pulumi.set(__self__, "public_key", public_key) + if defined_tags is not None: + pulumi.set(__self__, "defined_tags", defined_tags) + if freeform_tags is not None: + pulumi.set(__self__, "freeform_tags", freeform_tags) @property @pulumi.getter(name="dbNodeId") @@ -56,6 +64,30 @@ def public_key(self) -> pulumi.Input[str]: def public_key(self, value: pulumi.Input[str]): pulumi.set(self, "public_key", value) + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + + @defined_tags.setter + def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "defined_tags", value) + + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + """ + return pulumi.get(self, "freeform_tags") + + @freeform_tags.setter + def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "freeform_tags", value) + @pulumi.input_type class _DbNodeConsoleConnectionState: @@ -63,20 +95,28 @@ def __init__(__self__, *, compartment_id: Optional[pulumi.Input[str]] = None, connection_string: Optional[pulumi.Input[str]] = None, db_node_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, fingerprint: Optional[pulumi.Input[str]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + lifecycle_details: Optional[pulumi.Input[str]] = None, public_key: Optional[pulumi.Input[str]] = None, + service_host_key_fingerprint: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering DbNodeConsoleConnection resources. :param pulumi.Input[str] compartment_id: The OCID of the compartment to contain the console connection. :param pulumi.Input[str] connection_string: The SSH connection string for the console connection. :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). :param pulumi.Input[str] fingerprint: The SSH public key fingerprint for the console connection. + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + :param pulumi.Input[str] lifecycle_details: Information about the current lifecycle state. :param pulumi.Input[str] public_key: The SSH public key used to authenticate the console connection. ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + :param pulumi.Input[str] service_host_key_fingerprint: The SSH public key's fingerprint for the console connection service host. :param pulumi.Input[str] state: The current state of the console connection. """ if compartment_id is not None: @@ -85,10 +125,18 @@ def __init__(__self__, *, pulumi.set(__self__, "connection_string", connection_string) if db_node_id is not None: pulumi.set(__self__, "db_node_id", db_node_id) + if defined_tags is not None: + pulumi.set(__self__, "defined_tags", defined_tags) if fingerprint is not None: pulumi.set(__self__, "fingerprint", fingerprint) + if freeform_tags is not None: + pulumi.set(__self__, "freeform_tags", freeform_tags) + if lifecycle_details is not None: + pulumi.set(__self__, "lifecycle_details", lifecycle_details) if public_key is not None: pulumi.set(__self__, "public_key", public_key) + if service_host_key_fingerprint is not None: + pulumi.set(__self__, "service_host_key_fingerprint", service_host_key_fingerprint) if state is not None: pulumi.set(__self__, "state", state) @@ -128,6 +176,18 @@ def db_node_id(self) -> Optional[pulumi.Input[str]]: def db_node_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "db_node_id", value) + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + + @defined_tags.setter + def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "defined_tags", value) + @property @pulumi.getter def fingerprint(self) -> Optional[pulumi.Input[str]]: @@ -140,6 +200,30 @@ def fingerprint(self) -> Optional[pulumi.Input[str]]: def fingerprint(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "fingerprint", value) + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: + """ + (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + """ + return pulumi.get(self, "freeform_tags") + + @freeform_tags.setter + def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]): + pulumi.set(self, "freeform_tags", value) + + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> Optional[pulumi.Input[str]]: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + + @lifecycle_details.setter + def lifecycle_details(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "lifecycle_details", value) + @property @pulumi.getter(name="publicKey") def public_key(self) -> Optional[pulumi.Input[str]]: @@ -156,6 +240,18 @@ def public_key(self) -> Optional[pulumi.Input[str]]: def public_key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "public_key", value) + @property + @pulumi.getter(name="serviceHostKeyFingerprint") + def service_host_key_fingerprint(self) -> Optional[pulumi.Input[str]]: + """ + The SSH public key's fingerprint for the console connection service host. + """ + return pulumi.get(self, "service_host_key_fingerprint") + + @service_host_key_fingerprint.setter + def service_host_key_fingerprint(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "service_host_key_fingerprint", value) + @property @pulumi.getter def state(self) -> Optional[pulumi.Input[str]]: @@ -175,6 +271,8 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, db_node_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, public_key: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -192,7 +290,11 @@ def __init__(__self__, test_db_node_console_connection = oci.database.DbNodeConsoleConnection("testDbNodeConsoleConnection", db_node_id=oci_database_db_node["test_db_node"]["id"], - public_key=var["db_node_console_connection_public_key"]) + public_key=var["db_node_console_connection_public_key"], + defined_tags=var["db_node_console_connection_defined_tags"], + freeform_tags={ + "Department": "Finance", + }) ``` ## Import @@ -206,6 +308,8 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` :param pulumi.Input[str] public_key: The SSH public key used to authenticate the console connection. @@ -233,7 +337,11 @@ def __init__(__self__, test_db_node_console_connection = oci.database.DbNodeConsoleConnection("testDbNodeConsoleConnection", db_node_id=oci_database_db_node["test_db_node"]["id"], - public_key=var["db_node_console_connection_public_key"]) + public_key=var["db_node_console_connection_public_key"], + defined_tags=var["db_node_console_connection_defined_tags"], + freeform_tags={ + "Department": "Finance", + }) ``` ## Import @@ -260,6 +368,8 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, db_node_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, public_key: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -273,12 +383,16 @@ def _internal_init(__self__, if db_node_id is None and not opts.urn: raise TypeError("Missing required property 'db_node_id'") __props__.__dict__["db_node_id"] = db_node_id + __props__.__dict__["defined_tags"] = defined_tags + __props__.__dict__["freeform_tags"] = freeform_tags if public_key is None and not opts.urn: raise TypeError("Missing required property 'public_key'") __props__.__dict__["public_key"] = public_key __props__.__dict__["compartment_id"] = None __props__.__dict__["connection_string"] = None __props__.__dict__["fingerprint"] = None + __props__.__dict__["lifecycle_details"] = None + __props__.__dict__["service_host_key_fingerprint"] = None __props__.__dict__["state"] = None super(DbNodeConsoleConnection, __self__).__init__( 'oci:Database/dbNodeConsoleConnection:DbNodeConsoleConnection', @@ -293,8 +407,12 @@ def get(resource_name: str, compartment_id: Optional[pulumi.Input[str]] = None, connection_string: Optional[pulumi.Input[str]] = None, db_node_id: Optional[pulumi.Input[str]] = None, + defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, fingerprint: Optional[pulumi.Input[str]] = None, + freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, + lifecycle_details: Optional[pulumi.Input[str]] = None, public_key: Optional[pulumi.Input[str]] = None, + service_host_key_fingerprint: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None) -> 'DbNodeConsoleConnection': """ Get an existing DbNodeConsoleConnection resource's state with the given name, id, and optional extra @@ -306,12 +424,16 @@ def get(resource_name: str, :param pulumi.Input[str] compartment_id: The OCID of the compartment to contain the console connection. :param pulumi.Input[str] connection_string: The SSH connection string for the console connection. :param pulumi.Input[str] db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). :param pulumi.Input[str] fingerprint: The SSH public key fingerprint for the console connection. + :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + :param pulumi.Input[str] lifecycle_details: Information about the current lifecycle state. :param pulumi.Input[str] public_key: The SSH public key used to authenticate the console connection. ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values + :param pulumi.Input[str] service_host_key_fingerprint: The SSH public key's fingerprint for the console connection service host. :param pulumi.Input[str] state: The current state of the console connection. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -321,8 +443,12 @@ def get(resource_name: str, __props__.__dict__["compartment_id"] = compartment_id __props__.__dict__["connection_string"] = connection_string __props__.__dict__["db_node_id"] = db_node_id + __props__.__dict__["defined_tags"] = defined_tags __props__.__dict__["fingerprint"] = fingerprint + __props__.__dict__["freeform_tags"] = freeform_tags + __props__.__dict__["lifecycle_details"] = lifecycle_details __props__.__dict__["public_key"] = public_key + __props__.__dict__["service_host_key_fingerprint"] = service_host_key_fingerprint __props__.__dict__["state"] = state return DbNodeConsoleConnection(resource_name, opts=opts, __props__=__props__) @@ -350,6 +476,14 @@ def db_node_id(self) -> pulumi.Output[str]: """ return pulumi.get(self, "db_node_id") + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]: + """ + (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + @property @pulumi.getter def fingerprint(self) -> pulumi.Output[str]: @@ -358,6 +492,22 @@ def fingerprint(self) -> pulumi.Output[str]: """ return pulumi.get(self, "fingerprint") + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]: + """ + (Updatable) 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + """ + return pulumi.get(self, "freeform_tags") + + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> pulumi.Output[str]: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter(name="publicKey") def public_key(self) -> pulumi.Output[str]: @@ -370,6 +520,14 @@ def public_key(self) -> pulumi.Output[str]: """ return pulumi.get(self, "public_key") + @property + @pulumi.getter(name="serviceHostKeyFingerprint") + def service_host_key_fingerprint(self) -> pulumi.Output[str]: + """ + The SSH public key's fingerprint for the console connection service host. + """ + return pulumi.get(self, "service_host_key_fingerprint") + @property @pulumi.getter def state(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_oci/database/get_autonomous_container_database.py b/sdk/python/pulumi_oci/database/get_autonomous_container_database.py index 8d6e14c5bc..cffd620a07 100644 --- a/sdk/python/pulumi_oci/database/get_autonomous_container_database.py +++ b/sdk/python/pulumi_oci/database/get_autonomous_container_database.py @@ -212,15 +212,13 @@ def autonomous_vm_cluster_id(self) -> str: def availability_domain(self) -> str: """ The availability domain of the Autonomous Container Database. + <<<<<<< HEAD """ return pulumi.get(self, "availability_domain") @property @pulumi.getter(name="availableCpus") def available_cpus(self) -> float: - """ - Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - """ return pulumi.get(self, "available_cpus") @property diff --git a/sdk/python/pulumi_oci/database/get_autonomous_container_databases.py b/sdk/python/pulumi_oci/database/get_autonomous_container_databases.py index 3623796551..d47f66ecce 100644 --- a/sdk/python/pulumi_oci/database/get_autonomous_container_databases.py +++ b/sdk/python/pulumi_oci/database/get_autonomous_container_databases.py @@ -90,6 +90,7 @@ def autonomous_vm_cluster_id(self) -> Optional[str]: def availability_domain(self) -> Optional[str]: """ The availability domain of the Autonomous Container Database. + <<<<<<< HEAD """ return pulumi.get(self, "availability_domain") diff --git a/sdk/python/pulumi_oci/database/get_autonomous_database.py b/sdk/python/pulumi_oci/database/get_autonomous_database.py index 7098d92082..22423567cb 100644 --- a/sdk/python/pulumi_oci/database/get_autonomous_database.py +++ b/sdk/python/pulumi_oci/database/get_autonomous_database.py @@ -902,7 +902,7 @@ def max_cpu_core_count(self) -> int: @pulumi.getter(name="memoryPerOracleComputeUnitInGbs") def memory_per_oracle_compute_unit_in_gbs(self) -> int: """ - The amount of memory (in GBs) enabled per OCPU or ECPU. + The amount of memory (in GBs) enabled per each CPU in the Autonomous VM Cluster. """ return pulumi.get(self, "memory_per_oracle_compute_unit_in_gbs") diff --git a/sdk/python/pulumi_oci/database/get_db_node.py b/sdk/python/pulumi_oci/database/get_db_node.py index 1cd06644d1..d8b0a932d6 100644 --- a/sdk/python/pulumi_oci/database/get_db_node.py +++ b/sdk/python/pulumi_oci/database/get_db_node.py @@ -21,7 +21,7 @@ class GetDbNodeResult: """ A collection of values returned by getDbNode. """ - def __init__(__self__, additional_details=None, backup_ip_id=None, backup_vnic2id=None, backup_vnic_id=None, cpu_core_count=None, db_node_id=None, db_node_storage_size_in_gbs=None, db_server_id=None, db_system_id=None, fault_domain=None, host_ip_id=None, hostname=None, id=None, maintenance_type=None, memory_size_in_gbs=None, software_storage_size_in_gb=None, state=None, time_created=None, time_maintenance_window_end=None, time_maintenance_window_start=None, vnic2id=None, vnic_id=None): + def __init__(__self__, additional_details=None, backup_ip_id=None, backup_vnic2id=None, backup_vnic_id=None, cpu_core_count=None, db_node_id=None, db_node_storage_size_in_gbs=None, db_server_id=None, db_system_id=None, defined_tags=None, fault_domain=None, freeform_tags=None, host_ip_id=None, hostname=None, id=None, lifecycle_details=None, maintenance_type=None, memory_size_in_gbs=None, software_storage_size_in_gb=None, state=None, time_created=None, time_maintenance_window_end=None, time_maintenance_window_start=None, vnic2id=None, vnic_id=None): if additional_details and not isinstance(additional_details, str): raise TypeError("Expected argument 'additional_details' to be a str") pulumi.set(__self__, "additional_details", additional_details) @@ -49,9 +49,15 @@ def __init__(__self__, additional_details=None, backup_ip_id=None, backup_vnic2i if db_system_id and not isinstance(db_system_id, str): raise TypeError("Expected argument 'db_system_id' to be a str") pulumi.set(__self__, "db_system_id", db_system_id) + if defined_tags and not isinstance(defined_tags, dict): + raise TypeError("Expected argument 'defined_tags' to be a dict") + pulumi.set(__self__, "defined_tags", defined_tags) if fault_domain and not isinstance(fault_domain, str): raise TypeError("Expected argument 'fault_domain' to be a str") pulumi.set(__self__, "fault_domain", fault_domain) + if freeform_tags and not isinstance(freeform_tags, dict): + raise TypeError("Expected argument 'freeform_tags' to be a dict") + pulumi.set(__self__, "freeform_tags", freeform_tags) if host_ip_id and not isinstance(host_ip_id, str): raise TypeError("Expected argument 'host_ip_id' to be a str") pulumi.set(__self__, "host_ip_id", host_ip_id) @@ -61,6 +67,9 @@ def __init__(__self__, additional_details=None, backup_ip_id=None, backup_vnic2i if id and not isinstance(id, str): raise TypeError("Expected argument 'id' to be a str") pulumi.set(__self__, "id", id) + if lifecycle_details and not isinstance(lifecycle_details, str): + raise TypeError("Expected argument 'lifecycle_details' to be a str") + pulumi.set(__self__, "lifecycle_details", lifecycle_details) if maintenance_type and not isinstance(maintenance_type, str): raise TypeError("Expected argument 'maintenance_type' to be a str") pulumi.set(__self__, "maintenance_type", maintenance_type) @@ -158,6 +167,14 @@ def db_system_id(self) -> str: """ return pulumi.get(self, "db_system_id") + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Mapping[str, Any]: + """ + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + @property @pulumi.getter(name="faultDomain") def fault_domain(self) -> str: @@ -166,11 +183,19 @@ def fault_domain(self) -> str: """ return pulumi.get(self, "fault_domain") + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Mapping[str, Any]: + """ + 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + """ + return pulumi.get(self, "freeform_tags") + @property @pulumi.getter(name="hostIpId") def host_ip_id(self) -> str: """ - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. """ return pulumi.get(self, "host_ip_id") @@ -186,10 +211,18 @@ def hostname(self) -> str: @pulumi.getter def id(self) -> str: """ - The provider-assigned unique ID for this managed resource. + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. """ return pulumi.get(self, "id") + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> str: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter(name="maintenanceType") def maintenance_type(self) -> str: @@ -278,10 +311,13 @@ def __await__(self): db_node_storage_size_in_gbs=self.db_node_storage_size_in_gbs, db_server_id=self.db_server_id, db_system_id=self.db_system_id, + defined_tags=self.defined_tags, fault_domain=self.fault_domain, + freeform_tags=self.freeform_tags, host_ip_id=self.host_ip_id, hostname=self.hostname, id=self.id, + lifecycle_details=self.lifecycle_details, maintenance_type=self.maintenance_type, memory_size_in_gbs=self.memory_size_in_gbs, software_storage_size_in_gb=self.software_storage_size_in_gb, @@ -327,10 +363,13 @@ def get_db_node(db_node_id: Optional[str] = None, db_node_storage_size_in_gbs=pulumi.get(__ret__, 'db_node_storage_size_in_gbs'), db_server_id=pulumi.get(__ret__, 'db_server_id'), db_system_id=pulumi.get(__ret__, 'db_system_id'), + defined_tags=pulumi.get(__ret__, 'defined_tags'), fault_domain=pulumi.get(__ret__, 'fault_domain'), + freeform_tags=pulumi.get(__ret__, 'freeform_tags'), host_ip_id=pulumi.get(__ret__, 'host_ip_id'), hostname=pulumi.get(__ret__, 'hostname'), id=pulumi.get(__ret__, 'id'), + lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'), maintenance_type=pulumi.get(__ret__, 'maintenance_type'), memory_size_in_gbs=pulumi.get(__ret__, 'memory_size_in_gbs'), software_storage_size_in_gb=pulumi.get(__ret__, 'software_storage_size_in_gb'), diff --git a/sdk/python/pulumi_oci/database/get_db_node_console_connection.py b/sdk/python/pulumi_oci/database/get_db_node_console_connection.py index fc6ced3c57..2049173f59 100644 --- a/sdk/python/pulumi_oci/database/get_db_node_console_connection.py +++ b/sdk/python/pulumi_oci/database/get_db_node_console_connection.py @@ -21,7 +21,7 @@ class GetDbNodeConsoleConnectionResult: """ A collection of values returned by getDbNodeConsoleConnection. """ - def __init__(__self__, compartment_id=None, connection_string=None, db_node_id=None, fingerprint=None, id=None, public_key=None, state=None): + def __init__(__self__, compartment_id=None, connection_string=None, db_node_id=None, defined_tags=None, fingerprint=None, freeform_tags=None, id=None, lifecycle_details=None, public_key=None, service_host_key_fingerprint=None, state=None): if compartment_id and not isinstance(compartment_id, str): raise TypeError("Expected argument 'compartment_id' to be a str") pulumi.set(__self__, "compartment_id", compartment_id) @@ -31,15 +31,27 @@ def __init__(__self__, compartment_id=None, connection_string=None, db_node_id=N if db_node_id and not isinstance(db_node_id, str): raise TypeError("Expected argument 'db_node_id' to be a str") pulumi.set(__self__, "db_node_id", db_node_id) + if defined_tags and not isinstance(defined_tags, dict): + raise TypeError("Expected argument 'defined_tags' to be a dict") + pulumi.set(__self__, "defined_tags", defined_tags) if fingerprint and not isinstance(fingerprint, str): raise TypeError("Expected argument 'fingerprint' to be a str") pulumi.set(__self__, "fingerprint", fingerprint) + if freeform_tags and not isinstance(freeform_tags, dict): + raise TypeError("Expected argument 'freeform_tags' to be a dict") + pulumi.set(__self__, "freeform_tags", freeform_tags) if id and not isinstance(id, str): raise TypeError("Expected argument 'id' to be a str") pulumi.set(__self__, "id", id) + if lifecycle_details and not isinstance(lifecycle_details, str): + raise TypeError("Expected argument 'lifecycle_details' to be a str") + pulumi.set(__self__, "lifecycle_details", lifecycle_details) if public_key and not isinstance(public_key, str): raise TypeError("Expected argument 'public_key' to be a str") pulumi.set(__self__, "public_key", public_key) + if service_host_key_fingerprint and not isinstance(service_host_key_fingerprint, str): + raise TypeError("Expected argument 'service_host_key_fingerprint' to be a str") + pulumi.set(__self__, "service_host_key_fingerprint", service_host_key_fingerprint) if state and not isinstance(state, str): raise TypeError("Expected argument 'state' to be a str") pulumi.set(__self__, "state", state) @@ -68,6 +80,14 @@ def db_node_id(self) -> str: """ return pulumi.get(self, "db_node_id") + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Mapping[str, Any]: + """ + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + @property @pulumi.getter def fingerprint(self) -> str: @@ -76,6 +96,14 @@ def fingerprint(self) -> str: """ return pulumi.get(self, "fingerprint") + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Mapping[str, Any]: + """ + 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + """ + return pulumi.get(self, "freeform_tags") + @property @pulumi.getter def id(self) -> str: @@ -84,11 +112,27 @@ def id(self) -> str: """ return pulumi.get(self, "id") + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> str: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter(name="publicKey") def public_key(self) -> str: return pulumi.get(self, "public_key") + @property + @pulumi.getter(name="serviceHostKeyFingerprint") + def service_host_key_fingerprint(self) -> str: + """ + The SSH public key's fingerprint for the console connection service host. + """ + return pulumi.get(self, "service_host_key_fingerprint") + @property @pulumi.getter def state(self) -> str: @@ -107,9 +151,13 @@ def __await__(self): compartment_id=self.compartment_id, connection_string=self.connection_string, db_node_id=self.db_node_id, + defined_tags=self.defined_tags, fingerprint=self.fingerprint, + freeform_tags=self.freeform_tags, id=self.id, + lifecycle_details=self.lifecycle_details, public_key=self.public_key, + service_host_key_fingerprint=self.service_host_key_fingerprint, state=self.state) @@ -145,9 +193,13 @@ def get_db_node_console_connection(db_node_id: Optional[str] = None, compartment_id=pulumi.get(__ret__, 'compartment_id'), connection_string=pulumi.get(__ret__, 'connection_string'), db_node_id=pulumi.get(__ret__, 'db_node_id'), + defined_tags=pulumi.get(__ret__, 'defined_tags'), fingerprint=pulumi.get(__ret__, 'fingerprint'), + freeform_tags=pulumi.get(__ret__, 'freeform_tags'), id=pulumi.get(__ret__, 'id'), + lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'), public_key=pulumi.get(__ret__, 'public_key'), + service_host_key_fingerprint=pulumi.get(__ret__, 'service_host_key_fingerprint'), state=pulumi.get(__ret__, 'state')) diff --git a/sdk/python/pulumi_oci/database/outputs.py b/sdk/python/pulumi_oci/database/outputs.py index bde8696dd3..e28aa884f0 100644 --- a/sdk/python/pulumi_oci/database/outputs.py +++ b/sdk/python/pulumi_oci/database/outputs.py @@ -11726,7 +11726,6 @@ def __init__(__self__, *, :param str autonomous_exadata_infrastructure_id: The Autonomous Exadata Infrastructure [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). :param str autonomous_vm_cluster_id: The Autonomous VM Cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). :param str availability_domain: A filter to return only resources that match the given availability domain exactly. - :param float available_cpus: Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. :param Sequence['GetAutonomousContainerDatabasesAutonomousContainerDatabaseBackupConfigArgs'] backup_configs: Backup options for the Autonomous Container Database. :param str cloud_autonomous_vm_cluster_id: The cloud Autonomous VM Cluster [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). :param str compartment_id: The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -11847,9 +11846,6 @@ def availability_domain(self) -> str: @property @pulumi.getter(name="availableCpus") def available_cpus(self) -> float: - """ - Sum of CPUs available on the Autonomous VM Cluster + Sum of reclaimable CPUs available in the Autonomous Container Database.
For Autonomous Databases on Dedicated Exadata Infrastructure, the CPU type (OCPUs or ECPUs) is determined by the parent Autonomous Exadata VM Cluster's compute model. - """ return pulumi.get(self, "available_cpus") @property @@ -28904,24 +28900,36 @@ def __init__(__self__, *, compartment_id: str, connection_string: str, db_node_id: str, + defined_tags: Mapping[str, Any], fingerprint: str, + freeform_tags: Mapping[str, Any], id: str, + lifecycle_details: str, public_key: str, + service_host_key_fingerprint: str, state: str): """ :param str compartment_id: The OCID of the compartment to contain the console connection. :param str connection_string: The SSH connection string for the console connection. :param str db_node_id: The database node [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + :param Mapping[str, Any] defined_tags: Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). :param str fingerprint: The SSH public key fingerprint for the console connection. + :param Mapping[str, Any] freeform_tags: 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` :param str id: The OCID of the console connection. + :param str lifecycle_details: Information about the current lifecycle state. + :param str service_host_key_fingerprint: The SSH public key's fingerprint for the console connection service host. :param str state: The current state of the console connection. """ pulumi.set(__self__, "compartment_id", compartment_id) pulumi.set(__self__, "connection_string", connection_string) pulumi.set(__self__, "db_node_id", db_node_id) + pulumi.set(__self__, "defined_tags", defined_tags) pulumi.set(__self__, "fingerprint", fingerprint) + pulumi.set(__self__, "freeform_tags", freeform_tags) pulumi.set(__self__, "id", id) + pulumi.set(__self__, "lifecycle_details", lifecycle_details) pulumi.set(__self__, "public_key", public_key) + pulumi.set(__self__, "service_host_key_fingerprint", service_host_key_fingerprint) pulumi.set(__self__, "state", state) @property @@ -28948,6 +28956,14 @@ def db_node_id(self) -> str: """ return pulumi.get(self, "db_node_id") + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Mapping[str, Any]: + """ + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + @property @pulumi.getter def fingerprint(self) -> str: @@ -28956,6 +28972,14 @@ def fingerprint(self) -> str: """ return pulumi.get(self, "fingerprint") + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Mapping[str, Any]: + """ + 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + """ + return pulumi.get(self, "freeform_tags") + @property @pulumi.getter def id(self) -> str: @@ -28964,11 +28988,27 @@ def id(self) -> str: """ return pulumi.get(self, "id") + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> str: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter(name="publicKey") def public_key(self) -> str: return pulumi.get(self, "public_key") + @property + @pulumi.getter(name="serviceHostKeyFingerprint") + def service_host_key_fingerprint(self) -> str: + """ + The SSH public key's fingerprint for the console connection service host. + """ + return pulumi.get(self, "service_host_key_fingerprint") + @property @pulumi.getter def state(self) -> str: @@ -29017,10 +29057,13 @@ def __init__(__self__, *, db_node_storage_size_in_gbs: int, db_server_id: str, db_system_id: str, + defined_tags: Mapping[str, Any], fault_domain: str, + freeform_tags: Mapping[str, Any], host_ip_id: str, hostname: str, id: str, + lifecycle_details: str, maintenance_type: str, memory_size_in_gbs: int, software_storage_size_in_gb: int, @@ -29039,10 +29082,13 @@ def __init__(__self__, *, :param int db_node_storage_size_in_gbs: The allocated local node storage in GBs on the Db node. :param str db_server_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exacc Db server. :param str db_system_id: The DB system [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. + :param Mapping[str, Any] defined_tags: Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). :param str fault_domain: The name of the Fault Domain the instance is contained in. - :param str host_ip_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + :param Mapping[str, Any] freeform_tags: 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + :param str host_ip_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. :param str hostname: The host name for the database node. :param str id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database node. + :param str lifecycle_details: Information about the current lifecycle state. :param str maintenance_type: The type of database node maintenance. :param int memory_size_in_gbs: The allocated memory in GBs on the Db node. :param int software_storage_size_in_gb: The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. @@ -29062,10 +29108,13 @@ def __init__(__self__, *, pulumi.set(__self__, "db_node_storage_size_in_gbs", db_node_storage_size_in_gbs) pulumi.set(__self__, "db_server_id", db_server_id) pulumi.set(__self__, "db_system_id", db_system_id) + pulumi.set(__self__, "defined_tags", defined_tags) pulumi.set(__self__, "fault_domain", fault_domain) + pulumi.set(__self__, "freeform_tags", freeform_tags) pulumi.set(__self__, "host_ip_id", host_ip_id) pulumi.set(__self__, "hostname", hostname) pulumi.set(__self__, "id", id) + pulumi.set(__self__, "lifecycle_details", lifecycle_details) pulumi.set(__self__, "maintenance_type", maintenance_type) pulumi.set(__self__, "memory_size_in_gbs", memory_size_in_gbs) pulumi.set(__self__, "software_storage_size_in_gb", software_storage_size_in_gb) @@ -29145,6 +29194,14 @@ def db_system_id(self) -> str: """ return pulumi.get(self, "db_system_id") + @property + @pulumi.getter(name="definedTags") + def defined_tags(self) -> Mapping[str, Any]: + """ + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + """ + return pulumi.get(self, "defined_tags") + @property @pulumi.getter(name="faultDomain") def fault_domain(self) -> str: @@ -29153,11 +29210,19 @@ def fault_domain(self) -> str: """ return pulumi.get(self, "fault_domain") + @property + @pulumi.getter(name="freeformTags") + def freeform_tags(self) -> Mapping[str, Any]: + """ + 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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` + """ + return pulumi.get(self, "freeform_tags") + @property @pulumi.getter(name="hostIpId") def host_ip_id(self) -> str: """ - The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. + The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host IP address associated with the database node. Use this OCID with either the [GetPrivateIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp) or the [GetPublicIpByPrivateIpId](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId) API to get the IP address needed to make a database connection. """ return pulumi.get(self, "host_ip_id") @@ -29177,6 +29242,14 @@ def id(self) -> str: """ return pulumi.get(self, "id") + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> str: + """ + Information about the current lifecycle state. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter(name="maintenanceType") def maintenance_type(self) -> str: diff --git a/sdk/python/pulumi_oci/datacatalog/data_asset.py b/sdk/python/pulumi_oci/datacatalog/data_asset.py index 0adaaae7cc..1399ab4167 100644 --- a/sdk/python/pulumi_oci/datacatalog/data_asset.py +++ b/sdk/python/pulumi_oci/datacatalog/data_asset.py @@ -113,6 +113,7 @@ def __init__(__self__, *, display_name: Optional[pulumi.Input[str]] = None, external_key: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, + lifecycle_details: Optional[pulumi.Input[str]] = None, properties: Optional[pulumi.Input[Mapping[str, Any]]] = None, state: Optional[pulumi.Input[str]] = None, time_created: Optional[pulumi.Input[str]] = None, @@ -129,6 +130,7 @@ def __init__(__self__, *, :param pulumi.Input[str] display_name: (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param pulumi.Input[str] external_key: External URI that can be used to reference the object. Format will differ based on the type of object. :param pulumi.Input[str] key: Unique data asset key that is immutable. + :param pulumi.Input[str] lifecycle_details: A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. :param pulumi.Input[Mapping[str, Any]] properties: A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` :param pulumi.Input[str] state: The current state of the data asset. :param pulumi.Input[str] time_created: The date and time the data asset was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2019-03-25T21:10:29.600Z` @@ -154,6 +156,8 @@ def __init__(__self__, *, pulumi.set(__self__, "external_key", external_key) if key is not None: pulumi.set(__self__, "key", key) + if lifecycle_details is not None: + pulumi.set(__self__, "lifecycle_details", lifecycle_details) if properties is not None: pulumi.set(__self__, "properties", properties) if state is not None: @@ -243,6 +247,18 @@ def key(self) -> Optional[pulumi.Input[str]]: def key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "key", value) + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> Optional[pulumi.Input[str]]: + """ + A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + """ + return pulumi.get(self, "lifecycle_details") + + @lifecycle_details.setter + def lifecycle_details(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "lifecycle_details", value) + @property @pulumi.getter def properties(self) -> Optional[pulumi.Input[Mapping[str, Any]]]: @@ -470,6 +486,7 @@ def _internal_init(__self__, __props__.__dict__["created_by_id"] = None __props__.__dict__["external_key"] = None __props__.__dict__["key"] = None + __props__.__dict__["lifecycle_details"] = None __props__.__dict__["state"] = None __props__.__dict__["time_created"] = None __props__.__dict__["time_harvested"] = None @@ -492,6 +509,7 @@ def get(resource_name: str, display_name: Optional[pulumi.Input[str]] = None, external_key: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, + lifecycle_details: Optional[pulumi.Input[str]] = None, properties: Optional[pulumi.Input[Mapping[str, Any]]] = None, state: Optional[pulumi.Input[str]] = None, time_created: Optional[pulumi.Input[str]] = None, @@ -513,6 +531,7 @@ def get(resource_name: str, :param pulumi.Input[str] display_name: (Updatable) A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information. :param pulumi.Input[str] external_key: External URI that can be used to reference the object. Format will differ based on the type of object. :param pulumi.Input[str] key: Unique data asset key that is immutable. + :param pulumi.Input[str] lifecycle_details: A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. :param pulumi.Input[Mapping[str, Any]] properties: A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` :param pulumi.Input[str] state: The current state of the data asset. :param pulumi.Input[str] time_created: The date and time the data asset was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2019-03-25T21:10:29.600Z` @@ -536,6 +555,7 @@ def get(resource_name: str, __props__.__dict__["display_name"] = display_name __props__.__dict__["external_key"] = external_key __props__.__dict__["key"] = key + __props__.__dict__["lifecycle_details"] = lifecycle_details __props__.__dict__["properties"] = properties __props__.__dict__["state"] = state __props__.__dict__["time_created"] = time_created @@ -594,6 +614,14 @@ def key(self) -> pulumi.Output[str]: """ return pulumi.get(self, "key") + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> pulumi.Output[str]: + """ + A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter def properties(self) -> pulumi.Output[Mapping[str, Any]]: diff --git a/sdk/python/pulumi_oci/datacatalog/get_data_asset.py b/sdk/python/pulumi_oci/datacatalog/get_data_asset.py index dae643c4b1..af956c0630 100644 --- a/sdk/python/pulumi_oci/datacatalog/get_data_asset.py +++ b/sdk/python/pulumi_oci/datacatalog/get_data_asset.py @@ -21,7 +21,7 @@ class GetDataAssetResult: """ A collection of values returned by getDataAsset. """ - def __init__(__self__, catalog_id=None, created_by_id=None, data_asset_key=None, description=None, display_name=None, external_key=None, fields=None, id=None, key=None, properties=None, state=None, time_created=None, time_harvested=None, time_updated=None, type_key=None, updated_by_id=None, uri=None): + def __init__(__self__, catalog_id=None, created_by_id=None, data_asset_key=None, description=None, display_name=None, external_key=None, fields=None, id=None, key=None, lifecycle_details=None, properties=None, state=None, time_created=None, time_harvested=None, time_updated=None, type_key=None, updated_by_id=None, uri=None): if catalog_id and not isinstance(catalog_id, str): raise TypeError("Expected argument 'catalog_id' to be a str") pulumi.set(__self__, "catalog_id", catalog_id) @@ -49,6 +49,9 @@ def __init__(__self__, catalog_id=None, created_by_id=None, data_asset_key=None, if key and not isinstance(key, str): raise TypeError("Expected argument 'key' to be a str") pulumi.set(__self__, "key", key) + if lifecycle_details and not isinstance(lifecycle_details, str): + raise TypeError("Expected argument 'lifecycle_details' to be a str") + pulumi.set(__self__, "lifecycle_details", lifecycle_details) if properties and not isinstance(properties, dict): raise TypeError("Expected argument 'properties' to be a dict") pulumi.set(__self__, "properties", properties) @@ -137,6 +140,14 @@ def key(self) -> str: """ return pulumi.get(self, "key") + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> str: + """ + A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter def properties(self) -> Mapping[str, Any]: @@ -217,6 +228,7 @@ def __await__(self): fields=self.fields, id=self.id, key=self.key, + lifecycle_details=self.lifecycle_details, properties=self.properties, state=self.state, time_created=self.time_created, @@ -269,6 +281,7 @@ def get_data_asset(catalog_id: Optional[str] = None, fields=pulumi.get(__ret__, 'fields'), id=pulumi.get(__ret__, 'id'), key=pulumi.get(__ret__, 'key'), + lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'), properties=pulumi.get(__ret__, 'properties'), state=pulumi.get(__ret__, 'state'), time_created=pulumi.get(__ret__, 'time_created'), diff --git a/sdk/python/pulumi_oci/datacatalog/outputs.py b/sdk/python/pulumi_oci/datacatalog/outputs.py index 00b78b743a..7dc1359bff 100644 --- a/sdk/python/pulumi_oci/datacatalog/outputs.py +++ b/sdk/python/pulumi_oci/datacatalog/outputs.py @@ -772,6 +772,7 @@ def __init__(__self__, *, display_name: str, external_key: str, key: str, + lifecycle_details: str, properties: Mapping[str, Any], state: str, time_created: str, @@ -787,6 +788,7 @@ def __init__(__self__, *, :param str display_name: A filter to return only resources that match the entire display name given. The match is not case sensitive. :param str external_key: Unique external identifier of this resource in the external source system. :param str key: Unique data asset key that is immutable. + :param str lifecycle_details: A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. :param Mapping[str, Any] properties: A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: `{"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}` :param str state: A filter to return only resources that match the specified lifecycle state. The value is case insensitive. :param str time_created: Time that the resource was created. An [RFC3339](https://tools.ietf.org/html/rfc3339) formatted datetime string. @@ -802,6 +804,7 @@ def __init__(__self__, *, pulumi.set(__self__, "display_name", display_name) pulumi.set(__self__, "external_key", external_key) pulumi.set(__self__, "key", key) + pulumi.set(__self__, "lifecycle_details", lifecycle_details) pulumi.set(__self__, "properties", properties) pulumi.set(__self__, "state", state) pulumi.set(__self__, "time_created", time_created) @@ -859,6 +862,14 @@ def key(self) -> str: """ return pulumi.get(self, "key") + @property + @pulumi.getter(name="lifecycleDetails") + def lifecycle_details(self) -> str: + """ + A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details. + """ + return pulumi.get(self, "lifecycle_details") + @property @pulumi.getter def properties(self) -> Mapping[str, Any]: