Documentation
¶
Overview ¶
Package migrationcenter provides access to the Migration Center API.
For product documentation, see: https://cloud.google.com/migration-center
Creating a client ¶
Usage example:
import "google.golang.org/api/migrationcenter/v1alpha1" ... ctx := context.Background() migrationcenterService, err := migrationcenter.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
migrationcenterService, err := migrationcenter.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) migrationcenterService, err := migrationcenter.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type AggregateAssetsValuesRequest
- type AggregateAssetsValuesResponse
- type Aggregation
- type AggregationCount
- type AggregationFrequency
- type AggregationHistogram
- type AggregationResult
- type AggregationResultCount
- type AggregationResultFrequency
- type AggregationResultHistogram
- type AggregationResultHistogramBucket
- type AggregationResultSum
- type AggregationSum
- type Asset
- type AssetFrame
- type BiosDetails
- type CancelOperationRequest
- type CpuUsageSample
- type Date
- type DateTime
- type DiskEntry
- type DiskEntryList
- type DiskPartition
- type DiskPartitionList
- type DiskUsageSample
- type Empty
- type ExecutionReport
- type FileValidationReport
- type Frames
- type FstabEntry
- type FstabEntryList
- type GCSPayloadInfo
- type GuestConfigDetails
- type GuestInstalledApplication
- type GuestInstalledApplicationList
- type GuestOsDetails
- type GuestRuntimeDetails
- type HostsEntry
- type HostsEntryList
- type ImportError
- type ImportJob
- type ImportRowError
- type InlinePayloadInfo
- type ListAssetsResponse
- type ListImportJobsResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type ListSourcesResponse
- type Location
- type MemoryUsageSample
- type NetworkAdapterDetails
- type NetworkAdapterList
- type NetworkAddress
- type NetworkAddressList
- type NetworkConnection
- type NetworkConnectionList
- type NetworkUsageSample
- type NfsExport
- type NfsExportList
- type OpenFileDetails
- type OpenFileList
- type Operation
- type OperationMetadata
- type PayloadFile
- type PerformanceSample
- type PlatformDetails
- type ProjectsLocationsAssetsAggregateValuesCall
- func (c *ProjectsLocationsAssetsAggregateValuesCall) Context(ctx context.Context) *ProjectsLocationsAssetsAggregateValuesCall
- func (c *ProjectsLocationsAssetsAggregateValuesCall) Do(opts ...googleapi.CallOption) (*AggregateAssetsValuesResponse, error)
- func (c *ProjectsLocationsAssetsAggregateValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsAggregateValuesCall
- func (c *ProjectsLocationsAssetsAggregateValuesCall) Header() http.Header
- type ProjectsLocationsAssetsCreateCall
- func (c *ProjectsLocationsAssetsCreateCall) AssetId(assetId string) *ProjectsLocationsAssetsCreateCall
- func (c *ProjectsLocationsAssetsCreateCall) Context(ctx context.Context) *ProjectsLocationsAssetsCreateCall
- func (c *ProjectsLocationsAssetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAssetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsCreateCall
- func (c *ProjectsLocationsAssetsCreateCall) Header() http.Header
- func (c *ProjectsLocationsAssetsCreateCall) RequestId(requestId string) *ProjectsLocationsAssetsCreateCall
- type ProjectsLocationsAssetsDeleteCall
- func (c *ProjectsLocationsAssetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsDeleteCall
- func (c *ProjectsLocationsAssetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAssetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsDeleteCall
- func (c *ProjectsLocationsAssetsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsAssetsDeleteCall) RequestId(requestId string) *ProjectsLocationsAssetsDeleteCall
- type ProjectsLocationsAssetsGetCall
- func (c *ProjectsLocationsAssetsGetCall) Context(ctx context.Context) *ProjectsLocationsAssetsGetCall
- func (c *ProjectsLocationsAssetsGetCall) Do(opts ...googleapi.CallOption) (*Asset, error)
- func (c *ProjectsLocationsAssetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsGetCall
- func (c *ProjectsLocationsAssetsGetCall) Header() http.Header
- func (c *ProjectsLocationsAssetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsGetCall
- func (c *ProjectsLocationsAssetsGetCall) View(view string) *ProjectsLocationsAssetsGetCall
- type ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) Context(ctx context.Context) *ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error)
- func (c *ProjectsLocationsAssetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) Filter(filter string) *ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) Header() http.Header
- func (c *ProjectsLocationsAssetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) OrderBy(orderBy string) *ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) PageSize(pageSize int64) *ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) PageToken(pageToken string) *ProjectsLocationsAssetsListCall
- func (c *ProjectsLocationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error
- func (c *ProjectsLocationsAssetsListCall) View(view string) *ProjectsLocationsAssetsListCall
- type ProjectsLocationsAssetsPatchCall
- func (c *ProjectsLocationsAssetsPatchCall) Context(ctx context.Context) *ProjectsLocationsAssetsPatchCall
- func (c *ProjectsLocationsAssetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsAssetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsPatchCall
- func (c *ProjectsLocationsAssetsPatchCall) Header() http.Header
- func (c *ProjectsLocationsAssetsPatchCall) RequestId(requestId string) *ProjectsLocationsAssetsPatchCall
- func (c *ProjectsLocationsAssetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAssetsPatchCall
- type ProjectsLocationsAssetsReportAssetFramesCall
- func (c *ProjectsLocationsAssetsReportAssetFramesCall) Context(ctx context.Context) *ProjectsLocationsAssetsReportAssetFramesCall
- func (c *ProjectsLocationsAssetsReportAssetFramesCall) Do(opts ...googleapi.CallOption) (*ReportAssetFramesResponse, error)
- func (c *ProjectsLocationsAssetsReportAssetFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsReportAssetFramesCall
- func (c *ProjectsLocationsAssetsReportAssetFramesCall) Header() http.Header
- func (c *ProjectsLocationsAssetsReportAssetFramesCall) Source(source string) *ProjectsLocationsAssetsReportAssetFramesCall
- type ProjectsLocationsAssetsService
- func (r *ProjectsLocationsAssetsService) AggregateValues(parent string, aggregateassetsvaluesrequest *AggregateAssetsValuesRequest) *ProjectsLocationsAssetsAggregateValuesCall
- func (r *ProjectsLocationsAssetsService) Create(parent string, asset *Asset) *ProjectsLocationsAssetsCreateCall
- func (r *ProjectsLocationsAssetsService) Delete(name string) *ProjectsLocationsAssetsDeleteCall
- func (r *ProjectsLocationsAssetsService) Get(name string) *ProjectsLocationsAssetsGetCall
- func (r *ProjectsLocationsAssetsService) List(parent string) *ProjectsLocationsAssetsListCall
- func (r *ProjectsLocationsAssetsService) Patch(name string, asset *Asset) *ProjectsLocationsAssetsPatchCall
- func (r *ProjectsLocationsAssetsService) ReportAssetFrames(parent string, frames *Frames) *ProjectsLocationsAssetsReportAssetFramesCall
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsImportJobsCreateCall
- func (c *ProjectsLocationsImportJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsCreateCall
- func (c *ProjectsLocationsImportJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsImportJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsCreateCall
- func (c *ProjectsLocationsImportJobsCreateCall) Header() http.Header
- func (c *ProjectsLocationsImportJobsCreateCall) ImportJobId(importJobId string) *ProjectsLocationsImportJobsCreateCall
- func (c *ProjectsLocationsImportJobsCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsCreateCall
- type ProjectsLocationsImportJobsDeleteCall
- func (c *ProjectsLocationsImportJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsDeleteCall
- func (c *ProjectsLocationsImportJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsImportJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsDeleteCall
- func (c *ProjectsLocationsImportJobsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsImportJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsDeleteCall
- type ProjectsLocationsImportJobsGetCall
- func (c *ProjectsLocationsImportJobsGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsGetCall
- func (c *ProjectsLocationsImportJobsGetCall) Do(opts ...googleapi.CallOption) (*ImportJob, error)
- func (c *ProjectsLocationsImportJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsGetCall
- func (c *ProjectsLocationsImportJobsGetCall) Header() http.Header
- func (c *ProjectsLocationsImportJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsGetCall
- func (c *ProjectsLocationsImportJobsGetCall) View(view string) *ProjectsLocationsImportJobsGetCall
- type ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) Do(opts ...googleapi.CallOption) (*ListImportJobsResponse, error)
- func (c *ProjectsLocationsImportJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) Filter(filter string) *ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) Header() http.Header
- func (c *ProjectsLocationsImportJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsListCall
- func (c *ProjectsLocationsImportJobsListCall) Pages(ctx context.Context, f func(*ListImportJobsResponse) error) error
- func (c *ProjectsLocationsImportJobsListCall) View(view string) *ProjectsLocationsImportJobsListCall
- type ProjectsLocationsImportJobsPatchCall
- func (c *ProjectsLocationsImportJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsImportJobsPatchCall
- func (c *ProjectsLocationsImportJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsImportJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsPatchCall
- func (c *ProjectsLocationsImportJobsPatchCall) Header() http.Header
- func (c *ProjectsLocationsImportJobsPatchCall) RequestId(requestId string) *ProjectsLocationsImportJobsPatchCall
- func (c *ProjectsLocationsImportJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsImportJobsPatchCall
- type ProjectsLocationsImportJobsRunCall
- func (c *ProjectsLocationsImportJobsRunCall) Context(ctx context.Context) *ProjectsLocationsImportJobsRunCall
- func (c *ProjectsLocationsImportJobsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsImportJobsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsRunCall
- func (c *ProjectsLocationsImportJobsRunCall) Header() http.Header
- type ProjectsLocationsImportJobsService
- func (r *ProjectsLocationsImportJobsService) Create(parent string, importjob *ImportJob) *ProjectsLocationsImportJobsCreateCall
- func (r *ProjectsLocationsImportJobsService) Delete(name string) *ProjectsLocationsImportJobsDeleteCall
- func (r *ProjectsLocationsImportJobsService) Get(name string) *ProjectsLocationsImportJobsGetCall
- func (r *ProjectsLocationsImportJobsService) List(parent string) *ProjectsLocationsImportJobsListCall
- func (r *ProjectsLocationsImportJobsService) Patch(name string, importjob *ImportJob) *ProjectsLocationsImportJobsPatchCall
- func (r *ProjectsLocationsImportJobsService) Run(name string, runimportjobrequest *RunImportJobRequest) *ProjectsLocationsImportJobsRunCall
- func (r *ProjectsLocationsImportJobsService) Validate(name string, validateimportjobrequest *ValidateImportJobRequest) *ProjectsLocationsImportJobsValidateCall
- type ProjectsLocationsImportJobsValidateCall
- func (c *ProjectsLocationsImportJobsValidateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsValidateCall
- func (c *ProjectsLocationsImportJobsValidateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsImportJobsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsValidateCall
- func (c *ProjectsLocationsImportJobsValidateCall) Header() http.Header
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsLocationsSourcesCreateCall
- func (c *ProjectsLocationsSourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsSourcesCreateCall
- func (c *ProjectsLocationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsSourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesCreateCall
- func (c *ProjectsLocationsSourcesCreateCall) Header() http.Header
- func (c *ProjectsLocationsSourcesCreateCall) RequestId(requestId string) *ProjectsLocationsSourcesCreateCall
- func (c *ProjectsLocationsSourcesCreateCall) SourceId(sourceId string) *ProjectsLocationsSourcesCreateCall
- type ProjectsLocationsSourcesDeleteCall
- func (c *ProjectsLocationsSourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSourcesDeleteCall
- func (c *ProjectsLocationsSourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsSourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesDeleteCall
- func (c *ProjectsLocationsSourcesDeleteCall) Header() http.Header
- func (c *ProjectsLocationsSourcesDeleteCall) RequestId(requestId string) *ProjectsLocationsSourcesDeleteCall
- type ProjectsLocationsSourcesGetCall
- func (c *ProjectsLocationsSourcesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesGetCall
- func (c *ProjectsLocationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error)
- func (c *ProjectsLocationsSourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesGetCall
- func (c *ProjectsLocationsSourcesGetCall) Header() http.Header
- func (c *ProjectsLocationsSourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesGetCall
- type ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error)
- func (c *ProjectsLocationsSourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) Filter(filter string) *ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) Header() http.Header
- func (c *ProjectsLocationsSourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesListCall
- func (c *ProjectsLocationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error
- type ProjectsLocationsSourcesPatchCall
- func (c *ProjectsLocationsSourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsSourcesPatchCall
- func (c *ProjectsLocationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsSourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesPatchCall
- func (c *ProjectsLocationsSourcesPatchCall) Header() http.Header
- func (c *ProjectsLocationsSourcesPatchCall) RequestId(requestId string) *ProjectsLocationsSourcesPatchCall
- func (c *ProjectsLocationsSourcesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSourcesPatchCall
- type ProjectsLocationsSourcesService
- func (r *ProjectsLocationsSourcesService) Create(parent string, source *Source) *ProjectsLocationsSourcesCreateCall
- func (r *ProjectsLocationsSourcesService) Delete(name string) *ProjectsLocationsSourcesDeleteCall
- func (r *ProjectsLocationsSourcesService) Get(name string) *ProjectsLocationsSourcesGetCall
- func (r *ProjectsLocationsSourcesService) List(parent string) *ProjectsLocationsSourcesListCall
- func (r *ProjectsLocationsSourcesService) Patch(name string, source *Source) *ProjectsLocationsSourcesPatchCall
- type ProjectsService
- type ReportAssetFramesResponse
- type RunImportJobRequest
- type RunningProcess
- type RunningProcessList
- type RunningService
- type RunningServiceList
- type RuntimeNetworkInfo
- type Selinux
- type Service
- type Source
- type Status
- type TimeZone
- type ValidateImportJobRequest
- type ValidationReport
- type VirtualMachineArchitectureDetails
- type VirtualMachineDetails
- type VirtualMachineDiskDetails
- type VirtualMachineNetworkDetails
- type VmwareDiskConfig
- type VmwarePlatformDetails
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the // email address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateAssetsValuesRequest ¶
type AggregateAssetsValuesRequest struct { // Aggregations: Array of aggregations to perform. Up to 25 aggregations // can be defined. Aggregations []*Aggregation `json:"aggregations,omitempty"` // Filter: The aggregation will be performed on assets that match the // provided filter. Filter string `json:"filter,omitempty"` // ForceSendFields is a list of field names (e.g. "Aggregations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Aggregations") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregateAssetsValuesRequest: A request to aggregate one or more values.
func (*AggregateAssetsValuesRequest) MarshalJSON ¶
func (s *AggregateAssetsValuesRequest) MarshalJSON() ([]byte, error)
type AggregateAssetsValuesResponse ¶
type AggregateAssetsValuesResponse struct { // Results: The aggregation results. Results []*AggregationResult `json:"results,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Results") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Results") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregateAssetsValuesResponse: A response to a request to aggregated assets values.
func (*AggregateAssetsValuesResponse) MarshalJSON ¶
func (s *AggregateAssetsValuesResponse) MarshalJSON() ([]byte, error)
type Aggregation ¶
type Aggregation struct { // Count: Count the number of matching objects. Count *AggregationCount `json:"count,omitempty"` // Field: The name of the field on which to aggregate. Field string `json:"field,omitempty"` // Frequency: Creates a frequency distribution of all field values. Frequency *AggregationFrequency `json:"frequency,omitempty"` // Histogram: Creates a bucketed histogram of field values. Histogram *AggregationHistogram `json:"histogram,omitempty"` // Sum: Sum over a numeric field. Sum *AggregationSum `json:"sum,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Count") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Aggregation: Message describing an aggregation. The message includes the aggregation type, parameters, and the field on which to perform the aggregation.
func (*Aggregation) MarshalJSON ¶
func (s *Aggregation) MarshalJSON() ([]byte, error)
type AggregationFrequency ¶
type AggregationFrequency struct { }
AggregationFrequency: Frequency distribution of all field values.
type AggregationHistogram ¶
type AggregationHistogram struct { // LowerBounds: Lower bounds of buckets. The response will contain `n+1` // buckets for `n` bounds. The first bucket will count all assets for // which the field value is smaller than the first bound. Subsequent // buckets will count assets for which the field value is greater or // equal to a lower bound and smaller than the next one. The last bucket // will count assets for which the field value is greater or equal to // the final lower bound. You can define up to 20 lower bounds. LowerBounds []float64 `json:"lowerBounds,omitempty"` // ForceSendFields is a list of field names (e.g. "LowerBounds") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LowerBounds") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregationHistogram: Histogram of bucketed assets counts by field value.
func (*AggregationHistogram) MarshalJSON ¶
func (s *AggregationHistogram) MarshalJSON() ([]byte, error)
type AggregationResult ¶
type AggregationResult struct { Count *AggregationResultCount `json:"count,omitempty"` Field string `json:"field,omitempty"` Frequency *AggregationResultFrequency `json:"frequency,omitempty"` Histogram *AggregationResultHistogram `json:"histogram,omitempty"` Sum *AggregationResultSum `json:"sum,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Count") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregationResult: Message describing a result of an aggregation.
func (*AggregationResult) MarshalJSON ¶
func (s *AggregationResult) MarshalJSON() ([]byte, error)
type AggregationResultCount ¶
type AggregationResultCount struct { Value int64 `json:"value,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Value") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Value") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregationResultCount: The result of a count aggregation.
func (*AggregationResultCount) MarshalJSON ¶
func (s *AggregationResultCount) MarshalJSON() ([]byte, error)
type AggregationResultFrequency ¶
type AggregationResultFrequency struct { Values map[string]string `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Values") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Values") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregationResultFrequency: The result of a frequency distribution aggregation.
func (*AggregationResultFrequency) MarshalJSON ¶
func (s *AggregationResultFrequency) MarshalJSON() ([]byte, error)
type AggregationResultHistogram ¶
type AggregationResultHistogram struct { // Buckets: Buckets in the histogram. There will be `n+1` buckets // matching `n` lower bounds in the request. The first bucket will be // from -infinity to the first bound. Subsequent buckets will be between // one bound and the next. The final bucket will be from the final bound // to infinity. Buckets []*AggregationResultHistogramBucket `json:"buckets,omitempty"` // ForceSendFields is a list of field names (e.g. "Buckets") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Buckets") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregationResultHistogram: The result of a bucketed histogram aggregation.
func (*AggregationResultHistogram) MarshalJSON ¶
func (s *AggregationResultHistogram) MarshalJSON() ([]byte, error)
type AggregationResultHistogramBucket ¶
type AggregationResultHistogramBucket struct { // Count: Count of items in the bucket. Count int64 `json:"count,omitempty,string"` // LowerBound: Lower bound - inclusive. LowerBound float64 `json:"lowerBound,omitempty"` // UpperBound: Upper bound - exclusive. UpperBound float64 `json:"upperBound,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Count") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregationResultHistogramBucket: A histogram bucket with a lower and upper bound, and a count of items with a field value between those bounds. The lower bound is inclusive and the upper bound is exclusive. Lower bound may be -infinity and upper bound may be infinity.
func (*AggregationResultHistogramBucket) MarshalJSON ¶
func (s *AggregationResultHistogramBucket) MarshalJSON() ([]byte, error)
func (*AggregationResultHistogramBucket) UnmarshalJSON ¶
func (s *AggregationResultHistogramBucket) UnmarshalJSON(data []byte) error
type AggregationResultSum ¶
type AggregationResultSum struct { Value float64 `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Value") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Value") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AggregationResultSum: The result of a sum aggregation.
func (*AggregationResultSum) MarshalJSON ¶
func (s *AggregationResultSum) MarshalJSON() ([]byte, error)
func (*AggregationResultSum) UnmarshalJSON ¶
func (s *AggregationResultSum) UnmarshalJSON(data []byte) error
type Asset ¶
type Asset struct { // Attributes: Generic asset attributes. Attributes map[string]string `json:"attributes,omitempty"` // CreateTime: Output only. The timestamp when the asset was created. CreateTime string `json:"createTime,omitempty"` // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The full name of the asset. Name string `json:"name,omitempty"` // Sources: Output only. The list of sources contributing to the asset. Sources []string `json:"sources,omitempty"` // UpdateTime: Output only. The timestamp when the asset was last // updated. UpdateTime string `json:"updateTime,omitempty"` // VirtualMachineDetails: Output only. Asset information specific for // virtual machines. VirtualMachineDetails *VirtualMachineDetails `json:"virtualMachineDetails,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Attributes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Attributes") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Asset: An asset represents a resource in your environment. Asset types include virtual machines and databases.
func (*Asset) MarshalJSON ¶
type AssetFrame ¶
type AssetFrame struct { // Attributes: Generic asset attributes. Attributes map[string]string `json:"attributes,omitempty"` // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // PerformanceSamples: Asset performance data samples. PerformanceSamples []*PerformanceSample `json:"performanceSamples,omitempty"` // ReportTime: The time the data was reported. ReportTime string `json:"reportTime,omitempty"` // TraceToken: Optional. Trace token is optionally provided to assist // with debugging and traceability. TraceToken string `json:"traceToken,omitempty"` // VirtualMachineDetails: Asset information specific for virtual // machines. VirtualMachineDetails *VirtualMachineDetails `json:"virtualMachineDetails,omitempty"` // ForceSendFields is a list of field names (e.g. "Attributes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Attributes") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AssetFrame: Contains data reported from an inventory source on an asset.
func (*AssetFrame) MarshalJSON ¶
func (s *AssetFrame) MarshalJSON() ([]byte, error)
type BiosDetails ¶
type BiosDetails struct { // BiosManufacturer: Bios manufacturer. BiosManufacturer string `json:"biosManufacturer,omitempty"` // BiosName: Bios name. BiosName string `json:"biosName,omitempty"` // BiosReleaseDate: Bios release date. BiosReleaseDate string `json:"biosReleaseDate,omitempty"` // BiosVersion: Bios version. BiosVersion string `json:"biosVersion,omitempty"` // SmbiosUuid: SMBios UUID. SmbiosUuid string `json:"smbiosUuid,omitempty"` // ForceSendFields is a list of field names (e.g. "BiosManufacturer") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BiosManufacturer") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
BiosDetails: Details about the bios.
func (*BiosDetails) MarshalJSON ¶
func (s *BiosDetails) MarshalJSON() ([]byte, error)
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type CpuUsageSample ¶
type CpuUsageSample struct { // UtilizedPercentage: Percentage of total CPU capacity utilized. Must // be in the interval [0, 100]. On most systems can be calculated using // 100 - idle percentage. UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"` // ForceSendFields is a list of field names (e.g. "UtilizedPercentage") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "UtilizedPercentage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CpuUsageSample: CPU usage sample.
func (*CpuUsageSample) MarshalJSON ¶
func (s *CpuUsageSample) MarshalJSON() ([]byte, error)
func (*CpuUsageSample) UnmarshalJSON ¶
func (s *CpuUsageSample) UnmarshalJSON(data []byte) error
type Date ¶
type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the // day isn't significant. Day int64 `json:"day,omitempty"` // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year // without a month and day. Month int64 `json:"month,omitempty"` // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a // date without a year. Year int64 `json:"year,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Day") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Date: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
func (*Date) MarshalJSON ¶
type DateTime ¶
type DateTime struct { // Day: Optional. Day of month. Must be from 1 to 31 and valid for the // year and month, or 0 if specifying a datetime without a day. Day int64 `json:"day,omitempty"` // Hours: Optional. Hours of day in 24 hour format. Should be from 0 to // 23, defaults to 0 (midnight). An API may choose to allow the value // "24:00:00" for scenarios like business closing time. Hours int64 `json:"hours,omitempty"` // Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, // defaults to 0. Minutes int64 `json:"minutes,omitempty"` // Month: Optional. Month of year. Must be from 1 to 12, or 0 if // specifying a datetime without a month. Month int64 `json:"month,omitempty"` // Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 // to 999,999,999, defaults to 0. Nanos int64 `json:"nanos,omitempty"` // Seconds: Optional. Seconds of minutes of the time. Must normally be // from 0 to 59, defaults to 0. An API may allow the value 60 if it // allows leap-seconds. Seconds int64 `json:"seconds,omitempty"` // TimeZone: Time zone. TimeZone *TimeZone `json:"timeZone,omitempty"` // UtcOffset: UTC offset. Must be whole seconds, between -18 hours and // +18 hours. For example, a UTC offset of -4:00 would be represented as // { seconds: -14400 }. UtcOffset string `json:"utcOffset,omitempty"` // Year: Optional. Year of date. Must be from 1 to 9999, or 0 if // specifying a datetime without a year. Year int64 `json:"year,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Day") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DateTime: Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations.
func (*DateTime) MarshalJSON ¶
type DiskEntry ¶
type DiskEntry struct { // DiskLabel: Disk label. DiskLabel string `json:"diskLabel,omitempty"` // DiskLabelType: Disk label type (e.g. BIOS/GPT) DiskLabelType string `json:"diskLabelType,omitempty"` // HwAddress: Disk hardware address (e.g. 0:1 for SCSI). HwAddress string `json:"hwAddress,omitempty"` // InterfaceType: Disks interface type (e.g. SATA/SCSI) InterfaceType string `json:"interfaceType,omitempty"` // Partitions: Partition layout. Partitions *DiskPartitionList `json:"partitions,omitempty"` // Status: Disk status (e.g. online). Status string `json:"status,omitempty"` // TotalCapacityBytes: Disk Capacity (required). TotalCapacityBytes int64 `json:"totalCapacityBytes,omitempty,string"` // TotalFreeBytes: Disk Free Space. TotalFreeBytes int64 `json:"totalFreeBytes,omitempty,string"` // VmwareConfig: Optional. Optional disk VMware details. VmwareConfig *VmwareDiskConfig `json:"vmwareConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "DiskLabel") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DiskLabel") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DiskEntry: Single disk entry.
func (*DiskEntry) MarshalJSON ¶
type DiskEntryList ¶
type DiskEntryList struct { // Entries: Disk entries. Entries []*DiskEntry `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DiskEntryList: VM disks.
func (*DiskEntryList) MarshalJSON ¶
func (s *DiskEntryList) MarshalJSON() ([]byte, error)
type DiskPartition ¶
type DiskPartition struct { // CapacityBytes: Partition capacity. CapacityBytes int64 `json:"capacityBytes,omitempty,string"` // FileSystem: Partition file system. FileSystem string `json:"fileSystem,omitempty"` // FreeBytes: Partition free space. FreeBytes int64 `json:"freeBytes,omitempty,string"` // MountPoint: Mount pount (Linux/Windows) or drive letter (Windows). MountPoint string `json:"mountPoint,omitempty"` // SubPartitions: Sub-partitions. SubPartitions *DiskPartitionList `json:"subPartitions,omitempty"` // Type: Partition type (e.g. BIOS boot). Type string `json:"type,omitempty"` // Uuid: Partition UUID. Uuid string `json:"uuid,omitempty"` // ForceSendFields is a list of field names (e.g. "CapacityBytes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CapacityBytes") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DiskPartition: Disk Partition details.
func (*DiskPartition) MarshalJSON ¶
func (s *DiskPartition) MarshalJSON() ([]byte, error)
type DiskPartitionList ¶
type DiskPartitionList struct { // Entries: Partition entries. Entries []*DiskPartition `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DiskPartitionList) MarshalJSON ¶
func (s *DiskPartitionList) MarshalJSON() ([]byte, error)
type DiskUsageSample ¶
type DiskUsageSample struct { // AverageIops: Average IOPS sampled over a short window. Must be // non-negative. AverageIops float64 `json:"averageIops,omitempty"` // ForceSendFields is a list of field names (e.g. "AverageIops") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AverageIops") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DiskUsageSample: Disk usage sample. Values are across all disks.
func (*DiskUsageSample) MarshalJSON ¶
func (s *DiskUsageSample) MarshalJSON() ([]byte, error)
func (*DiskUsageSample) UnmarshalJSON ¶
func (s *DiskUsageSample) UnmarshalJSON(data []byte) error
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type ExecutionReport ¶
type ExecutionReport struct { // ExecutionErrors: Validation errors encountered during the execution // of the import job. ExecutionErrors *ValidationReport `json:"executionErrors,omitempty"` // FramesReported: Total number of asset frames reported for the import // job. FramesReported int64 `json:"framesReported,omitempty"` // JobErrors: List of job-level errors. Deprecated, use the job errors // under execution_errors instead. JobErrors []*ImportError `json:"jobErrors,omitempty"` // TotalRowsCount: Total number of rows in the import job. TotalRowsCount int64 `json:"totalRowsCount,omitempty"` // ForceSendFields is a list of field names (e.g. "ExecutionErrors") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExecutionErrors") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ExecutionReport: A resource that reports result of the import job execution.
func (*ExecutionReport) MarshalJSON ¶
func (s *ExecutionReport) MarshalJSON() ([]byte, error)
type FileValidationReport ¶
type FileValidationReport struct { // FileErrors: List of file level errors. FileErrors []*ImportError `json:"fileErrors,omitempty"` // FileName: The name of the file. FileName string `json:"fileName,omitempty"` // PartialReport: Flag indicating that processing was aborted due to // maximum number of errors. PartialReport bool `json:"partialReport,omitempty"` // RowErrors: Partial list of rows that encountered validation error. RowErrors []*ImportRowError `json:"rowErrors,omitempty"` // ForceSendFields is a list of field names (e.g. "FileErrors") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FileErrors") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FileValidationReport: A resource that aggregates the validation errors found in an import job file.
func (*FileValidationReport) MarshalJSON ¶
func (s *FileValidationReport) MarshalJSON() ([]byte, error)
type Frames ¶
type Frames struct { // FramesData: A repeated field of asset data. FramesData []*AssetFrame `json:"framesData,omitempty"` // ForceSendFields is a list of field names (e.g. "FramesData") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FramesData") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Frames: Collection of frame data.
func (*Frames) MarshalJSON ¶
type FstabEntry ¶
type FstabEntry struct { // File: The mount point for the filesystem. File string `json:"file,omitempty"` // Freq: Used by dump to determine which filesystems need to be dumped. Freq int64 `json:"freq,omitempty"` // Mntops: Mount options associated with the filesystem. Mntops string `json:"mntops,omitempty"` // Passno: Used by the fsck(8) program to determine the order in which // filesystem checks are done at reboot time. Passno int64 `json:"passno,omitempty"` // Spec: The block special device or remote filesystem to be mounted. Spec string `json:"spec,omitempty"` // Vfstype: The type of the filesystem. Vfstype string `json:"vfstype,omitempty"` // ForceSendFields is a list of field names (e.g. "File") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "File") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FstabEntry: Single fstab entry.
func (*FstabEntry) MarshalJSON ¶
func (s *FstabEntry) MarshalJSON() ([]byte, error)
type FstabEntryList ¶
type FstabEntryList struct { // Entries: Fstab entries. Entries []*FstabEntry `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FstabEntryList: Fstab content.
func (*FstabEntryList) MarshalJSON ¶
func (s *FstabEntryList) MarshalJSON() ([]byte, error)
type GCSPayloadInfo ¶
type GCSPayloadInfo struct { // Format: The import job format. // // Possible values: // "IMPORT_JOB_FORMAT_UNSPECIFIED" - Default value. // "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format. // "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX). // "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV). // "IMPORT_JOB_FORMAT_JSON_FRAME" - `AssetFrame` list in JSON format. Format string `json:"format,omitempty"` // Path: The payload path in Google Cloud Storage. Path string `json:"path,omitempty"` // ForceSendFields is a list of field names (e.g. "Format") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Format") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GCSPayloadInfo: A resource that represents a payload hosted on Google Cloud Storage.
func (*GCSPayloadInfo) MarshalJSON ¶
func (s *GCSPayloadInfo) MarshalJSON() ([]byte, error)
type GuestConfigDetails ¶
type GuestConfigDetails struct { // Fstab: Mount list (Linux fstab). Fstab *FstabEntryList `json:"fstab,omitempty"` // Hosts: Hosts file (/etc/hosts). Hosts *HostsEntryList `json:"hosts,omitempty"` // Issue: OS issue (typically /etc/issue in Linux). Issue string `json:"issue,omitempty"` // NfsExports: NFS exports. NfsExports *NfsExportList `json:"nfsExports,omitempty"` // Selinux: SELinux details. Selinux *Selinux `json:"selinux,omitempty"` // ForceSendFields is a list of field names (e.g. "Fstab") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Fstab") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestConfigDetails: Guest OS config information.
func (*GuestConfigDetails) MarshalJSON ¶
func (s *GuestConfigDetails) MarshalJSON() ([]byte, error)
type GuestInstalledApplication ¶
type GuestInstalledApplication struct { // Name: Installed application name . Name string `json:"name,omitempty"` // Path: Source path. Path string `json:"path,omitempty"` // Time: Date application was installed. Time string `json:"time,omitempty"` // Vendor: Installed application vendor. Vendor string `json:"vendor,omitempty"` // Version: Installed application version. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Name") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestInstalledApplication: Guest installed application information.
func (*GuestInstalledApplication) MarshalJSON ¶
func (s *GuestInstalledApplication) MarshalJSON() ([]byte, error)
type GuestInstalledApplicationList ¶
type GuestInstalledApplicationList struct { Entries []*GuestInstalledApplication `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestInstalledApplicationList: Guest installed application list.
func (*GuestInstalledApplicationList) MarshalJSON ¶
func (s *GuestInstalledApplicationList) MarshalJSON() ([]byte, error)
type GuestOsDetails ¶
type GuestOsDetails struct { // Config: OS and app configuration. Config *GuestConfigDetails `json:"config,omitempty"` // Runtime: Runtime information. Runtime *GuestRuntimeDetails `json:"runtime,omitempty"` // ForceSendFields is a list of field names (e.g. "Config") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Config") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestOsDetails: Information from Guest-level collections.
func (*GuestOsDetails) MarshalJSON ¶
func (s *GuestOsDetails) MarshalJSON() ([]byte, error)
type GuestRuntimeDetails ¶
type GuestRuntimeDetails struct { // Domain: Domain, e.g. c.stratozone-development.internal. Domain string `json:"domain,omitempty"` // InstalledApps: Installed applications information. InstalledApps *GuestInstalledApplicationList `json:"installedApps,omitempty"` // LastUptime: Date since last booted (last uptime date). LastUptime *Date `json:"lastUptime,omitempty"` // MachineName: Machine name. MachineName string `json:"machineName,omitempty"` // NetworkInfo: Runtime network information (connections ports). NetworkInfo *RuntimeNetworkInfo `json:"networkInfo,omitempty"` // OpenFileList: Open files information. OpenFileList *OpenFileList `json:"openFileList,omitempty"` // Processes: Running processes. Processes *RunningProcessList `json:"processes,omitempty"` // Services: Running background services. Services *RunningServiceList `json:"services,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Domain") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GuestRuntimeDetails: Guest OS runtime information.
func (*GuestRuntimeDetails) MarshalJSON ¶
func (s *GuestRuntimeDetails) MarshalJSON() ([]byte, error)
type HostsEntry ¶
type HostsEntry struct { // HostNames: List of host names / aliases. HostNames []string `json:"hostNames,omitempty"` // Ip: IP (raw, IPv4/6 agnostic). Ip string `json:"ip,omitempty"` // ForceSendFields is a list of field names (e.g. "HostNames") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HostNames") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HostsEntry: Single /etc/hosts entry.
func (*HostsEntry) MarshalJSON ¶
func (s *HostsEntry) MarshalJSON() ([]byte, error)
type HostsEntryList ¶
type HostsEntryList struct { // Entries: Hosts entries. Entries []*HostsEntry `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
HostsEntryList: Hosts content.
func (*HostsEntryList) MarshalJSON ¶
func (s *HostsEntryList) MarshalJSON() ([]byte, error)
type ImportError ¶
type ImportError struct { // ErrorDetails: The error information. ErrorDetails string `json:"errorDetails,omitempty"` // Severity: The severity of the error. // // Possible values: // "SEVERITY_UNSPECIFIED" // "ERROR" // "WARNING" // "INFO" Severity string `json:"severity,omitempty"` // ForceSendFields is a list of field names (e.g. "ErrorDetails") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ErrorDetails") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ImportError: A resource that reports the errors encountered while processing an import job.
func (*ImportError) MarshalJSON ¶
func (s *ImportError) MarshalJSON() ([]byte, error)
type ImportJob ¶
type ImportJob struct { // AssetSource: Required. Reference to a source. AssetSource string `json:"assetSource,omitempty"` // CompleteTime: Output only. The timestamp when the import job was // completed. CompleteTime string `json:"completeTime,omitempty"` // CreateTime: Output only. The timestamp when the import job was // created. CreateTime string `json:"createTime,omitempty"` // ExecutionReport: Output only. The report with the results of running // the import job. ExecutionReport *ExecutionReport `json:"executionReport,omitempty"` // GcsPayload: The payload is in Google Cloud Storage. GcsPayload *GCSPayloadInfo `json:"gcsPayload,omitempty"` // InlinePayload: The payload is included in the request, mainly used // for small import jobs. InlinePayload *InlinePayloadInfo `json:"inlinePayload,omitempty"` // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The full name of the import job. Name string `json:"name,omitempty"` // State: Output only. The state of the import job. // // Possible values: // "IMPORT_JOB_STATE_UNSPECIFIED" - Default value. // "IMPORT_JOB_STATE_PENDING" - The import job is pending. // "IMPORT_JOB_STATE_RUNNING" - The processing of the import job is // ongoing. // "IMPORT_JOB_STATE_COMPLETED" - The import job processing has // completed. // "IMPORT_JOB_STATE_FAILED" - The import job failed to be processed. // "IMPORT_JOB_STATE_VALIDATING" - The import job is being validated. // "IMPORT_JOB_STATE_FAILED_VALIDATION" - The import job contains // blocking errors. // "IMPORT_JOB_STATE_READY" - The validation of the job completed with // no blocking errors. State string `json:"state,omitempty"` // UpdateTime: Output only. The timestamp when the import job was last // updated. UpdateTime string `json:"updateTime,omitempty"` // ValidationReport: Output only. The report with the validation results // of the import job. ValidationReport *ValidationReport `json:"validationReport,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AssetSource") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AssetSource") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ImportJob: A resource that represents the background job that imports asset frames.
func (*ImportJob) MarshalJSON ¶
type ImportRowError ¶
type ImportRowError struct { // Errors: The list of errors detected in the row. Errors []*ImportError `json:"errors,omitempty"` // RowNumber: The row number where the error was detected. RowNumber int64 `json:"rowNumber,omitempty"` // VmName: The name of the VM in the row. VmName string `json:"vmName,omitempty"` // VmUuid: The VM UUID. VmUuid string `json:"vmUuid,omitempty"` // ForceSendFields is a list of field names (e.g. "Errors") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Errors") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ImportRowError: A resource that reports the import job errors at row level.
func (*ImportRowError) MarshalJSON ¶
func (s *ImportRowError) MarshalJSON() ([]byte, error)
type InlinePayloadInfo ¶
type InlinePayloadInfo struct { // Format: The import job format. // // Possible values: // "IMPORT_JOB_FORMAT_UNSPECIFIED" - Default value. // "IMPORT_JOB_FORMAT_CMDB" - Configuration management DB format. // "IMPORT_JOB_FORMAT_RVTOOLS_XLSX" - RVTools format (XLSX). // "IMPORT_JOB_FORMAT_RVTOOLS_CSV" - RVTools format (CSV). // "IMPORT_JOB_FORMAT_JSON_FRAME" - `AssetFrame` list in JSON format. Format string `json:"format,omitempty"` // Payload: List of payload files. Payload []*PayloadFile `json:"payload,omitempty"` // ForceSendFields is a list of field names (e.g. "Format") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Format") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InlinePayloadInfo: A resource that represents the inline import job payload.
func (*InlinePayloadInfo) MarshalJSON ¶
func (s *InlinePayloadInfo) MarshalJSON() ([]byte, error)
type ListAssetsResponse ¶
type ListAssetsResponse struct { // Assets: A list of assets. Assets []*Asset `json:"assets,omitempty"` // NextPageToken: A token identifying a page of results the server // should return. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Assets") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Assets") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListAssetsResponse: Response message for listing assets.
func (*ListAssetsResponse) MarshalJSON ¶
func (s *ListAssetsResponse) MarshalJSON() ([]byte, error)
type ListImportJobsResponse ¶
type ListImportJobsResponse struct { // ImportJobs: The list of import jobs. ImportJobs []*ImportJob `json:"importJobs,omitempty"` // NextPageToken: A token identifying a page of results the server // should return. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ImportJobs") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ImportJobs") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListImportJobsResponse: A response for listing import jobs.
func (*ListImportJobsResponse) MarshalJSON ¶
func (s *ListImportJobsResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
type ListLocationsResponse struct { // Locations: A list of locations that matches the specified filter in // the request. Locations []*Location `json:"locations,omitempty"` // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locations") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListLocationsResponse: The response message for Locations.ListLocations.
func (*ListLocationsResponse) MarshalJSON ¶
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*Operation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListSourcesResponse ¶
type ListSourcesResponse struct { // NextPageToken: A token identifying a page of results the server // should return. NextPageToken string `json:"nextPageToken,omitempty"` // Sources: The list of sources. Sources []*Source `json:"sources,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListSourcesResponse: Response message for listing sources.
func (*ListSourcesResponse) MarshalJSON ¶
func (s *ListSourcesResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` // LocationId: The canonical id for this location. For example: // "us-east1". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available // capacity at the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Location: A resource that represents Google Cloud Platform location.
func (*Location) MarshalJSON ¶
type MemoryUsageSample ¶
type MemoryUsageSample struct { // UtilizedPercentage: Percentage of system memory utilized. Must be in // the interval [0, 100]. UtilizedPercentage float64 `json:"utilizedPercentage,omitempty"` // ForceSendFields is a list of field names (e.g. "UtilizedPercentage") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "UtilizedPercentage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
MemoryUsageSample: Memory usage sample.
func (*MemoryUsageSample) MarshalJSON ¶
func (s *MemoryUsageSample) MarshalJSON() ([]byte, error)
func (*MemoryUsageSample) UnmarshalJSON ¶
func (s *MemoryUsageSample) UnmarshalJSON(data []byte) error
type NetworkAdapterDetails ¶
type NetworkAdapterDetails struct { // AdapterType: Network adapter type (e.g. VMXNET3). AdapterType string `json:"adapterType,omitempty"` // Addresses: NetworkAddressList Addresses *NetworkAddressList `json:"addresses,omitempty"` // MacAddress: MAC address. MacAddress string `json:"macAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "AdapterType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdapterType") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkAdapterDetails: Details of network adapter.
func (*NetworkAdapterDetails) MarshalJSON ¶
func (s *NetworkAdapterDetails) MarshalJSON() ([]byte, error)
type NetworkAdapterList ¶
type NetworkAdapterList struct { // NetworkAdapters: Network Adapter descriptions. NetworkAdapters []*NetworkAdapterDetails `json:"networkAdapters,omitempty"` // ForceSendFields is a list of field names (e.g. "NetworkAdapters") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NetworkAdapters") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworkAdapterList) MarshalJSON ¶
func (s *NetworkAdapterList) MarshalJSON() ([]byte, error)
type NetworkAddress ¶
type NetworkAddress struct { // Assignment: If DHCP is used to assign addresses. // // Possible values: // "ADDRESS_ASSIGNMENT_UNSPECIFIED" - Unknown (default value). // "ADDRESS_ASSIGNMENT_STATIC" - Staticly assigned IP. // "ADDRESS_ASSIGNMENT_DHCP" - Dynamically assigned IP (DHCP). Assignment string `json:"assignment,omitempty"` // Bcast: Broadcast address. Bcast string `json:"bcast,omitempty"` // Fqdn: Fully qualified domain name. Fqdn string `json:"fqdn,omitempty"` // IpAddress: Assigned or configured IP Address. IpAddress string `json:"ipAddress,omitempty"` // SubnetMask: Subnet mask. SubnetMask string `json:"subnetMask,omitempty"` // ForceSendFields is a list of field names (e.g. "Assignment") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Assignment") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkAddress: Details of network address.
func (*NetworkAddress) MarshalJSON ¶
func (s *NetworkAddress) MarshalJSON() ([]byte, error)
type NetworkAddressList ¶
type NetworkAddressList struct { Addresses []*NetworkAddress `json:"addresses,omitempty"` // ForceSendFields is a list of field names (e.g. "Addresses") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Addresses") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkAddressList: List of allocated/assigned network addresses.
func (*NetworkAddressList) MarshalJSON ¶
func (s *NetworkAddressList) MarshalJSON() ([]byte, error)
type NetworkConnection ¶
type NetworkConnection struct { // LocalIpAddress: Local IP address. LocalIpAddress string `json:"localIpAddress,omitempty"` // LocalPort: Local port. LocalPort int64 `json:"localPort,omitempty"` // Pid: Process ID. Pid int64 `json:"pid,omitempty,string"` // ProcessName: Process or service name. ProcessName string `json:"processName,omitempty"` // Protocol: Connection protocol (e.g. TCP/UDP). Protocol string `json:"protocol,omitempty"` // RemoteIpAddress: Remote IP address. RemoteIpAddress string `json:"remoteIpAddress,omitempty"` // RemotePort: Remote port. RemotePort int64 `json:"remotePort,omitempty"` // State: Connection state (e.g. CONNECTED). State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "LocalIpAddress") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LocalIpAddress") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*NetworkConnection) MarshalJSON ¶
func (s *NetworkConnection) MarshalJSON() ([]byte, error)
type NetworkConnectionList ¶
type NetworkConnectionList struct { Entries []*NetworkConnection `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NetworkConnectionList: Network connection list.
func (*NetworkConnectionList) MarshalJSON ¶
func (s *NetworkConnectionList) MarshalJSON() ([]byte, error)
type NetworkUsageSample ¶
type NetworkUsageSample struct { // AverageEgressBps: Average network egress in B/s sampled over a short // window. Must be non-negative. AverageEgressBps float64 `json:"averageEgressBps,omitempty"` // AverageIngressBps: Average network ingress in B/s sampled over a // short window. Must be non-negative. AverageIngressBps float64 `json:"averageIngressBps,omitempty"` // ForceSendFields is a list of field names (e.g. "AverageEgressBps") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AverageEgressBps") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
NetworkUsageSample: Network usage sample. Values are across all network interfaces.
func (*NetworkUsageSample) MarshalJSON ¶
func (s *NetworkUsageSample) MarshalJSON() ([]byte, error)
func (*NetworkUsageSample) UnmarshalJSON ¶
func (s *NetworkUsageSample) UnmarshalJSON(data []byte) error
type NfsExport ¶
type NfsExport struct { // ExportDirectory: The directory being exported. ExportDirectory string `json:"exportDirectory,omitempty"` // Hosts: The hosts or networks to which the export is being shared. Hosts []string `json:"hosts,omitempty"` // ForceSendFields is a list of field names (e.g. "ExportDirectory") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExportDirectory") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
NfsExport: NFS export.
func (*NfsExport) MarshalJSON ¶
type NfsExportList ¶
type NfsExportList struct { // Entries: NFS export entries. Entries []*NfsExport `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NfsExportList: NFS exports.
func (*NfsExportList) MarshalJSON ¶
func (s *NfsExportList) MarshalJSON() ([]byte, error)
type OpenFileDetails ¶
type OpenFileDetails struct { // Command: Opened file command. Command string `json:"command,omitempty"` // FilePath: Opened file file path. FilePath string `json:"filePath,omitempty"` // FileType: Opened file file type. FileType string `json:"fileType,omitempty"` // User: Opened file user. User string `json:"user,omitempty"` // ForceSendFields is a list of field names (e.g. "Command") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Command") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OpenFileDetails: Open file Information.
func (*OpenFileDetails) MarshalJSON ¶
func (s *OpenFileDetails) MarshalJSON() ([]byte, error)
type OpenFileList ¶
type OpenFileList struct { // Entries: Open file details entries. Entries []*OpenFileDetails `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OpenFileList: Open file list.
func (*OpenFileList) MarshalJSON ¶
func (s *OpenFileList) MarshalJSON() ([]byte, error)
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. If `true`, the operation is completed, and either `error` // or `response` is available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or // cancellation. Error *Status `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as // create time. Some services might not provide such metadata. Any // method that returns a long-running operation should document the // metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping, the `name` should be a resource name ending with // `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. If // the original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type // `XxxResponse`, where `Xxx` is the original method name. For example, // if the original method name is `TakeSnapshot()`, the inferred // response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have been // cancelled successfully have Operation.error value with a // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, // if any. StatusMessage string `json:"statusMessage,omitempty"` // Target: Output only. Server-defined resource path for the target of // the operation. Target string `json:"target,omitempty"` // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApiVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OperationMetadata: Represents the metadata of the long-running operation.
func (*OperationMetadata) MarshalJSON ¶
func (s *OperationMetadata) MarshalJSON() ([]byte, error)
type PayloadFile ¶
type PayloadFile struct { // Data: The file data. Data string `json:"data,omitempty"` // Name: The file name. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Data") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Data") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PayloadFile: Payload file for inline import job payload.
func (*PayloadFile) MarshalJSON ¶
func (s *PayloadFile) MarshalJSON() ([]byte, error)
type PerformanceSample ¶
type PerformanceSample struct { // Cpu: CPU usage sample. Cpu *CpuUsageSample `json:"cpu,omitempty"` // Disk: Disk usage sample. Disk *DiskUsageSample `json:"disk,omitempty"` // Memory: Memory usage sample. Memory *MemoryUsageSample `json:"memory,omitempty"` // Network: Network usage sample. Network *NetworkUsageSample `json:"network,omitempty"` // SampleTime: Time the sample was collected. SampleTime string `json:"sampleTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Cpu") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Cpu") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PerformanceSample: Performance data sample.
func (*PerformanceSample) MarshalJSON ¶
func (s *PerformanceSample) MarshalJSON() ([]byte, error)
type PlatformDetails ¶
type PlatformDetails struct { // VmwareDetails: VMware specific details. VmwareDetails *VmwarePlatformDetails `json:"vmwareDetails,omitempty"` // ForceSendFields is a list of field names (e.g. "VmwareDetails") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "VmwareDetails") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PlatformDetails: Information about the platform.
func (*PlatformDetails) MarshalJSON ¶
func (s *PlatformDetails) MarshalJSON() ([]byte, error)
type ProjectsLocationsAssetsAggregateValuesCall ¶
type ProjectsLocationsAssetsAggregateValuesCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAssetsAggregateValuesCall) Context ¶
func (c *ProjectsLocationsAssetsAggregateValuesCall) Context(ctx context.Context) *ProjectsLocationsAssetsAggregateValuesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAssetsAggregateValuesCall) Do ¶
func (c *ProjectsLocationsAssetsAggregateValuesCall) Do(opts ...googleapi.CallOption) (*AggregateAssetsValuesResponse, error)
Do executes the "migrationcenter.projects.locations.assets.aggregateValues" call. Exactly one of *AggregateAssetsValuesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AggregateAssetsValuesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAssetsAggregateValuesCall) Fields ¶
func (c *ProjectsLocationsAssetsAggregateValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsAggregateValuesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsAssetsAggregateValuesCall) Header ¶
func (c *ProjectsLocationsAssetsAggregateValuesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsAssetsCreateCall ¶
type ProjectsLocationsAssetsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAssetsCreateCall) AssetId ¶
func (c *ProjectsLocationsAssetsCreateCall) AssetId(assetId string) *ProjectsLocationsAssetsCreateCall
AssetId sets the optional parameter "assetId":
func (*ProjectsLocationsAssetsCreateCall) Context ¶
func (c *ProjectsLocationsAssetsCreateCall) Context(ctx context.Context) *ProjectsLocationsAssetsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAssetsCreateCall) Do ¶
func (c *ProjectsLocationsAssetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.assets.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAssetsCreateCall) Fields ¶
func (c *ProjectsLocationsAssetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsAssetsCreateCall) Header ¶
func (c *ProjectsLocationsAssetsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAssetsCreateCall) RequestId ¶
func (c *ProjectsLocationsAssetsCreateCall) RequestId(requestId string) *ProjectsLocationsAssetsCreateCall
RequestId sets the optional parameter "requestId": 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 ProjectsLocationsAssetsDeleteCall ¶
type ProjectsLocationsAssetsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAssetsDeleteCall) Context ¶
func (c *ProjectsLocationsAssetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAssetsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAssetsDeleteCall) Do ¶
func (c *ProjectsLocationsAssetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.assets.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAssetsDeleteCall) Fields ¶
func (c *ProjectsLocationsAssetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsAssetsDeleteCall) Header ¶
func (c *ProjectsLocationsAssetsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAssetsDeleteCall) RequestId ¶
func (c *ProjectsLocationsAssetsDeleteCall) RequestId(requestId string) *ProjectsLocationsAssetsDeleteCall
RequestId sets the optional parameter "requestId": 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 after 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 ProjectsLocationsAssetsGetCall ¶
type ProjectsLocationsAssetsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAssetsGetCall) Context ¶
func (c *ProjectsLocationsAssetsGetCall) Context(ctx context.Context) *ProjectsLocationsAssetsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAssetsGetCall) Do ¶
func (c *ProjectsLocationsAssetsGetCall) Do(opts ...googleapi.CallOption) (*Asset, error)
Do executes the "migrationcenter.projects.locations.assets.get" call. Exactly one of *Asset or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Asset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAssetsGetCall) Fields ¶
func (c *ProjectsLocationsAssetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsAssetsGetCall) Header ¶
func (c *ProjectsLocationsAssetsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAssetsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsAssetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsAssetsGetCall) View ¶
func (c *ProjectsLocationsAssetsGetCall) View(view string) *ProjectsLocationsAssetsGetCall
View sets the optional parameter "view": View of the assets. Defaults to BASIC.
Possible values:
"ASSET_VIEW_UNSPECIFIED" - The asset view is not specified. The API
displays the basic view by default.
"ASSET_VIEW_BASIC" - The asset view includes only basic metadata of
the asset.
"ASSET_VIEW_FULL" - The asset view includes all the metadata of an
asset.
"ASSET_VIEW_STANDARD" - The asset view includes the standard
metadata of an asset.
type ProjectsLocationsAssetsListCall ¶
type ProjectsLocationsAssetsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAssetsListCall) Context ¶
func (c *ProjectsLocationsAssetsListCall) Context(ctx context.Context) *ProjectsLocationsAssetsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAssetsListCall) Do ¶
func (c *ProjectsLocationsAssetsListCall) Do(opts ...googleapi.CallOption) (*ListAssetsResponse, error)
Do executes the "migrationcenter.projects.locations.assets.list" call. Exactly one of *ListAssetsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListAssetsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAssetsListCall) Fields ¶
func (c *ProjectsLocationsAssetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsAssetsListCall) Filter ¶
func (c *ProjectsLocationsAssetsListCall) Filter(filter string) *ProjectsLocationsAssetsListCall
Filter sets the optional parameter "filter": Filtering results.
func (*ProjectsLocationsAssetsListCall) Header ¶
func (c *ProjectsLocationsAssetsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAssetsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsAssetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAssetsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsAssetsListCall) OrderBy ¶
func (c *ProjectsLocationsAssetsListCall) OrderBy(orderBy string) *ProjectsLocationsAssetsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsAssetsListCall) PageSize ¶
func (c *ProjectsLocationsAssetsListCall) PageSize(pageSize int64) *ProjectsLocationsAssetsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsAssetsListCall) PageToken ¶
func (c *ProjectsLocationsAssetsListCall) PageToken(pageToken string) *ProjectsLocationsAssetsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsAssetsListCall) Pages ¶
func (c *ProjectsLocationsAssetsListCall) Pages(ctx context.Context, f func(*ListAssetsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*ProjectsLocationsAssetsListCall) View ¶
func (c *ProjectsLocationsAssetsListCall) View(view string) *ProjectsLocationsAssetsListCall
View sets the optional parameter "view": View of the assets. Defaults to BASIC.
Possible values:
"ASSET_VIEW_UNSPECIFIED" - The asset view is not specified. The API
displays the basic view by default.
"ASSET_VIEW_BASIC" - The asset view includes only basic metadata of
the asset.
"ASSET_VIEW_FULL" - The asset view includes all the metadata of an
asset.
"ASSET_VIEW_STANDARD" - The asset view includes the standard
metadata of an asset.
type ProjectsLocationsAssetsPatchCall ¶
type ProjectsLocationsAssetsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAssetsPatchCall) Context ¶
func (c *ProjectsLocationsAssetsPatchCall) Context(ctx context.Context) *ProjectsLocationsAssetsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAssetsPatchCall) Do ¶
func (c *ProjectsLocationsAssetsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.assets.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAssetsPatchCall) Fields ¶
func (c *ProjectsLocationsAssetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsAssetsPatchCall) Header ¶
func (c *ProjectsLocationsAssetsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAssetsPatchCall) RequestId ¶
func (c *ProjectsLocationsAssetsPatchCall) RequestId(requestId string) *ProjectsLocationsAssetsPatchCall
RequestId sets the optional parameter "requestId": 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).
func (*ProjectsLocationsAssetsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsAssetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAssetsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the `Asset` resource by the update. The values specified in the `update_mask` field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.
type ProjectsLocationsAssetsReportAssetFramesCall ¶
type ProjectsLocationsAssetsReportAssetFramesCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsAssetsReportAssetFramesCall) Context ¶
func (c *ProjectsLocationsAssetsReportAssetFramesCall) Context(ctx context.Context) *ProjectsLocationsAssetsReportAssetFramesCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsAssetsReportAssetFramesCall) Do ¶
func (c *ProjectsLocationsAssetsReportAssetFramesCall) Do(opts ...googleapi.CallOption) (*ReportAssetFramesResponse, error)
Do executes the "migrationcenter.projects.locations.assets.reportAssetFrames" call. Exactly one of *ReportAssetFramesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReportAssetFramesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsAssetsReportAssetFramesCall) Fields ¶
func (c *ProjectsLocationsAssetsReportAssetFramesCall) Fields(s ...googleapi.Field) *ProjectsLocationsAssetsReportAssetFramesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsAssetsReportAssetFramesCall) Header ¶
func (c *ProjectsLocationsAssetsReportAssetFramesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsAssetsReportAssetFramesCall) Source ¶
func (c *ProjectsLocationsAssetsReportAssetFramesCall) Source(source string) *ProjectsLocationsAssetsReportAssetFramesCall
Source sets the optional parameter "source": Required. Reference to a source.
type ProjectsLocationsAssetsService ¶
type ProjectsLocationsAssetsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsAssetsService ¶
func NewProjectsLocationsAssetsService(s *Service) *ProjectsLocationsAssetsService
func (*ProjectsLocationsAssetsService) AggregateValues ¶
func (r *ProjectsLocationsAssetsService) AggregateValues(parent string, aggregateassetsvaluesrequest *AggregateAssetsValuesRequest) *ProjectsLocationsAssetsAggregateValuesCall
AggregateValues: Aggregates the requested fields based on provided function.
- parent: Parent value for `AggregateAssetsValuesRequest`.
func (*ProjectsLocationsAssetsService) Create ¶
func (r *ProjectsLocationsAssetsService) Create(parent string, asset *Asset) *ProjectsLocationsAssetsCreateCall
Create: Creates a new asset in a given project and location. Deprecated: Use ReportAssetFrames instead.
- parent: Value for parent.
func (*ProjectsLocationsAssetsService) Delete ¶
func (r *ProjectsLocationsAssetsService) Delete(name string) *ProjectsLocationsAssetsDeleteCall
Delete: Deletes an asset.
- name: Name of the resource.
func (*ProjectsLocationsAssetsService) Get ¶
func (r *ProjectsLocationsAssetsService) Get(name string) *ProjectsLocationsAssetsGetCall
Get: Gets the details of an asset.
- name: Name of the resource.
func (*ProjectsLocationsAssetsService) List ¶
func (r *ProjectsLocationsAssetsService) List(parent string) *ProjectsLocationsAssetsListCall
List: Lists all the assets in a given project and location.
- parent: Parent value for `ListAssetsRequest`.
func (*ProjectsLocationsAssetsService) Patch ¶
func (r *ProjectsLocationsAssetsService) Patch(name string, asset *Asset) *ProjectsLocationsAssetsPatchCall
Patch: Updates the parameters of an asset.
- name: Output only. The full name of the asset.
func (*ProjectsLocationsAssetsService) ReportAssetFrames ¶
func (r *ProjectsLocationsAssetsService) ReportAssetFrames(parent string, frames *Frames) *ProjectsLocationsAssetsReportAssetFramesCall
ReportAssetFrames: Reports a set of frames.
- parent: Parent of the resource.
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "migrationcenter.projects.locations.get" call. Exactly one of *Location or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall) Fields ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsImportJobsCreateCall ¶
type ProjectsLocationsImportJobsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsImportJobsCreateCall) Context ¶
func (c *ProjectsLocationsImportJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsImportJobsCreateCall) Do ¶
func (c *ProjectsLocationsImportJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.importJobs.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsImportJobsCreateCall) Fields ¶
func (c *ProjectsLocationsImportJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsImportJobsCreateCall) Header ¶
func (c *ProjectsLocationsImportJobsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsImportJobsCreateCall) ImportJobId ¶
func (c *ProjectsLocationsImportJobsCreateCall) ImportJobId(importJobId string) *ProjectsLocationsImportJobsCreateCall
ImportJobId sets the optional parameter "importJobId": Required. ID of the import job.
func (*ProjectsLocationsImportJobsCreateCall) RequestId ¶
func (c *ProjectsLocationsImportJobsCreateCall) RequestId(requestId string) *ProjectsLocationsImportJobsCreateCall
RequestId sets the optional parameter "requestId": 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 ProjectsLocationsImportJobsDeleteCall ¶
type ProjectsLocationsImportJobsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsImportJobsDeleteCall) Context ¶
func (c *ProjectsLocationsImportJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsImportJobsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsImportJobsDeleteCall) Do ¶
func (c *ProjectsLocationsImportJobsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.importJobs.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsImportJobsDeleteCall) Fields ¶
func (c *ProjectsLocationsImportJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsImportJobsDeleteCall) Header ¶
func (c *ProjectsLocationsImportJobsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsImportJobsDeleteCall) RequestId ¶
func (c *ProjectsLocationsImportJobsDeleteCall) RequestId(requestId string) *ProjectsLocationsImportJobsDeleteCall
RequestId sets the optional parameter "requestId": 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 after 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 ProjectsLocationsImportJobsGetCall ¶
type ProjectsLocationsImportJobsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsImportJobsGetCall) Context ¶
func (c *ProjectsLocationsImportJobsGetCall) Context(ctx context.Context) *ProjectsLocationsImportJobsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsImportJobsGetCall) Do ¶
func (c *ProjectsLocationsImportJobsGetCall) Do(opts ...googleapi.CallOption) (*ImportJob, error)
Do executes the "migrationcenter.projects.locations.importJobs.get" call. Exactly one of *ImportJob or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ImportJob.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsImportJobsGetCall) Fields ¶
func (c *ProjectsLocationsImportJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsImportJobsGetCall) Header ¶
func (c *ProjectsLocationsImportJobsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsImportJobsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsImportJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsImportJobsGetCall) View ¶
func (c *ProjectsLocationsImportJobsGetCall) View(view string) *ProjectsLocationsImportJobsGetCall
View sets the optional parameter "view": The level of details of the import job. Default value is FULL.
Possible values:
"IMPORT_JOB_VIEW_UNSPECIFIED" - The import job view is not
specified. The API displays the basic view by default.
"IMPORT_JOB_VIEW_BASIC" - The import job view includes basic
metadata of an import job. This view does not include payload information.
"IMPORT_JOB_VIEW_FULL" - The import job view includes all metadata
of an import job.
type ProjectsLocationsImportJobsListCall ¶
type ProjectsLocationsImportJobsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsImportJobsListCall) Context ¶
func (c *ProjectsLocationsImportJobsListCall) Context(ctx context.Context) *ProjectsLocationsImportJobsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsImportJobsListCall) Do ¶
func (c *ProjectsLocationsImportJobsListCall) Do(opts ...googleapi.CallOption) (*ListImportJobsResponse, error)
Do executes the "migrationcenter.projects.locations.importJobs.list" call. Exactly one of *ListImportJobsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListImportJobsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsImportJobsListCall) Fields ¶
func (c *ProjectsLocationsImportJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsImportJobsListCall) Filter ¶
func (c *ProjectsLocationsImportJobsListCall) Filter(filter string) *ProjectsLocationsImportJobsListCall
Filter sets the optional parameter "filter": Filtering results.
func (*ProjectsLocationsImportJobsListCall) Header ¶
func (c *ProjectsLocationsImportJobsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsImportJobsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsImportJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsImportJobsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsImportJobsListCall) OrderBy ¶
func (c *ProjectsLocationsImportJobsListCall) OrderBy(orderBy string) *ProjectsLocationsImportJobsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsImportJobsListCall) PageSize ¶
func (c *ProjectsLocationsImportJobsListCall) PageSize(pageSize int64) *ProjectsLocationsImportJobsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsImportJobsListCall) PageToken ¶
func (c *ProjectsLocationsImportJobsListCall) PageToken(pageToken string) *ProjectsLocationsImportJobsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsImportJobsListCall) Pages ¶
func (c *ProjectsLocationsImportJobsListCall) Pages(ctx context.Context, f func(*ListImportJobsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*ProjectsLocationsImportJobsListCall) View ¶
func (c *ProjectsLocationsImportJobsListCall) View(view string) *ProjectsLocationsImportJobsListCall
View sets the optional parameter "view": The level of details of each import job. Default value is BASIC.
Possible values:
"IMPORT_JOB_VIEW_UNSPECIFIED" - The import job view is not
specified. The API displays the basic view by default.
"IMPORT_JOB_VIEW_BASIC" - The import job view includes basic
metadata of an import job. This view does not include payload information.
"IMPORT_JOB_VIEW_FULL" - The import job view includes all metadata
of an import job.
type ProjectsLocationsImportJobsPatchCall ¶
type ProjectsLocationsImportJobsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsImportJobsPatchCall) Context ¶
func (c *ProjectsLocationsImportJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsImportJobsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsImportJobsPatchCall) Do ¶
func (c *ProjectsLocationsImportJobsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.importJobs.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsImportJobsPatchCall) Fields ¶
func (c *ProjectsLocationsImportJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsImportJobsPatchCall) Header ¶
func (c *ProjectsLocationsImportJobsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsImportJobsPatchCall) RequestId ¶
func (c *ProjectsLocationsImportJobsPatchCall) RequestId(requestId string) *ProjectsLocationsImportJobsPatchCall
RequestId sets the optional parameter "requestId": 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).
func (*ProjectsLocationsImportJobsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsImportJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsImportJobsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the `Asset` resource by the update. The values specified in the `update_mask` field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.
type ProjectsLocationsImportJobsRunCall ¶
type ProjectsLocationsImportJobsRunCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsImportJobsRunCall) Context ¶
func (c *ProjectsLocationsImportJobsRunCall) Context(ctx context.Context) *ProjectsLocationsImportJobsRunCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsImportJobsRunCall) Do ¶
func (c *ProjectsLocationsImportJobsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.importJobs.run" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsImportJobsRunCall) Fields ¶
func (c *ProjectsLocationsImportJobsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsRunCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsImportJobsRunCall) Header ¶
func (c *ProjectsLocationsImportJobsRunCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsImportJobsService ¶
type ProjectsLocationsImportJobsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsImportJobsService ¶
func NewProjectsLocationsImportJobsService(s *Service) *ProjectsLocationsImportJobsService
func (*ProjectsLocationsImportJobsService) Create ¶
func (r *ProjectsLocationsImportJobsService) Create(parent string, importjob *ImportJob) *ProjectsLocationsImportJobsCreateCall
Create: Creates an import job.
- parent: Value for parent.
func (*ProjectsLocationsImportJobsService) Delete ¶
func (r *ProjectsLocationsImportJobsService) Delete(name string) *ProjectsLocationsImportJobsDeleteCall
Delete: Deletes an import job.
- name: Name of the resource.
func (*ProjectsLocationsImportJobsService) Get ¶
func (r *ProjectsLocationsImportJobsService) Get(name string) *ProjectsLocationsImportJobsGetCall
Get: Gets the details of an import job.
- name: Name of the resource.
func (*ProjectsLocationsImportJobsService) List ¶
func (r *ProjectsLocationsImportJobsService) List(parent string) *ProjectsLocationsImportJobsListCall
List: Lists all import jobs.
- parent: Parent value for `ListImportJobsRequest`.
func (*ProjectsLocationsImportJobsService) Patch ¶
func (r *ProjectsLocationsImportJobsService) Patch(name string, importjob *ImportJob) *ProjectsLocationsImportJobsPatchCall
Patch: Updates an import job.
- name: Output only. The full name of the import job.
func (*ProjectsLocationsImportJobsService) Run ¶
func (r *ProjectsLocationsImportJobsService) Run(name string, runimportjobrequest *RunImportJobRequest) *ProjectsLocationsImportJobsRunCall
Run: Runs an import job.
- name: The name of the import job to run.
func (*ProjectsLocationsImportJobsService) Validate ¶
func (r *ProjectsLocationsImportJobsService) Validate(name string, validateimportjobrequest *ValidateImportJobRequest) *ProjectsLocationsImportJobsValidateCall
Validate: Validates an import job.
- name: The name of the import job to validate.
type ProjectsLocationsImportJobsValidateCall ¶
type ProjectsLocationsImportJobsValidateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsImportJobsValidateCall) Context ¶
func (c *ProjectsLocationsImportJobsValidateCall) Context(ctx context.Context) *ProjectsLocationsImportJobsValidateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsImportJobsValidateCall) Do ¶
func (c *ProjectsLocationsImportJobsValidateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.importJobs.validate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsImportJobsValidateCall) Fields ¶
func (c *ProjectsLocationsImportJobsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsImportJobsValidateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsImportJobsValidateCall) Header ¶
func (c *ProjectsLocationsImportJobsValidateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "migrationcenter.projects.locations.list" call. Exactly one of *ListLocationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).
func (*ProjectsLocationsListCall) Header ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "migrationcenter.projects.locations.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "migrationcenter.projects.locations.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall) Fields ¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "migrationcenter.projects.locations.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService) Delete ¶
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
- name: The name of the operation's parent resource.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { Assets *ProjectsLocationsAssetsService ImportJobs *ProjectsLocationsImportJobsService Operations *ProjectsLocationsOperationsService Sources *ProjectsLocationsSourcesService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsLocationsSourcesCreateCall ¶
type ProjectsLocationsSourcesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSourcesCreateCall) Context ¶
func (c *ProjectsLocationsSourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsSourcesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSourcesCreateCall) Do ¶
func (c *ProjectsLocationsSourcesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.sources.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSourcesCreateCall) Fields ¶
func (c *ProjectsLocationsSourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSourcesCreateCall) Header ¶
func (c *ProjectsLocationsSourcesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSourcesCreateCall) RequestId ¶
func (c *ProjectsLocationsSourcesCreateCall) RequestId(requestId string) *ProjectsLocationsSourcesCreateCall
RequestId sets the optional parameter "requestId": 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).
func (*ProjectsLocationsSourcesCreateCall) SourceId ¶
func (c *ProjectsLocationsSourcesCreateCall) SourceId(sourceId string) *ProjectsLocationsSourcesCreateCall
SourceId sets the optional parameter "sourceId": 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])?`.
type ProjectsLocationsSourcesDeleteCall ¶
type ProjectsLocationsSourcesDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSourcesDeleteCall) Context ¶
func (c *ProjectsLocationsSourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsSourcesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSourcesDeleteCall) Do ¶
func (c *ProjectsLocationsSourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.sources.delete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSourcesDeleteCall) Fields ¶
func (c *ProjectsLocationsSourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSourcesDeleteCall) Header ¶
func (c *ProjectsLocationsSourcesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSourcesDeleteCall) RequestId ¶
func (c *ProjectsLocationsSourcesDeleteCall) RequestId(requestId string) *ProjectsLocationsSourcesDeleteCall
RequestId sets the optional parameter "requestId": 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 after 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 ProjectsLocationsSourcesGetCall ¶
type ProjectsLocationsSourcesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSourcesGetCall) Context ¶
func (c *ProjectsLocationsSourcesGetCall) Context(ctx context.Context) *ProjectsLocationsSourcesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSourcesGetCall) Do ¶
func (c *ProjectsLocationsSourcesGetCall) Do(opts ...googleapi.CallOption) (*Source, error)
Do executes the "migrationcenter.projects.locations.sources.get" call. Exactly one of *Source or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Source.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSourcesGetCall) Fields ¶
func (c *ProjectsLocationsSourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSourcesGetCall) Header ¶
func (c *ProjectsLocationsSourcesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSourcesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsSourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsSourcesListCall ¶
type ProjectsLocationsSourcesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSourcesListCall) Context ¶
func (c *ProjectsLocationsSourcesListCall) Context(ctx context.Context) *ProjectsLocationsSourcesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSourcesListCall) Do ¶
func (c *ProjectsLocationsSourcesListCall) Do(opts ...googleapi.CallOption) (*ListSourcesResponse, error)
Do executes the "migrationcenter.projects.locations.sources.list" call. Exactly one of *ListSourcesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSourcesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSourcesListCall) Fields ¶
func (c *ProjectsLocationsSourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSourcesListCall) Filter ¶
func (c *ProjectsLocationsSourcesListCall) Filter(filter string) *ProjectsLocationsSourcesListCall
Filter sets the optional parameter "filter": Filtering results.
func (*ProjectsLocationsSourcesListCall) Header ¶
func (c *ProjectsLocationsSourcesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSourcesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsSourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSourcesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsSourcesListCall) OrderBy ¶
func (c *ProjectsLocationsSourcesListCall) OrderBy(orderBy string) *ProjectsLocationsSourcesListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsSourcesListCall) PageSize ¶
func (c *ProjectsLocationsSourcesListCall) PageSize(pageSize int64) *ProjectsLocationsSourcesListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer items than requested. If unspecified, the server will pick an appropriate default value.
func (*ProjectsLocationsSourcesListCall) PageToken ¶
func (c *ProjectsLocationsSourcesListCall) PageToken(pageToken string) *ProjectsLocationsSourcesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results that the server should return.
func (*ProjectsLocationsSourcesListCall) Pages ¶
func (c *ProjectsLocationsSourcesListCall) Pages(ctx context.Context, f func(*ListSourcesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsSourcesPatchCall ¶
type ProjectsLocationsSourcesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSourcesPatchCall) Context ¶
func (c *ProjectsLocationsSourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsSourcesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsSourcesPatchCall) Do ¶
func (c *ProjectsLocationsSourcesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "migrationcenter.projects.locations.sources.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSourcesPatchCall) Fields ¶
func (c *ProjectsLocationsSourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSourcesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsSourcesPatchCall) Header ¶
func (c *ProjectsLocationsSourcesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsSourcesPatchCall) RequestId ¶
func (c *ProjectsLocationsSourcesPatchCall) RequestId(requestId string) *ProjectsLocationsSourcesPatchCall
RequestId sets the optional parameter "requestId": 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).
func (*ProjectsLocationsSourcesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsSourcesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSourcesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. Field mask is used to specify the fields to be overwritten in the `Source` resource by the update. The values specified in the `update_mask` field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.
type ProjectsLocationsSourcesService ¶
type ProjectsLocationsSourcesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsSourcesService ¶
func NewProjectsLocationsSourcesService(s *Service) *ProjectsLocationsSourcesService
func (*ProjectsLocationsSourcesService) Create ¶
func (r *ProjectsLocationsSourcesService) Create(parent string, source *Source) *ProjectsLocationsSourcesCreateCall
Create: Creates a new source in a given project and location.
- parent: Value for parent.
func (*ProjectsLocationsSourcesService) Delete ¶
func (r *ProjectsLocationsSourcesService) Delete(name string) *ProjectsLocationsSourcesDeleteCall
Delete: Deletes a source.
- name: Name of the resource.
func (*ProjectsLocationsSourcesService) Get ¶
func (r *ProjectsLocationsSourcesService) Get(name string) *ProjectsLocationsSourcesGetCall
Get: Gets the details of a source.
- name: Name of the resource.
func (*ProjectsLocationsSourcesService) List ¶
func (r *ProjectsLocationsSourcesService) List(parent string) *ProjectsLocationsSourcesListCall
List: Lists all the sources in a given project and location.
- parent: Parent value for `ListSourcesRequest`.
func (*ProjectsLocationsSourcesService) Patch ¶
func (r *ProjectsLocationsSourcesService) Patch(name string, source *Source) *ProjectsLocationsSourcesPatchCall
Patch: Updates the parameters of a source.
- name: Output only. The full name of the source.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type ReportAssetFramesResponse ¶
type ReportAssetFramesResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
ReportAssetFramesResponse: A response to a call to `ReportAssetFrame`.
type RunImportJobRequest ¶
type RunImportJobRequest struct { // RequestId: 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 // after 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). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RunImportJobRequest: A request to run an import job.
func (*RunImportJobRequest) MarshalJSON ¶
func (s *RunImportJobRequest) MarshalJSON() ([]byte, error)
type RunningProcess ¶
type RunningProcess struct { // Attributes: Process extended attributes. Attributes map[string]string `json:"attributes,omitempty"` // Cmdline: Process full command line. Cmdline string `json:"cmdline,omitempty"` // ExePath: Process binary path. ExePath string `json:"exePath,omitempty"` // Pid: Process ID. Pid int64 `json:"pid,omitempty,string"` // User: User running the process. User string `json:"user,omitempty"` // ForceSendFields is a list of field names (e.g. "Attributes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Attributes") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RunningProcess: Guest OS running process details.
func (*RunningProcess) MarshalJSON ¶
func (s *RunningProcess) MarshalJSON() ([]byte, error)
type RunningProcessList ¶
type RunningProcessList struct { Processes []*RunningProcess `json:"processes,omitempty"` // ForceSendFields is a list of field names (e.g. "Processes") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Processes") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RunningProcessList: List of running guest OS processes.
func (*RunningProcessList) MarshalJSON ¶
func (s *RunningProcessList) MarshalJSON() ([]byte, error)
type RunningService ¶
type RunningService struct { // Cmdline: Service command line. Cmdline string `json:"cmdline,omitempty"` // ExePath: Service binary path. ExePath string `json:"exePath,omitempty"` // Name: Service name. Name string `json:"name,omitempty"` // Pid: Service pid. Pid int64 `json:"pid,omitempty,string"` // StartMode: Service start mode (raw, OS-agnostic). StartMode string `json:"startMode,omitempty"` // State: Service state (raw, OS-agnostic). State string `json:"state,omitempty"` // Status: Service status. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Cmdline") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Cmdline") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RunningService: Guest OS running service details.
func (*RunningService) MarshalJSON ¶
func (s *RunningService) MarshalJSON() ([]byte, error)
type RunningServiceList ¶
type RunningServiceList struct { Services []*RunningService `json:"services,omitempty"` // ForceSendFields is a list of field names (e.g. "Services") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Services") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RunningServiceList: List of running guest OS services.
func (*RunningServiceList) MarshalJSON ¶
func (s *RunningServiceList) MarshalJSON() ([]byte, error)
type RuntimeNetworkInfo ¶
type RuntimeNetworkInfo struct { // Connections: Network connections. Connections *NetworkConnectionList `json:"connections,omitempty"` // Netstat: Netstat (raw, OS-agnostic). Netstat string `json:"netstat,omitempty"` // NetstatTime: Netstat time collected. NetstatTime *DateTime `json:"netstatTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Connections") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Connections") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RuntimeNetworkInfo: Runtime networking information.
func (*RuntimeNetworkInfo) MarshalJSON ¶
func (s *RuntimeNetworkInfo) MarshalJSON() ([]byte, error)
type Selinux ¶
type Selinux struct { // Enabled: Is SELinux enabled. Enabled bool `json:"enabled,omitempty"` // Mode: SELinux mode enforcing / permissive. Mode string `json:"mode,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Enabled") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Selinux: SELinux details.
func (*Selinux) MarshalJSON ¶
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type Source ¶
type Source struct { // CreateTime: Output only. The timestamp when the source was created. CreateTime string `json:"createTime,omitempty"` // Description: Free-text description. Description string `json:"description,omitempty"` // DisplayName: User-friendly display name. DisplayName string `json:"displayName,omitempty"` // IsManaged: If `true`, the source is managed by other service(s). IsManaged bool `json:"isManaged,omitempty"` // Name: Output only. The full name of the source. Name string `json:"name,omitempty"` // PendingFrameCount: Output only. Number of frames that are still being // processed. PendingFrameCount int64 `json:"pendingFrameCount,omitempty"` // Priority: The information confidence of the source. The higher the // value, the higher the confidence. Priority int64 `json:"priority,omitempty"` // Type: Data source type. // // Possible values: // "SOURCE_TYPE_UNKNOWN" - Unspecified // "SOURCE_TYPE_UPLOAD" - Manually uploaded file (e.g. CSV) // "SOURCE_TYPE_GUEST_OS_SCAN" - Guest-level info // "SOURCE_TYPE_INVENTORY_SCAN" - Inventory-level scan // "SOURCE_TYPE_CUSTOM" - Third-party owned sources. Type string `json:"type,omitempty"` // UpdateTime: Output only. The timestamp when the source was last // updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreateTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Source: Source represents an object from which asset information is streamed to Migration Center.
func (*Source) MarshalJSON ¶
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*Status) MarshalJSON ¶
type TimeZone ¶
type TimeZone struct { // Id: IANA Time Zone Database time zone, e.g. "America/New_York". Id string `json:"id,omitempty"` // Version: Optional. IANA Time Zone Database version number, e.g. // "2019a". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TimeZone: Represents a time zone from the IANA Time Zone Database (https://www.iana.org/time-zones).
func (*TimeZone) MarshalJSON ¶
type ValidateImportJobRequest ¶
type ValidateImportJobRequest struct { // RequestId: 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 // after 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). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ValidateImportJobRequest: A request to validate an import job.
func (*ValidateImportJobRequest) MarshalJSON ¶
func (s *ValidateImportJobRequest) MarshalJSON() ([]byte, error)
type ValidationReport ¶
type ValidationReport struct { // FileValidations: List of errors found in files. FileValidations []*FileValidationReport `json:"fileValidations,omitempty"` // JobErrors: List of job level errors. JobErrors []*ImportError `json:"jobErrors,omitempty"` // ForceSendFields is a list of field names (e.g. "FileValidations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FileValidations") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ValidationReport: A resource that aggregates errors across import job files.
func (*ValidationReport) MarshalJSON ¶
func (s *ValidationReport) MarshalJSON() ([]byte, error)
type VirtualMachineArchitectureDetails ¶
type VirtualMachineArchitectureDetails struct { // Bios: Bios Details. Bios *BiosDetails `json:"bios,omitempty"` // CpuArchitecture: CPU architecture e.g.: "x64-based PC", "x86_64", // "i686" etc. CpuArchitecture string `json:"cpuArchitecture,omitempty"` // CpuManufacturer: CPU manufacturer e.g.: "Intel", "AMD". CpuManufacturer string `json:"cpuManufacturer,omitempty"` // CpuName: CPU name e.g. "Intel Xeon E5-2690", "AMD EPYC 7571" etc. CpuName string `json:"cpuName,omitempty"` // CpuSocketCount: Number of processor sockets allocated to the machine. CpuSocketCount int64 `json:"cpuSocketCount,omitempty"` // CpuThreadCount: Number of cpu threads allocated to the machine. CpuThreadCount int64 `json:"cpuThreadCount,omitempty"` // Firmware: Firmware (BIOS/efi). Firmware string `json:"firmware,omitempty"` // Hyperthreading: CPU hyperthreading support (inner enum). // // Possible values: // "HYPER_THREADING_UNSPECIFIED" - Unknown (default value). // "HYPER_THREADING_DISABLED" - Hyperthreading is disabled. // "HYPER_THREADING_ENABLED" - Hyperthreading is enabled. Hyperthreading string `json:"hyperthreading,omitempty"` // Vendor: Hardware vendor. Vendor string `json:"vendor,omitempty"` // ForceSendFields is a list of field names (e.g. "Bios") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Bios") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VirtualMachineArchitectureDetails: Details of the VM architecture.
func (*VirtualMachineArchitectureDetails) MarshalJSON ¶
func (s *VirtualMachineArchitectureDetails) MarshalJSON() ([]byte, error)
type VirtualMachineDetails ¶
type VirtualMachineDetails struct { // CoreCount: Number of CPU cores in the VirtualMachine. Must be // non-negative. CoreCount int64 `json:"coreCount,omitempty"` // GuestOs: Guest OS information. GuestOs *GuestOsDetails `json:"guestOs,omitempty"` // MemoryMb: The amount of memory in the VirtualMachine. Must be // non-negative. MemoryMb int64 `json:"memoryMb,omitempty"` // OsFamily: What family the OS belong to, if known. // // Possible values: // "OS_FAMILY_UNKNOWN" // "OS_FAMILY_WINDOWS" - Microsoft Windows Server and Desktop // "OS_FAMILY_LINUX" - Various Linux flavors // "OS_FAMILY_UNIX" - Non-Linux Unix flavors OsFamily string `json:"osFamily,omitempty"` // OsName: The name of the operating system running on the // VirtualMachine. OsName string `json:"osName,omitempty"` // Platform: Platform information. Platform *PlatformDetails `json:"platform,omitempty"` // PowerState: Power state of VM (poweredOn or poweredOff). PowerState string `json:"powerState,omitempty"` // VcenterFolder: Folder name in vCenter where asset resides. VcenterFolder string `json:"vcenterFolder,omitempty"` // VcenterUrl: vCenter URL used in collection. VcenterUrl string `json:"vcenterUrl,omitempty"` // VcenterVmId: vCenter VM ID. VcenterVmId string `json:"vcenterVmId,omitempty"` // VmArchitecture: VM architecture details (vendor, cpu arch). VmArchitecture *VirtualMachineArchitectureDetails `json:"vmArchitecture,omitempty"` // VmDisks: VM disk details. VmDisks *VirtualMachineDiskDetails `json:"vmDisks,omitempty"` // VmName: Virtual Machine display name. VmName string `json:"vmName,omitempty"` // VmNetwork: VM network details. VmNetwork *VirtualMachineNetworkDetails `json:"vmNetwork,omitempty"` // VmUuid: Virtual Machine uniqe identifier. VmUuid string `json:"vmUuid,omitempty"` // ForceSendFields is a list of field names (e.g. "CoreCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CoreCount") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VirtualMachineDetails: Details of a VirtualMachine.
func (*VirtualMachineDetails) MarshalJSON ¶
func (s *VirtualMachineDetails) MarshalJSON() ([]byte, error)
type VirtualMachineDiskDetails ¶
type VirtualMachineDiskDetails struct { // Disks: List of disks. Disks *DiskEntryList `json:"disks,omitempty"` // HddTotalCapacityBytes: Disk total Capacity. HddTotalCapacityBytes int64 `json:"hddTotalCapacityBytes,omitempty,string"` // HddTotalFreeBytes: Total Disk Free Space. HddTotalFreeBytes int64 `json:"hddTotalFreeBytes,omitempty,string"` // LsblkJson: Raw lsblk output in json. LsblkJson string `json:"lsblkJson,omitempty"` // ForceSendFields is a list of field names (e.g. "Disks") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Disks") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VirtualMachineDiskDetails: Details of VM disks.
func (*VirtualMachineDiskDetails) MarshalJSON ¶
func (s *VirtualMachineDiskDetails) MarshalJSON() ([]byte, error)
type VirtualMachineNetworkDetails ¶
type VirtualMachineNetworkDetails struct { // DefaultGw: Default GW address. Top-level object, will be later // encriched by full RouteInfo. DefaultGw string `json:"defaultGw,omitempty"` // NetworkAdapters: List of Network Adapters. NetworkAdapters *NetworkAdapterList `json:"networkAdapters,omitempty"` // PrimaryIpAddress: IP Address of the machine. PrimaryIpAddress string `json:"primaryIpAddress,omitempty"` // PrimaryMacAddress: MAC Address of the machine. This property is used // to uniqly identify the machine. PrimaryMacAddress string `json:"primaryMacAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultGw") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultGw") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VirtualMachineNetworkDetails: Details of network adapters and settings
func (*VirtualMachineNetworkDetails) MarshalJSON ¶
func (s *VirtualMachineNetworkDetails) MarshalJSON() ([]byte, error)
type VmwareDiskConfig ¶
type VmwareDiskConfig struct { // BackingType: VMDK backing type. // // Possible values: // "BACKING_TYPE_UNSPECIFIED" - Default value. // "BACKING_TYPE_FLAT_V1" - Flat v1. // "BACKING_TYPE_FLAT_V2" - Flat v2. // "BACKING_TYPE_PMEM" - Persistent memory, also known as Non-Volatile // Memory (NVM). // "BACKING_TYPE_RDM_V1" - Raw Disk Memory v1. // "BACKING_TYPE_RDM_V2" - Raw Disk Memory v2. // "BACKING_TYPE_SESPARSE" - SEsparse is a snapshot format introduced // in vSphere 5.5 for large disks. // "BACKING_TYPE_SESPARSE_V1" - SEsparse v1. // "BACKING_TYPE_SESPARSE_V2" - SEsparse v1. BackingType string `json:"backingType,omitempty"` // RdmCompatibilityMode: RDM compatibility mode. RdmCompatibilityMode string `json:"rdmCompatibilityMode,omitempty"` Shared bool `json:"shared,omitempty"` // VmdkDiskMode: VMDK disk mode. VmdkDiskMode string `json:"vmdkDiskMode,omitempty"` // ForceSendFields is a list of field names (e.g. "BackingType") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BackingType") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VmwareDiskConfig: VMware disk config details.
func (*VmwareDiskConfig) MarshalJSON ¶
func (s *VmwareDiskConfig) MarshalJSON() ([]byte, error)
type VmwarePlatformDetails ¶
type VmwarePlatformDetails struct { // EsxVersion: ESX version. EsxVersion string `json:"esxVersion,omitempty"` // Osid: VMware os enum - // https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html. Osid string `json:"osid,omitempty"` // VcenterVersion: vCenter version. VcenterVersion string `json:"vcenterVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "EsxVersion") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EsxVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
VmwarePlatformDetails: VMware specific details.
func (*VmwarePlatformDetails) MarshalJSON ¶
func (s *VmwarePlatformDetails) MarshalJSON() ([]byte, error)