Represents an AwsVmDetails.
Package
@google-cloud/vmmigrationConstructors
(constructor)(properties)
constructor(properties?: google.cloud.vmmigration.v1.IAwsVmDetails);Constructs a new AwsVmDetails.
| Parameter | |
|---|---|
| Name | Description |
properties |
IAwsVmDetails
Properties to set |
Properties
architecture
public architecture: (google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture|keyof typeof google.cloud.vmmigration.v1.AwsVmDetails.VmArchitecture);AwsVmDetails architecture.
bootOption
public bootOption: (google.cloud.vmmigration.v1.AwsVmDetails.BootOption|keyof typeof google.cloud.vmmigration.v1.AwsVmDetails.BootOption);AwsVmDetails bootOption.
committedStorageMb
public committedStorageMb: (number|Long|string);AwsVmDetails committedStorageMb.
cpuCount
public cpuCount: number;AwsVmDetails cpuCount.
diskCount
public diskCount: number;AwsVmDetails diskCount.
displayName
public displayName: string;AwsVmDetails displayName.
instanceType
public instanceType: string;AwsVmDetails instanceType.
memoryMb
public memoryMb: number;AwsVmDetails memoryMb.
osDescription
public osDescription: string;AwsVmDetails osDescription.
powerState
public powerState: (google.cloud.vmmigration.v1.AwsVmDetails.PowerState|keyof typeof google.cloud.vmmigration.v1.AwsVmDetails.PowerState);AwsVmDetails powerState.
securityGroups
public securityGroups: google.cloud.vmmigration.v1.IAwsSecurityGroup[];AwsVmDetails securityGroups.
sourceDescription
public sourceDescription: string;AwsVmDetails sourceDescription.
sourceId
public sourceId: string;AwsVmDetails sourceId.
tags
public tags: { [k: string]: string };AwsVmDetails tags.
virtualizationType
public virtualizationType: (google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType|keyof typeof google.cloud.vmmigration.v1.AwsVmDetails.VmVirtualizationType);AwsVmDetails virtualizationType.
vmId
public vmId: string;AwsVmDetails vmId.
vpcId
public vpcId: string;AwsVmDetails vpcId.
zone
public zone: string;AwsVmDetails zone.
Methods
create(properties)
public static create(properties?: google.cloud.vmmigration.v1.IAwsVmDetails): google.cloud.vmmigration.v1.AwsVmDetails;Creates a new AwsVmDetails instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
IAwsVmDetails
Properties to set |
| Returns | |
|---|---|
| Type | Description |
AwsVmDetails |
AwsVmDetails instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vmmigration.v1.AwsVmDetails;Decodes an AwsVmDetails message from the specified reader or buffer.
| Parameters | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
| Returns | |
|---|---|
| Type | Description |
AwsVmDetails |
AwsVmDetails |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vmmigration.v1.AwsVmDetails;Decodes an AwsVmDetails message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
AwsVmDetails |
AwsVmDetails |
encode(message, writer)
public static encode(message: google.cloud.vmmigration.v1.IAwsVmDetails, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified AwsVmDetails message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IAwsVmDetails
AwsVmDetails message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.vmmigration.v1.IAwsVmDetails, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified AwsVmDetails message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IAwsVmDetails
AwsVmDetails message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.vmmigration.v1.AwsVmDetails;Creates an AwsVmDetails message from a plain object. Also converts values to their respective internal types.
| Parameter | |
|---|---|
| Name | Description |
object |
{ [k: string]: any }
Plain object |
| Returns | |
|---|---|
| Type | Description |
AwsVmDetails |
AwsVmDetails |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for AwsVmDetails
| Parameter | |
|---|---|
| Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
| Returns | |
|---|---|
| Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };Converts this AwsVmDetails to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.vmmigration.v1.AwsVmDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from an AwsVmDetails message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
AwsVmDetails
AwsVmDetails |
options |
$protobuf.IConversionOptions
Conversion options |
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies an AwsVmDetails message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|