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
The Source resource accepts the following input properties:
- Source
Id 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.
- Display
Name 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
- Request
Id 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.
- Source
Id 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.
- Display
Name 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
- Request
Id 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 - Data source type.
- source
Id 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.
- display
Name 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
- request
Id 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 - Data source type.
- source
Id 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.
- display
Name 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
- request
Id 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 - 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
Source
Type - Data source type.
- source
Id 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.
- display
Name 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
- request
Id 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:
- Create
Time string - The timestamp when the source was created.
- Error
Frame 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.
- Pending
Frame intCount - Number of frames that are still being processed.
- State string
- The state of the source.
- Update
Time string - The timestamp when the source was last updated.
- Create
Time string - The timestamp when the source was created.
- Error
Frame 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.
- Pending
Frame intCount - Number of frames that are still being processed.
- State string
- The state of the source.
- Update
Time string - The timestamp when the source was last updated.
- create
Time String - The timestamp when the source was created.
- error
Frame 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.
- pending
Frame IntegerCount - Number of frames that are still being processed.
- state String
- The state of the source.
- update
Time String - The timestamp when the source was last updated.
- create
Time string - The timestamp when the source was created.
- error
Frame 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.
- pending
Frame numberCount - Number of frames that are still being processed.
- state string
- The state of the source.
- update
Time 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.
- create
Time String - The timestamp when the source was created.
- error
Frame 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.
- pending
Frame NumberCount - Number of frames that are still being processed.
- state String
- The state of the source.
- update
Time String - The timestamp when the source was last updated.
Supporting Types
SourceType, SourceTypeArgs
- 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 Source Type Unknown - SOURCE_TYPE_UNKNOWNUnspecified
- Source
Type Source Type Upload - SOURCE_TYPE_UPLOADManually uploaded file (e.g. CSV)
- Source
Type Source Type Guest Os Scan - SOURCE_TYPE_GUEST_OS_SCANGuest-level info
- Source
Type Source Type Inventory Scan - SOURCE_TYPE_INVENTORY_SCANInventory-level scan
- Source
Type 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.
- 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.
- "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.