googleapis
Version:
Google APIs Client Library for Node.js
1,529 lines • 165 kB
TypeScript
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { Readable } from 'stream';
export declare namespace workloadmanager_v1 {
export interface Options extends GlobalOptions {
version: 'v1';
}
interface StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
/**
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
*/
quotaUser?: string;
/**
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
upload_protocol?: string;
}
/**
* Workload Manager API
*
* Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations.
*
* @example
* ```js
* const {google} = require('googleapis');
* const workloadmanager = google.workloadmanager('v1');
* ```
*/
export class Workloadmanager {
context: APIRequestContext;
projects: Resource$Projects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* * An AgentCommand specifies a one-time executable program for the agent to run.
*/
export interface Schema$AgentCommand {
/**
* command is the name of the agent one-time executable that will be invoked.
*/
command?: string | null;
/**
* parameters is a map of key/value pairs that can be used to specify additional one-time executable settings.
*/
parameters?: {
[key: string]: string;
} | null;
}
/**
* Agent status.
*/
export interface Schema$AgentStates {
/**
* Optional. The available version of the agent in artifact registry.
*/
availableVersion?: string | null;
/**
* Optional. HANA monitoring metrics of the agent.
*/
hanaMonitoring?: Schema$ServiceStates;
/**
* Optional. The installed version of the agent on the host.
*/
installedVersion?: string | null;
/**
* Optional. Whether the agent is fully enabled. If false, the agent is has some issues.
*/
isFullyEnabled?: boolean | null;
/**
* Optional. The Process metrics of the agent.
*/
processMetrics?: Schema$ServiceStates;
/**
* Optional. The System discovery metrics of the agent.
*/
systemDiscovery?: Schema$ServiceStates;
}
/**
* The schema of agent status data.
*/
export interface Schema$AgentStatus {
/**
* Output only. The name of the agent.
*/
agentName?: string | null;
/**
* Output only. The available version of the agent in artifact registry.
*/
availableVersion?: string | null;
/**
* Output only. Whether the agent has full access to Cloud APIs.
*/
cloudApiAccessFullScopesGranted?: string | null;
/**
* Output only. The error message for the agent configuration if invalid.
*/
configurationErrorMessage?: string | null;
/**
* Output only. The path to the agent configuration file.
*/
configurationFilePath?: string | null;
/**
* Output only. Whether the agent configuration is valid.
*/
configurationValid?: string | null;
/**
* Output only. The installed version of the agent on the host.
*/
installedVersion?: string | null;
/**
* Output only. The URI of the instance. Format: projects//zones//instances/
*/
instanceUri?: string | null;
/**
* Output only. The kernel version of the system.
*/
kernelVersion?: Schema$SapDiscoveryResourceInstancePropertiesKernelVersion;
/**
* Output only. Optional references to public documentation.
*/
references?: Schema$AgentStatusReference[];
/**
* Output only. The services (process metrics, host metrics, etc.).
*/
services?: Schema$AgentStatusServiceStatus[];
/**
* Output only. Whether the agent service is enabled in systemd.
*/
systemdServiceEnabled?: string | null;
/**
* Output only. Whether the agent service is running in systemd.
*/
systemdServiceRunning?: string | null;
}
/**
* The configuration value.
*/
export interface Schema$AgentStatusConfigValue {
/**
* Output only. Whether the configuration value is the default value or overridden.
*/
isDefault?: boolean | null;
/**
* Output only. The name of the configuration value.
*/
name?: string | null;
/**
* Output only. The value of the configuration value.
*/
value?: string | null;
}
/**
* The IAM permission status.
*/
export interface Schema$AgentStatusIAMPermission {
/**
* Output only. Whether the permission is granted.
*/
granted?: string | null;
/**
* Output only. The name of the permission.
*/
name?: string | null;
}
/**
* The reference to public documentation.
*/
export interface Schema$AgentStatusReference {
/**
* Output only. The name of the reference.
*/
name?: string | null;
/**
* Output only. The URL of the reference.
*/
url?: string | null;
}
/**
* The status of a service (process metrics, host metrics, etc.).
*/
export interface Schema$AgentStatusServiceStatus {
/**
* Output only. The configuration values for the service.
*/
configValues?: Schema$AgentStatusConfigValue[];
/**
* Output only. The error message for the service if it is not fully functional.
*/
errorMessage?: string | null;
/**
* Output only. Whether the service is fully functional (all checks passed).
*/
fullyFunctional?: string | null;
/**
* Output only. The permissions required for the service.
*/
iamPermissions?: Schema$AgentStatusIAMPermission[];
/**
* Output only. The name of the service.
*/
name?: string | null;
/**
* Output only. The state of the service (enabled or disabled in the configuration).
*/
state?: string | null;
/**
* Output only. The message to display when the service state is unspecified.
*/
unspecifiedStateMessage?: string | null;
}
/**
* Backup properties.
*/
export interface Schema$BackupProperties {
/**
* Output only. The state of the latest backup.
*/
latestBackupStatus?: string | null;
/**
* The time when the latest backup was performed.
*/
latestBackupTime?: string | null;
}
/**
* Message describing big query destination
*/
export interface Schema$BigQueryDestination {
/**
* Optional. determine if results will be saved in a new table
*/
createNewResultsTable?: boolean | null;
/**
* Optional. destination dataset to save evaluation results
*/
destinationDataset?: string | null;
}
/**
* The request message for Operations.CancelOperation.
*/
export interface Schema$CancelOperationRequest {
}
/**
* The resource on GCP
*/
export interface Schema$CloudResource {
/**
* Output only. All instance properties.
*/
instanceProperties?: Schema$InstanceProperties;
/**
* Output only.
*/
kind?: string | null;
/**
* Output only. resource name Example: compute.googleapis.com/projects/wlm-obs-dev/zones/us-central1-a/instances/sap-pri
*/
name?: string | null;
}
/**
* * Command specifies the type of command to execute.
*/
export interface Schema$Command {
/**
* AgentCommand specifies a one-time executable program for the agent to run.
*/
agentCommand?: Schema$AgentCommand;
/**
* ShellCommand is invoked via the agent's command line executor.
*/
shellCommand?: Schema$ShellCommand;
}
/**
* HealthCondition contains the detailed health check of each component.
*/
export interface Schema$ComponentHealth {
/**
* The component of a workload.
*/
component?: string | null;
/**
* The detailed health checks of the component.
*/
componentHealthChecks?: Schema$HealthCheck[];
/**
* Output only. The type of the component health.
*/
componentHealthType?: string | null;
/**
* Output only. The health state of the component.
*/
state?: string | null;
/**
* Sub component health.
*/
subComponentsHealth?: Schema$ComponentHealth[];
}
/**
* Database Properties.
*/
export interface Schema$DatabaseProperties {
/**
* Output only. Backup properties.
*/
backupProperties?: Schema$BackupProperties;
/**
* Output only. Type of the database. `HANA`, `DB2`, etc.
*/
databaseType?: string | null;
}
/**
* 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); \}
*/
export interface Schema$Empty {
}
/**
* Message describing Evaluation object
*/
export interface Schema$Evaluation {
/**
* Optional. BigQuery destination
*/
bigQueryDestination?: Schema$BigQueryDestination;
/**
* Output only. [Output only] Create time stamp
*/
createTime?: string | null;
/**
* The Cloud Storage bucket name for custom rules.
*/
customRulesBucket?: string | null;
/**
* Description of the Evaluation
*/
description?: string | null;
/**
* Evaluation type
*/
evaluationType?: string | null;
/**
* Optional. Immutable. Customer-managed encryption key name, in the format projects/x/locations/x/keyRings/x/cryptoKeys/x.
*/
kmsKey?: string | null;
/**
* Labels as key value pairs
*/
labels?: {
[key: string]: string;
} | null;
/**
* name of resource names have the form 'projects/{project_id\}/locations/{location_id\}/evaluations/{evaluation_id\}'
*/
name?: string | null;
/**
* annotations as key value pairs
*/
resourceFilter?: Schema$ResourceFilter;
/**
* Output only. [Output only] The updated rule ids if exist.
*/
resourceStatus?: Schema$ResourceStatus;
/**
* the name of the rule
*/
ruleNames?: string[] | null;
/**
* Output only. [Output only] The updated rule ids if exist.
*/
ruleVersions?: string[] | null;
/**
* crontab format schedule for scheduled evaluation, currently only support the following schedule: "0 x/1 * * *", "0 x/6 * * *", "0 x/12 * * *", "0 0 x/1 * *", "0 0 x/7 * *",
*/
schedule?: string | null;
/**
* Output only. [Output only] Update time stamp
*/
updateTime?: string | null;
}
/**
* Message describing Execution object
*/
export interface Schema$Execution {
/**
* Output only. [Output only] End time stamp
*/
endTime?: string | null;
/**
* Optional. Engine
*/
engine?: string | null;
/**
* Output only. [Output only] Evaluation ID
*/
evaluationId?: string | null;
/**
* Optional. External data sources
*/
externalDataSources?: Schema$ExternalDataSources[];
/**
* Output only. [Output only] Inventory time stamp
*/
inventoryTime?: string | null;
/**
* Labels as key value pairs
*/
labels?: {
[key: string]: string;
} | null;
/**
* The name of execution resource. The format is projects/{project\}/locations/{location\}/evaluations/{evaluation\}/executions/{execution\}
*/
name?: string | null;
/**
* Output only. Additional information generated by the execution
*/
notices?: Schema$Notice[];
/**
* Output only. [Output only] Result summary for the execution
*/
resultSummary?: Schema$Summary;
/**
* Output only. execution result summary per rule
*/
ruleResults?: Schema$RuleExecutionResult[];
/**
* type represent whether the execution executed directly by user or scheduled according evaluation.schedule field.
*/
runType?: string | null;
/**
* Output only. [Output only] Start time stamp
*/
startTime?: string | null;
/**
* Output only. [Output only] State
*/
state?: string | null;
}
/**
* Message describing the result of an execution
*/
export interface Schema$ExecutionResult {
/**
* The commands to remediate the violation.
*/
commands?: Schema$Command[];
/**
* The URL for the documentation of the rule.
*/
documentationUrl?: string | null;
/**
* The resource that violates the rule.
*/
resource?: Schema$Resource;
/**
* The rule that is violated in an evaluation.
*/
rule?: string | null;
/**
* The severity of violation.
*/
severity?: string | null;
/**
* Execution result type of the scanned resource
*/
type?: string | null;
/**
* The details of violation in an evaluation result.
*/
violationDetails?: Schema$ViolationDetails;
/**
* The violation message of an execution.
*/
violationMessage?: string | null;
}
/**
* Message for external data sources
*/
export interface Schema$ExternalDataSources {
/**
* Required. The asset type of the external data source. This can be a supported Cloud Asset Inventory asset type (see https://cloud.google.com/asset-inventory/docs/supported-asset-types) to override the default asset type, or it can be a custom type defined by the user.
*/
assetType?: string | null;
/**
* Optional. Name of external data source. The name will be used inside the rego/sql to refer the external data
*/
name?: string | null;
/**
* Required. Type of external data source
*/
type?: string | null;
/**
* Required. URI of external data source. example of bq table {project_ID\}.{dataset_ID\}.{table_ID\}
*/
uri?: string | null;
}
/**
* Message describing compute engine instance filter
*/
export interface Schema$GceInstanceFilter {
/**
* Service account of compute engine
*/
serviceAccounts?: string[] | null;
}
/**
* HealthCheck contains the detailed health check of a component based on asource.
*/
export interface Schema$HealthCheck {
/**
* Output only. The message of the health check.
*/
message?: string | null;
/**
* Output only. The health check source metric name.
*/
metric?: string | null;
/**
* Output only. The resource the check performs on.
*/
resource?: Schema$CloudResource;
/**
* Output only. The source of the health check.
*/
source?: string | null;
/**
* Output only. The state of the health check.
*/
state?: string | null;
}
/**
* The IAM permission status.
*/
export interface Schema$IAMPermission {
/**
* Output only. Whether the permission is granted.
*/
granted?: boolean | null;
/**
* Output only. The name of the permission.
*/
name?: string | null;
}
/**
* A presentation of host resource usage where the workload runs.
*/
export interface Schema$Insight {
/**
* The insights data for the agent status.
*/
agentStatus?: Schema$AgentStatus;
/**
* Optional. The instance id where the insight is generated from
*/
instanceId?: string | null;
/**
* The insights data for the OpenShift workload validation.
*/
openShiftValidation?: Schema$OpenShiftValidation;
/**
* The insights data for SAP system discovery. This is a copy of SAP System proto and should get updated whenever that one changes.
*/
sapDiscovery?: Schema$SapDiscovery;
/**
* The insights data for the SAP workload validation.
*/
sapValidation?: Schema$SapValidation;
/**
* Output only. [Output only] Create time stamp
*/
sentTime?: string | null;
/**
* The insights data for the sqlserver workload validation.
*/
sqlserverValidation?: Schema$SqlserverValidation;
/**
* The insights data for workload validation of torso workloads.
*/
torsoValidation?: Schema$TorsoValidation;
}
/**
* Instance Properties.
*/
export interface Schema$InstanceProperties {
/**
* Optional. Instance number.
*/
instanceNumber?: string | null;
/**
* Optional. Instance machine type.
*/
machineType?: string | null;
/**
* Optional. Instance roles.
*/
roles?: string[] | null;
/**
* Optional. SAP Instance properties.
*/
sapInstanceProperties?: Schema$SapInstanceProperties;
/**
* Optional. Instance status.
*/
status?: string | null;
/**
* Optional. the next maintenance event on VM
*/
upcomingMaintenanceEvent?: Schema$UpcomingMaintenanceEvent;
}
/**
* Message represent an rule that failed to be validated.
*/
export interface Schema$InvalidRule {
/**
* display name of the invalid rule
*/
displayName?: string | null;
/**
* cloud storage destination of the invalid rule
*/
gcsUri?: string | null;
/**
* name of the invalid rule
*/
name?: string | null;
/**
* The error message of valdating rule formats.
*/
valiadtionError?: string | null;
}
/**
* Message wrappes a list of invalid rules.
*/
export interface Schema$InvalidRulesWrapper {
/**
* The invalid rules that failed to be validated.
*/
invalidRules?: Schema$InvalidRule[];
}
/**
* List discovered profile Response returns discovered profiles from agents
*/
export interface Schema$ListDiscoveredProfilesResponse {
/**
* Output only. A token identifying a page of results the server should return
*/
nextPageToken?: string | null;
/**
* Locations that could not be reached.
*/
unreachable?: string[] | null;
/**
* Output only. The list of workload profiles
*/
workloadProfiles?: Schema$WorkloadProfile[];
}
/**
* Message for response to listing Evaluations
*/
export interface Schema$ListEvaluationsResponse {
/**
* The list of Evaluation
*/
evaluations?: Schema$Evaluation[];
/**
* A token identifying a page of results the server should return.
*/
nextPageToken?: string | null;
/**
* Locations that could not be reached.
*/
unreachable?: string[] | null;
}
/**
* Message for response of list execution results
*/
export interface Schema$ListExecutionResultsResponse {
/**
* The versions from the specified publisher.
*/
executionResults?: Schema$ExecutionResult[];
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
}
/**
* Message for response to listing Executions
*/
export interface Schema$ListExecutionsResponse {
/**
* The list of Execution
*/
executions?: Schema$Execution[];
/**
* A token identifying a page of results the server should return.
*/
nextPageToken?: string | null;
/**
* Locations that could not be reached.
*/
unreachable?: string[] | null;
}
/**
* The response message for Locations.ListLocations.
*/
export interface Schema$ListLocationsResponse {
/**
* A list of locations that matches the specified filter in the request.
*/
locations?: Schema$Location[];
/**
* The standard List next-page token.
*/
nextPageToken?: string | null;
}
/**
* The response message for Operations.ListOperations.
*/
export interface Schema$ListOperationsResponse {
/**
* The standard List next-page token.
*/
nextPageToken?: string | null;
/**
* A list of operations that matches the specified filter in the request.
*/
operations?: Schema$Operation[];
/**
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.
*/
unreachable?: string[] | null;
}
/**
* Mesesage of response of list rules
*/
export interface Schema$ListRulesResponse {
/**
* A wrapper of the invalid rules that failed to be validated.
*/
invalidRulesWrapper?: Schema$InvalidRulesWrapper;
/**
* all rules in response
*/
rules?: Schema$Rule[];
}
/**
* Message for response to list scanned resources
*/
export interface Schema$ListScannedResourcesResponse {
/**
* A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
*/
nextPageToken?: string | null;
/**
* All scanned resources in response
*/
scannedResources?: Schema$ScannedResource[];
}
/**
* A resource that represents a Google Cloud location.
*/
export interface Schema$Location {
/**
* The friendly name for this location, typically a nearby city name. For example, "Tokyo".
*/
displayName?: string | null;
/**
* Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\}
*/
labels?: {
[key: string]: string;
} | null;
/**
* The canonical id for this location. For example: `"us-east1"`.
*/
locationId?: string | null;
/**
* Service-specific metadata. For example the available capacity at the given location.
*/
metadata?: {
[key: string]: any;
} | null;
/**
* Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
*/
name?: string | null;
}
/**
* Message for additional information generated by the execution
*/
export interface Schema$Notice {
/**
* Output only. Message of the notice
*/
message?: string | null;
}
/**
* A presentation of OpenShift workload insight. The schema of OpenShift workloads validation related data.
*/
export interface Schema$OpenShiftValidation {
/**
* Required. The OpenShift cluster ID (e.g. 8371bb05-7cac-4d38-82c0-0f58c4f6f936).
*/
clusterId?: string | null;
/**
* Required. The validation details of the OpenShift cluster in JSON format.
*/
validationDetails?: {
[key: string]: any;
} | null;
}
/**
* This resource represents a long-running operation that is the result of a network API call.
*/
export interface Schema$Operation {
/**
* 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?: boolean | null;
/**
* The error result of the operation in case of failure or cancellation.
*/
error?: Schema$Status;
/**
* 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?: {
[key: string]: any;
} | null;
/**
* 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 | null;
/**
* The normal, successful response of the operation. 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?: {
[key: string]: any;
} | null;
}
/**
* Represents the metadata of the long-running operation.
*/
export interface Schema$OperationMetadata {
/**
* Output only. API version used to start the operation.
*/
apiVersion?: string | null;
/**
* Output only. The time the operation was created.
*/
createTime?: string | null;
/**
* Output only. The time the operation finished running.
*/
endTime?: string | null;
/**
* 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?: boolean | null;
/**
* Output only. Human-readable status of the operation, if any.
*/
statusMessage?: string | null;
/**
* Output only. Server-defined resource path for the target of the operation.
*/
target?: string | null;
/**
* Output only. Name of the verb executed by the operation.
*/
verb?: string | null;
}
/**
* Contains the details of a product.
*/
export interface Schema$Product {
/**
* Optional. Name of the product.
*/
name?: string | null;
/**
* Optional. Version of the product.
*/
version?: string | null;
}
/**
* Message represent resource in execution result
*/
export interface Schema$Resource {
/**
* The name of the resource.
*/
name?: string | null;
/**
* The service account associated with the resource.
*/
serviceAccount?: string | null;
/**
* The type of resource.
*/
type?: string | null;
}
/**
* Message describing resource filters
*/
export interface Schema$ResourceFilter {
/**
* Filter compute engine resource
*/
gceInstanceFilter?: Schema$GceInstanceFilter;
/**
* The label used for filter resource
*/
inclusionLabels?: {
[key: string]: string;
} | null;
/**
* The id pattern for filter resource
*/
resourceIdPatterns?: string[] | null;
/**
* The scopes of evaluation resource
*/
scopes?: string[] | null;
}
/**
* Message describing resource status
*/
export interface Schema$ResourceStatus {
/**
* Historical: Used before 2023-05-22 the new version of rule id if exists
*/
rulesNewerVersions?: string[] | null;
/**
* State of the resource
*/
state?: string | null;
}
/**
* Message represent a rule
*/
export interface Schema$Rule {
/**
* The CAI asset type of the rule is evaluating, for joined asset types, it will be the corresponding primary asset types.
*/
assetType?: string | null;
/**
* descrite rule in plain language
*/
description?: string | null;
/**
* the name display in UI
*/
displayName?: string | null;
/**
* the message template for rule
*/
errorMessage?: string | null;
/**
* rule name
*/
name?: string | null;
/**
* the primary category
*/
primaryCategory?: string | null;
/**
* the remediation for the rule
*/
remediation?: string | null;
/**
* Output only. the version of the rule
*/
revisionId?: string | null;
/**
* The type of the rule.
*/
ruleType?: string | null;
/**
* the secondary category
*/
secondaryCategory?: string | null;
/**
* the severity of the rule
*/
severity?: string | null;
/**
* List of user-defined tags
*/
tags?: string[] | null;
/**
* the docuement url for the rule
*/
uri?: string | null;
}
/**
* Message for execution result summary per rule
*/
export interface Schema$RuleExecutionResult {
/**
* Execution message, if any
*/
message?: string | null;
/**
* Number of violations
*/
resultCount?: string | null;
/**
* rule name
*/
rule?: string | null;
/**
* Number of total scanned resources
*/
scannedResourceCount?: string | null;
/**
* Output only. The execution status
*/
state?: string | null;
}
/**
* The rule output of the violation.
*/
export interface Schema$RuleOutput {
/**
* Output only. Violation details generated by rule.
*/
details?: {
[key: string]: string;
} | null;
/**
* Output only. The message generated by rule.
*/
message?: string | null;
}
/**
* Message for creating a Execution
*/
export interface Schema$RunEvaluationRequest {
/**
* Required. The resource being created
*/
execution?: Schema$Execution;
/**
* Required. Id of the requesting object If auto-generating Id server-side, remove this field and execution_id from the method_signature of Create RPC
*/
executionId?: string | null;
/**
* Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
*/
requestId?: string | null;
}
/**
* The component of sap workload
*/
export interface Schema$SapComponent {
/**
* Output only. All instance properties.
*/
databaseProperties?: Schema$DatabaseProperties;
/**
* List of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA.
*/
haHosts?: string[] | null;
/**
* Output only. resources in the component
*/
resources?: Schema$CloudResource[];
/**
* Output only. sid is the sap component identificator
*/
sid?: string | null;
/**
* The detected topology of the component.
*/
topologyType?: string | null;
}
/**
* The schema of SAP system discovery data.
*/
export interface Schema$SapDiscovery {
/**
* Optional. An SAP system may run without an application layer.
*/
applicationLayer?: Schema$SapDiscoveryComponent;
/**
* Required. An SAP System must have a database.
*/
databaseLayer?: Schema$SapDiscoveryComponent;
/**
* Optional. The metadata for SAP system discovery data.
*/
metadata?: Schema$SapDiscoveryMetadata;
/**
* Optional. The GCP project number that this SapSystem belongs to.
*/
projectNumber?: string | null;
/**
* Output only. A combination of database SID, database instance URI and tenant DB name to make a unique identifier per-system.
*/
systemId?: string | null;
/**
* Required. Unix timestamp this system has been updated last.
*/
updateTime?: string | null;
/**
* Optional. Whether to use DR reconciliation or not.
*/
useDrReconciliation?: boolean | null;
/**
* Optional. The properties of the workload.
*/
workloadProperties?: Schema$SapDiscoveryWorkloadProperties;
}
/**
* Message describing the system component.
*/
export interface Schema$SapDiscoveryComponent {
/**
* Optional. The component is a SAP application.
*/
applicationProperties?: Schema$SapDiscoveryComponentApplicationProperties;
/**
* Optional. The component is a SAP database.
*/
databaseProperties?: Schema$SapDiscoveryComponentDatabaseProperties;
/**
* Optional. A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA.
*/
haHosts?: string[] | null;
/**
* Required. Pantheon Project in which the resources reside.
*/
hostProject?: string | null;
/**
* Optional. The region this component's resources are primarily located in.
*/
region?: string | null;
/**
* Optional. A list of replication sites used in Disaster Recovery (DR) configurations.
*/
replicationSites?: Schema$SapDiscoveryComponentReplicationSite[];
/**
* Optional. The resources in a component.
*/
resources?: Schema$SapDiscoveryResource[];
/**
* Optional. The SAP identifier, used by the SAP software and helps differentiate systems for customers.
*/
sid?: string | null;
/**
* Optional. The detected topology of the component.
*/
topologyType?: string | null;
}
/**
* A set of properties describing an SAP Application layer.
*/
export interface Schema$SapDiscoveryComponentApplicationProperties {
/**
* Optional. Deprecated: ApplicationType now tells you whether this is ABAP or Java.
*/
abap?: boolean | null;
/**
* Optional. Instance number of the SAP application instance.
*/
appInstanceNumber?: string | null;
/**
* Required. Type of the application. Netweaver, etc.
*/
applicationType?: string | null;
/**
* Optional. Instance number of the ASCS instance.
*/
ascsInstanceNumber?: string | null;
/**
* Optional. Resource URI of the recognized ASCS host of the application.
*/
ascsUri?: string | null;
/**
* Optional. Instance number of the ERS instance.
*/
ersInstanceNumber?: string | null;
/**
* Optional. Kernel version for Netweaver running in the system.
*/
kernelVersion?: string | null;
/**
* Optional. Resource URI of the recognized shared NFS of the application. May be empty if the application server has only a single node.
*/
nfsUri?: string | null;
}
/**
* A set of properties describing an SAP Database layer.
*/
export interface Schema$SapDiscoveryComponentDatabaseProperties {
/**
* Optional. SID of the system database.
*/
databaseSid?: string | null;
/**
* Required. Type of the database. HANA, DB2, etc.
*/
databaseType?: string | null;
/**
* Optional. The version of the database software running in the system.
*/
databaseVersion?: string | null;
/**
* Optional. Instance number of the SAP instance.
*/
instanceNumber?: string | null;
/**
* Optional. Landscape ID from the HANA nameserver.
*/
landscapeId?: string | null;
/**
* Required. URI of the recognized primary instance of the database.
*/
primaryInstanceUri?: string | null;
/**
* Optional. URI of the recognized shared NFS of the database. May be empty if the database has only a single node.
*/
sharedNfsUri?: string | null;
}
/**
* A replication site used in Disaster Recovery (DR) configurations.
*/
export interface Schema$SapDiscoveryComponentReplicationSite {
/**
* Optional. The system component for the site.
*/
component?: Schema$SapDiscoveryComponent;
/**
* Optional. The name of the source site from which this one replicates.
*/
sourceSite?: string | null;
}
/**
* Message describing SAP discovery system metadata
*/
export interface Schema$SapDiscoveryMetadata {
/**
* Optional. Customer region string for customer's use. Does not represent GCP region.
*/
customerRegion?: string | null;
/**
* Optional. Customer defined, something like "E-commerce pre prod"
*/
definedSystem?: string | null;
/**
* Optional. Should be "prod", "QA", "dev", "staging", etc.
*/
environmentType?: string | null;
/**
* Optional. This SAP product name
*/
sapProduct?: string | null;
}
/**
* Message describing a resource.
*/
export interface Schema$SapDiscoveryResource {
/**
* Optional. A set of properties only applying to instance type resources.
*/
instanceProperties?: Schema$SapDiscoveryResourceInstanceProperties;
/**
* Optional. A list of resource URIs related to this resource.
*/
relatedResources?: string[] | null;
/**
* Required. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.
*/
resourceKind?: string | null;
/**
* Required. The type of this resource.
*/
resourceType?: string | null;
/**
* Required. URI of the resource, includes project, location, and name.
*/
resourceUri?: string | null;
/**
* Required. Unix timestamp of when this resource last had its discovery data updated.
*/
updateTime?: string | null;
}
/**
* A set of properties only present for an instance type resource
*/
export interface Schema$SapDiscoveryResourceInstanceProperties {
/**
* Optional. App server instances on the host
*/
appInstances?: Schema$SapDiscoveryResourceInstancePropertiesAppInstance[];
/**
* Optional. A list of instance URIs that are part of a cluster with this one.
*/
clusterInstances?: string[] | null;
/**
* Optional. Disk mounts on the instance.
*/
diskMounts?: Schema$SapDiscoveryResourceInstancePropertiesDiskMount[];
/**
* Optional. The VM's instance number.
*/
instanceNumber?: string | null;
/**
* Optional. Bitmask of instance role, a resource may have multiple roles at once.
*/
instanceRole?: string | null;
/**
* Optional. Instance is part of a DR site.
*/
isDrSite?: boolean | null;
/**
* Optional. The kernel version of the instance.
*/
osKernelVersion?: Schema$SapDiscoveryResourceInstancePropertiesKernelVersion;
/**
* Optional. A virtual hostname of the instance if it has one.
*/
virtualHostname?: string | null;
}
/**
* Fields to describe an SAP application server instance.
*/
export interface Schema$SapDiscoveryResourceInstancePropertiesAppInstance {
/**
* Optional. Instance name of the SAP application instance.
*/
name?: string | null;
/**
* Optional. Instance number of the SAP application instance.
*/
number?: string | null;
}
/**
* Disk mount on the instance.
*/
export interface Schema$SapDiscoveryResourceInstancePropertiesDiskMount {
/**
* Optional. Names of the disks providing this mount point.
*/
diskNames?: string[] | null;
/**
* Optional. Filesystem mount point.
*/
mountPoint?: string | null;
/**
* Optional. Name of the disk.
*/
name?: string | null;
}
/**
* KernelVersion encapsulates the kernel version data for the system.
*/
export interface Schema$SapDiscoveryResourceInstancePropertiesKernelVersion {
/**
* Optional. Captures the distro-specific kernel version, the portion of the string following the first dash.
*/
distroKernel?: Schema$SapDiscoveryResourceInstancePropertiesKernelVersionVersion;
/**
* Optional. Captures the OS-specific kernel version, the portion of the string up to the first dash.
*/
osKernel?: Schema$SapDiscoveryResourceInstancePropertiesKernelVersionVersion;
/**
* Optional. Raw string of the kernel version.
*/
rawString?: string | null;
}
/**
* Version is reported as Major.Minor.Build.Patch.
*/
export interface Schema$SapDiscoveryResourceInstancePropertiesKernelVersionVersion {
/**
* Optional. The build version number.
*/
build?: number | null;
/**
* Optional. The major version number.
*/
major?: number | null;
/**
* Optional. The minor version number.
*/
minor?: number | null;
/**
* Optional. The patch version number.
*/
patch?: number | null;
/**
* Optional. A catch-all for any unparsed version components. This is in case the number of points in the version string exceeds the expected count of 4.
*/
remainder?: string | null;
}
/**
* A set of properties describing an SAP workload.
*/
export interface Schema$SapDiscoveryWorkloadProperties {
/**
* Optional. List of SAP Products and their versions running on the system.
*/
productVersions?: Schema$SapDiscoveryWorkloadPropertiesProductVersion[];
/**
* Optional. A list of SAP software components and their versions running on the system.
*/
softwareComponentVersions?: Schema$SapDiscoveryWorkloadPropertiesSoftwareComponentProperties[];
}
/**
* A product name and version.
*/
export interface Schema$SapDiscoveryWorkloadPropertiesProductVersion {
/**
* Optional. Name of the product.
*/
name?: string | null;
/**
* Optional. Version of the product.
*/
version?: string | null;
}
/**
* A SAP software component name, version, and type.
*/
export interface Schema$SapDiscoveryWorkloadPropertiesSoftwareComponentProperties {
/**
* Optional. The component's minor version.
*/
extVersion?: string | null;
/**
* Optional. Name of the component.
*/
name?: string | null;
/**
* Optional. The component's type.
*/
type?: string | null;
/**
* Optional. The component's major version.
*/
version?: string | null;
}
/**
* SAP instance properties.
*/
export interface Schema$SapInstanceProperties {
/**
* Optional. Sap Instance Agent status.
*/
agentStates?: Schema$AgentStates;
/**
* Optional. SAP Instance numbers. They are from '00' to '99'.
*/
numbers?: string[] | null;
}
/**
* A presentation of SAP workload insight. The schema of SAP workloads validation related data.
*/
export interface Schema$SapValidation {
/**
* Required. The project_id of the cloud project that the Insight data comes from.
*/
projectId?: string | null;
/**
* Optional. A list of SAP validation metrics data.
*/
validationDetails?: Schema$SapValidationValidationDetail[];
/**
* Optional. The zone of the instance that the Insight data comes from.
*/
zone?: string | null;
}
/**
* Message describing the SAP validation metrics.
*/
export interface Schema$SapValidationValidationDetail {
/**
* Optional. The pairs of metrics data: field name & field value.
*/
details?: {
[key: string]: string;
} | null;
/**
* Optional. Was there a SAP system detected for this validation type.
*/
isPresent?: boolean | null;
/**
* Optional. The S