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, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any 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 for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use google.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 OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) workloadmanagerService, err := workloadmanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type APILayerServer
- type AgentCommand
- type AvailabilityGroup
- type BackendServer
- type BackupProperties
- type BigQueryDestination
- type CancelOperationRequest
- type CloudResource
- type Cluster
- type Command
- type ComponentHealth
- type Database
- type DatabaseProperties
- type Empty
- type Evaluation
- type Execution
- type ExecutionResult
- type ExternalDataSources
- type FrontEndServer
- type GceInstanceFilter
- type HealthCheck
- type Insight
- type Instance
- type InstanceProperties
- type Layer
- type ListDiscoveredProfilesResponse
- type ListEvaluationsResponse
- type ListExecutionResultsResponse
- type ListExecutionsResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type ListRulesResponse
- type ListScannedResourcesResponse
- type LoadBalancerServer
- type Location
- type Notice
- type Operation
- type OperationMetadata
- type Product
- type ProjectsLocationsDiscoveredprofilesGetCall
- func (c *ProjectsLocationsDiscoveredprofilesGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredprofilesGetCall
- func (c *ProjectsLocationsDiscoveredprofilesGetCall) Do(opts ...googleapi.CallOption) (*WorkloadProfile, error)
- func (c *ProjectsLocationsDiscoveredprofilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredprofilesGetCall
- func (c *ProjectsLocationsDiscoveredprofilesGetCall) Header() http.Header
- func (c *ProjectsLocationsDiscoveredprofilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredprofilesGetCall
- type ProjectsLocationsDiscoveredprofilesHealthesGetCall
- func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredprofilesHealthesGetCall
- func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Do(opts ...googleapi.CallOption) (*WorkloadProfileHealth, error)
- func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredprofilesHealthesGetCall
- func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Header() http.Header
- func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredprofilesHealthesGetCall
- type ProjectsLocationsDiscoveredprofilesHealthesService
- type ProjectsLocationsDiscoveredprofilesListCall
- func (c *ProjectsLocationsDiscoveredprofilesListCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredprofilesListCall
- func (c *ProjectsLocationsDiscoveredprofilesListCall) Do(opts ...googleapi.CallOption) (*ListDiscoveredProfilesResponse, error)
- func (c *ProjectsLocationsDiscoveredprofilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredprofilesListCall
- func (c *ProjectsLocationsDiscoveredprofilesListCall) Filter(filter string) *ProjectsLocationsDiscoveredprofilesListCall
- func (c *ProjectsLocationsDiscoveredprofilesListCall) Header() http.Header
- func (c *ProjectsLocationsDiscoveredprofilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredprofilesListCall
- func (c *ProjectsLocationsDiscoveredprofilesListCall) PageSize(pageSize int64) *ProjectsLocationsDiscoveredprofilesListCall
- func (c *ProjectsLocationsDiscoveredprofilesListCall) PageToken(pageToken string) *ProjectsLocationsDiscoveredprofilesListCall
- func (c *ProjectsLocationsDiscoveredprofilesListCall) Pages(ctx context.Context, f func(*ListDiscoveredProfilesResponse) error) error
- type ProjectsLocationsDiscoveredprofilesService
- type ProjectsLocationsEvaluationsCreateCall
- func (c *ProjectsLocationsEvaluationsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsCreateCall
- func (c *ProjectsLocationsEvaluationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsEvaluationsCreateCall) EvaluationId(evaluationId string) *ProjectsLocationsEvaluationsCreateCall
- func (c *ProjectsLocationsEvaluationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsCreateCall
- func (c *ProjectsLocationsEvaluationsCreateCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsCreateCall) RequestId(requestId string) *ProjectsLocationsEvaluationsCreateCall
- type ProjectsLocationsEvaluationsDeleteCall
- func (c *ProjectsLocationsEvaluationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsDeleteCall
- func (c *ProjectsLocationsEvaluationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsEvaluationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsDeleteCall
- func (c *ProjectsLocationsEvaluationsDeleteCall) Force(force bool) *ProjectsLocationsEvaluationsDeleteCall
- func (c *ProjectsLocationsEvaluationsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsDeleteCall
- type ProjectsLocationsEvaluationsExecutionsDeleteCall
- func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsDeleteCall
- func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsDeleteCall
- func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsExecutionsDeleteCall
- type ProjectsLocationsEvaluationsExecutionsGetCall
- func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsGetCall
- func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*Execution, error)
- func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsGetCall
- func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsGetCall
- type ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionsResponse, error)
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsListCall) Pages(ctx context.Context, f func(*ListExecutionsResponse) error) error
- type ProjectsLocationsEvaluationsExecutionsResultsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsResultsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionResultsResponse, error)
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsResultsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsResultsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsResultsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsResultsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsResultsListCall
- func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Pages(ctx context.Context, f func(*ListExecutionResultsResponse) error) error
- type ProjectsLocationsEvaluationsExecutionsResultsService
- type ProjectsLocationsEvaluationsExecutionsRunCall
- func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsRunCall
- func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsRunCall
- func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Header() http.Header
- type ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Do(opts ...googleapi.CallOption) (*ListScannedResourcesResponse, error)
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Pages(ctx context.Context, f func(*ListScannedResourcesResponse) error) error
- func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Rule(rule string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
- type ProjectsLocationsEvaluationsExecutionsScannedResourcesService
- type ProjectsLocationsEvaluationsExecutionsService
- func (r *ProjectsLocationsEvaluationsExecutionsService) Delete(name string) *ProjectsLocationsEvaluationsExecutionsDeleteCall
- func (r *ProjectsLocationsEvaluationsExecutionsService) Get(name string) *ProjectsLocationsEvaluationsExecutionsGetCall
- func (r *ProjectsLocationsEvaluationsExecutionsService) List(parent string) *ProjectsLocationsEvaluationsExecutionsListCall
- func (r *ProjectsLocationsEvaluationsExecutionsService) Run(name string, runevaluationrequest *RunEvaluationRequest) *ProjectsLocationsEvaluationsExecutionsRunCall
- type ProjectsLocationsEvaluationsGetCall
- func (c *ProjectsLocationsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsGetCall
- func (c *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*Evaluation, error)
- func (c *ProjectsLocationsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsGetCall
- func (c *ProjectsLocationsEvaluationsGetCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsGetCall
- type ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*ListEvaluationsResponse, error)
- func (c *ProjectsLocationsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) Filter(filter string) *ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) Header() http.Header
- func (c *ProjectsLocationsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsListCall
- func (c *ProjectsLocationsEvaluationsListCall) Pages(ctx context.Context, f func(*ListEvaluationsResponse) error) error
- type ProjectsLocationsEvaluationsService
- func (r *ProjectsLocationsEvaluationsService) Create(parent string, evaluation *Evaluation) *ProjectsLocationsEvaluationsCreateCall
- func (r *ProjectsLocationsEvaluationsService) Delete(name string) *ProjectsLocationsEvaluationsDeleteCall
- func (r *ProjectsLocationsEvaluationsService) Get(name string) *ProjectsLocationsEvaluationsGetCall
- func (r *ProjectsLocationsEvaluationsService) List(parent string) *ProjectsLocationsEvaluationsListCall
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsInsightsService
- type ProjectsLocationsInsightsWriteInsightCall
- func (c *ProjectsLocationsInsightsWriteInsightCall) Context(ctx context.Context) *ProjectsLocationsInsightsWriteInsightCall
- func (c *ProjectsLocationsInsightsWriteInsightCall) Do(opts ...googleapi.CallOption) (*WriteInsightResponse, error)
- func (c *ProjectsLocationsInsightsWriteInsightCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsWriteInsightCall
- func (c *ProjectsLocationsInsightsWriteInsightCall) Header() http.Header
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) Context(ctx context.Context) *ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) CustomRulesBucket(customRulesBucket string) *ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*ListRulesResponse, error)
- func (c *ProjectsLocationsRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) Filter(filter string) *ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) Header() http.Header
- func (c *ProjectsLocationsRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) PageSize(pageSize int64) *ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) PageToken(pageToken string) *ProjectsLocationsRulesListCall
- func (c *ProjectsLocationsRulesListCall) Pages(ctx context.Context, f func(*ListRulesResponse) error) error
- type ProjectsLocationsRulesService
- type ProjectsLocationsSapSystemsDeleteCall
- func (c *ProjectsLocationsSapSystemsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSapSystemsDeleteCall
- func (c *ProjectsLocationsSapSystemsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsSapSystemsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSapSystemsDeleteCall
- func (c *ProjectsLocationsSapSystemsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsSapSystemsDeleteCall) RequestId(requestId string) *ProjectsLocationsSapSystemsDeleteCall
- type ProjectsLocationsSapSystemsService
- type ProjectsLocationsService
- type ProjectsService
- type Resource
- type ResourceFilter
- type ResourceStatus
- type Rule
- type RuleExecutionResult
- type RunEvaluationRequest
- type SapComponent
- type SapDiscovery
- type SapDiscoveryComponent
- type SapDiscoveryComponentApplicationProperties
- type SapDiscoveryComponentDatabaseProperties
- type SapDiscoveryComponentReplicationSite
- type SapDiscoveryMetadata
- type SapDiscoveryResource
- type SapDiscoveryResourceInstanceProperties
- type SapDiscoveryResourceInstancePropertiesAppInstance
- type SapDiscoveryResourceInstancePropertiesDiskMount
- type SapDiscoveryWorkloadProperties
- type SapDiscoveryWorkloadPropertiesProductVersion
- type SapDiscoveryWorkloadPropertiesSoftwareComponentProperties
- type SapInstanceProperties
- type SapValidation
- type SapValidationValidationDetail
- type SapWorkload
- type ScannedResource
- type Service
- type ShellCommand
- type SqlserverValidation
- type SqlserverValidationDetails
- type SqlserverValidationValidationDetail
- type SqlserverWorkload
- type Status
- type Summary
- type ThreeTierWorkload
- type TorsoValidation
- type UpcomingMaintenanceEvent
- type ViolationDetails
- type WorkloadProfile
- type WorkloadProfileHealth
- type WriteInsightRequest
- type WriteInsightResponse
Constants ¶
const ( // See, edit, configure, and delete your Google Cloud data and see the email // address for your Google Account. CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APILayerServer ¶ added in v0.166.0
type APILayerServer struct { // Name: Output only. The api layer name Name string `json:"name,omitempty"` // OsVersion: Output only. OS information OsVersion string `json:"osVersion,omitempty"` // Resources: Output only. resources in the component Resources []*CloudResource `json:"resources,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:"-"` }
APILayerServer: The API layer server
func (APILayerServer) MarshalJSON ¶ added in v0.166.0
func (s APILayerServer) MarshalJSON() ([]byte, error)
type AgentCommand ¶ added in v0.187.0
type AgentCommand struct { // Command: command is the name of the agent one-time executable that will be // invoked. Command string `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 for the agent to run.
func (AgentCommand) MarshalJSON ¶ added in v0.187.0
func (s AgentCommand) MarshalJSON() ([]byte, error)
type AvailabilityGroup ¶ added in v0.166.0
type AvailabilityGroup struct { // Databases: Output only. The databases Databases []string `json:"databases,omitempty"` // Name: Output only. The availability group name Name string `json:"name,omitempty"` // PrimaryServer: Output only. The primary server PrimaryServer string `json:"primaryServer,omitempty"` // SecondaryServers: Output only. The secondary servers SecondaryServers []string `json:"secondaryServers,omitempty"` // ForceSendFields is a list of field names (e.g. "Databases") 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. "Databases") 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:"-"` }
AvailabilityGroup: The availability groups for sqlserver
func (AvailabilityGroup) MarshalJSON ¶ added in v0.166.0
func (s AvailabilityGroup) MarshalJSON() ([]byte, error)
type BackendServer ¶ added in v0.166.0
type BackendServer struct { // BackupFile: Output only. The backup file BackupFile string `json:"backupFile,omitempty"` // BackupSchedule: Output only. The backup schedule BackupSchedule string `json:"backupSchedule,omitempty"` // Name: Output only. The backend name Name string `json:"name,omitempty"` // OsVersion: Output only. OS information OsVersion string `json:"osVersion,omitempty"` // Resources: Output only. resources in the component Resources []*CloudResource `json:"resources,omitempty"` // ForceSendFields is a list of field names (e.g. "BackupFile") 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. "BackupFile") 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:"-"` }
BackendServer: The backend server
func (BackendServer) MarshalJSON ¶ added in v0.166.0
func (s BackendServer) MarshalJSON() ([]byte, error)
type BackupProperties ¶ added in v0.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 state LatestBackupStatus string `json:"latestBackupStatus,omitempty"` // LatestBackupTime: The time when the latest backup was performed. LatestBackupTime string `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) MarshalJSON ¶ added in v0.223.0
func (s BackupProperties) MarshalJSON() ([]byte, error)
type BigQueryDestination ¶ added in v0.156.0
type BigQueryDestination struct { // CreateNewResultsTable: Optional. determine if results will be saved in a new // table CreateNewResultsTable bool `json:"createNewResultsTable,omitempty"` // DestinationDataset: Optional. destination dataset to save evaluation results DestinationDataset string `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) MarshalJSON ¶ added in v0.156.0
func (s BigQueryDestination) MarshalJSON() ([]byte, error)
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type CloudResource ¶ added in v0.166.0
type CloudResource struct { // InstanceProperties: Output only. All instance properties. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` // Kind: Output only. 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. Kind string `json:"kind,omitempty"` // Name: Output only. resource name Name string `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) MarshalJSON ¶ added in v0.166.0
func (s CloudResource) MarshalJSON() ([]byte, error)
type Cluster ¶ added in v0.166.0
type Cluster struct { // Nodes: Output only. The nodes Nodes []string `json:"nodes,omitempty"` // WitnessServer: Output only. The witness server WitnessServer string `json:"witnessServer,omitempty"` // ForceSendFields is a list of field names (e.g. "Nodes") 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. "Nodes") 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:"-"` }
Cluster: The cluster for sqlserver
func (Cluster) MarshalJSON ¶ added in v0.166.0
type Command ¶ added in v0.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) MarshalJSON ¶ added in v0.187.0
type ComponentHealth ¶ added in v0.223.0
type ComponentHealth struct { // Component: The component of a workload. Component string `json:"component,omitempty"` // ComponentHealthChecks: The detailed health checks of the component. ComponentHealthChecks []*HealthCheck `json:"componentHealthChecks,omitempty"` // ComponentHealthType: Output only. The type of the component health. // // Possible values: // "TYPE_UNSPECIFIED" - Unspecified // "TYPE_REQUIRED" - required // "TYPE_OPTIONAL" - optional // "TYPE_SPECIAL" - special ComponentHealthType string `json:"componentHealthType,omitempty"` // IsRequired: Output only. The requirement of the component. IsRequired bool `json:"isRequired,omitempty"` // State: Output only. The health state of the component. // // Possible values: // "HEALTH_STATE_UNSPECIFIED" - Unspecified // "HEALTHY" - healthy workload // "UNHEALTHY" - unhealthy workload // "CRITICAL" - has critical issues // "UNSUPPORTED" - unsupported State string `json:"state,omitempty"` // SubComponentHealthes: Sub component health. SubComponentHealthes []*ComponentHealth `json:"subComponentHealthes,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:"-"` }
ComponentHealth: HealthCondition contains the detailed health check of each component.
func (ComponentHealth) MarshalJSON ¶ added in v0.223.0
func (s ComponentHealth) MarshalJSON() ([]byte, error)
type Database ¶ added in v0.166.0
type Database struct { // BackupFile: Output only. The backup file BackupFile string `json:"backupFile,omitempty"` // BackupSchedule: Output only. The backup schedule BackupSchedule string `json:"backupSchedule,omitempty"` // HostVm: Output only. The host VM HostVm string `json:"hostVm,omitempty"` // Name: Output only. The database name Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "BackupFile") 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. "BackupFile") 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:"-"` }
Database: The database for sqlserver
func (Database) MarshalJSON ¶ added in v0.166.0
type DatabaseProperties ¶ added in v0.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 ASE DatabaseType string `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) MarshalJSON ¶ added in v0.223.0
func (s DatabaseProperties) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type Evaluation ¶
type Evaluation struct { // BigQueryDestination: Optional. BigQuery destination BigQueryDestination *BigQueryDestination `json:"bigQueryDestination,omitempty"` // CreateTime: Output only. [Output only] Create time stamp CreateTime string `json:"createTime,omitempty"` // CustomRulesBucket: The Cloud Storage bucket name for custom rules. CustomRulesBucket string `json:"customRulesBucket,omitempty"` // Description: Description of the Evaluation Description string `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 EvaluationType string `json:"evaluationType,omitempty"` // Labels: Labels as key value pairs Labels map[string]string `json:"labels,omitempty"` // Name: name of resource names have the form // 'projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}' Name string `json:"name,omitempty"` // ResourceFilter: annotations as key value pairs ResourceFilter *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 rule RuleNames []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 * *", Schedule string `json:"schedule,omitempty"` // UpdateTime: Output only. [Output only] Update time stamp UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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: LINT.IfChange Message describing Evaluation object
func (Evaluation) MarshalJSON ¶
func (s Evaluation) MarshalJSON() ([]byte, error)
type Execution ¶ added in v0.118.0
type Execution struct { // EndTime: Output only. [Output only] End time stamp EndTime string `json:"endTime,omitempty"` // EvaluationId: Output only. [Output only] Evaluation ID EvaluationId string `json:"evaluationId,omitempty"` // ExternalDataSources: Optional. External data sources ExternalDataSources []*ExternalDataSources `json:"externalDataSources,omitempty"` // InventoryTime: Output only. [Output only] Inventory time stamp InventoryTime string `json:"inventoryTime,omitempty"` // Labels: Labels as key value pairs Labels map[string]string `json:"labels,omitempty"` // Name: The name of execution resource. The format is // projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{ // execution} Name string `json:"name,omitempty"` // Notices: Output only. Additional information generated by the execution Notices []*Notice `json:"notices,omitempty"` // ResultSummary: Output only. [Output only] Result summary for the execution ResultSummary *Summary `json:"resultSummary,omitempty"` // RuleResults: Output only. execution result summary per rule RuleResults []*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 scheduled RunType string `json:"runType,omitempty"` // StartTime: Output only. [Output only] Start time stamp StartTime string `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 failed State string `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) MarshalJSON ¶ added in v0.118.0
type ExecutionResult ¶ added in v0.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. DocumentationUrl string `json:"documentationUrl,omitempty"` // Resource: The resource that violates the rule. Resource *Resource `json:"resource,omitempty"` // Rule: The rule that is violated in an evaluation. Rule string `json:"rule,omitempty"` // Severity: The severity of violation. Severity string `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 rule Type string `json:"type,omitempty"` // ViolationDetails: The details of violation in an evaluation result. ViolationDetails *ViolationDetails `json:"violationDetails,omitempty"` // ViolationMessage: The violation message of an execution. ViolationMessage string `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) MarshalJSON ¶ added in v0.118.0
func (s ExecutionResult) MarshalJSON() ([]byte, error)
type ExternalDataSources ¶ added in v0.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 // rule AssetType string `json:"assetType,omitempty"` // Name: Optional. Name of external data source. The name will be used inside // the rego/sql to refer the external data Name string `json:"name,omitempty"` // Type: Required. Type of external data source // // Possible values: // "TYPE_UNSPECIFIED" - Unknown type // "BIG_QUERY_TABLE" - BigQuery table Type string `json:"type,omitempty"` // Uri: Required. URI of external data source. example of bq table // {project_ID}.{dataset_ID}.{table_ID} Uri string `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) MarshalJSON ¶ added in v0.181.0
func (s ExternalDataSources) MarshalJSON() ([]byte, error)
type FrontEndServer ¶ added in v0.166.0
type FrontEndServer struct { // Name: Output only. The frontend name Name string `json:"name,omitempty"` // OsVersion: Output only. OS information OsVersion string `json:"osVersion,omitempty"` // Resources: Output only. resources in the component Resources []*CloudResource `json:"resources,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:"-"` }
FrontEndServer: The front end server
func (FrontEndServer) MarshalJSON ¶ added in v0.166.0
func (s FrontEndServer) MarshalJSON() ([]byte, error)
type GceInstanceFilter ¶
type GceInstanceFilter struct { // ServiceAccounts: Service account of compute engine ServiceAccounts []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 (s GceInstanceFilter) MarshalJSON() ([]byte, error)
type HealthCheck ¶ added in v0.223.0
type HealthCheck struct { // Message: Output only. The message of the health check. Message string `json:"message,omitempty"` // Metric: Output only. The health check source metric name. Metric string `json:"metric,omitempty"` // Resource: Output only. The resource the check performs on. Resource *CloudResource `json:"resource,omitempty"` // Source: Output only. The source of the health check. Source string `json:"source,omitempty"` // State: Output only. The state of the health check. // // Possible values: // "STATE_UNSPECIFIED" - Unspecified // "PASSED" - passed // "FAILED" - failed // "DEGRADED" - degraded // "SKIPPED" - skipped // "UNSUPPORTED" - unsupported State string `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:"-"` }
HealthCheck: HealthCheck contains the detailed health check of a component based on asource.
func (HealthCheck) MarshalJSON ¶ added in v0.223.0
func (s HealthCheck) MarshalJSON() ([]byte, error)
type Insight ¶
type Insight struct { // InstanceId: Required. The instance id where the insight is generated from InstanceId string `json:"instanceId,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 stamp SentTime string `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. "InstanceId") 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. "InstanceId") 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 ¶
type Instance ¶ added in v0.166.0
type Instance struct { // Name: Output only. name of the VM Name string `json:"name,omitempty"` // Region: Output only. The location of the VM Region string `json:"region,omitempty"` // Status: Output only. The state of the VM // // Possible values: // "INSTANCESTATE_UNSPECIFIED" - The Status of the VM is unspecified // "PROVISIONING" - Resources are being allocated for the instance. // "STAGING" - All required resources have been allocated and the instance is // being started. // "RUNNING" - The instance is running. // "STOPPING" - The instance is currently stopping (either being deleted or // killed). // "STOPPED" - The instance has stopped due to various reasons (user request, // VM preemption, project freezing, etc.). // "TERMINATED" - The instance has failed in some way. // "SUSPENDING" - The instance is suspending. // "SUSPENDED" - The instance is suspended. // "REPAIRING" - The instance is in repair. // "DEPROVISIONING" - The instance is in de-provisioning state. Status string `json:"status,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:"-"` }
Instance: a vm instance
func (Instance) MarshalJSON ¶ added in v0.166.0
type InstanceProperties ¶ added in v0.223.0
type InstanceProperties struct { // InstanceNumber: Optional. Instance number. InstanceNumber string `json:"instanceNumber,omitempty"` // MachineType: Optional. Instance machine type. MachineType string `json:"machineType,omitempty"` // Role: Optional. Instance role. // // 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. Role string `json:"role,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. Status string `json:"status,omitempty"` // UpcomingMaintenanceEvent: Optional. the next maintenance event on VM UpcomingMaintenanceEvent *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) MarshalJSON ¶ added in v0.223.0
func (s InstanceProperties) MarshalJSON() ([]byte, error)
type Layer ¶ added in v0.166.0
type Layer struct { // ApplicationType: the application layer ApplicationType string `json:"applicationType,omitempty"` // DatabaseType: Optional. the database layer DatabaseType string `json:"databaseType,omitempty"` // Instances: Optional. instances in a layer Instances []*Instance `json:"instances,omitempty"` // Sid: Output only. system identification of a layer Sid string `json:"sid,omitempty"` // ForceSendFields is a list of field names (e.g. "ApplicationType") 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. "ApplicationType") 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:"-"` }
Layer: The database layer
func (Layer) MarshalJSON ¶ added in v0.166.0
type ListDiscoveredProfilesResponse ¶ added in v0.223.0
type ListDiscoveredProfilesResponse struct { // NextPageToken: Output only. A token identifying a page of results the server // should return NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // WorkloadProfiles: Output only. The list of workload profiles WorkloadProfiles []*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 returns discovered profiles from agents
func (ListDiscoveredProfilesResponse) MarshalJSON ¶ added in v0.223.0
func (s ListDiscoveredProfilesResponse) MarshalJSON() ([]byte, error)
type ListEvaluationsResponse ¶
type ListEvaluationsResponse struct { // Evaluations: The list of Evaluation Evaluations []*Evaluation `json:"evaluations,omitempty"` // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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 (s ListEvaluationsResponse) MarshalJSON() ([]byte, error)
type ListExecutionResultsResponse ¶ added in v0.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. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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) MarshalJSON ¶ added in v0.118.0
func (s ListExecutionResultsResponse) MarshalJSON() ([]byte, error)
type ListExecutionsResponse ¶ added in v0.118.0
type ListExecutionsResponse struct { // Executions: The list of Execution Executions []*Execution `json:"executions,omitempty"` // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: Locations that could not be reached. Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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) MarshalJSON ¶ added in v0.118.0
func (s ListExecutionsResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
type ListLocationsResponse struct { // Locations: A list of locations that matches the specified filter in the // request. Locations []*Location `json:"locations,omitempty"` // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. 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 (s ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in the // request. Operations []*Operation `json:"operations,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. 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 (s ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListRulesResponse ¶ added in v0.118.0
type ListRulesResponse struct { // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `json:"nextPageToken,omitempty"` // Rules: all rules in response Rules []*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. "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:"-"` }
ListRulesResponse: Mesesage of response of list rules
func (ListRulesResponse) MarshalJSON ¶ added in v0.118.0
func (s ListRulesResponse) MarshalJSON() ([]byte, error)
type ListScannedResourcesResponse ¶ added in v0.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. NextPageToken string `json:"nextPageToken,omitempty"` // ScannedResources: All scanned resources in response ScannedResources []*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) MarshalJSON ¶ added in v0.118.0
func (s ListScannedResourcesResponse) MarshalJSON() ([]byte, error)
type LoadBalancerServer ¶ added in v0.166.0
type LoadBalancerServer struct { // Ip: Output only. The IP address Ip string `json:"ip,omitempty"` // Vm: Output only. The VM name Vm string `json:"vm,omitempty"` // ForceSendFields is a list of field names (e.g. "Ip") 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. "Ip") 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:"-"` }
LoadBalancerServer: The load balancer for sqlserver
func (LoadBalancerServer) MarshalJSON ¶ added in v0.166.0
func (s LoadBalancerServer) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby city // name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` // LocationId: The canonical id for this location. For example: "us-east1". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available capacity at // the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. 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 ¶
type Notice ¶ added in v0.204.0
type Notice struct { // Message: Output only. Message of the notice Message string `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) MarshalJSON ¶ added in v0.204.0
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in progress. // If `true`, the operation is completed, and either `error` or `response` is // available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or cancellation. Error *Status `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as create // time. Some services might not provide such metadata. Any method that returns // a long-running operation should document the metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same service // that originally returns it. If you use the default HTTP mapping, the `name` // should be a resource name ending with `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal, successful response of the operation. If the original // method returns no data on success, such as `Delete`, the response is // `google.protobuf.Empty`. If the original method is standard // `Get`/`Create`/`Update`, the response should be the resource. For other // methods, the response should have the type `XxxResponse`, where `Xxx` is the // original method name. For example, if the original method name is // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. 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 the result of a network API call.
func (Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have been cancelled // successfully have Operation.error value with a google.rpc.Status.code of 1, // corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` // Target: Output only. Server-defined resource path for the target of the // operation. Target string `json:"target,omitempty"` // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. 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 (s OperationMetadata) MarshalJSON() ([]byte, error)
type Product ¶ added in v0.223.0
type Product struct { // Name: Optional. Name of the product. Name string `json:"name,omitempty"` // Version: Optional. Version of the product. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. 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) MarshalJSON ¶ added in v0.223.0
type ProjectsLocationsDiscoveredprofilesGetCall ¶ added in v0.223.0
type ProjectsLocationsDiscoveredprofilesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsDiscoveredprofilesGetCall) Context ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredprofilesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDiscoveredprofilesGetCall) Do ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesGetCall) Do(opts ...googleapi.CallOption) (*WorkloadProfile, error)
Do executes the "workloadmanager.projects.locations.discoveredprofiles.get" call. Any non-2xx status code is an error. Response headers are in either *WorkloadProfile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDiscoveredprofilesGetCall) Fields ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredprofilesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsDiscoveredprofilesGetCall) Header ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsDiscoveredprofilesGetCall) IfNoneMatch ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredprofilesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsDiscoveredprofilesHealthesGetCall ¶ added in v0.223.0
type ProjectsLocationsDiscoveredprofilesHealthesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsDiscoveredprofilesHealthesGetCall) Context ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredprofilesHealthesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDiscoveredprofilesHealthesGetCall) Do ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Do(opts ...googleapi.CallOption) (*WorkloadProfileHealth, error)
Do executes the "workloadmanager.projects.locations.discoveredprofiles.healthes.get" call. Any non-2xx status code is an error. Response headers are in either *WorkloadProfileHealth.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDiscoveredprofilesHealthesGetCall) Fields ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredprofilesHealthesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsDiscoveredprofilesHealthesGetCall) Header ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsDiscoveredprofilesHealthesGetCall) IfNoneMatch ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesHealthesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredprofilesHealthesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsDiscoveredprofilesHealthesService ¶ added in v0.223.0
type ProjectsLocationsDiscoveredprofilesHealthesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsDiscoveredprofilesHealthesService ¶ added in v0.223.0
func NewProjectsLocationsDiscoveredprofilesHealthesService(s *Service) *ProjectsLocationsDiscoveredprofilesHealthesService
func (*ProjectsLocationsDiscoveredprofilesHealthesService) Get ¶ added in v0.223.0
func (r *ProjectsLocationsDiscoveredprofilesHealthesService) Get(name string) *ProjectsLocationsDiscoveredprofilesHealthesGetCall
Get: Get the health of a discovered workload profile.
- name: The resource name.
type ProjectsLocationsDiscoveredprofilesListCall ¶ added in v0.223.0
type ProjectsLocationsDiscoveredprofilesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsDiscoveredprofilesListCall) Context ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) Context(ctx context.Context) *ProjectsLocationsDiscoveredprofilesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsDiscoveredprofilesListCall) Do ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) Do(opts ...googleapi.CallOption) (*ListDiscoveredProfilesResponse, error)
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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsDiscoveredprofilesListCall) Fields ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveredprofilesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsDiscoveredprofilesListCall) Filter ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) Filter(filter string) *ProjectsLocationsDiscoveredprofilesListCall
Filter sets the optional parameter "filter": Filtering results
func (*ProjectsLocationsDiscoveredprofilesListCall) Header ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsDiscoveredprofilesListCall) IfNoneMatch ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveredprofilesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsDiscoveredprofilesListCall) PageSize ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) PageSize(pageSize int64) *ProjectsLocationsDiscoveredprofilesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsDiscoveredprofilesListCall) PageToken ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) PageToken(pageToken string) *ProjectsLocationsDiscoveredprofilesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsDiscoveredprofilesListCall) Pages ¶ added in v0.223.0
func (c *ProjectsLocationsDiscoveredprofilesListCall) Pages(ctx context.Context, f func(*ListDiscoveredProfilesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsDiscoveredprofilesService ¶ added in v0.223.0
type ProjectsLocationsDiscoveredprofilesService struct { Healthes *ProjectsLocationsDiscoveredprofilesHealthesService // contains filtered or unexported fields }
func NewProjectsLocationsDiscoveredprofilesService ¶ added in v0.223.0
func NewProjectsLocationsDiscoveredprofilesService(s *Service) *ProjectsLocationsDiscoveredprofilesService
func (*ProjectsLocationsDiscoveredprofilesService) Get ¶ added in v0.223.0
func (r *ProjectsLocationsDiscoveredprofilesService) Get(name string) *ProjectsLocationsDiscoveredprofilesGetCall
Get: Gets details of a discovered workload profile.
- name: Name of the resource.
func (*ProjectsLocationsDiscoveredprofilesService) List ¶ added in v0.223.0
func (r *ProjectsLocationsDiscoveredprofilesService) List(parent string) *ProjectsLocationsDiscoveredprofilesListCall
List: List discovered workload profiles
- parent: Parent value for ListDiscoveredProfilesRequest.
type ProjectsLocationsEvaluationsCreateCall ¶
type ProjectsLocationsEvaluationsCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsCreateCall) Context ¶
func (c *ProjectsLocationsEvaluationsCreateCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsCreateCall) Do ¶
func (c *ProjectsLocationsEvaluationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsCreateCall) EvaluationId ¶
func (c *ProjectsLocationsEvaluationsCreateCall) EvaluationId(evaluationId string) *ProjectsLocationsEvaluationsCreateCall
EvaluationId sets the optional parameter "evaluationId": Required. Id of the requesting object
func (*ProjectsLocationsEvaluationsCreateCall) Fields ¶
func (c *ProjectsLocationsEvaluationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsCreateCall) Header ¶
func (c *ProjectsLocationsEvaluationsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsCreateCall) RequestId ¶
func (c *ProjectsLocationsEvaluationsCreateCall) RequestId(requestId string) *ProjectsLocationsEvaluationsCreateCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsEvaluationsDeleteCall ¶ added in v0.166.0
type ProjectsLocationsEvaluationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsDeleteCall) Context ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsDeleteCall) Do ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsDeleteCall) Fields ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsDeleteCall) Force ¶ added in v0.172.0
func (c *ProjectsLocationsEvaluationsDeleteCall) Force(force bool) *ProjectsLocationsEvaluationsDeleteCall
Force sets the optional parameter "force": Followed the best practice from https://aip.dev/135#cascading-delete
func (*ProjectsLocationsEvaluationsDeleteCall) Header ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsDeleteCall) RequestId ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsEvaluationsExecutionsDeleteCall ¶ added in v0.166.0
type ProjectsLocationsEvaluationsExecutionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsExecutionsDeleteCall) Context ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsExecutionsDeleteCall) Do ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsExecutionsDeleteCall) Fields ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsExecutionsDeleteCall) Header ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsExecutionsDeleteCall) RequestId ¶ added in v0.166.0
func (c *ProjectsLocationsEvaluationsExecutionsDeleteCall) RequestId(requestId string) *ProjectsLocationsEvaluationsExecutionsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsEvaluationsExecutionsGetCall ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsExecutionsGetCall) Context ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsExecutionsGetCall) Do ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Do(opts ...googleapi.CallOption) (*Execution, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsExecutionsGetCall) Fields ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsExecutionsGetCall) Header ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsExecutionsGetCall) IfNoneMatch ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsEvaluationsExecutionsListCall ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsExecutionsListCall) Context ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsExecutionsListCall) Do ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionsResponse, error)
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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsExecutionsListCall) Fields ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsExecutionsListCall) Filter ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsListCall
Filter sets the optional parameter "filter": Filtering results
func (*ProjectsLocationsEvaluationsExecutionsListCall) Header ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsExecutionsListCall) IfNoneMatch ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsEvaluationsExecutionsListCall) OrderBy ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsExecutionsListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsEvaluationsExecutionsListCall) PageSize ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsEvaluationsExecutionsListCall) PageToken ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsEvaluationsExecutionsListCall) Pages ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsListCall) Pages(ctx context.Context, f func(*ListExecutionsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsEvaluationsExecutionsResultsListCall ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsResultsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) Context ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsResultsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) Do ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Do(opts ...googleapi.CallOption) (*ListExecutionResultsResponse, error)
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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) Fields ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsResultsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) Filter ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsResultsListCall
Filter sets the optional parameter "filter": Filtering results
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) Header ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) IfNoneMatch ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsResultsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) PageSize ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsResultsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) PageToken ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsResultsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsEvaluationsExecutionsResultsListCall) Pages ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsResultsListCall) Pages(ctx context.Context, f func(*ListExecutionResultsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsEvaluationsExecutionsResultsService ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsResultsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsEvaluationsExecutionsResultsService ¶ added in v0.118.0
func NewProjectsLocationsEvaluationsExecutionsResultsService(s *Service) *ProjectsLocationsEvaluationsExecutionsResultsService
func (*ProjectsLocationsEvaluationsExecutionsResultsService) List ¶ added in v0.118.0
func (r *ProjectsLocationsEvaluationsExecutionsResultsService) List(parent string) *ProjectsLocationsEvaluationsExecutionsResultsListCall
List: Lists the result of a single evaluation.
- parent: The execution results. Format: {parent}/evaluations/*/executions/*/results.
type ProjectsLocationsEvaluationsExecutionsRunCall ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsRunCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsExecutionsRunCall) Context ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsRunCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsExecutionsRunCall) Do ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsExecutionsRunCall) Fields ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsRunCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsExecutionsRunCall) Header ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsRunCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Context ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Do ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Do(opts ...googleapi.CallOption) (*ListScannedResourcesResponse, error)
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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Fields ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Filter ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Filter(filter string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
Filter sets the optional parameter "filter": Filtering results
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Header ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) IfNoneMatch ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) OrderBy ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
OrderBy sets the optional parameter "orderBy": Field to sort by. See https://google.aip.dev/132#ordering for more details.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageSize ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageToken ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Pages ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Pages(ctx context.Context, f func(*ListScannedResourcesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Rule ¶ added in v0.118.0
func (c *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall) Rule(rule string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
Rule sets the optional parameter "rule": rule name
type ProjectsLocationsEvaluationsExecutionsScannedResourcesService ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsScannedResourcesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsEvaluationsExecutionsScannedResourcesService ¶ added in v0.118.0
func NewProjectsLocationsEvaluationsExecutionsScannedResourcesService(s *Service) *ProjectsLocationsEvaluationsExecutionsScannedResourcesService
func (*ProjectsLocationsEvaluationsExecutionsScannedResourcesService) List ¶ added in v0.118.0
func (r *ProjectsLocationsEvaluationsExecutionsScannedResourcesService) List(parent string) *ProjectsLocationsEvaluationsExecutionsScannedResourcesListCall
List: List all scanned resources for a single Execution.
- parent: parent for ListScannedResourcesRequest.
type ProjectsLocationsEvaluationsExecutionsService ¶ added in v0.118.0
type ProjectsLocationsEvaluationsExecutionsService struct { Results *ProjectsLocationsEvaluationsExecutionsResultsService ScannedResources *ProjectsLocationsEvaluationsExecutionsScannedResourcesService // contains filtered or unexported fields }
func NewProjectsLocationsEvaluationsExecutionsService ¶ added in v0.118.0
func NewProjectsLocationsEvaluationsExecutionsService(s *Service) *ProjectsLocationsEvaluationsExecutionsService
func (*ProjectsLocationsEvaluationsExecutionsService) Delete ¶ added in v0.166.0
func (r *ProjectsLocationsEvaluationsExecutionsService) Delete(name string) *ProjectsLocationsEvaluationsExecutionsDeleteCall
Delete: Deletes a single Execution.
- name: Name of the resource.
func (*ProjectsLocationsEvaluationsExecutionsService) Get ¶ added in v0.118.0
func (r *ProjectsLocationsEvaluationsExecutionsService) Get(name string) *ProjectsLocationsEvaluationsExecutionsGetCall
Get: Gets details of a single Execution.
- name: Name of the resource.
func (*ProjectsLocationsEvaluationsExecutionsService) List ¶ added in v0.118.0
func (r *ProjectsLocationsEvaluationsExecutionsService) List(parent string) *ProjectsLocationsEvaluationsExecutionsListCall
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) Run ¶ added in v0.118.0
func (r *ProjectsLocationsEvaluationsExecutionsService) Run(name string, runevaluationrequest *RunEvaluationRequest) *ProjectsLocationsEvaluationsExecutionsRunCall
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}/execution s/{execution}'.
type ProjectsLocationsEvaluationsGetCall ¶
type ProjectsLocationsEvaluationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsGetCall) Context ¶
func (c *ProjectsLocationsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsGetCall) Do ¶
func (c *ProjectsLocationsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*Evaluation, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsGetCall) Fields ¶
func (c *ProjectsLocationsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsGetCall) Header ¶
func (c *ProjectsLocationsEvaluationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsEvaluationsListCall ¶
type ProjectsLocationsEvaluationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsEvaluationsListCall) Context ¶
func (c *ProjectsLocationsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsEvaluationsListCall) Do ¶
func (c *ProjectsLocationsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*ListEvaluationsResponse, error)
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 was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsEvaluationsListCall) Fields ¶
func (c *ProjectsLocationsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsEvaluationsListCall) Filter ¶
func (c *ProjectsLocationsEvaluationsListCall) Filter(filter string) *ProjectsLocationsEvaluationsListCall
Filter sets the optional parameter "filter": Filter to be applied when listing the evaluation results.
func (*ProjectsLocationsEvaluationsListCall) Header ¶
func (c *ProjectsLocationsEvaluationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsEvaluationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsEvaluationsListCall) OrderBy ¶
func (c *ProjectsLocationsEvaluationsListCall) OrderBy(orderBy string) *ProjectsLocationsEvaluationsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order the results
func (*ProjectsLocationsEvaluationsListCall) PageSize ¶
func (c *ProjectsLocationsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsEvaluationsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsEvaluationsListCall) PageToken ¶
func (c *ProjectsLocationsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsEvaluationsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsEvaluationsListCall) Pages ¶
func (c *ProjectsLocationsEvaluationsListCall) Pages(ctx context.Context, f func(*ListEvaluationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsEvaluationsService ¶
type ProjectsLocationsEvaluationsService struct { Executions *ProjectsLocationsEvaluationsExecutionsService // contains filtered or unexported fields }
func NewProjectsLocationsEvaluationsService ¶
func NewProjectsLocationsEvaluationsService(s *Service) *ProjectsLocationsEvaluationsService
func (*ProjectsLocationsEvaluationsService) Create ¶
func (r *ProjectsLocationsEvaluationsService) Create(parent string, evaluation *Evaluation) *ProjectsLocationsEvaluationsCreateCall
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) Delete ¶ added in v0.166.0
func (r *ProjectsLocationsEvaluationsService) Delete(name string) *ProjectsLocationsEvaluationsDeleteCall
Delete: Deletes a single Evaluation.
- name: Name of the resource.
func (*ProjectsLocationsEvaluationsService) Get ¶
func (r *ProjectsLocationsEvaluationsService) Get(name string) *ProjectsLocationsEvaluationsGetCall
Get: Gets details of a single Evaluation.
- name: Name of the resource.
func (*ProjectsLocationsEvaluationsService) List ¶
func (r *ProjectsLocationsEvaluationsService) List(parent string) *ProjectsLocationsEvaluationsListCall
List: Lists Evaluations in a given project and location.
- parent: Parent value for ListEvaluationsRequest.
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall) Fields ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsInsightsService ¶
type ProjectsLocationsInsightsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsInsightsService ¶
func NewProjectsLocationsInsightsService(s *Service) *ProjectsLocationsInsightsService
func (*ProjectsLocationsInsightsService) WriteInsight ¶
func (r *ProjectsLocationsInsightsService) WriteInsight(location string, writeinsightrequest *WriteInsightRequest) *ProjectsLocationsInsightsWriteInsightCall
WriteInsight: Write the data insights to workload manager data warehouse.
- location: The GCP location. The format is: projects/{project}/locations/{location}.
type ProjectsLocationsInsightsWriteInsightCall ¶
type ProjectsLocationsInsightsWriteInsightCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInsightsWriteInsightCall) Context ¶
func (c *ProjectsLocationsInsightsWriteInsightCall) Context(ctx context.Context) *ProjectsLocationsInsightsWriteInsightCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightsWriteInsightCall) Do ¶
func (c *ProjectsLocationsInsightsWriteInsightCall) Do(opts ...googleapi.CallOption) (*WriteInsightResponse, error)
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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInsightsWriteInsightCall) Fields ¶
func (c *ProjectsLocationsInsightsWriteInsightCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsWriteInsightCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInsightsWriteInsightCall) Header ¶
func (c *ProjectsLocationsInsightsWriteInsightCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).
func (*ProjectsLocationsListCall) Header ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall) Fields ¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
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 returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService) Delete ¶
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
- name: The name of the operation resource.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
type ProjectsLocationsRulesListCall ¶ added in v0.118.0
type ProjectsLocationsRulesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRulesListCall) Context ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) Context(ctx context.Context) *ProjectsLocationsRulesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRulesListCall) CustomRulesBucket ¶ added in v0.127.0
func (c *ProjectsLocationsRulesListCall) CustomRulesBucket(customRulesBucket string) *ProjectsLocationsRulesListCall
CustomRulesBucket sets the optional parameter "customRulesBucket": The Cloud Storage bucket name for custom rules.
func (*ProjectsLocationsRulesListCall) Do ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) Do(opts ...googleapi.CallOption) (*ListRulesResponse, error)
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 at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRulesListCall) Fields ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRulesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRulesListCall) Filter ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) Filter(filter string) *ProjectsLocationsRulesListCall
Filter sets the optional parameter "filter": Filter based on primary_category, secondary_category
func (*ProjectsLocationsRulesListCall) Header ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRulesListCall) IfNoneMatch ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRulesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRulesListCall) PageSize ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) PageSize(pageSize int64) *ProjectsLocationsRulesListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
func (*ProjectsLocationsRulesListCall) PageToken ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) PageToken(pageToken string) *ProjectsLocationsRulesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return.
func (*ProjectsLocationsRulesListCall) Pages ¶ added in v0.118.0
func (c *ProjectsLocationsRulesListCall) Pages(ctx context.Context, f func(*ListRulesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsRulesService ¶ added in v0.118.0
type ProjectsLocationsRulesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsRulesService ¶ added in v0.118.0
func NewProjectsLocationsRulesService(s *Service) *ProjectsLocationsRulesService
func (*ProjectsLocationsRulesService) List ¶ added in v0.118.0
func (r *ProjectsLocationsRulesService) List(parent string) *ProjectsLocationsRulesListCall
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-defined rules are global available to all projects and all regions.
type ProjectsLocationsSapSystemsDeleteCall ¶ added in v0.222.0
type ProjectsLocationsSapSystemsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsSapSystemsDeleteCall) Context ¶ added in v0.222.0
func (c *ProjectsLocationsSapSystemsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSapSystemsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsSapSystemsDeleteCall) Do ¶ added in v0.222.0
func (c *ProjectsLocationsSapSystemsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "workloadmanager.projects.locations.sapSystems.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) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsSapSystemsDeleteCall) Fields ¶ added in v0.222.0
func (c *ProjectsLocationsSapSystemsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSapSystemsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsSapSystemsDeleteCall) Header ¶ added in v0.222.0
func (c *ProjectsLocationsSapSystemsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsSapSystemsDeleteCall) RequestId ¶ added in v0.222.0
func (c *ProjectsLocationsSapSystemsDeleteCall) RequestId(requestId string) *ProjectsLocationsSapSystemsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsSapSystemsService ¶ added in v0.222.0
type ProjectsLocationsSapSystemsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsSapSystemsService ¶ added in v0.222.0
func NewProjectsLocationsSapSystemsService(s *Service) *ProjectsLocationsSapSystemsService
func (*ProjectsLocationsSapSystemsService) Delete ¶ added in v0.222.0
func (r *ProjectsLocationsSapSystemsService) Delete(name string) *ProjectsLocationsSapSystemsDeleteCall
Delete: Delete the data insights from workload manager data warehouse.
- name: The system id of the SAP system resource to delete. Formatted as projects/{project}/locations/{location}/sapSystems/{sap_system_id}.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { Discoveredprofiles *ProjectsLocationsDiscoveredprofilesService Evaluations *ProjectsLocationsEvaluationsService Insights *ProjectsLocationsInsightsService Operations *ProjectsLocationsOperationsService Rules *ProjectsLocationsRulesService SapSystems *ProjectsLocationsSapSystemsService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type Resource ¶ added in v0.118.0
type Resource struct { // Name: The name of the resource. Name string `json:"name,omitempty"` // ServiceAccount: The service account associated with the resource. ServiceAccount string `json:"serviceAccount,omitempty"` // Type: The type of resource. Type string `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) MarshalJSON ¶ added in v0.118.0
type ResourceFilter ¶
type ResourceFilter struct { // GceInstanceFilter: Filter compute engine resource GceInstanceFilter *GceInstanceFilter `json:"gceInstanceFilter,omitempty"` // InclusionLabels: The label used for filter resource InclusionLabels map[string]string `json:"inclusionLabels,omitempty"` // ResourceIdPatterns: The id pattern for filter resource ResourceIdPatterns []string `json:"resourceIdPatterns,omitempty"` // Scopes: The scopes of evaluation resource Scopes []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 (s ResourceFilter) MarshalJSON() ([]byte, error)
type ResourceStatus ¶
type ResourceStatus struct { // RulesNewerVersions: Historical: Used before 2023-05-22 the new version of // rule id if exists RulesNewerVersions []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. State string `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 (s ResourceStatus) MarshalJSON() ([]byte, error)
type Rule ¶ added in v0.118.0
type Rule struct { // Description: descrite rule in plain language Description string `json:"description,omitempty"` // DisplayName: the name display in UI DisplayName string `json:"displayName,omitempty"` // ErrorMessage: the message template for rule ErrorMessage string `json:"errorMessage,omitempty"` // Name: rule name Name string `json:"name,omitempty"` // PrimaryCategory: the primary category PrimaryCategory string `json:"primaryCategory,omitempty"` // Remediation: the remediation for the rule Remediation string `json:"remediation,omitempty"` // RevisionId: Output only. the version of the rule RevisionId string `json:"revisionId,omitempty"` // SecondaryCategory: the secondary category SecondaryCategory string `json:"secondaryCategory,omitempty"` // Severity: the severity of the rule Severity string `json:"severity,omitempty"` // Tags: List of user-defined tags Tags []string `json:"tags,omitempty"` // Uri: the docuement url for the rule Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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) MarshalJSON ¶ added in v0.118.0
type RuleExecutionResult ¶ added in v0.202.0
type RuleExecutionResult struct { // Message: Execution message, if any Message string `json:"message,omitempty"` // ResultCount: Number of violations ResultCount int64 `json:"resultCount,omitempty,string"` // Rule: rule name Rule string `json:"rule,omitempty"` // ScannedResourceCount: Number of total scanned resources ScannedResourceCount int64 `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 executed State string `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) MarshalJSON ¶ added in v0.202.0
func (s RuleExecutionResult) MarshalJSON() ([]byte, error)
type RunEvaluationRequest ¶ added in v0.118.0
type RunEvaluationRequest struct { // Execution: Required. The resource being created Execution *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 RPC ExecutionId string `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). RequestId string `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) MarshalJSON ¶ added in v0.118.0
func (s RunEvaluationRequest) MarshalJSON() ([]byte, error)
type SapComponent ¶ added in v0.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 component Resources []*CloudResource `json:"resources,omitempty"` // Sid: Output only. sid is the sap component identificator Sid string `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. TopologyType string `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) MarshalJSON ¶ added in v0.166.0
func (s SapComponent) MarshalJSON() ([]byte, error)
type SapDiscovery ¶
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. ProjectNumber string `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. SystemId string `json:"systemId,omitempty"` // UpdateTime: Required. Unix timestamp this system has been updated last. UpdateTime string `json:"updateTime,omitempty"` // UseDrReconciliation: Optional. Whether to use DR reconciliation or not. UseDrReconciliation bool `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 (s SapDiscovery) MarshalJSON() ([]byte, error)
type SapDiscoveryComponent ¶
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. HostProject string `json:"hostProject,omitempty"` // Region: Optional. The region this component's resources are primarily // located in. Region string `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. Sid string `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. TopologyType string `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 (s SapDiscoveryComponent) MarshalJSON() ([]byte, error)
type SapDiscoveryComponentApplicationProperties ¶ added in v0.133.0
type SapDiscoveryComponentApplicationProperties struct { // Abap: Optional. Deprecated: ApplicationType now tells you whether this is // ABAP or Java. Abap bool `json:"abap,omitempty"` // AppInstanceNumber: Optional. Instance number of the SAP application // instance. AppInstanceNumber string `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 Java ApplicationType string `json:"applicationType,omitempty"` // AscsInstanceNumber: Optional. Instance number of the ASCS instance. AscsInstanceNumber string `json:"ascsInstanceNumber,omitempty"` // AscsUri: Optional. Resource URI of the recognized ASCS host of the // application. AscsUri string `json:"ascsUri,omitempty"` // ErsInstanceNumber: Optional. Instance number of the ERS instance. ErsInstanceNumber string `json:"ersInstanceNumber,omitempty"` // KernelVersion: Optional. Kernel version for Netweaver running in the system. KernelVersion string `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. NfsUri string `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 describing an SAP Application layer.
func (SapDiscoveryComponentApplicationProperties) MarshalJSON ¶ added in v0.133.0
func (s SapDiscoveryComponentApplicationProperties) MarshalJSON() ([]byte, error)
type SapDiscoveryComponentDatabaseProperties ¶ added in v0.133.0
type SapDiscoveryComponentDatabaseProperties struct { // DatabaseSid: Optional. SID of the system database. DatabaseSid string `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 ASE DatabaseType string `json:"databaseType,omitempty"` // DatabaseVersion: Optional. The version of the database software running in // the system. DatabaseVersion string `json:"databaseVersion,omitempty"` // InstanceNumber: Optional. Instance number of the SAP instance. InstanceNumber string `json:"instanceNumber,omitempty"` // LandscapeId: Optional. Landscape ID from the HANA nameserver. LandscapeId string `json:"landscapeId,omitempty"` // PrimaryInstanceUri: Required. URI of the recognized primary instance of the // database. PrimaryInstanceUri string `json:"primaryInstanceUri,omitempty"` // May be empty if the database has only a single node. SharedNfsUri string `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 an SAP Database layer.
func (SapDiscoveryComponentDatabaseProperties) MarshalJSON ¶ added in v0.133.0
func (s SapDiscoveryComponentDatabaseProperties) MarshalJSON() ([]byte, error)
type SapDiscoveryComponentReplicationSite ¶ added in v0.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. SourceSite string `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 Disaster Recovery (DR) configurations.
func (SapDiscoveryComponentReplicationSite) MarshalJSON ¶ added in v0.217.0
func (s SapDiscoveryComponentReplicationSite) MarshalJSON() ([]byte, error)
type SapDiscoveryMetadata ¶
type SapDiscoveryMetadata struct { // CustomerRegion: Optional. Customer region string for customer's use. Does // not represent GCP region. CustomerRegion string `json:"customerRegion,omitempty"` // DefinedSystem: Optional. Customer defined, something like "E-commerce pre // prod" DefinedSystem string `json:"definedSystem,omitempty"` // EnvironmentType: Optional. Should be "prod", "QA", "dev", "staging", etc. EnvironmentType string `json:"environmentType,omitempty"` // SapProduct: Optional. This SAP product name SapProduct string `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 (s SapDiscoveryMetadata) MarshalJSON() ([]byte, error)
type SapDiscoveryResource ¶
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. ResourceKind string `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. ResourceType string `json:"resourceType,omitempty"` // ResourceUri: Required. URI of the resource, includes project, location, and // name. ResourceUri string `json:"resourceUri,omitempty"` // UpdateTime: Required. Unix timestamp of when this resource last had its // discovery data updated. UpdateTime string `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 (s SapDiscoveryResource) MarshalJSON() ([]byte, error)
type SapDiscoveryResourceInstanceProperties ¶ added in v0.155.0
type SapDiscoveryResourceInstanceProperties struct { // AppInstances: Optional. App server instances on the host AppInstances []*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. InstanceNumber int64 `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. InstanceRole string `json:"instanceRole,omitempty"` // IsDrSite: Optional. Instance is part of a DR site. IsDrSite bool `json:"isDrSite,omitempty"` // VirtualHostname: Optional. A virtual hostname of the instance if it has one. VirtualHostname string `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 for an instance type resource
func (SapDiscoveryResourceInstanceProperties) MarshalJSON ¶ added in v0.155.0
func (s SapDiscoveryResourceInstanceProperties) MarshalJSON() ([]byte, error)
type SapDiscoveryResourceInstancePropertiesAppInstance ¶ added in v0.181.0
type SapDiscoveryResourceInstancePropertiesAppInstance struct { // Name: Optional. Instance name of the SAP application instance. Name string `json:"name,omitempty"` // Number: Optional. Instance number of the SAP application instance. Number string `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 SAP application server instance.
func (SapDiscoveryResourceInstancePropertiesAppInstance) MarshalJSON ¶ added in v0.181.0
func (s SapDiscoveryResourceInstancePropertiesAppInstance) MarshalJSON() ([]byte, error)
type SapDiscoveryResourceInstancePropertiesDiskMount ¶ added in v0.222.0
type SapDiscoveryResourceInstancePropertiesDiskMount struct { // MountPoint: Optional. Filesystem mount point. MountPoint string `json:"mountPoint,omitempty"` // Name: Optional. Name of the disk. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "MountPoint") 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. "MountPoint") 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) MarshalJSON ¶ added in v0.222.0
func (s SapDiscoveryResourceInstancePropertiesDiskMount) MarshalJSON() ([]byte, error)
type SapDiscoveryWorkloadProperties ¶ added in v0.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 SAP workload.
func (SapDiscoveryWorkloadProperties) MarshalJSON ¶ added in v0.166.0
func (s SapDiscoveryWorkloadProperties) MarshalJSON() ([]byte, error)
type SapDiscoveryWorkloadPropertiesProductVersion ¶ added in v0.166.0
type SapDiscoveryWorkloadPropertiesProductVersion struct { // Name: Optional. Name of the product. Name string `json:"name,omitempty"` // Version: Optional. Version of the product. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. 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) MarshalJSON ¶ added in v0.166.0
func (s SapDiscoveryWorkloadPropertiesProductVersion) MarshalJSON() ([]byte, error)
type SapDiscoveryWorkloadPropertiesSoftwareComponentProperties ¶ added in v0.166.0
type SapDiscoveryWorkloadPropertiesSoftwareComponentProperties struct { // ExtVersion: Optional. The component's minor version. ExtVersion string `json:"extVersion,omitempty"` // Name: Optional. Name of the component. Name string `json:"name,omitempty"` // Type: Optional. The component's type. Type string `json:"type,omitempty"` // Version: Optional. The component's major version. Version string `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 software component name, version, and type.
func (SapDiscoveryWorkloadPropertiesSoftwareComponentProperties) MarshalJSON ¶ added in v0.166.0
func (s SapDiscoveryWorkloadPropertiesSoftwareComponentProperties) MarshalJSON() ([]byte, error)
type SapInstanceProperties ¶ added in v0.223.0
type SapInstanceProperties struct { // 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. "Numbers") 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. "Numbers") 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) MarshalJSON ¶ added in v0.223.0
func (s SapInstanceProperties) MarshalJSON() ([]byte, error)
type SapValidation ¶
type SapValidation struct { // ProjectId: Required. The project_id of the cloud project that the Insight // data comes from. ProjectId string `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. Zone string `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 SAP workloads validation related data.
func (SapValidation) MarshalJSON ¶
func (s SapValidation) MarshalJSON() ([]byte, error)
type SapValidationValidationDetail ¶
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. IsPresent bool `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. SapValidationType string `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 validation metrics.
func (SapValidationValidationDetail) MarshalJSON ¶
func (s SapValidationValidationDetail) MarshalJSON() ([]byte, error)
type SapWorkload ¶ added in v0.166.0
type SapWorkload struct { // Application: Output only. the acsc componment Application *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. Architecture string `json:"architecture,omitempty"` // Database: Output only. the database componment Database *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) MarshalJSON ¶ added in v0.166.0
func (s SapWorkload) MarshalJSON() ([]byte, error)
type ScannedResource ¶ added in v0.118.0
type ScannedResource struct { // Resource: resource name Resource string `json:"resource,omitempty"` // Type: resource type Type string `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) MarshalJSON ¶ added in v0.118.0
func (s ScannedResource) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type ShellCommand ¶ added in v0.187.0
type ShellCommand struct { // Args: args is a string of arguments to be passed to the command. Args string `json:"args,omitempty"` // Command: command is the name of the command to be executed. Command string `json:"command,omitempty"` // TimeoutSeconds: Optional. If not specified, the default timeout is 60 // seconds. TimeoutSeconds int64 `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 line executor
func (ShellCommand) MarshalJSON ¶ added in v0.187.0
func (s ShellCommand) MarshalJSON() ([]byte, error)
type SqlserverValidation ¶ added in v0.123.0
type SqlserverValidation struct { // AgentVersion: Optional. The agent version collected this data point AgentVersion string `json:"agentVersion,omitempty"` // Instance: Required. The instance_name of the instance that the Insight data // comes from. According to https://linter.aip.dev/122/name-suffix: field names // should not use the _name suffix unless the field would be ambiguous without // it. Instance string `json:"instance,omitempty"` // ProjectId: Required. The project_id of the cloud project that the Insight // data comes from. ProjectId string `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. The schema of SqlServer workloads validation related data.
func (SqlserverValidation) MarshalJSON ¶ added in v0.123.0
func (s SqlserverValidation) MarshalJSON() ([]byte, error)
type SqlserverValidationDetails ¶ added in v0.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 and values.
func (SqlserverValidationDetails) MarshalJSON ¶ added in v0.130.0
func (s SqlserverValidationDetails) MarshalJSON() ([]byte, error)
type SqlserverValidationValidationDetail ¶ added in v0.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. Type string `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 Sqlserver validation metrics.
func (SqlserverValidationValidationDetail) MarshalJSON ¶ added in v0.123.0
func (s SqlserverValidationValidationDetail) MarshalJSON() ([]byte, error)
type SqlserverWorkload ¶ added in v0.166.0
type SqlserverWorkload struct { // Ags: Output only. The availability groups for sqlserver Ags []*AvailabilityGroup `json:"ags,omitempty"` // Cluster: Output only. The cluster for sqlserver Cluster *Cluster `json:"cluster,omitempty"` // Databases: Output only. The databases for sqlserver Databases []*Database `json:"databases,omitempty"` // LoadBalancerServer: Output only. The load balancer for sqlserver LoadBalancerServer *LoadBalancerServer `json:"loadBalancerServer,omitempty"` // ForceSendFields is a list of field names (e.g. "Ags") 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. "Ags") 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:"-"` }
SqlserverWorkload: The body of sqlserver workload
func (SqlserverWorkload) MarshalJSON ¶ added in v0.166.0
func (s SqlserverWorkload) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a common // set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in English. Any // user-facing error message should be localized and sent in the // google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. 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 for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (Status) MarshalJSON ¶
type Summary ¶ added in v0.212.0
type Summary struct { // Failures: Output only. Number of failures Failures int64 `json:"failures,omitempty,string"` // NewFailures: Output only. Number of new failures compared to the previous // execution NewFailures int64 `json:"newFailures,omitempty,string"` // NewFixes: Output only. Number of new fixes compared to the previous // execution NewFixes int64 `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) MarshalJSON ¶ added in v0.212.0
type ThreeTierWorkload ¶ added in v0.166.0
type ThreeTierWorkload struct { // ApiLayer: Output only. The API layer for three tier workload ApiLayer *APILayerServer `json:"apiLayer,omitempty"` // Backend: Output only. The backend for three tier workload Backend *BackendServer `json:"backend,omitempty"` // Endpoint: Output only. the workload endpoint Endpoint string `json:"endpoint,omitempty"` // Frontend: Output only. The frontend for three tier workload Frontend *FrontEndServer `json:"frontend,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiLayer") 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. "ApiLayer") 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:"-"` }
ThreeTierWorkload: The body of three tier workload
func (ThreeTierWorkload) MarshalJSON ¶ added in v0.166.0
func (s ThreeTierWorkload) MarshalJSON() ([]byte, error)
type TorsoValidation ¶ added in v0.212.0
type TorsoValidation struct { // AgentVersion: Required. agent_version lists the version of the agent that // collected this data. AgentVersion string `json:"agentVersion,omitempty"` // InstanceName: Required. instance_name lists the human readable name of the // instance that the data comes from. InstanceName string `json:"instanceName,omitempty"` // ProjectId: Required. project_id lists the human readable cloud project that // the data comes from. ProjectId string `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. WorkloadType string `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) MarshalJSON ¶ added in v0.212.0
func (s TorsoValidation) MarshalJSON() ([]byte, error)
type UpcomingMaintenanceEvent ¶ added in v0.223.0
type UpcomingMaintenanceEvent struct { // EndTime: Optional. End time EndTime string `json:"endTime,omitempty"` // MaintenanceStatus: Optional. Maintenance status MaintenanceStatus string `json:"maintenanceStatus,omitempty"` // StartTime: Optional. Start time StartTime string `json:"startTime,omitempty"` // Type: Optional. Type Type string `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) MarshalJSON ¶ added in v0.223.0
func (s UpcomingMaintenanceEvent) MarshalJSON() ([]byte, error)
type ViolationDetails ¶ added in v0.118.0
type ViolationDetails struct { // Asset: The name of the asset. Asset string `json:"asset,omitempty"` // Observed: Details of the violation. Observed map[string]string `json:"observed,omitempty"` // ServiceAccount: The service account associated with the resource. ServiceAccount string `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) MarshalJSON ¶ added in v0.118.0
func (s ViolationDetails) MarshalJSON() ([]byte, error)
type WorkloadProfile ¶ added in v0.166.0
type WorkloadProfile struct { // Application: Optional. The application layer Application *Layer `json:"application,omitempty"` // Ascs: Optional. The ascs layer Ascs *Layer `json:"ascs,omitempty"` // Database: Optional. The database layer Database *Layer `json:"database,omitempty"` // Labels: Optional. such as name, description, version. More example can be // found in deployment Labels map[string]string `json:"labels,omitempty"` // Name: Identifier. name of resource names have the form // 'projects/{project_id}/workloads/{workload_id}' Name string `json:"name,omitempty"` // RefreshedTime: Required. time when the workload data was refreshed RefreshedTime string `json:"refreshedTime,omitempty"` // SapWorkload: The sap workload content SapWorkload *SapWorkload `json:"sapWorkload,omitempty"` // SqlserverWorkload: The sqlserver workload content SqlserverWorkload *SqlserverWorkload `json:"sqlserverWorkload,omitempty"` // State: Output only. [output only] the current state if a a workload // // Possible values: // "STATE_UNSPECIFIED" - unspecified // "ACTIVE" - ACTIVE state // "DEPLOYING" - workload is in Deploying state // "DESTROYING" - The workload is in Destroying state // "MAINTENANCE" - The Workload is undermaintance State string `json:"state,omitempty"` // ThreeTierWorkload: The 3 tier web app workload content ThreeTierWorkload *ThreeTierWorkload `json:"threeTierWorkload,omitempty"` // WorkloadType: Required. The type of the workload // // Possible values: // "WORKLOAD_TYPE_UNSPECIFIED" - unspecified workload type // "S4_HANA" - running sap workload s4/hana // "SQL_SERVER" - running sqlserver workload // "THREE_TIER_WEB_APP" - running 3 tier web app workload WorkloadType string `json:"workloadType,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
WorkloadProfile: workload resource
func (WorkloadProfile) MarshalJSON ¶ added in v0.166.0
func (s WorkloadProfile) MarshalJSON() ([]byte, error)
type WorkloadProfileHealth ¶ added in v0.223.0
type WorkloadProfileHealth struct { // CheckTime: The time when the health check was performed. CheckTime string `json:"checkTime,omitempty"` // ComponentHealthes: The detailed condition reports of each component. ComponentHealthes []*ComponentHealth `json:"componentHealthes,omitempty"` // State: Output only. The health state of the workload. // // Possible values: // "HEALTH_STATE_UNSPECIFIED" - Unspecified // "HEALTHY" - healthy workload // "UNHEALTHY" - unhealthy workload // "CRITICAL" - has critical issues // "UNSUPPORTED" - unsupported State string `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. "CheckTime") 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. "CheckTime") 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:"-"` }
WorkloadProfileHealth: WorkloadProfileHealth contains the detailed health check of workload.
func (WorkloadProfileHealth) MarshalJSON ¶ added in v0.223.0
func (s WorkloadProfileHealth) MarshalJSON() ([]byte, error)
type WriteInsightRequest ¶
type WriteInsightRequest struct { // AgentVersion: Optional. The agent version collected this data point. AgentVersion string `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). RequestId string `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 (s WriteInsightRequest) MarshalJSON() ([]byte, error)
type WriteInsightResponse ¶
type WriteInsightResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
WriteInsightResponse: The response for write insights request.