Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.migrationcenter/v1.Source
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
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,
           location: Optional[str] = None,
           managed: Optional[bool] = 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/v1: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 sourceResource = new GoogleNative.MigrationCenter.V1.Source("sourceResource", new()
{
    SourceId = "string",
    Description = "string",
    DisplayName = "string",
    Location = "string",
    Managed = false,
    Priority = 0,
    Project = "string",
    RequestId = "string",
    Type = GoogleNative.MigrationCenter.V1.SourceType.SourceTypeUnknown,
});
example, err := migrationcenter.NewSource(ctx, "sourceResource", &migrationcenter.SourceArgs{
	SourceId:    pulumi.String("string"),
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	Location:    pulumi.String("string"),
	Managed:     pulumi.Bool(false),
	Priority:    pulumi.Int(0),
	Project:     pulumi.String("string"),
	RequestId:   pulumi.String("string"),
	Type:        migrationcenter.SourceTypeSourceTypeUnknown,
})
var sourceResource = new Source("sourceResource", SourceArgs.builder()
    .sourceId("string")
    .description("string")
    .displayName("string")
    .location("string")
    .managed(false)
    .priority(0)
    .project("string")
    .requestId("string")
    .type("SOURCE_TYPE_UNKNOWN")
    .build());
source_resource = google_native.migrationcenter.v1.Source("sourceResource",
    source_id="string",
    description="string",
    display_name="string",
    location="string",
    managed=False,
    priority=0,
    project="string",
    request_id="string",
    type=google_native.migrationcenter.v1.SourceType.SOURCE_TYPE_UNKNOWN)
const sourceResource = new google_native.migrationcenter.v1.Source("sourceResource", {
    sourceId: "string",
    description: "string",
    displayName: "string",
    location: "string",
    managed: false,
    priority: 0,
    project: "string",
    requestId: "string",
    type: google_native.migrationcenter.v1.SourceType.SourceTypeUnknown,
});
type: google-native:migrationcenter/v1:Source
properties:
    description: string
    displayName: string
    location: string
    managed: false
    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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.
- Location string
- Managed bool
- If true, the source is managed by other service(s).
- 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.Google Native. Migration Center. V1. Source Type 
- 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.
- Location string
- Managed bool
- If true, the source is managed by other service(s).
- 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.
- location String
- managed Boolean
- If true, the source is managed by other service(s).
- 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.
- location string
- managed boolean
- If true, the source is managed by other service(s).
- 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.
- location str
- managed bool
- If true, the source is managed by other service(s).
- 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.
- location String
- managed Boolean
- If true, the source is managed by other service(s).
- 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.
- ErrorFrame intCount 
- 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.
- PendingFrame intCount 
- 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.
- ErrorFrame intCount 
- 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.
- PendingFrame intCount 
- 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.
- errorFrame IntegerCount 
- 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.
- pendingFrame IntegerCount 
- 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.
- errorFrame numberCount 
- 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.
- pendingFrame numberCount 
- 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_ intcount 
- 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_ intcount 
- 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.
- errorFrame NumberCount 
- 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.
- pendingFrame NumberCount 
- 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    
- SourceType Unknown 
- SOURCE_TYPE_UNKNOWNUnspecified
- SourceType Upload 
- SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
- SourceType Guest Os Scan 
- SOURCE_TYPE_GUEST_OS_SCANGuest-level info
- SourceType Inventory Scan 
- SOURCE_TYPE_INVENTORY_SCANInventory-level scan
- SourceType Custom 
- SOURCE_TYPE_CUSTOMThird-party owned sources.
- SourceType Source Type Unknown 
- SOURCE_TYPE_UNKNOWNUnspecified
- SourceType Source Type Upload 
- SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
- SourceType Source Type Guest Os Scan 
- SOURCE_TYPE_GUEST_OS_SCANGuest-level info
- SourceType Source Type Inventory Scan 
- SOURCE_TYPE_INVENTORY_SCANInventory-level scan
- SourceType Source Type Custom 
- SOURCE_TYPE_CUSTOMThird-party owned sources.
- SourceType Unknown 
- SOURCE_TYPE_UNKNOWNUnspecified
- SourceType Upload 
- SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
- SourceType Guest Os Scan 
- SOURCE_TYPE_GUEST_OS_SCANGuest-level info
- SourceType Inventory Scan 
- SOURCE_TYPE_INVENTORY_SCANInventory-level scan
- SourceType Custom 
- SOURCE_TYPE_CUSTOMThird-party owned sources.
- SourceType Unknown 
- SOURCE_TYPE_UNKNOWNUnspecified
- SourceType Upload 
- SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
- SourceType Guest Os Scan 
- SOURCE_TYPE_GUEST_OS_SCANGuest-level info
- SourceType Inventory Scan 
- SOURCE_TYPE_INVENTORY_SCANInventory-level scan
- SourceType 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.
- "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 Cloud Native is in preview. Google Cloud Classic is fully supported.