Movatterモバイル変換


[0]ホーム

URL:


workloadmanager

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package workloadmanager provides access to the Workload Manager API.

For product documentation, see:https://cloud.google.com/workload-manager/docs

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/workloadmanager/v1"...ctx := context.Background()workloadmanagerService, err := workloadmanager.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

workloadmanagerService, err := workloadmanager.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)workloadmanagerService, err := workloadmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
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

typeAgentCommandadded inv0.187.0

type AgentCommand struct {// Command: command is the name of the agent one-time executable that will be// invoked.Commandstring `json:"command,omitempty"`// Parameters: parameters is a map of key/value pairs that can be used to// specify additional one-time executable settings.Parameters map[string]string `json:"parameters,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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AgentCommand: * An AgentCommand specifies a one-time executable program forthe agent to run.

func (AgentCommand)MarshalJSONadded inv0.187.0

func (sAgentCommand) MarshalJSON() ([]byte,error)

typeAgentStatesadded inv0.245.0

type AgentStates struct {// AvailableVersion: Optional. The available version of the agent in artifact// registry.AvailableVersionstring `json:"availableVersion,omitempty"`// HanaMonitoring: Optional. HANA monitoring metrics of the agent.HanaMonitoring *ServiceStates `json:"hanaMonitoring,omitempty"`// InstalledVersion: Optional. The installed version of the agent on the host.InstalledVersionstring `json:"installedVersion,omitempty"`// IsFullyEnabled: Optional. Whether the agent is fully enabled. If false, the// agent is has some issues.IsFullyEnabledbool `json:"isFullyEnabled,omitempty"`// ProcessMetrics: Optional. The Process metrics of the agent.ProcessMetrics *ServiceStates `json:"processMetrics,omitempty"`// SystemDiscovery: Optional. The System discovery metrics of the agent.SystemDiscovery *ServiceStates `json:"systemDiscovery,omitempty"`// ForceSendFields is a list of field names (e.g. "AvailableVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AvailableVersion") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AgentStates: Agent status.

func (AgentStates)MarshalJSONadded inv0.245.0

func (sAgentStates) MarshalJSON() ([]byte,error)

typeAgentStatusadded inv0.237.0

type AgentStatus struct {// AgentName: Output only. The name of the agent.AgentNamestring `json:"agentName,omitempty"`// AvailableVersion: Output only. The available version of the agent in// artifact registry.AvailableVersionstring `json:"availableVersion,omitempty"`// CloudApiAccessFullScopesGranted: Output only. Whether the agent has full// access to Cloud APIs.//// Possible values://   "UNSPECIFIED_STATE" - The state is unspecified and has not been checked// yet.//   "SUCCESS_STATE" - The state is successful (enabled, granted, fully// functional).//   "FAILURE_STATE" - The state is failed (disabled, denied, not fully// functional).//   "ERROR_STATE" - There was an internal error while checking the state,// state is unknown.CloudApiAccessFullScopesGrantedstring `json:"cloudApiAccessFullScopesGranted,omitempty"`// ConfigurationErrorMessage: Output only. The error message for the agent// configuration if invalid.ConfigurationErrorMessagestring `json:"configurationErrorMessage,omitempty"`// ConfigurationFilePath: Output only. The path to the agent configuration// file.ConfigurationFilePathstring `json:"configurationFilePath,omitempty"`// ConfigurationValid: Output only. Whether the agent configuration is valid.//// Possible values://   "UNSPECIFIED_STATE" - The state is unspecified and has not been checked// yet.//   "SUCCESS_STATE" - The state is successful (enabled, granted, fully// functional).//   "FAILURE_STATE" - The state is failed (disabled, denied, not fully// functional).//   "ERROR_STATE" - There was an internal error while checking the state,// state is unknown.ConfigurationValidstring `json:"configurationValid,omitempty"`// InstalledVersion: Output only. The installed version of the agent on the// host.InstalledVersionstring `json:"installedVersion,omitempty"`// InstanceUri: Output only. The URI of the instance. Format:// projects//zones//instances/InstanceUristring `json:"instanceUri,omitempty"`// KernelVersion: Output only. The kernel version of the system.KernelVersion *SapDiscoveryResourceInstancePropertiesKernelVersion `json:"kernelVersion,omitempty"`// References: Output only. Optional references to public documentation.References []*AgentStatusReference `json:"references,omitempty"`// Services: Output only. The services (process metrics, host metrics, etc.).Services []*AgentStatusServiceStatus `json:"services,omitempty"`// SystemdServiceEnabled: Output only. Whether the agent service is enabled in// systemd.//// Possible values://   "UNSPECIFIED_STATE" - The state is unspecified and has not been checked// yet.//   "SUCCESS_STATE" - The state is successful (enabled, granted, fully// functional).//   "FAILURE_STATE" - The state is failed (disabled, denied, not fully// functional).//   "ERROR_STATE" - There was an internal error while checking the state,// state is unknown.SystemdServiceEnabledstring `json:"systemdServiceEnabled,omitempty"`// SystemdServiceRunning: Output only. Whether the agent service is running in// systemd.//// Possible values://   "UNSPECIFIED_STATE" - The state is unspecified and has not been checked// yet.//   "SUCCESS_STATE" - The state is successful (enabled, granted, fully// functional).//   "FAILURE_STATE" - The state is failed (disabled, denied, not fully// functional).//   "ERROR_STATE" - There was an internal error while checking the state,// state is unknown.SystemdServiceRunningstring `json:"systemdServiceRunning,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AgentStatus: The schema of agent status data.

func (AgentStatus)MarshalJSONadded inv0.237.0

func (sAgentStatus) MarshalJSON() ([]byte,error)

typeAgentStatusConfigValueadded inv0.237.0

type AgentStatusConfigValue struct {// IsDefault: Output only. Whether the configuration value is the default value// or overridden.IsDefaultbool `json:"isDefault,omitempty"`// Name: Output only. The name of the configuration value.Namestring `json:"name,omitempty"`// Value: Output only. The value of the configuration value.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "IsDefault") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IsDefault") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AgentStatusConfigValue: The configuration value.

func (AgentStatusConfigValue)MarshalJSONadded inv0.237.0

func (sAgentStatusConfigValue) MarshalJSON() ([]byte,error)

typeAgentStatusIAMPermissionadded inv0.237.0

type AgentStatusIAMPermission struct {// Granted: Output only. Whether the permission is granted.//// Possible values://   "UNSPECIFIED_STATE" - The state is unspecified and has not been checked// yet.//   "SUCCESS_STATE" - The state is successful (enabled, granted, fully// functional).//   "FAILURE_STATE" - The state is failed (disabled, denied, not fully// functional).//   "ERROR_STATE" - There was an internal error while checking the state,// state is unknown.Grantedstring `json:"granted,omitempty"`// Name: Output only. The name of the permission.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Granted") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Granted") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AgentStatusIAMPermission: The IAM permission status.

func (AgentStatusIAMPermission)MarshalJSONadded inv0.237.0

func (sAgentStatusIAMPermission) MarshalJSON() ([]byte,error)

typeAgentStatusReferenceadded inv0.237.0

type AgentStatusReference struct {// Name: Output only. The name of the reference.Namestring `json:"name,omitempty"`// Url: Output only. The URL of the reference.Urlstring `json:"url,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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AgentStatusReference: The reference to public documentation.

func (AgentStatusReference)MarshalJSONadded inv0.237.0

func (sAgentStatusReference) MarshalJSON() ([]byte,error)

typeAgentStatusServiceStatusadded inv0.237.0

type AgentStatusServiceStatus struct {// ConfigValues: Output only. The configuration values for the service.ConfigValues []*AgentStatusConfigValue `json:"configValues,omitempty"`// ErrorMessage: Output only. The error message for the service if it is not// fully functional.ErrorMessagestring `json:"errorMessage,omitempty"`// FullyFunctional: Output only. Whether the service is fully functional (all// checks passed).//// Possible values://   "UNSPECIFIED_STATE" - The state is unspecified and has not been checked// yet.//   "SUCCESS_STATE" - The state is successful (enabled, granted, fully// functional).//   "FAILURE_STATE" - The state is failed (disabled, denied, not fully// functional).//   "ERROR_STATE" - There was an internal error while checking the state,// state is unknown.FullyFunctionalstring `json:"fullyFunctional,omitempty"`// IamPermissions: Output only. The permissions required for the service.IamPermissions []*AgentStatusIAMPermission `json:"iamPermissions,omitempty"`// Name: Output only. The name of the service.Namestring `json:"name,omitempty"`// State: Output only. The state of the service (enabled or disabled in the// configuration).//// Possible values://   "UNSPECIFIED_STATE" - The state is unspecified and has not been checked// yet.//   "SUCCESS_STATE" - The state is successful (enabled, granted, fully// functional).//   "FAILURE_STATE" - The state is failed (disabled, denied, not fully// functional).//   "ERROR_STATE" - There was an internal error while checking the state,// state is unknown.Statestring `json:"state,omitempty"`// UnspecifiedStateMessage: Output only. The message to display when the// service state is unspecified.UnspecifiedStateMessagestring `json:"unspecifiedStateMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ConfigValues") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfigValues") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AgentStatusServiceStatus: The status of a service (process metrics, hostmetrics, etc.).

func (AgentStatusServiceStatus)MarshalJSONadded inv0.237.0

func (sAgentStatusServiceStatus) MarshalJSON() ([]byte,error)

typeBackupPropertiesadded inv0.223.0

type BackupProperties struct {// LatestBackupStatus: Output only. The state of the latest backup.//// Possible values://   "BACKUP_STATE_UNSPECIFIED" - unspecified//   "BACKUP_STATE_SUCCESS" - SUCCESS state//   "BACKUP_STATE_FAILURE" - FAILURE stateLatestBackupStatusstring `json:"latestBackupStatus,omitempty"`// LatestBackupTime: The time when the latest backup was performed.LatestBackupTimestring `json:"latestBackupTime,omitempty"`// ForceSendFields is a list of field names (e.g. "LatestBackupStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LatestBackupStatus") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BackupProperties: Backup properties.

func (BackupProperties)MarshalJSONadded inv0.223.0

func (sBackupProperties) MarshalJSON() ([]byte,error)

typeBigQueryDestinationadded inv0.156.0

type BigQueryDestination struct {// CreateNewResultsTable: Optional. determine if results will be saved in a new// tableCreateNewResultsTablebool `json:"createNewResultsTable,omitempty"`// DestinationDataset: Optional. destination dataset to save evaluation resultsDestinationDatasetstring `json:"destinationDataset,omitempty"`// ForceSendFields is a list of field names (e.g. "CreateNewResultsTable") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateNewResultsTable") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BigQueryDestination: Message describing big query destination

func (BigQueryDestination)MarshalJSONadded inv0.156.0

func (sBigQueryDestination) MarshalJSON() ([]byte,error)

typeCancelOperationRequest

type CancelOperationRequest struct {}

CancelOperationRequest: The request message for Operations.CancelOperation.

typeCloudResourceadded inv0.166.0

type CloudResource struct {// InstanceProperties: Output only. All instance properties.InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"`// Kind: Output only.//// Possible values://   "RESOURCE_KIND_UNSPECIFIED" - Unspecified resource kind.//   "RESOURCE_KIND_INSTANCE" - This is a compute instance.//   "RESOURCE_KIND_DISK" - This is a compute disk.//   "RESOURCE_KIND_ADDRESS" - This is a compute address.//   "RESOURCE_KIND_FILESTORE" - This is a filestore instance.//   "RESOURCE_KIND_HEALTH_CHECK" - This is a compute health check.//   "RESOURCE_KIND_FORWARDING_RULE" - This is a compute forwarding rule.//   "RESOURCE_KIND_BACKEND_SERVICE" - This is a compute backend service.//   "RESOURCE_KIND_SUBNETWORK" - This is a compute subnetwork.//   "RESOURCE_KIND_NETWORK" - This is a compute network.//   "RESOURCE_KIND_PUBLIC_ADDRESS" - This is a public accessible IP Address.//   "RESOURCE_KIND_INSTANCE_GROUP" - This is a compute instance group.Kindstring `json:"kind,omitempty"`// Name: Output only. resource name Example:// compute.googleapis.com/projects/wlm-obs-dev/zones/us-central1-a/instances/sap// -priNamestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "InstanceProperties") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InstanceProperties") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CloudResource: The resource on GCP

func (CloudResource)MarshalJSONadded inv0.166.0

func (sCloudResource) MarshalJSON() ([]byte,error)

typeCommandadded inv0.187.0

type Command struct {// AgentCommand: AgentCommand specifies a one-time executable program for the// agent to run.AgentCommand *AgentCommand `json:"agentCommand,omitempty"`// ShellCommand: ShellCommand is invoked via the agent's command line executor.ShellCommand *ShellCommand `json:"shellCommand,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentCommand") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentCommand") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Command: * Command specifies the type of command to execute.

func (Command)MarshalJSONadded inv0.187.0

func (sCommand) MarshalJSON() ([]byte,error)

typeDatabasePropertiesadded inv0.223.0

type DatabaseProperties struct {// BackupProperties: Output only. Backup properties.BackupProperties *BackupProperties `json:"backupProperties,omitempty"`// DatabaseType: Output only. Type of the database. HANA, DB2, etc.//// Possible values://   "DATABASE_TYPE_UNSPECIFIED" - unspecified//   "HANA" - SAP HANA//   "MAX_DB" - SAP MAX_DB//   "DB2" - IBM DB2//   "ORACLE" - Oracle Database//   "SQLSERVER" - Microsoft SQL Server//   "ASE" - SAP Sybase ASEDatabaseTypestring `json:"databaseType,omitempty"`// ForceSendFields is a list of field names (e.g. "BackupProperties") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BackupProperties") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DatabaseProperties: Database Properties.

func (DatabaseProperties)MarshalJSONadded inv0.223.0

func (sDatabaseProperties) MarshalJSON() ([]byte,error)

typeEmpty

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 definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

typeEvaluation

type Evaluation struct {// BigQueryDestination: Optional. BigQuery destinationBigQueryDestination *BigQueryDestination `json:"bigQueryDestination,omitempty"`// CreateTime: Output only. [Output only] Create time stampCreateTimestring `json:"createTime,omitempty"`// CustomRulesBucket: The Cloud Storage bucket name for custom rules.CustomRulesBucketstring `json:"customRulesBucket,omitempty"`// Description: Description of the EvaluationDescriptionstring `json:"description,omitempty"`// EvaluationType: Evaluation type//// Possible values://   "EVALUATION_TYPE_UNSPECIFIED" - Not specified//   "SAP" - SAP best practices//   "SQL_SERVER" - SQL best practices//   "OTHER" - Customized best practices//   "SCC_IAC" - SCC IaC (Infra as Code) best practices.EvaluationTypestring `json:"evaluationType,omitempty"`// KmsKey: Optional. Immutable. Customer-managed encryption key name, in the// format projects/*/locations/*/keyRings/*/cryptoKeys/*.KmsKeystring `json:"kmsKey,omitempty"`// Labels: Labels as key value pairsLabels map[string]string `json:"labels,omitempty"`// Name: name of resource names have the form// 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'Namestring `json:"name,omitempty"`// ResourceFilter: annotations as key value pairsResourceFilter *ResourceFilter `json:"resourceFilter,omitempty"`// ResourceStatus: Output only. [Output only] The updated rule ids if exist.ResourceStatus *ResourceStatus `json:"resourceStatus,omitempty"`// RuleNames: the name of the ruleRuleNames []string `json:"ruleNames,omitempty"`// RuleVersions: Output only. [Output only] The updated rule ids if exist.RuleVersions []string `json:"ruleVersions,omitempty"`// Schedule: crontab format schedule for scheduled evaluation, currently only// support the following schedule: "0 */1 * * *", "0 */6 * * *", "0 */12 * *// *", "0 0 */1 * *", "0 0 */7 * *",Schedulestring `json:"schedule,omitempty"`// UpdateTime: Output only. [Output only] Update time stampUpdateTimestring `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. "BigQueryDestination") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BigQueryDestination") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Evaluation: Message describing Evaluation object

func (Evaluation)MarshalJSON

func (sEvaluation) MarshalJSON() ([]byte,error)

typeExecutionadded inv0.118.0

type Execution struct {// EndTime: Output only. [Output only] End time stampEndTimestring `json:"endTime,omitempty"`// Engine: Optional. Engine//// Possible values://   "ENGINE_UNSPECIFIED" - The original CG//   "ENGINE_SCANNER" - SlimCG / Scanner//   "V2" - Evaluation Engine V2Enginestring `json:"engine,omitempty"`// EvaluationId: Output only. [Output only] Evaluation IDEvaluationIdstring `json:"evaluationId,omitempty"`// ExternalDataSources: Optional. External data sourcesExternalDataSources []*ExternalDataSources `json:"externalDataSources,omitempty"`// InventoryTime: Output only. [Output only] Inventory time stampInventoryTimestring `json:"inventoryTime,omitempty"`// Labels: Labels as key value pairsLabels map[string]string `json:"labels,omitempty"`// Name: The name of execution resource. The format is// projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{// execution}Namestring `json:"name,omitempty"`// Notices: Output only. Additional information generated by the executionNotices []*Notice `json:"notices,omitempty"`// ResultSummary: Output only. [Output only] Result summary for the executionResultSummary *Summary `json:"resultSummary,omitempty"`// RuleResults: Output only. execution result summary per ruleRuleResults []*RuleExecutionResult `json:"ruleResults,omitempty"`// RunType: type represent whether the execution executed directly by user or// scheduled according evaluation.schedule field.//// Possible values://   "TYPE_UNSPECIFIED" - type of execution is unspecified//   "ONE_TIME" - type of execution is one time//   "SCHEDULED" - type of execution is scheduledRunTypestring `json:"runType,omitempty"`// StartTime: Output only. [Output only] Start time stampStartTimestring `json:"startTime,omitempty"`// State: Output only. [Output only] State//// Possible values://   "STATE_UNSPECIFIED" - state of execution is unspecified//   "RUNNING" - the execution is running in backend service//   "SUCCEEDED" - the execution run success//   "FAILED" - the execution run failedStatestring `json:"state,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Execution: Message describing Execution object

func (Execution)MarshalJSONadded inv0.118.0

func (sExecution) MarshalJSON() ([]byte,error)

typeExecutionResultadded inv0.118.0

type ExecutionResult struct {// Commands: The commands to remediate the violation.Commands []*Command `json:"commands,omitempty"`// DocumentationUrl: The URL for the documentation of the rule.DocumentationUrlstring `json:"documentationUrl,omitempty"`// Resource: The resource that violates the rule.Resource *Resource `json:"resource,omitempty"`// Rule: The rule that is violated in an evaluation.Rulestring `json:"rule,omitempty"`// Severity: The severity of violation.Severitystring `json:"severity,omitempty"`// Type: Execution result type of the scanned resource//// Possible values://   "TYPE_UNSPECIFIED" - Unknown state//   "TYPE_PASSED" - resource successfully passed the rule//   "TYPE_VIOLATED" - resource violated the ruleTypestring `json:"type,omitempty"`// ViolationDetails: The details of violation in an evaluation result.ViolationDetails *ViolationDetails `json:"violationDetails,omitempty"`// ViolationMessage: The violation message of an execution.ViolationMessagestring `json:"violationMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "Commands") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Commands") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ExecutionResult: Message describing the result of an execution

func (ExecutionResult)MarshalJSONadded inv0.118.0

func (sExecutionResult) MarshalJSON() ([]byte,error)

typeExternalDataSourcesadded inv0.181.0

type ExternalDataSources struct {// AssetType: Required. The asset type of the external data source this can be// one of go/cai-asset-types to override the default asset type or it can be a// custom type defined by the user custom type must match the asset type in the// ruleAssetTypestring `json:"assetType,omitempty"`// Name: Optional. Name of external data source. The name will be used inside// the rego/sql to refer the external dataNamestring `json:"name,omitempty"`// Type: Required. Type of external data source//// Possible values://   "TYPE_UNSPECIFIED" - Unknown type//   "BIG_QUERY_TABLE" - BigQuery tableTypestring `json:"type,omitempty"`// Uri: Required. URI of external data source. example of bq table// {project_ID}.{dataset_ID}.{table_ID}Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AssetType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ExternalDataSources: Message for external data sources

func (ExternalDataSources)MarshalJSONadded inv0.181.0

func (sExternalDataSources) MarshalJSON() ([]byte,error)

typeGceInstanceFilter

type GceInstanceFilter struct {// ServiceAccounts: Service account of compute engineServiceAccounts []string `json:"serviceAccounts,omitempty"`// ForceSendFields is a list of field names (e.g. "ServiceAccounts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ServiceAccounts") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GceInstanceFilter: Message describing compute engine instance filter

func (GceInstanceFilter)MarshalJSON

func (sGceInstanceFilter) MarshalJSON() ([]byte,error)

typeIAMPermissionadded inv0.248.0

type IAMPermission struct {// Granted: Output only. Whether the permission is granted.Grantedbool `json:"granted,omitempty"`// Name: Output only. The name of the permission.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Granted") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Granted") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IAMPermission: The IAM permission status.

func (IAMPermission)MarshalJSONadded inv0.248.0

func (sIAMPermission) MarshalJSON() ([]byte,error)

typeInsight

type Insight struct {// AgentStatus: The insights data for the agent status.AgentStatus *AgentStatus `json:"agentStatus,omitempty"`// InstanceId: Optional. The instance id where the insight is generated fromInstanceIdstring `json:"instanceId,omitempty"`// OpenShiftValidation: The insights data for the OpenShift workload// validation.OpenShiftValidation *OpenShiftValidation `json:"openShiftValidation,omitempty"`// SapDiscovery: The insights data for SAP system discovery. This is a copy of// SAP System proto and should get updated whenever that one changes.SapDiscovery *SapDiscovery `json:"sapDiscovery,omitempty"`// SapValidation: The insights data for the SAP workload validation.SapValidation *SapValidation `json:"sapValidation,omitempty"`// SentTime: Output only. [Output only] Create time stampSentTimestring `json:"sentTime,omitempty"`// SqlserverValidation: The insights data for the sqlserver workload// validation.SqlserverValidation *SqlserverValidation `json:"sqlserverValidation,omitempty"`// TorsoValidation: The insights data for workload validation of torso// workloads.TorsoValidation *TorsoValidation `json:"torsoValidation,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Insight: A presentation of host resource usage where the workload runs.

func (Insight)MarshalJSON

func (sInsight) MarshalJSON() ([]byte,error)

typeInstancePropertiesadded inv0.223.0

type InstanceProperties struct {// InstanceNumber: Optional. Instance number.InstanceNumberstring `json:"instanceNumber,omitempty"`// MachineType: Optional. Instance machine type.MachineTypestring `json:"machineType,omitempty"`// Roles: Optional. Instance roles.//// Possible values://   "INSTANCE_ROLE_UNSPECIFIED" - Unspecified role.//   "INSTANCE_ROLE_ASCS" - ASCS role.//   "INSTANCE_ROLE_ERS" - ERS role.//   "INSTANCE_ROLE_APP_SERVER" - APP server.//   "INSTANCE_ROLE_HANA_PRIMARY" - HANA primary role.//   "INSTANCE_ROLE_HANA_SECONDARY" - HANA secondary role.Roles []string `json:"roles,omitempty"`// SapInstanceProperties: Optional. SAP Instance properties.SapInstanceProperties *SapInstanceProperties `json:"sapInstanceProperties,omitempty"`// Status: Optional. Instance status.Statusstring `json:"status,omitempty"`// UpcomingMaintenanceEvent: Optional. the next maintenance event on VMUpcomingMaintenanceEvent *UpcomingMaintenanceEvent `json:"upcomingMaintenanceEvent,omitempty"`// ForceSendFields is a list of field names (e.g. "InstanceNumber") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InstanceNumber") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

InstanceProperties: Instance Properties.

func (InstanceProperties)MarshalJSONadded inv0.223.0

func (sInstanceProperties) MarshalJSON() ([]byte,error)

typeInvalidRuleadded inv0.252.0

type InvalidRule struct {// DisplayName: display name of the invalid ruleDisplayNamestring `json:"displayName,omitempty"`// GcsUri: cloud storage destination of the invalid ruleGcsUristring `json:"gcsUri,omitempty"`// Name: name of the invalid ruleNamestring `json:"name,omitempty"`// ValiadtionError: The error message of valdating rule formats.ValiadtionErrorstring `json:"valiadtionError,omitempty"`// 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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

InvalidRule: Message represent an rule that failed to be validated.

func (InvalidRule)MarshalJSONadded inv0.252.0

func (sInvalidRule) MarshalJSON() ([]byte,error)

typeInvalidRulesWrapperadded inv0.252.0

type InvalidRulesWrapper struct {// InvalidRules: The invalid rules that failed to be validated.InvalidRules []*InvalidRule `json:"invalidRules,omitempty"`// ForceSendFields is a list of field names (e.g. "InvalidRules") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InvalidRules") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

InvalidRulesWrapper: Message wrappes a list of invalid rules.

func (InvalidRulesWrapper)MarshalJSONadded inv0.252.0

func (sInvalidRulesWrapper) MarshalJSON() ([]byte,error)

typeListDiscoveredProfilesResponseadded inv0.223.0

type ListDiscoveredProfilesResponse struct {// NextPageToken: Output only. A token identifying a page of results the server// should returnNextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// WorkloadProfiles: Output only. The list of workload profilesWorkloadProfiles []*WorkloadProfile `json:"workloadProfiles,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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListDiscoveredProfilesResponse: List discovered profile Response returnsdiscovered profiles from agents

func (ListDiscoveredProfilesResponse)MarshalJSONadded inv0.223.0

func (sListDiscoveredProfilesResponse) MarshalJSON() ([]byte,error)

typeListEvaluationsResponse

type ListEvaluationsResponse struct {// Evaluations: The list of EvaluationEvaluations []*Evaluation `json:"evaluations,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `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. "Evaluations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Evaluations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListEvaluationsResponse: Message for response to listing Evaluations

func (ListEvaluationsResponse)MarshalJSON

func (sListEvaluationsResponse) MarshalJSON() ([]byte,error)

typeListExecutionResultsResponseadded inv0.118.0

type ListExecutionResultsResponse struct {// ExecutionResults: The versions from the specified publisher.ExecutionResults []*ExecutionResult `json:"executionResults,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `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. "ExecutionResults") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionResults") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListExecutionResultsResponse: Message for response of list execution results

func (ListExecutionResultsResponse)MarshalJSONadded inv0.118.0

func (sListExecutionResultsResponse) MarshalJSON() ([]byte,error)

typeListExecutionsResponseadded inv0.118.0

type ListExecutionsResponse struct {// Executions: The list of ExecutionExecutions []*Execution `json:"executions,omitempty"`// NextPageToken: A token identifying a page of results the server should// return.NextPageTokenstring `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. "Executions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Executions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListExecutionsResponse: Message for response to listing Executions

func (ListExecutionsResponse)MarshalJSONadded inv0.118.0

func (sListExecutionsResponse) MarshalJSON() ([]byte,error)

typeListLocationsResponse

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.NextPageTokenstring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListLocationsResponse: The response message for Locations.ListLocations.

func (ListLocationsResponse)MarshalJSON

func (sListLocationsResponse) MarshalJSON() ([]byte,error)

typeListOperationsResponse

type ListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in the// request.Operations []*Operation `json:"operations,omitempty"`// Unreachable: Unordered list. Unreachable resources. Populated when the// request sets `ListOperationsRequest.return_partial_success` and reads across// collections e.g. when attempting to list all resources across all supported// locations.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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListOperationsResponse: The response message for Operations.ListOperations.

func (ListOperationsResponse)MarshalJSON

func (sListOperationsResponse) MarshalJSON() ([]byte,error)

typeListRulesResponseadded inv0.118.0

type ListRulesResponse struct {// InvalidRulesWrapper: A wrapper of the invalid rules that failed to be// validated.InvalidRulesWrapper *InvalidRulesWrapper `json:"invalidRulesWrapper,omitempty"`// Rules: all rules in responseRules []*Rule `json:"rules,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "InvalidRulesWrapper") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InvalidRulesWrapper") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListRulesResponse: Mesesage of response of list rules

func (ListRulesResponse)MarshalJSONadded inv0.118.0

func (sListRulesResponse) MarshalJSON() ([]byte,error)

typeListScannedResourcesResponseadded inv0.118.0

type ListScannedResourcesResponse struct {// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// ScannedResources: All scanned resources in responseScannedResources []*ScannedResource `json:"scannedResources,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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListScannedResourcesResponse: Message for response to list scanned resources

func (ListScannedResourcesResponse)MarshalJSONadded inv0.118.0

func (sListScannedResourcesResponse) MarshalJSON() ([]byte,error)

typeLocation

type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `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".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Location: A resource that represents a Google Cloud location.

func (Location)MarshalJSON

func (sLocation) MarshalJSON() ([]byte,error)

typeNoticeadded inv0.204.0

type Notice struct {// Message: Output only. Message of the noticeMessagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Notice: Message for additional information generated by the execution

func (Notice)MarshalJSONadded inv0.204.0

func (sNotice) MarshalJSON() ([]byte,error)

typeOpenShiftValidationadded inv0.250.0

type OpenShiftValidation struct {// ClusterId: Required. The OpenShift cluster ID (e.g.// 8371bb05-7cac-4d38-82c0-0f58c4f6f936).ClusterIdstring `json:"clusterId,omitempty"`// ValidationDetails: Required. The validation details of the OpenShift cluster// in JSON format.ValidationDetailsgoogleapi.RawMessage `json:"validationDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "ClusterId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClusterId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OpenShiftValidation: A presentation of OpenShift workload insight. Theschema of OpenShift workloads validation related data.

func (OpenShiftValidation)MarshalJSONadded inv0.253.0

func (sOpenShiftValidation) MarshalJSON() ([]byte,error)

typeOperation

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.Donebool `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.Metadatagoogleapi.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}`.Namestring `json:"name,omitempty"`// Response: 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`.Responsegoogleapi.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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Operation: This resource represents a long-running operation that is theresult of a network API call.

func (Operation)MarshalJSON

func (sOperation) MarshalJSON() ([]byte,error)

typeOperationMetadata

type OperationMetadata struct {// ApiVersion: Output only. API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CreateTime: Output only. The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: Output only. The time the operation finished running.EndTimestring `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`.RequestedCancellationbool `json:"requestedCancellation,omitempty"`// StatusMessage: Output only. Human-readable status of the operation, if any.StatusMessagestring `json:"statusMessage,omitempty"`// Target: Output only. Server-defined resource path for the target of the// operation.Targetstring `json:"target,omitempty"`// Verb: Output only. Name of the verb executed by the operation.Verbstring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OperationMetadata: Represents the metadata of the long-running operation.

func (OperationMetadata)MarshalJSON

func (sOperationMetadata) MarshalJSON() ([]byte,error)

typeProductadded inv0.223.0

type Product struct {// Name: Optional. Name of the product.Namestring `json:"name,omitempty"`// Version: Optional. Version of the product.Versionstring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Product: Product contains the details of a product.

func (Product)MarshalJSONadded inv0.223.0

func (sProduct) MarshalJSON() ([]byte,error)

typeProjectsLocationsDiscoveredprofilesListCalladded inv0.223.0

type ProjectsLocationsDiscoveredprofilesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsDiscoveredprofilesListCall)Contextadded inv0.223.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsDiscoveredprofilesListCall)Doadded inv0.223.0

Do executes the "workloadmanager.projects.locations.discoveredprofiles.list" call.Any non-2xx status code is an error. Response headers are in either*ListDiscoveredProfilesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsDiscoveredprofilesListCall)Fieldsadded inv0.223.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsDiscoveredprofilesListCall)Filteradded inv0.223.0

Filter sets the optional parameter "filter": Filtering results

func (*ProjectsLocationsDiscoveredprofilesListCall)Headeradded inv0.223.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsDiscoveredprofilesListCall)IfNoneMatchadded inv0.223.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsDiscoveredprofilesListCall)PageSizeadded inv0.223.0

PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.

func (*ProjectsLocationsDiscoveredprofilesListCall)PageTokenadded inv0.223.0

PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.

func (*ProjectsLocationsDiscoveredprofilesListCall)Pagesadded inv0.223.0

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.

typeProjectsLocationsDiscoveredprofilesServiceadded inv0.223.0

type ProjectsLocationsDiscoveredprofilesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsDiscoveredprofilesServiceadded inv0.223.0

func NewProjectsLocationsDiscoveredprofilesService(s *Service) *ProjectsLocationsDiscoveredprofilesService

func (*ProjectsLocationsDiscoveredprofilesService)Listadded inv0.223.0

List: List discovered workload profiles

- parent: Parent value for ListDiscoveredProfilesRequest.

typeProjectsLocationsEvaluationsCreateCall

type ProjectsLocationsEvaluationsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsCreateCall)Do

Do executes the "workloadmanager.projects.locations.evaluations.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsCreateCall)EvaluationId

EvaluationId sets the optional parameter "evaluationId": Required. Id of therequesting object

func (*ProjectsLocationsEvaluationsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsCreateCall)RequestId

RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).

typeProjectsLocationsEvaluationsDeleteCalladded inv0.166.0

type ProjectsLocationsEvaluationsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsDeleteCall)Contextadded inv0.166.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsDeleteCall)Doadded inv0.166.0

Do executes the "workloadmanager.projects.locations.evaluations.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsDeleteCall)Fieldsadded inv0.166.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsDeleteCall)Forceadded inv0.172.0

Force sets the optional parameter "force": Followed the best practice fromhttps://aip.dev/135#cascading-delete

func (*ProjectsLocationsEvaluationsDeleteCall)Headeradded inv0.166.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsDeleteCall)RequestIdadded inv0.166.0

RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).

typeProjectsLocationsEvaluationsExecutionsDeleteCalladded inv0.166.0

type ProjectsLocationsEvaluationsExecutionsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsExecutionsDeleteCall)Contextadded inv0.166.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsExecutionsDeleteCall)Doadded inv0.166.0

Do executes the "workloadmanager.projects.locations.evaluations.executions.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsExecutionsDeleteCall)Fieldsadded inv0.166.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsExecutionsDeleteCall)Headeradded inv0.166.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsExecutionsDeleteCall)RequestIdadded inv0.166.0

RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).

typeProjectsLocationsEvaluationsExecutionsGetCalladded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsExecutionsGetCall)Contextadded inv0.118.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsExecutionsGetCall)Doadded inv0.118.0

Do executes the "workloadmanager.projects.locations.evaluations.executions.get" call.Any non-2xx status code is an error. Response headers are in either*Execution.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsExecutionsGetCall)Fieldsadded inv0.118.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsExecutionsGetCall)Headeradded inv0.118.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsExecutionsGetCall)IfNoneMatchadded inv0.118.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsEvaluationsExecutionsListCalladded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsExecutionsListCall)Contextadded inv0.118.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsExecutionsListCall)Doadded inv0.118.0

Do executes the "workloadmanager.projects.locations.evaluations.executions.list" call.Any non-2xx status code is an error. Response headers are in either*ListExecutionsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsEvaluationsExecutionsListCall)Fieldsadded inv0.118.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsExecutionsListCall)Filteradded inv0.118.0

Filter sets the optional parameter "filter": Filtering results

func (*ProjectsLocationsEvaluationsExecutionsListCall)Headeradded inv0.118.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsExecutionsListCall)IfNoneMatchadded inv0.118.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsEvaluationsExecutionsListCall)OrderByadded inv0.118.0

OrderBy sets the optional parameter "orderBy": Field to sort by. Seehttps://google.aip.dev/132#ordering for more details.

func (*ProjectsLocationsEvaluationsExecutionsListCall)PageSizeadded inv0.118.0

PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.

func (*ProjectsLocationsEvaluationsExecutionsListCall)PageTokenadded inv0.118.0

PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.

func (*ProjectsLocationsEvaluationsExecutionsListCall)Pagesadded inv0.118.0

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.

typeProjectsLocationsEvaluationsExecutionsResultsListCalladded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsResultsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)Contextadded inv0.118.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)Doadded inv0.118.0

Do executes the "workloadmanager.projects.locations.evaluations.executions.results.list" call.Any non-2xx status code is an error. Response headers are in either*ListExecutionResultsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)Fieldsadded inv0.118.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)Filteradded inv0.118.0

Filter sets the optional parameter "filter": Filtering results

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)Headeradded inv0.118.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)IfNoneMatchadded inv0.118.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)PageSizeadded inv0.118.0

PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)PageTokenadded inv0.118.0

PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.

func (*ProjectsLocationsEvaluationsExecutionsResultsListCall)Pagesadded inv0.118.0

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.

typeProjectsLocationsEvaluationsExecutionsResultsServiceadded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsResultsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsEvaluationsExecutionsResultsServiceadded inv0.118.0

func NewProjectsLocationsEvaluationsExecutionsResultsService(s *Service) *ProjectsLocationsEvaluationsExecutionsResultsService

func (*ProjectsLocationsEvaluationsExecutionsResultsService)Listadded inv0.118.0

List: Lists the result of a single evaluation.

  • parent: The execution results. Format:{parent}/evaluations/*/executions/*/results.

typeProjectsLocationsEvaluationsExecutionsRunCalladded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsRunCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsExecutionsRunCall)Contextadded inv0.118.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsExecutionsRunCall)Doadded inv0.118.0

Do executes the "workloadmanager.projects.locations.evaluations.executions.run" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsExecutionsRunCall)Fieldsadded inv0.118.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsExecutionsRunCall)Headeradded inv0.118.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsEvaluationsExecutionsScannedResourcesListCalladded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)Contextadded inv0.118.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)Doadded inv0.118.0

Do executes the "workloadmanager.projects.locations.evaluations.executions.scannedResources.list" call.Any non-2xx status code is an error. Response headers are in either*ListScannedResourcesResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)Fieldsadded inv0.118.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)Filteradded inv0.118.0

Filter sets the optional parameter "filter": Filtering results

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)Headeradded inv0.118.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)IfNoneMatchadded inv0.118.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)OrderByadded inv0.118.0

OrderBy sets the optional parameter "orderBy": Field to sort by. Seehttps://google.aip.dev/132#ordering for more details.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)PageSizeadded inv0.118.0

PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)PageTokenadded inv0.118.0

PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)Pagesadded inv0.118.0

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 (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall)Ruleadded inv0.118.0

Rule sets the optional parameter "rule": rule name

typeProjectsLocationsEvaluationsExecutionsScannedResourcesServiceadded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsScannedResourcesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsEvaluationsExecutionsScannedResourcesServiceadded inv0.118.0

func NewProjectsLocationsEvaluationsExecutionsScannedResourcesService(s *Service) *ProjectsLocationsEvaluationsExecutionsScannedResourcesService

func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesService)Listadded inv0.118.0

List: List all scanned resources for a single Execution.

- parent: parent for ListScannedResourcesRequest.

typeProjectsLocationsEvaluationsExecutionsServiceadded inv0.118.0

type ProjectsLocationsEvaluationsExecutionsService struct {Results *ProjectsLocationsEvaluationsExecutionsResultsServiceScannedResources *ProjectsLocationsEvaluationsExecutionsScannedResourcesService// contains filtered or unexported fields}

funcNewProjectsLocationsEvaluationsExecutionsServiceadded inv0.118.0

func NewProjectsLocationsEvaluationsExecutionsService(s *Service) *ProjectsLocationsEvaluationsExecutionsService

func (*ProjectsLocationsEvaluationsExecutionsService)Deleteadded inv0.166.0

Delete: Deletes a single Execution.

- name: Name of the resource.

func (*ProjectsLocationsEvaluationsExecutionsService)Getadded inv0.118.0

Get: Gets details of a single Execution.

- name: Name of the resource.

func (*ProjectsLocationsEvaluationsExecutionsService)Listadded inv0.118.0

List: Lists Executions in a given project and location.

  • parent: The resource prefix of the Execution using the form:'projects/{project}/locations/{location}/evaluations/{evaluation}'.

func (*ProjectsLocationsEvaluationsExecutionsService)Runadded inv0.118.0

Run: Creates a new Execution in a given project and location.

  • name: The resource name of the Execution using the form:'projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}'.

typeProjectsLocationsEvaluationsGetCall

type ProjectsLocationsEvaluationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsGetCall)Do

Do executes the "workloadmanager.projects.locations.evaluations.get" call.Any non-2xx status code is an error. Response headers are in either*Evaluation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsEvaluationsListCall

type ProjectsLocationsEvaluationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsListCall)Do

Do executes the "workloadmanager.projects.locations.evaluations.list" call.Any non-2xx status code is an error. Response headers are in either*ListEvaluationsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsListCall)Filter

Filter sets the optional parameter "filter": Filter to be applied whenlisting the evaluation results.

func (*ProjectsLocationsEvaluationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsEvaluationsListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Hint for how to order theresults

func (*ProjectsLocationsEvaluationsListCall)PageSize

PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.

func (*ProjectsLocationsEvaluationsListCall)PageToken

PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.

func (*ProjectsLocationsEvaluationsListCall)Pages

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.

typeProjectsLocationsEvaluationsPatchCalladded inv0.252.0

type ProjectsLocationsEvaluationsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsPatchCall)Contextadded inv0.252.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsEvaluationsPatchCall)Doadded inv0.252.0

Do executes the "workloadmanager.projects.locations.evaluations.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsEvaluationsPatchCall)Fieldsadded inv0.252.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsEvaluationsPatchCall)Headeradded inv0.252.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsEvaluationsPatchCall)RequestIdadded inv0.252.0

RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).

func (*ProjectsLocationsEvaluationsPatchCall)UpdateMaskadded inv0.252.0

UpdateMask sets the optional parameter "updateMask": Required. Field mask isused to specify the fields to be overwritten in the Evaluation resource bythe update. The fields specified in the update_mask are relative to theresource, not the full request. A field will be overwritten if it is in themask.

typeProjectsLocationsEvaluationsService

type ProjectsLocationsEvaluationsService struct {Executions *ProjectsLocationsEvaluationsExecutionsService// contains filtered or unexported fields}

func (*ProjectsLocationsEvaluationsService)Create

Create: Creates a new Evaluation in a given project and location.

  • parent: The resource prefix of the evaluation location using the form:`projects/{project_id}/locations/{location_id}`.

func (*ProjectsLocationsEvaluationsService)Deleteadded inv0.166.0

Delete: Deletes a single Evaluation.

- name: Name of the resource.

func (*ProjectsLocationsEvaluationsService)Get

Get: Gets details of a single Evaluation.

- name: Name of the resource.

func (*ProjectsLocationsEvaluationsService)List

List: Lists Evaluations in a given project and location.

- parent: Parent value for ListEvaluationsRequest.

func (*ProjectsLocationsEvaluationsService)Patchadded inv0.252.0

Patch: Updates the parameters of a single Evaluation.

  • name: name of resource names have the form'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}'.

typeProjectsLocationsGetCall

type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsGetCall)Do

Do executes the "workloadmanager.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*Location.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsInsightsDeleteCalladded inv0.224.0

type ProjectsLocationsInsightsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsInsightsDeleteCall)Contextadded inv0.224.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInsightsDeleteCall)Doadded inv0.224.0

Do executes the "workloadmanager.projects.locations.insights.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsInsightsDeleteCall)Fieldsadded inv0.224.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInsightsDeleteCall)Headeradded inv0.224.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsInsightsDeleteCall)RequestIdadded inv0.224.0

RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).

typeProjectsLocationsInsightsService

type ProjectsLocationsInsightsService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsInsightsService

func NewProjectsLocationsInsightsService(s *Service) *ProjectsLocationsInsightsService

func (*ProjectsLocationsInsightsService)Deleteadded inv0.224.0

Delete: Delete the data insights from workload manager data warehouse.

  • name: The system id of the SAP system resource to delete. Formatted asprojects/{project}/locations/{location}/sapSystems/{sap_system_id}.

func (*ProjectsLocationsInsightsService)WriteInsight

WriteInsight: Write the data insights to workload manager data warehouse.

  • location: The GCP location. The format is:projects/{project}/locations/{location}.

typeProjectsLocationsInsightsWriteInsightCall

type ProjectsLocationsInsightsWriteInsightCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsInsightsWriteInsightCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsInsightsWriteInsightCall)Do

Do executes the "workloadmanager.projects.locations.insights.writeInsight" call.Any non-2xx status code is an error. Response headers are in either*WriteInsightResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsInsightsWriteInsightCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsInsightsWriteInsightCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsListCall

type ProjectsLocationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsListCall)Do

Do executes the "workloadmanager.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*ListLocationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsListCall)ExtraLocationTypesadded inv0.230.0

func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall

ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.

func (*ProjectsLocationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsListCall)Filter

Filter sets the optional parameter "filter": A filter to narrow down resultsto 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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.

func (*ProjectsLocationsListCall)PageToken

PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.

func (*ProjectsLocationsListCall)Pages

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.

typeProjectsLocationsOperationsCancelCall

type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsCancelCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsCancelCall)Do

Do executes the "workloadmanager.projects.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsCancelCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsCancelCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsOperationsDeleteCall

type ProjectsLocationsOperationsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsDeleteCall)Do

Do executes the "workloadmanager.projects.locations.operations.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsLocationsOperationsGetCall

type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsGetCall)Do

Do executes the "workloadmanager.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsLocationsOperationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsLocationsOperationsListCall

type ProjectsLocationsOperationsListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsOperationsListCall)Do

Do executes the "workloadmanager.projects.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsOperationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsOperationsListCall)Filter

Filter sets the optional parameter "filter": The standard list filter.

func (*ProjectsLocationsOperationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsOperationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsOperationsListCall)PageSize

PageSize sets the optional parameter "pageSize": The standard list pagesize.

func (*ProjectsLocationsOperationsListCall)PageToken

PageToken sets the optional parameter "pageToken": The standard list pagetoken.

func (*ProjectsLocationsOperationsListCall)Pages

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 (*ProjectsLocationsOperationsListCall)ReturnPartialSuccessadded inv0.253.0

func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *ProjectsLocationsOperationsListCall

ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":When set to `true`, operations that are reachable are returned as normal,and those that are unreachable are returned in the[ListOperationsResponse.unreachable] field. This can only be `true` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.

typeProjectsLocationsOperationsService

type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}

func (*ProjectsLocationsOperationsService)Cancel

Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.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

Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe 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

Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.

- name: The name of the operation resource.

func (*ProjectsLocationsOperationsService)List

List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.

- name: The name of the operation's parent resource.

typeProjectsLocationsRulesListCalladded inv0.118.0

type ProjectsLocationsRulesListCall struct {// contains filtered or unexported fields}

func (*ProjectsLocationsRulesListCall)Contextadded inv0.118.0

Context sets the context to be used in this call's Do method.

func (*ProjectsLocationsRulesListCall)CustomRulesBucketadded inv0.127.0

func (c *ProjectsLocationsRulesListCall) CustomRulesBucket(customRulesBucketstring) *ProjectsLocationsRulesListCall

CustomRulesBucket sets the optional parameter "customRulesBucket": The CloudStorage bucket name for custom rules.

func (*ProjectsLocationsRulesListCall)Doadded inv0.118.0

Do executes the "workloadmanager.projects.locations.rules.list" call.Any non-2xx status code is an error. Response headers are in either*ListRulesResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsLocationsRulesListCall)EvaluationTypeadded inv0.227.0

EvaluationType sets the optional parameter "evaluationType": The evaluationtype of the rules will be applied to. The Cloud Storage bucket name forcustom rules.

Possible values:

"EVALUATION_TYPE_UNSPECIFIED" - Not specified"SAP" - SAP best practices"SQL_SERVER" - SQL best practices"OTHER" - Customized best practices"SCC_IAC" - SCC IaC (Infra as Code) best practices.

func (*ProjectsLocationsRulesListCall)Fieldsadded inv0.118.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsLocationsRulesListCall)Filteradded inv0.118.0

Filter sets the optional parameter "filter": Filter based onprimary_category, secondary_category

func (*ProjectsLocationsRulesListCall)Headeradded inv0.118.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsLocationsRulesListCall)IfNoneMatchadded inv0.118.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsLocationsRulesListCall)PageSizeadded inv0.118.0

PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.

func (*ProjectsLocationsRulesListCall)PageTokenadded inv0.118.0

PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.

typeProjectsLocationsRulesServiceadded inv0.118.0

type ProjectsLocationsRulesService struct {// contains filtered or unexported fields}

funcNewProjectsLocationsRulesServiceadded inv0.118.0

func NewProjectsLocationsRulesService(s *Service) *ProjectsLocationsRulesService

func (*ProjectsLocationsRulesService)Listadded inv0.118.0

List: Lists rules in a given project.

  • parent: The [project] on which to execute the request. The format is:projects/{project_id}/locations/{location} Currently, the pre-definedrules are global available to all projects and all regions.

typeProjectsLocationsService

type ProjectsLocationsService struct {Discoveredprofiles *ProjectsLocationsDiscoveredprofilesServiceEvaluations *ProjectsLocationsEvaluationsServiceInsights *ProjectsLocationsInsightsServiceOperations *ProjectsLocationsOperationsServiceRules *ProjectsLocationsRulesService// contains filtered or unexported fields}

funcNewProjectsLocationsService

func NewProjectsLocationsService(s *Service) *ProjectsLocationsService

func (*ProjectsLocationsService)Get

Get: Gets information about a location.

- name: Resource name for the location.

func (*ProjectsLocationsService)List

List: Lists information about the supported locations for this service.

- name: The resource that owns the locations collection, if applicable.

typeProjectsService

type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

typeResourceadded inv0.118.0

type Resource struct {// Name: The name of the resource.Namestring `json:"name,omitempty"`// ServiceAccount: The service account associated with the resource.ServiceAccountstring `json:"serviceAccount,omitempty"`// Type: The type of resource.Typestring `json:"type,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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Resource: Message represent resource in execution result

func (Resource)MarshalJSONadded inv0.118.0

func (sResource) MarshalJSON() ([]byte,error)

typeResourceFilter

type ResourceFilter struct {// GceInstanceFilter: Filter compute engine resourceGceInstanceFilter *GceInstanceFilter `json:"gceInstanceFilter,omitempty"`// InclusionLabels: The label used for filter resourceInclusionLabels map[string]string `json:"inclusionLabels,omitempty"`// ResourceIdPatterns: The id pattern for filter resourceResourceIdPatterns []string `json:"resourceIdPatterns,omitempty"`// Scopes: The scopes of evaluation resourceScopes []string `json:"scopes,omitempty"`// ForceSendFields is a list of field names (e.g. "GceInstanceFilter") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GceInstanceFilter") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ResourceFilter: Message describing resource filters

func (ResourceFilter)MarshalJSON

func (sResourceFilter) MarshalJSON() ([]byte,error)

typeResourceStatus

type ResourceStatus struct {// RulesNewerVersions: Historical: Used before 2023-05-22 the new version of// rule id if existsRulesNewerVersions []string `json:"rulesNewerVersions,omitempty"`// State: State of the resource//// Possible values://   "STATE_UNSPECIFIED" - The state has not been populated in this message.//   "CREATING" - Resource has an active Create operation.//   "ACTIVE" - Resource has no outstanding operations on it or has active// Update operations.//   "DELETING" - Resource has an active Delete operation.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "RulesNewerVersions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RulesNewerVersions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ResourceStatus: Message describing resource status

func (ResourceStatus)MarshalJSON

func (sResourceStatus) MarshalJSON() ([]byte,error)

typeRuleadded inv0.118.0

type Rule struct {// AssetType: The CAI asset type of the rule is evaluating, for joined asset// types, it will be the corresponding primary asset types.AssetTypestring `json:"assetType,omitempty"`// Description: descrite rule in plain languageDescriptionstring `json:"description,omitempty"`// DisplayName: the name display in UIDisplayNamestring `json:"displayName,omitempty"`// ErrorMessage: the message template for ruleErrorMessagestring `json:"errorMessage,omitempty"`// Name: rule nameNamestring `json:"name,omitempty"`// PrimaryCategory: the primary categoryPrimaryCategorystring `json:"primaryCategory,omitempty"`// Remediation: the remediation for the ruleRemediationstring `json:"remediation,omitempty"`// RevisionId: Output only. the version of the ruleRevisionIdstring `json:"revisionId,omitempty"`// RuleType: The type of the rule.//// Possible values://   "RULE_TYPE_UNSPECIFIED" - Not specified.//   "BASELINE" - Baseline rules//   "CUSTOM" - Custom rulesRuleTypestring `json:"ruleType,omitempty"`// SecondaryCategory: the secondary categorySecondaryCategorystring `json:"secondaryCategory,omitempty"`// Severity: the severity of the ruleSeveritystring `json:"severity,omitempty"`// Tags: List of user-defined tagsTags []string `json:"tags,omitempty"`// Uri: the docuement url for the ruleUristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "AssetType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Rule: Message represent a rule

func (Rule)MarshalJSONadded inv0.118.0

func (sRule) MarshalJSON() ([]byte,error)

typeRuleExecutionResultadded inv0.202.0

type RuleExecutionResult struct {// Message: Execution message, if anyMessagestring `json:"message,omitempty"`// ResultCount: Number of violationsResultCountint64 `json:"resultCount,omitempty,string"`// Rule: rule nameRulestring `json:"rule,omitempty"`// ScannedResourceCount: Number of total scanned resourcesScannedResourceCountint64 `json:"scannedResourceCount,omitempty,string"`// State: Output only. The execution status//// Possible values://   "STATE_UNSPECIFIED" - Unknown state//   "STATE_SUCCESS" - execution completed successfully//   "STATE_FAILURE" - execution completed with failures//   "STATE_SKIPPED" - execution was not executedStatestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Message") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Message") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RuleExecutionResult: Message for execution result summary per rule

func (RuleExecutionResult)MarshalJSONadded inv0.202.0

func (sRuleExecutionResult) MarshalJSON() ([]byte,error)

typeRunEvaluationRequestadded inv0.118.0

type RunEvaluationRequest struct {// Execution: Required. The resource being createdExecution *Execution `json:"execution,omitempty"`// ExecutionId: Required. Id of the requesting object If auto-generating Id// server-side, remove this field and execution_id from the method_signature of// Create RPCExecutionIdstring `json:"executionId,omitempty"`// 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 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).RequestIdstring `json:"requestId,omitempty"`// ForceSendFields is a list of field names (e.g. "Execution") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Execution") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RunEvaluationRequest: Message for creating a Execution

func (RunEvaluationRequest)MarshalJSONadded inv0.118.0

func (sRunEvaluationRequest) MarshalJSON() ([]byte,error)

typeSapComponentadded inv0.166.0

type SapComponent struct {// DatabaseProperties: Output only. All instance properties.DatabaseProperties *DatabaseProperties `json:"databaseProperties,omitempty"`// HaHosts: 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 `json:"haHosts,omitempty"`// Resources: Output only. resources in the componentResources []*CloudResource `json:"resources,omitempty"`// Sid: Output only. sid is the sap component identificatorSidstring `json:"sid,omitempty"`// TopologyType: The detected topology of the component.//// Possible values://   "TOPOLOGY_TYPE_UNSPECIFIED" - Unspecified topology.//   "TOPOLOGY_SCALE_UP" - A scale-up single node system.//   "TOPOLOGY_SCALE_OUT" - A scale-out multi-node system.TopologyTypestring `json:"topologyType,omitempty"`// ForceSendFields is a list of field names (e.g. "DatabaseProperties") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DatabaseProperties") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapComponent: The component of sap workload

func (SapComponent)MarshalJSONadded inv0.166.0

func (sSapComponent) MarshalJSON() ([]byte,error)

typeSapDiscovery

type SapDiscovery struct {// ApplicationLayer: Optional. An SAP system may run without an application// layer.ApplicationLayer *SapDiscoveryComponent `json:"applicationLayer,omitempty"`// DatabaseLayer: Required. An SAP System must have a database.DatabaseLayer *SapDiscoveryComponent `json:"databaseLayer,omitempty"`// Metadata: Optional. The metadata for SAP system discovery data.Metadata *SapDiscoveryMetadata `json:"metadata,omitempty"`// ProjectNumber: Optional. The GCP project number that this SapSystem belongs// to.ProjectNumberstring `json:"projectNumber,omitempty"`// SystemId: Output only. A combination of database SID, database instance URI// and tenant DB name to make a unique identifier per-system.SystemIdstring `json:"systemId,omitempty"`// UpdateTime: Required. Unix timestamp this system has been updated last.UpdateTimestring `json:"updateTime,omitempty"`// UseDrReconciliation: Optional. Whether to use DR reconciliation or not.UseDrReconciliationbool `json:"useDrReconciliation,omitempty"`// WorkloadProperties: Optional. The properties of the workload.WorkloadProperties *SapDiscoveryWorkloadProperties `json:"workloadProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "ApplicationLayer") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApplicationLayer") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscovery: The schema of SAP system discovery data.

func (SapDiscovery)MarshalJSON

func (sSapDiscovery) MarshalJSON() ([]byte,error)

typeSapDiscoveryComponent

type SapDiscoveryComponent struct {// ApplicationProperties: Optional. The component is a SAP application.ApplicationProperties *SapDiscoveryComponentApplicationProperties `json:"applicationProperties,omitempty"`// DatabaseProperties: Optional. The component is a SAP database.DatabaseProperties *SapDiscoveryComponentDatabaseProperties `json:"databaseProperties,omitempty"`// HaHosts: 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 `json:"haHosts,omitempty"`// HostProject: Required. Pantheon Project in which the resources reside.HostProjectstring `json:"hostProject,omitempty"`// Region: Optional. The region this component's resources are primarily// located in.Regionstring `json:"region,omitempty"`// ReplicationSites: Optional. A list of replication sites used in Disaster// Recovery (DR) configurations.ReplicationSites []*SapDiscoveryComponentReplicationSite `json:"replicationSites,omitempty"`// Resources: Optional. The resources in a component.Resources []*SapDiscoveryResource `json:"resources,omitempty"`// Sid: Optional. The SAP identifier, used by the SAP software and helps// differentiate systems for customers.Sidstring `json:"sid,omitempty"`// TopologyType: Optional. The detected topology of the component.//// Possible values://   "TOPOLOGY_TYPE_UNSPECIFIED" - Unspecified topology.//   "TOPOLOGY_SCALE_UP" - A scale-up single node system.//   "TOPOLOGY_SCALE_OUT" - A scale-out multi-node system.TopologyTypestring `json:"topologyType,omitempty"`// ForceSendFields is a list of field names (e.g. "ApplicationProperties") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApplicationProperties") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryComponent: Message describing the system component.

func (SapDiscoveryComponent)MarshalJSON

func (sSapDiscoveryComponent) MarshalJSON() ([]byte,error)

typeSapDiscoveryComponentApplicationPropertiesadded inv0.133.0

type SapDiscoveryComponentApplicationProperties struct {// Abap: Optional. Deprecated: ApplicationType now tells you whether this is// ABAP or Java.Abapbool `json:"abap,omitempty"`// AppInstanceNumber: Optional. Instance number of the SAP application// instance.AppInstanceNumberstring `json:"appInstanceNumber,omitempty"`// ApplicationType: Required. Type of the application. Netweaver, etc.//// Possible values://   "APPLICATION_TYPE_UNSPECIFIED" - Unspecified application type//   "NETWEAVER" - SAP Netweaver//   "NETWEAVER_ABAP" - SAP Netweaver ABAP//   "NETWEAVER_JAVA" - SAP Netweaver JavaApplicationTypestring `json:"applicationType,omitempty"`// AscsInstanceNumber: Optional. Instance number of the ASCS instance.AscsInstanceNumberstring `json:"ascsInstanceNumber,omitempty"`// AscsUri: Optional. Resource URI of the recognized ASCS host of the// application.AscsUristring `json:"ascsUri,omitempty"`// ErsInstanceNumber: Optional. Instance number of the ERS instance.ErsInstanceNumberstring `json:"ersInstanceNumber,omitempty"`// KernelVersion: Optional. Kernel version for Netweaver running in the system.KernelVersionstring `json:"kernelVersion,omitempty"`// NfsUri: Optional. Resource URI of the recognized shared NFS of the// application. May be empty if the application server has only a single node.NfsUristring `json:"nfsUri,omitempty"`// ForceSendFields is a list of field names (e.g. "Abap") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Abap") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryComponentApplicationProperties: A set of properties describingan SAP Application layer.

func (SapDiscoveryComponentApplicationProperties)MarshalJSONadded inv0.133.0

typeSapDiscoveryComponentDatabasePropertiesadded inv0.133.0

type SapDiscoveryComponentDatabaseProperties struct {// DatabaseSid: Optional. SID of the system database.DatabaseSidstring `json:"databaseSid,omitempty"`// DatabaseType: Required. Type of the database. HANA, DB2, etc.//// Possible values://   "DATABASE_TYPE_UNSPECIFIED" - Unspecified database type.//   "HANA" - SAP HANA//   "MAX_DB" - SAP MAX_DB//   "DB2" - IBM DB2//   "ORACLE" - Oracle Database//   "SQLSERVER" - Microsoft SQL Server//   "ASE" - SAP Sybase ASEDatabaseTypestring `json:"databaseType,omitempty"`// DatabaseVersion: Optional. The version of the database software running in// the system.DatabaseVersionstring `json:"databaseVersion,omitempty"`// InstanceNumber: Optional. Instance number of the SAP instance.InstanceNumberstring `json:"instanceNumber,omitempty"`// LandscapeId: Optional. Landscape ID from the HANA nameserver.LandscapeIdstring `json:"landscapeId,omitempty"`// PrimaryInstanceUri: Required. URI of the recognized primary instance of the// database.PrimaryInstanceUristring `json:"primaryInstanceUri,omitempty"`// SharedNfsUri: Optional. URI of the recognized shared NFS of the database.// May be empty if the database has only a single node.SharedNfsUristring `json:"sharedNfsUri,omitempty"`// ForceSendFields is a list of field names (e.g. "DatabaseSid") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DatabaseSid") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryComponentDatabaseProperties: A set of properties describing anSAP Database layer.

func (SapDiscoveryComponentDatabaseProperties)MarshalJSONadded inv0.133.0

typeSapDiscoveryComponentReplicationSiteadded inv0.217.0

type SapDiscoveryComponentReplicationSite struct {// Component: Optional. The system component for the site.Component *SapDiscoveryComponent `json:"component,omitempty"`// SourceSite: Optional. The name of the source site from which this one// replicates.SourceSitestring `json:"sourceSite,omitempty"`// ForceSendFields is a list of field names (e.g. "Component") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Component") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryComponentReplicationSite: A replication site used in DisasterRecovery (DR) configurations.

func (SapDiscoveryComponentReplicationSite)MarshalJSONadded inv0.217.0

typeSapDiscoveryMetadata

type SapDiscoveryMetadata struct {// CustomerRegion: Optional. Customer region string for customer's use. Does// not represent GCP region.CustomerRegionstring `json:"customerRegion,omitempty"`// DefinedSystem: Optional. Customer defined, something like "E-commerce pre// prod"DefinedSystemstring `json:"definedSystem,omitempty"`// EnvironmentType: Optional. Should be "prod", "QA", "dev", "staging", etc.EnvironmentTypestring `json:"environmentType,omitempty"`// SapProduct: Optional. This SAP product nameSapProductstring `json:"sapProduct,omitempty"`// ForceSendFields is a list of field names (e.g. "CustomerRegion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomerRegion") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryMetadata: Message describing SAP discovery system metadata

func (SapDiscoveryMetadata)MarshalJSON

func (sSapDiscoveryMetadata) MarshalJSON() ([]byte,error)

typeSapDiscoveryResource

type SapDiscoveryResource struct {// InstanceProperties: Optional. A set of properties only applying to instance// type resources.InstanceProperties *SapDiscoveryResourceInstanceProperties `json:"instanceProperties,omitempty"`// RelatedResources: Optional. A list of resource URIs related to this// resource.RelatedResources []string `json:"relatedResources,omitempty"`// ResourceKind: Required. ComputeInstance, ComputeDisk, VPC, Bare Metal// server, etc.//// Possible values://   "RESOURCE_KIND_UNSPECIFIED" - Unspecified resource kind.//   "RESOURCE_KIND_INSTANCE" - This is a compute instance.//   "RESOURCE_KIND_DISK" - This is a compute disk.//   "RESOURCE_KIND_ADDRESS" - This is a compute address.//   "RESOURCE_KIND_FILESTORE" - This is a filestore instance.//   "RESOURCE_KIND_HEALTH_CHECK" - This is a compute health check.//   "RESOURCE_KIND_FORWARDING_RULE" - This is a compute forwarding rule.//   "RESOURCE_KIND_BACKEND_SERVICE" - This is a compute backend service.//   "RESOURCE_KIND_SUBNETWORK" - This is a compute subnetwork.//   "RESOURCE_KIND_NETWORK" - This is a compute network.//   "RESOURCE_KIND_PUBLIC_ADDRESS" - This is a public accessible IP Address.//   "RESOURCE_KIND_INSTANCE_GROUP" - This is a compute instance group.ResourceKindstring `json:"resourceKind,omitempty"`// ResourceType: Required. The type of this resource.//// Possible values://   "RESOURCE_TYPE_UNSPECIFIED" - Undefined resource type.//   "RESOURCE_TYPE_COMPUTE" - This is a compute resource.//   "RESOURCE_TYPE_STORAGE" - This a storage resource.//   "RESOURCE_TYPE_NETWORK" - This is a network resource.ResourceTypestring `json:"resourceType,omitempty"`// ResourceUri: Required. URI of the resource, includes project, location, and// name.ResourceUristring `json:"resourceUri,omitempty"`// UpdateTime: Required. Unix timestamp of when this resource last had its// discovery data updated.UpdateTimestring `json:"updateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "InstanceProperties") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InstanceProperties") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryResource: Message describing a resource.

func (SapDiscoveryResource)MarshalJSON

func (sSapDiscoveryResource) MarshalJSON() ([]byte,error)

typeSapDiscoveryResourceInstancePropertiesadded inv0.155.0

type SapDiscoveryResourceInstanceProperties struct {// AppInstances: Optional. App server instances on the hostAppInstances []*SapDiscoveryResourceInstancePropertiesAppInstance `json:"appInstances,omitempty"`// ClusterInstances: Optional. A list of instance URIs that are part of a// cluster with this one.ClusterInstances []string `json:"clusterInstances,omitempty"`// DiskMounts: Optional. Disk mounts on the instance.DiskMounts []*SapDiscoveryResourceInstancePropertiesDiskMount `json:"diskMounts,omitempty"`// InstanceNumber: Optional. The VM's instance number.InstanceNumberint64 `json:"instanceNumber,omitempty,string"`// InstanceRole: Optional. Bitmask of instance role, a resource may have// multiple roles at once.//// Possible values://   "INSTANCE_ROLE_UNSPECIFIED" - Unspecified instance role.//   "INSTANCE_ROLE_ASCS" - Application central services.//   "INSTANCE_ROLE_ERS" - Enqueue replication server.//   "INSTANCE_ROLE_APP_SERVER" - Application server.//   "INSTANCE_ROLE_DATABASE" - Database node.//   "INSTANCE_ROLE_ASCS_ERS" - Combinations of roles. Application central// services and enqueue replication server.//   "INSTANCE_ROLE_ASCS_APP_SERVER" - Application central services and// application server.//   "INSTANCE_ROLE_ASCS_DATABASE" - Application central services and database.//   "INSTANCE_ROLE_ERS_APP_SERVER" - Enqueue replication server and// application server.//   "INSTANCE_ROLE_ERS_DATABASE" - Enqueue replication server and database.//   "INSTANCE_ROLE_APP_SERVER_DATABASE" - Application server and database.//   "INSTANCE_ROLE_ASCS_ERS_APP_SERVER" - Application central services,// enqueue replication server and application server.//   "INSTANCE_ROLE_ASCS_ERS_DATABASE" - Application central services, enqueue// replication server and database.//   "INSTANCE_ROLE_ASCS_APP_SERVER_DATABASE" - Application central services,// application server and database.//   "INSTANCE_ROLE_ERS_APP_SERVER_DATABASE" - Enqueue replication server,// application server and database.//   "INSTANCE_ROLE_ASCS_ERS_APP_SERVER_DATABASE" - Application central// services, enqueue replication server, application server and database.InstanceRolestring `json:"instanceRole,omitempty"`// IsDrSite: Optional. Instance is part of a DR site.IsDrSitebool `json:"isDrSite,omitempty"`// OsKernelVersion: Optional. The kernel version of the instance.OsKernelVersion *SapDiscoveryResourceInstancePropertiesKernelVersion `json:"osKernelVersion,omitempty"`// VirtualHostname: Optional. A virtual hostname of the instance if it has one.VirtualHostnamestring `json:"virtualHostname,omitempty"`// ForceSendFields is a list of field names (e.g. "AppInstances") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppInstances") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryResourceInstanceProperties: A set of properties only present foran instance type resource

func (SapDiscoveryResourceInstanceProperties)MarshalJSONadded inv0.155.0

typeSapDiscoveryResourceInstancePropertiesAppInstanceadded inv0.181.0

type SapDiscoveryResourceInstancePropertiesAppInstance struct {// Name: Optional. Instance name of the SAP application instance.Namestring `json:"name,omitempty"`// Number: Optional. Instance number of the SAP application instance.Numberstring `json:"number,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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryResourceInstancePropertiesAppInstance: Fields to describe an SAPapplication server instance.

func (SapDiscoveryResourceInstancePropertiesAppInstance)MarshalJSONadded inv0.181.0

typeSapDiscoveryResourceInstancePropertiesDiskMountadded inv0.222.0

type SapDiscoveryResourceInstancePropertiesDiskMount struct {// DiskNames: Optional. Names of the disks providing this mount point.DiskNames []string `json:"diskNames,omitempty"`// MountPoint: Optional. Filesystem mount point.MountPointstring `json:"mountPoint,omitempty"`// Name: Optional. Name of the disk.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "DiskNames") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DiskNames") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryResourceInstancePropertiesDiskMount: Disk mount on the instance.

func (SapDiscoveryResourceInstancePropertiesDiskMount)MarshalJSONadded inv0.222.0

typeSapDiscoveryResourceInstancePropertiesKernelVersionadded inv0.237.0

type SapDiscoveryResourceInstancePropertiesKernelVersion struct {// DistroKernel: Optional. Captures the distro-specific kernel version, the// portion of the string following the first dash.DistroKernel *SapDiscoveryResourceInstancePropertiesKernelVersionVersion `json:"distroKernel,omitempty"`// OsKernel: Optional. Captures the OS-specific kernel version, the portion of// the string up to the first dash.OsKernel *SapDiscoveryResourceInstancePropertiesKernelVersionVersion `json:"osKernel,omitempty"`// RawString: Optional. Raw string of the kernel version.RawStringstring `json:"rawString,omitempty"`// ForceSendFields is a list of field names (e.g. "DistroKernel") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DistroKernel") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryResourceInstancePropertiesKernelVersion: KernelVersionencapsulates the kernel version data for the system.

func (SapDiscoveryResourceInstancePropertiesKernelVersion)MarshalJSONadded inv0.237.0

typeSapDiscoveryResourceInstancePropertiesKernelVersionVersionadded inv0.237.0

type SapDiscoveryResourceInstancePropertiesKernelVersionVersion struct {// Build: Optional. The build version number.Buildint64 `json:"build,omitempty"`// Major: Optional. The major version number.Majorint64 `json:"major,omitempty"`// Minor: Optional. The minor version number.Minorint64 `json:"minor,omitempty"`// Patch: Optional. The patch version number.Patchint64 `json:"patch,omitempty"`// Remainder: 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.Remainderstring `json:"remainder,omitempty"`// ForceSendFields is a list of field names (e.g. "Build") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Build") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryResourceInstancePropertiesKernelVersionVersion: Version isreported as Major.Minor.Build.Patch.

func (SapDiscoveryResourceInstancePropertiesKernelVersionVersion)MarshalJSONadded inv0.237.0

typeSapDiscoveryWorkloadPropertiesadded inv0.166.0

type SapDiscoveryWorkloadProperties struct {// ProductVersions: Optional. List of SAP Products and their versions running// on the system.ProductVersions []*SapDiscoveryWorkloadPropertiesProductVersion `json:"productVersions,omitempty"`// SoftwareComponentVersions: Optional. A list of SAP software components and// their versions running on the system.SoftwareComponentVersions []*SapDiscoveryWorkloadPropertiesSoftwareComponentProperties `json:"softwareComponentVersions,omitempty"`// ForceSendFields is a list of field names (e.g. "ProductVersions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductVersions") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryWorkloadProperties: A set of properties describing an SAPworkload.

func (SapDiscoveryWorkloadProperties)MarshalJSONadded inv0.166.0

func (sSapDiscoveryWorkloadProperties) MarshalJSON() ([]byte,error)

typeSapDiscoveryWorkloadPropertiesProductVersionadded inv0.166.0

type SapDiscoveryWorkloadPropertiesProductVersion struct {// Name: Optional. Name of the product.Namestring `json:"name,omitempty"`// Version: Optional. Version of the product.Versionstring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryWorkloadPropertiesProductVersion: A product name and version.

func (SapDiscoveryWorkloadPropertiesProductVersion)MarshalJSONadded inv0.166.0

typeSapDiscoveryWorkloadPropertiesSoftwareComponentPropertiesadded inv0.166.0

type SapDiscoveryWorkloadPropertiesSoftwareComponentProperties struct {// ExtVersion: Optional. The component's minor version.ExtVersionstring `json:"extVersion,omitempty"`// Name: Optional. Name of the component.Namestring `json:"name,omitempty"`// Type: Optional. The component's type.Typestring `json:"type,omitempty"`// Version: Optional. The component's major version.Versionstring `json:"version,omitempty"`// ForceSendFields is a list of field names (e.g. "ExtVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExtVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapDiscoveryWorkloadPropertiesSoftwareComponentProperties: A SAP softwarecomponent name, version, and type.

func (SapDiscoveryWorkloadPropertiesSoftwareComponentProperties)MarshalJSONadded inv0.166.0

typeSapInstancePropertiesadded inv0.223.0

type SapInstanceProperties struct {// AgentStates: Optional. Sap Instance Agent status.AgentStates *AgentStates `json:"agentStates,omitempty"`// Numbers: Optional. SAP Instance numbers. They are from '00' to '99'.Numbers []string `json:"numbers,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentStates") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentStates") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapInstanceProperties: SAP instance properties.

func (SapInstanceProperties)MarshalJSONadded inv0.223.0

func (sSapInstanceProperties) MarshalJSON() ([]byte,error)

typeSapValidation

type SapValidation struct {// ProjectId: Required. The project_id of the cloud project that the Insight// data comes from.ProjectIdstring `json:"projectId,omitempty"`// ValidationDetails: Optional. A list of SAP validation metrics data.ValidationDetails []*SapValidationValidationDetail `json:"validationDetails,omitempty"`// Zone: Optional. The zone of the instance that the Insight data comes from.Zonestring `json:"zone,omitempty"`// ForceSendFields is a list of field names (e.g. "ProjectId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProjectId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapValidation: A presentation of SAP workload insight. The schema of SAPworkloads validation related data.

func (SapValidation)MarshalJSON

func (sSapValidation) MarshalJSON() ([]byte,error)

typeSapValidationValidationDetail

type SapValidationValidationDetail struct {// Details: Optional. The pairs of metrics data: field name & field value.Details map[string]string `json:"details,omitempty"`// IsPresent: Optional. Was there a SAP system detected for this validation// type.IsPresentbool `json:"isPresent,omitempty"`// SapValidationType: Optional. The SAP system that the validation data is// from.//// Possible values://   "SAP_VALIDATION_TYPE_UNSPECIFIED" - Unspecified type.//   "SYSTEM" - The SYSTEM validation type collects underlying system data from// the VM.//   "COROSYNC" - The COROSYNC validation type collects Corosync configuration// and runtime data. Corosync enables servers to interact as a HA cluster.//   "PACEMAKER" - The PACEMAKER validation type collects Pacemaker// configuration data. Pacemaker is a high-availability cluster resource// manager.//   "HANA" - The HANA validation type collects HANA configuration data. SAP// HANA is an in-memory, column-oriented, relational database management// system.//   "NETWEAVER" - The NETWEAVER validation type collects NetWeaver// configuration data. SAP NetWeaver is a software stack for many of SAP SE's// applications.//   "HANA_SECURITY" - The HANA_SECURITY validation type collects HANA// configuration data as it relates to SAP security best practices.//   "CUSTOM" - The CUSTOM validation type collects any customer-defined data// that does not fall into any of the other categories of validations.SapValidationTypestring `json:"sapValidationType,omitempty"`// ForceSendFields is a list of field names (e.g. "Details") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Details") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapValidationValidationDetail: Message describing the SAP validationmetrics.

func (SapValidationValidationDetail)MarshalJSON

func (sSapValidationValidationDetail) MarshalJSON() ([]byte,error)

typeSapWorkloadadded inv0.166.0

type SapWorkload struct {// Application: Output only. the acsc componmentApplication *SapComponent `json:"application,omitempty"`// Architecture: Output only. the architecture//// Possible values://   "ARCHITECTURE_UNSPECIFIED" - Unspecified architecture.//   "INVALID" - Invaliad architecture.//   "CENTRALIZED" - A centralized system.//   "DISTRIBUTED" - A distributed system.//   "DISTRIBUTED_HA" - A distributed with HA system.//   "STANDALONE_DATABASE" - A standalone database system.//   "STANDALONE_DATABASE_HA" - A standalone database with HA system.Architecturestring `json:"architecture,omitempty"`// Database: Output only. the database componmentDatabase *SapComponent `json:"database,omitempty"`// Metadata: Output only. The metadata for SAP workload.Metadata map[string]string `json:"metadata,omitempty"`// Products: Output only. the products on this workload.Products []*Product `json:"products,omitempty"`// ForceSendFields is a list of field names (e.g. "Application") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Application") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SapWorkload: The body of sap workload

func (SapWorkload)MarshalJSONadded inv0.166.0

func (sSapWorkload) MarshalJSON() ([]byte,error)

typeScannedResourceadded inv0.118.0

type ScannedResource struct {// Resource: resource nameResourcestring `json:"resource,omitempty"`// Type: resource typeTypestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Resource") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Resource") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ScannedResource: Message of scanned resource

func (ScannedResource)MarshalJSONadded inv0.118.0

func (sScannedResource) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

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.

funcNewService

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeServiceStatesadded inv0.248.0

type ServiceStates struct {// IamPermissions: Optional. Output only. The IAM permissions for the service.IamPermissions []*IAMPermission `json:"iamPermissions,omitempty"`// State: Output only. The overall state of the service.//// Possible values://   "STATE_UNSPECIFIED" - The state is unspecified.//   "CONFIG_FAILURE" - The state means the service has config errors.//   "IAM_FAILURE" - The state means the service has IAM permission errors.//   "FUNCTIONALITY_FAILURE" - The state means the service has functionality// errors.//   "ENABLED" - The state means the service has no error.//   "DISABLED" - The state means the service disabled.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "IamPermissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IamPermissions") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceStates: The state of the service.

func (ServiceStates)MarshalJSONadded inv0.248.0

func (sServiceStates) MarshalJSON() ([]byte,error)

typeShellCommandadded inv0.187.0

type ShellCommand struct {// Args: args is a string of arguments to be passed to the command.Argsstring `json:"args,omitempty"`// Command: command is the name of the command to be executed.Commandstring `json:"command,omitempty"`// TimeoutSeconds: Optional. If not specified, the default timeout is 60// seconds.TimeoutSecondsint64 `json:"timeoutSeconds,omitempty"`// ForceSendFields is a list of field names (e.g. "Args") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Args") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ShellCommand: * A ShellCommand is invoked via the agent's command lineexecutor

func (ShellCommand)MarshalJSONadded inv0.187.0

func (sShellCommand) MarshalJSON() ([]byte,error)

typeSqlserverValidationadded inv0.123.0

type SqlserverValidation struct {// AgentVersion: Optional. The agent version collected this data pointAgentVersionstring `json:"agentVersion,omitempty"`// Instance: Required. The instance_name of the instance that the Insight data// comes from. According tohttps://linter.aip.dev/122/name-suffix: field names// should not use the _name suffix unless the field would be ambiguous without// it.Instancestring `json:"instance,omitempty"`// ProjectId: Required. The project_id of the cloud project that the Insight// data comes from.ProjectIdstring `json:"projectId,omitempty"`// ValidationDetails: Optional. A list of SqlServer validation metrics data.ValidationDetails []*SqlserverValidationValidationDetail `json:"validationDetails,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SqlserverValidation: A presentation of SQLServer workload insight. Theschema of SqlServer workloads validation related data.

func (SqlserverValidation)MarshalJSONadded inv0.123.0

func (sSqlserverValidation) MarshalJSON() ([]byte,error)

typeSqlserverValidationDetailsadded inv0.130.0

type SqlserverValidationDetails struct {// Fields: Required. Collected data is in format.Fields map[string]string `json:"fields,omitempty"`// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Fields") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SqlserverValidationDetails: Message containing collected data names andvalues.

func (SqlserverValidationDetails)MarshalJSONadded inv0.130.0

func (sSqlserverValidationDetails) MarshalJSON() ([]byte,error)

typeSqlserverValidationValidationDetailadded inv0.123.0

type SqlserverValidationValidationDetail struct {// Details: Required. Details wraps map that represents collected data names// and values.Details []*SqlserverValidationDetails `json:"details,omitempty"`// Type: Optional. The Sqlserver system that the validation data is from.//// Possible values://   "SQLSERVER_VALIDATION_TYPE_UNSPECIFIED" - Unspecified type.//   "OS" - The Sqlserver system named OS.//   "DB_LOG_DISK_SEPARATION" - The LOG_DISK_SEPARATION table.//   "DB_MAX_PARALLELISM" - The MAX_PARALLELISM table.//   "DB_CXPACKET_WAITS" - The CXPACKET_WAITS table.//   "DB_TRANSACTION_LOG_HANDLING" - The TRANSACTION_LOG_HANDLING table.//   "DB_VIRTUAL_LOG_FILE_COUNT" - The VIRTUAL_LOG_FILE_COUNT table.//   "DB_BUFFER_POOL_EXTENSION" - The BUFFER_POOL_EXTENSION table.//   "DB_MAX_SERVER_MEMORY" - The MAX_SERVER_MEMORY table.//   "INSTANCE_METRICS" - The INSTANCE_METRICS table.//   "DB_INDEX_FRAGMENTATION" - The DB_INDEX_FRAGMENTATION table.//   "DB_TABLE_INDEX_COMPRESSION" - The DB_TABLE_INDEX_COMPRESSION table.//   "DB_BACKUP_POLICY" - The DB_BACKUP_POLICY table.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Details") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Details") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SqlserverValidationValidationDetail: Message describing the Sqlservervalidation metrics.

func (SqlserverValidationValidationDetail)MarshalJSONadded inv0.123.0

typeStatus

type Status struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `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.Messagestring `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. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.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. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).

func (Status)MarshalJSON

func (sStatus) MarshalJSON() ([]byte,error)

typeSummaryadded inv0.212.0

type Summary struct {// Failures: Output only. Number of failuresFailuresint64 `json:"failures,omitempty,string"`// NewFailures: Output only. Number of new failures compared to the previous// executionNewFailuresint64 `json:"newFailures,omitempty,string"`// NewFixes: Output only. Number of new fixes compared to the previous// executionNewFixesint64 `json:"newFixes,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Failures") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Failures") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Summary: Message for execution summary

func (Summary)MarshalJSONadded inv0.212.0

func (sSummary) MarshalJSON() ([]byte,error)

typeTorsoValidationadded inv0.212.0

type TorsoValidation struct {// AgentVersion: Required. agent_version lists the version of the agent that// collected this data.AgentVersionstring `json:"agentVersion,omitempty"`// InstanceName: Optional. instance_name lists the human readable name of the// instance that the data comes from.InstanceNamestring `json:"instanceName,omitempty"`// ProjectId: Required. project_id lists the human readable cloud project that// the data comes from.ProjectIdstring `json:"projectId,omitempty"`// ValidationDetails: Required. validation_details contains the pairs of// validation data: field name & field value.ValidationDetails map[string]string `json:"validationDetails,omitempty"`// WorkloadType: Required. workload_type specifies the type of torso workload.//// Possible values://   "WORKLOAD_TYPE_UNSPECIFIED" - Unspecified workload type.//   "MYSQL" - MySQL workload.//   "ORACLE" - Oracle workload.//   "REDIS" - Redis workload.WorkloadTypestring `json:"workloadType,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TorsoValidation: The schema of torso workload validation data.

func (TorsoValidation)MarshalJSONadded inv0.212.0

func (sTorsoValidation) MarshalJSON() ([]byte,error)

typeUpcomingMaintenanceEventadded inv0.223.0

type UpcomingMaintenanceEvent struct {// EndTime: Optional. End timeEndTimestring `json:"endTime,omitempty"`// MaintenanceStatus: Optional. Maintenance statusMaintenanceStatusstring `json:"maintenanceStatus,omitempty"`// OnHostMaintenance: Optional. Instance maintenance behavior. Could be// "MIGRATE" or "TERMINATE".OnHostMaintenancestring `json:"onHostMaintenance,omitempty"`// StartTime: Optional. Start timeStartTimestring `json:"startTime,omitempty"`// Type: Optional. TypeTypestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UpcomingMaintenanceEvent: Maintenance Event

func (UpcomingMaintenanceEvent)MarshalJSONadded inv0.223.0

func (sUpcomingMaintenanceEvent) MarshalJSON() ([]byte,error)

typeViolationDetailsadded inv0.118.0

type ViolationDetails struct {// Asset: The name of the asset.Assetstring `json:"asset,omitempty"`// Observed: Details of the violation. TODO(b/452163887)Observed map[string]string `json:"observed,omitempty"`// ServiceAccount: The service account associated with the resource.ServiceAccountstring `json:"serviceAccount,omitempty"`// ForceSendFields is a list of field names (e.g. "Asset") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Asset") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ViolationDetails: Message describing the violation in an evaluation result.

func (ViolationDetails)MarshalJSONadded inv0.118.0

func (sViolationDetails) MarshalJSON() ([]byte,error)

typeWorkloadProfileadded inv0.166.0

type WorkloadProfile struct {// Labels: Optional. such as name, description, version. More example can be// found in deploymentLabels map[string]string `json:"labels,omitempty"`// Name: Identifier. name of resource names have the form// 'projects/{project_id}/locations/{location}/workloadProfiles/{workload_id}'Namestring `json:"name,omitempty"`// RefreshedTime: Required. time when the workload data was refreshedRefreshedTimestring `json:"refreshedTime,omitempty"`// SapWorkload: The sap workload contentSapWorkload *SapWorkload `json:"sapWorkload,omitempty"`// WorkloadType: Required. The type of the workload//// Possible values://   "WORKLOAD_TYPE_UNSPECIFIED" - unspecified workload type//   "S4_HANA" - running sap workload s4/hanaWorkloadTypestring `json:"workloadType,omitempty"`// ForceSendFields is a list of field names (e.g. "Labels") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Labels") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

WorkloadProfile: workload resource

func (WorkloadProfile)MarshalJSONadded inv0.166.0

func (sWorkloadProfile) MarshalJSON() ([]byte,error)

typeWriteInsightRequest

type WriteInsightRequest struct {// AgentVersion: Optional. The agent version collected this data point.AgentVersionstring `json:"agentVersion,omitempty"`// Insight: Required. The metrics data details.Insight *Insight `json:"insight,omitempty"`// 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 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).RequestIdstring `json:"requestId,omitempty"`// ForceSendFields is a list of field names (e.g. "AgentVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AgentVersion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

WriteInsightRequest: Request for sending the data insights.

func (WriteInsightRequest)MarshalJSON

func (sWriteInsightRequest) MarshalJSON() ([]byte,error)

typeWriteInsightResponse

type WriteInsightResponse struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}

WriteInsightResponse: The response for write insights request.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp