import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Occ Capacity Request resource in Oracle Cloud Infrastructure Capacity Management service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/occcm/latest/OccCapacityRequest * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/capacity_management * * Create Capacity Request. * Updates the OccCapacityRequest by evaluating a sequence of instructions. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testOccCapacityRequest = new oci.capacitymanagement.OccCapacityRequest("test_occ_capacity_request", { * compartmentId: compartmentId, * dateExpectedCapacityHandover: occCapacityRequestDateExpectedCapacityHandover, * details: [{ * demandQuantity: occCapacityRequestDetailsDemandQuantity, * resourceName: testResource.name, * resourceType: occCapacityRequestDetailsResourceType, * workloadType: occCapacityRequestDetailsWorkloadType, * actualHandoverQuantity: occCapacityRequestDetailsActualHandoverQuantity, * associatedOccHandoverResourceBlockLists: [{ * handoverQuantity: occCapacityRequestDetailsAssociatedOccHandoverResourceBlockListHandoverQuantity, * occHandoverResourceBlockId: testOccHandoverResourceBlock.id, * }], * availabilityDomain: occCapacityRequestDetailsAvailabilityDomain, * dateActualHandover: occCapacityRequestDetailsDateActualHandover, * dateExpectedHandover: occCapacityRequestDetailsDateExpectedHandover, * expectedHandoverQuantity: occCapacityRequestDetailsExpectedHandoverQuantity, * sourceWorkloadType: occCapacityRequestDetailsSourceWorkloadType, * }], * displayName: occCapacityRequestDisplayName, * namespace: occCapacityRequestNamespace, * occCapacityRequestId: occCapacityRequestOccCapacityRequestId, * region: occCapacityRequestRegion, * availabilityDomain: occCapacityRequestAvailabilityDomain, * definedTags: { * "foo-namespace.bar-key": "value", * }, * description: occCapacityRequestDescription, * freeformTags: { * "bar-key": "value", * }, * lifecycleDetails: occCapacityRequestLifecycleDetails, * occAvailabilityCatalogId: testOccAvailabilityCatalog.id, * patchOperations: [{ * operation: occCapacityRequestPatchOperationsOperation, * selection: occCapacityRequestPatchOperationsSelection, * from: occCapacityRequestPatchOperationsFrom, * position: occCapacityRequestPatchOperationsPosition, * selectedItem: occCapacityRequestPatchOperationsSelectedItem, * value: occCapacityRequestPatchOperationsValue, * values: occCapacityRequestPatchOperationsValues, * }], * requestState: occCapacityRequestRequestState, * requestType: occCapacityRequestRequestType, * }); * ``` * * ## Import * * OccCapacityRequests can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:CapacityManagement/occCapacityRequest:OccCapacityRequest test_occ_capacity_request "id" * ``` */ export declare class OccCapacityRequest extends pulumi.CustomResource { /** * Get an existing OccCapacityRequest 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. */ static get(name: string, id: pulumi.Input, state?: OccCapacityRequestState, opts?: pulumi.CustomResourceOptions): OccCapacityRequest; /** * Returns true if the given object is an instance of OccCapacityRequest. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is OccCapacityRequest; /** * The availability domain (AD) in which the new resource is to be placed. If this is specified then the capacity will be validated and fulfilled within the scope of this AD. Note that this field is NOT required for Capacity request Transfer requests. */ readonly availabilityDomain: pulumi.Output; /** * Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. */ readonly compartmentId: pulumi.Output; /** * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. */ readonly dateExpectedCapacityHandover: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * Meaningful text about the capacity request. */ readonly description: pulumi.Output; /** * A list of different resources requested by the user. */ readonly details: pulumi.Output; /** * (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. */ readonly lifecycleDetails: pulumi.Output; /** * The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on. */ readonly namespace: pulumi.Output; /** * The OCID of the availability catalog against which capacity request is made. */ readonly occAvailabilityCatalogId: pulumi.Output; /** * The OCID of the customer group to which this customer belongs to. */ readonly occCustomerGroupId: pulumi.Output; /** * (Updatable) */ readonly patchOperations: pulumi.Output; /** * The name of the region for which the capacity request is made. */ readonly region: pulumi.Output; /** * (Updatable) The subset of request states available for creating the capacity request. */ readonly requestState: pulumi.Output; /** * Type of Capacity Request(New or Transfer) * * ** 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 */ readonly requestType: pulumi.Output; /** * The current lifecycle state of the resource. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time when the capacity request was created. */ readonly timeCreated: pulumi.Output; /** * The time when the capacity request was updated. */ readonly timeUpdated: pulumi.Output; /** * Create a OccCapacityRequest 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: OccCapacityRequestArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OccCapacityRequest resources. */ export interface OccCapacityRequestState { /** * The availability domain (AD) in which the new resource is to be placed. If this is specified then the capacity will be validated and fulfilled within the scope of this AD. Note that this field is NOT required for Capacity request Transfer requests. */ availabilityDomain?: pulumi.Input; /** * Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. */ compartmentId?: pulumi.Input; /** * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. */ dateExpectedCapacityHandover?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Meaningful text about the capacity request. */ description?: pulumi.Input; /** * A list of different resources requested by the user. */ details?: pulumi.Input[] | undefined>; /** * (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. */ lifecycleDetails?: pulumi.Input; /** * The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on. */ namespace?: pulumi.Input; /** * The OCID of the availability catalog against which capacity request is made. */ occAvailabilityCatalogId?: pulumi.Input; /** * The OCID of the customer group to which this customer belongs to. */ occCustomerGroupId?: pulumi.Input; /** * (Updatable) */ patchOperations?: pulumi.Input[] | undefined>; /** * The name of the region for which the capacity request is made. */ region?: pulumi.Input; /** * (Updatable) The subset of request states available for creating the capacity request. */ requestState?: pulumi.Input; /** * Type of Capacity Request(New or Transfer) * * ** 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 */ requestType?: pulumi.Input; /** * The current lifecycle state of the resource. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time when the capacity request was created. */ timeCreated?: pulumi.Input; /** * The time when the capacity request was updated. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a OccCapacityRequest resource. */ export interface OccCapacityRequestArgs { /** * The availability domain (AD) in which the new resource is to be placed. If this is specified then the capacity will be validated and fulfilled within the scope of this AD. Note that this field is NOT required for Capacity request Transfer requests. */ availabilityDomain?: pulumi.Input; /** * Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. */ compartmentId: pulumi.Input; /** * The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. */ dateExpectedCapacityHandover: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Meaningful text about the capacity request. */ description?: pulumi.Input; /** * A list of different resources requested by the user. */ details: pulumi.Input[]>; /** * (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. */ lifecycleDetails?: pulumi.Input; /** * The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on. */ namespace: pulumi.Input; /** * The OCID of the availability catalog against which capacity request is made. */ occAvailabilityCatalogId: pulumi.Input; /** * (Updatable) */ patchOperations?: pulumi.Input[] | undefined>; /** * The name of the region for which the capacity request is made. */ region: pulumi.Input; /** * (Updatable) The subset of request states available for creating the capacity request. */ requestState?: pulumi.Input; /** * Type of Capacity Request(New or Transfer) * * ** 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 */ requestType?: pulumi.Input; } //# sourceMappingURL=occCapacityRequest.d.ts.map