1. Packages
  2. Google Cloud Native
  3. API Docs
  4. migrationcenter
  5. migrationcenter/v1alpha1
  6. Source

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.migrationcenter/v1alpha1.Source

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a new source in a given project and location. Auto-naming is currently not supported for this resource.

    Create Source Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Source(name: string, args: SourceArgs, opts?: CustomResourceOptions);
    @overload
    def Source(resource_name: str,
               args: SourceArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Source(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               source_id: Optional[str] = None,
               description: Optional[str] = None,
               display_name: Optional[str] = None,
               is_managed: Optional[bool] = None,
               location: Optional[str] = None,
               priority: Optional[int] = None,
               project: Optional[str] = None,
               request_id: Optional[str] = None,
               type: Optional[SourceType] = None)
    func NewSource(ctx *Context, name string, args SourceArgs, opts ...ResourceOption) (*Source, error)
    public Source(string name, SourceArgs args, CustomResourceOptions? opts = null)
    public Source(String name, SourceArgs args)
    public Source(String name, SourceArgs args, CustomResourceOptions options)
    
    type: google-native:migrationcenter/v1alpha1:Source
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SourceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SourceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var google_nativeSourceResource = new GoogleNative.MigrationCenter.V1Alpha1.Source("google-nativeSourceResource", new()
    {
        SourceId = "string",
        Description = "string",
        DisplayName = "string",
        IsManaged = false,
        Location = "string",
        Priority = 0,
        Project = "string",
        RequestId = "string",
        Type = GoogleNative.MigrationCenter.V1Alpha1.SourceType.SourceTypeUnknown,
    });
    
    example, err := migrationcenterv1alpha1.NewSource(ctx, "google-nativeSourceResource", &migrationcenterv1alpha1.SourceArgs{
    SourceId: pulumi.String("string"),
    Description: pulumi.String("string"),
    DisplayName: pulumi.String("string"),
    IsManaged: pulumi.Bool(false),
    Location: pulumi.String("string"),
    Priority: pulumi.Int(0),
    Project: pulumi.String("string"),
    RequestId: pulumi.String("string"),
    Type: migrationcenterv1alpha1.SourceTypeSourceTypeUnknown,
    })
    
    var google_nativeSourceResource = new Source("google-nativeSourceResource", SourceArgs.builder()
        .sourceId("string")
        .description("string")
        .displayName("string")
        .isManaged(false)
        .location("string")
        .priority(0)
        .project("string")
        .requestId("string")
        .type("SOURCE_TYPE_UNKNOWN")
        .build());
    
    google_native_source_resource = google_native.migrationcenter.v1alpha1.Source("google-nativeSourceResource",
        source_id="string",
        description="string",
        display_name="string",
        is_managed=False,
        location="string",
        priority=0,
        project="string",
        request_id="string",
        type=google_native.migrationcenter.v1alpha1.SourceType.SOURCE_TYPE_UNKNOWN)
    
    const google_nativeSourceResource = new google_native.migrationcenter.v1alpha1.Source("google-nativeSourceResource", {
        sourceId: "string",
        description: "string",
        displayName: "string",
        isManaged: false,
        location: "string",
        priority: 0,
        project: "string",
        requestId: "string",
        type: google_native.migrationcenter.v1alpha1.SourceType.SourceTypeUnknown,
    });
    
    type: google-native:migrationcenter/v1alpha1:Source
    properties:
        description: string
        displayName: string
        isManaged: false
        location: string
        priority: 0
        project: string
        requestId: string
        sourceId: string
        type: SOURCE_TYPE_UNKNOWN
    

    Source Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Source resource accepts the following input properties:

    SourceId string
    Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
    Description string
    Free-text description.
    DisplayName string
    User-friendly display name.
    IsManaged bool
    If true, the source is managed by other service(s).
    Location string
    Priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    Project string
    RequestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    Type Pulumi.GoogleNative.MigrationCenter.V1Alpha1.SourceType
    Data source type.
    SourceId string
    Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
    Description string
    Free-text description.
    DisplayName string
    User-friendly display name.
    IsManaged bool
    If true, the source is managed by other service(s).
    Location string
    Priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    Project string
    RequestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    Type SourceType
    Data source type.
    sourceId String
    Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
    description String
    Free-text description.
    displayName String
    User-friendly display name.
    isManaged Boolean
    If true, the source is managed by other service(s).
    location String
    priority Integer
    The information confidence of the source. The higher the value, the higher the confidence.
    project String
    requestId String
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    type SourceType
    Data source type.
    sourceId string
    Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
    description string
    Free-text description.
    displayName string
    User-friendly display name.
    isManaged boolean
    If true, the source is managed by other service(s).
    location string
    priority number
    The information confidence of the source. The higher the value, the higher the confidence.
    project string
    requestId string
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    type SourceType
    Data source type.
    source_id str
    Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
    description str
    Free-text description.
    display_name str
    User-friendly display name.
    is_managed bool
    If true, the source is managed by other service(s).
    location str
    priority int
    The information confidence of the source. The higher the value, the higher the confidence.
    project str
    request_id str
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    type SourceType
    Data source type.
    sourceId String
    Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
    description String
    Free-text description.
    displayName String
    User-friendly display name.
    isManaged Boolean
    If true, the source is managed by other service(s).
    location String
    priority Number
    The information confidence of the source. The higher the value, the higher the confidence.
    project String
    requestId String
    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
    type "SOURCE_TYPE_UNKNOWN" | "SOURCE_TYPE_UPLOAD" | "SOURCE_TYPE_GUEST_OS_SCAN" | "SOURCE_TYPE_INVENTORY_SCAN" | "SOURCE_TYPE_CUSTOM"
    Data source type.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Source resource produces the following output properties:

    CreateTime string
    The timestamp when the source was created.
    ErrorFrameCount int
    The number of frames that were reported by the source and contained errors.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The full name of the source.
    PendingFrameCount int
    Number of frames that are still being processed.
    State string
    The state of the source.
    UpdateTime string
    The timestamp when the source was last updated.
    CreateTime string
    The timestamp when the source was created.
    ErrorFrameCount int
    The number of frames that were reported by the source and contained errors.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The full name of the source.
    PendingFrameCount int
    Number of frames that are still being processed.
    State string
    The state of the source.
    UpdateTime string
    The timestamp when the source was last updated.
    createTime String
    The timestamp when the source was created.
    errorFrameCount Integer
    The number of frames that were reported by the source and contained errors.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The full name of the source.
    pendingFrameCount Integer
    Number of frames that are still being processed.
    state String
    The state of the source.
    updateTime String
    The timestamp when the source was last updated.
    createTime string
    The timestamp when the source was created.
    errorFrameCount number
    The number of frames that were reported by the source and contained errors.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The full name of the source.
    pendingFrameCount number
    Number of frames that are still being processed.
    state string
    The state of the source.
    updateTime string
    The timestamp when the source was last updated.
    create_time str
    The timestamp when the source was created.
    error_frame_count int
    The number of frames that were reported by the source and contained errors.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The full name of the source.
    pending_frame_count int
    Number of frames that are still being processed.
    state str
    The state of the source.
    update_time str
    The timestamp when the source was last updated.
    createTime String
    The timestamp when the source was created.
    errorFrameCount Number
    The number of frames that were reported by the source and contained errors.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The full name of the source.
    pendingFrameCount Number
    Number of frames that are still being processed.
    state String
    The state of the source.
    updateTime String
    The timestamp when the source was last updated.

    Supporting Types

    SourceType, SourceTypeArgs

    SourceTypeUnknown
    SOURCE_TYPE_UNKNOWNUnspecified
    SourceTypeUpload
    SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
    SourceTypeGuestOsScan
    SOURCE_TYPE_GUEST_OS_SCANGuest-level info
    SourceTypeInventoryScan
    SOURCE_TYPE_INVENTORY_SCANInventory-level scan
    SourceTypeCustom
    SOURCE_TYPE_CUSTOMThird-party owned sources.
    SourceTypeSourceTypeUnknown
    SOURCE_TYPE_UNKNOWNUnspecified
    SourceTypeSourceTypeUpload
    SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
    SourceTypeSourceTypeGuestOsScan
    SOURCE_TYPE_GUEST_OS_SCANGuest-level info
    SourceTypeSourceTypeInventoryScan
    SOURCE_TYPE_INVENTORY_SCANInventory-level scan
    SourceTypeSourceTypeCustom
    SOURCE_TYPE_CUSTOMThird-party owned sources.
    SourceTypeUnknown
    SOURCE_TYPE_UNKNOWNUnspecified
    SourceTypeUpload
    SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
    SourceTypeGuestOsScan
    SOURCE_TYPE_GUEST_OS_SCANGuest-level info
    SourceTypeInventoryScan
    SOURCE_TYPE_INVENTORY_SCANInventory-level scan
    SourceTypeCustom
    SOURCE_TYPE_CUSTOMThird-party owned sources.
    SourceTypeUnknown
    SOURCE_TYPE_UNKNOWNUnspecified
    SourceTypeUpload
    SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
    SourceTypeGuestOsScan
    SOURCE_TYPE_GUEST_OS_SCANGuest-level info
    SourceTypeInventoryScan
    SOURCE_TYPE_INVENTORY_SCANInventory-level scan
    SourceTypeCustom
    SOURCE_TYPE_CUSTOMThird-party owned sources.
    SOURCE_TYPE_UNKNOWN
    SOURCE_TYPE_UNKNOWNUnspecified
    SOURCE_TYPE_UPLOAD
    SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
    SOURCE_TYPE_GUEST_OS_SCAN
    SOURCE_TYPE_GUEST_OS_SCANGuest-level info
    SOURCE_TYPE_INVENTORY_SCAN
    SOURCE_TYPE_INVENTORY_SCANInventory-level scan
    SOURCE_TYPE_CUSTOM
    SOURCE_TYPE_CUSTOMThird-party owned sources.
    "SOURCE_TYPE_UNKNOWN"
    SOURCE_TYPE_UNKNOWNUnspecified
    "SOURCE_TYPE_UPLOAD"
    SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
    "SOURCE_TYPE_GUEST_OS_SCAN"
    SOURCE_TYPE_GUEST_OS_SCANGuest-level info
    "SOURCE_TYPE_INVENTORY_SCAN"
    SOURCE_TYPE_INVENTORY_SCANInventory-level scan
    "SOURCE_TYPE_CUSTOM"
    SOURCE_TYPE_CUSTOMThird-party owned sources.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi