recommender
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package recommender provides access to the Recommender API.
For product documentation, see:https://cloud.google.com/recommender/docs/
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/recommender/v1beta1"...ctx := context.Background()recommenderService, err := recommender.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
recommenderService, err := recommender.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)recommenderService, err := recommender.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type BillingAccountsLocationsInsightTypesGetConfigCall
- func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesGetConfigCall
- func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error)
- func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesGetConfigCall
- func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Header() http.Header
- func (c *BillingAccountsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsInsightTypesGetConfigCall
- type BillingAccountsLocationsInsightTypesInsightsGetCall
- func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesInsightsGetCall
- func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsGetCall
- func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Header() http.Header
- func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsInsightTypesInsightsGetCall
- type BillingAccountsLocationsInsightTypesInsightsListCall
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesInsightsListCall
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse, error)
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsListCall
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Filter(filter string) *BillingAccountsLocationsInsightTypesInsightsListCall
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Header() http.Header
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsInsightTypesInsightsListCall
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *BillingAccountsLocationsInsightTypesInsightsListCall
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *BillingAccountsLocationsInsightTypesInsightsListCall
- func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, ...) error
- type BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
- type BillingAccountsLocationsInsightTypesInsightsService
- func (r *BillingAccountsLocationsInsightTypesInsightsService) Get(name string) *BillingAccountsLocationsInsightTypesInsightsGetCall
- func (r *BillingAccountsLocationsInsightTypesInsightsService) List(parent string) *BillingAccountsLocationsInsightTypesInsightsListCall
- func (r *BillingAccountsLocationsInsightTypesInsightsService) MarkAccepted(name string, ...) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
- type BillingAccountsLocationsInsightTypesService
- type BillingAccountsLocationsInsightTypesUpdateConfigCall
- func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesUpdateConfigCall
- func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error)
- func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesUpdateConfigCall
- func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Header() http.Header
- func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMask string) *BillingAccountsLocationsInsightTypesUpdateConfigCall
- func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnly bool) *BillingAccountsLocationsInsightTypesUpdateConfigCall
- type BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) Context(ctx context.Context) *BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error)
- func (c *BillingAccountsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) Filter(filter string) *BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) Header() http.Header
- func (c *BillingAccountsLocationsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) PageSize(pageSize int64) *BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) PageToken(pageToken string) *BillingAccountsLocationsListCall
- func (c *BillingAccountsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error
- type BillingAccountsLocationsRecommendersGetConfigCall
- func (c *BillingAccountsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersGetConfigCall
- func (c *BillingAccountsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error)
- func (c *BillingAccountsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersGetConfigCall
- func (c *BillingAccountsLocationsRecommendersGetConfigCall) Header() http.Header
- func (c *BillingAccountsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsRecommendersGetConfigCall
- type BillingAccountsLocationsRecommendersRecommendationsGetCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsGetCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsGetCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Header() http.Header
- func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsRecommendersRecommendationsGetCall
- type BillingAccountsLocationsRecommendersRecommendationsListCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsListCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse, error)
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsListCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Filter(filter string) *BillingAccountsLocationsRecommendersRecommendationsListCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Header() http.Header
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsRecommendersRecommendationsListCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *BillingAccountsLocationsRecommendersRecommendationsListCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *BillingAccountsLocationsRecommendersRecommendationsListCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, ...) error
- type BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
- type BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
- type BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
- type BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
- type BillingAccountsLocationsRecommendersRecommendationsService
- func (r *BillingAccountsLocationsRecommendersRecommendationsService) Get(name string) *BillingAccountsLocationsRecommendersRecommendationsGetCall
- func (r *BillingAccountsLocationsRecommendersRecommendationsService) List(parent string) *BillingAccountsLocationsRecommendersRecommendationsListCall
- func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkClaimed(name string, ...) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
- func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkDismissed(name string, ...) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
- func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkFailed(name string, ...) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
- func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkSucceeded(name string, ...) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
- type BillingAccountsLocationsRecommendersService
- type BillingAccountsLocationsRecommendersUpdateConfigCall
- func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersUpdateConfigCall
- func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error)
- func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersUpdateConfigCall
- func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Header() http.Header
- func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMask string) *BillingAccountsLocationsRecommendersUpdateConfigCall
- func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnly bool) *BillingAccountsLocationsRecommendersUpdateConfigCall
- type BillingAccountsLocationsService
- type BillingAccountsService
- type FoldersLocationsInsightTypesInsightsGetCall
- func (c *FoldersLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsGetCall
- func (c *FoldersLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *FoldersLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsGetCall
- func (c *FoldersLocationsInsightTypesInsightsGetCall) Header() http.Header
- func (c *FoldersLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsInsightTypesInsightsGetCall
- type FoldersLocationsInsightTypesInsightsListCall
- func (c *FoldersLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsListCall
- func (c *FoldersLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse, error)
- func (c *FoldersLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsListCall
- func (c *FoldersLocationsInsightTypesInsightsListCall) Filter(filter string) *FoldersLocationsInsightTypesInsightsListCall
- func (c *FoldersLocationsInsightTypesInsightsListCall) Header() http.Header
- func (c *FoldersLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *FoldersLocationsInsightTypesInsightsListCall
- func (c *FoldersLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *FoldersLocationsInsightTypesInsightsListCall
- func (c *FoldersLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *FoldersLocationsInsightTypesInsightsListCall
- func (c *FoldersLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, ...) error
- type FoldersLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
- type FoldersLocationsInsightTypesInsightsService
- func (r *FoldersLocationsInsightTypesInsightsService) Get(name string) *FoldersLocationsInsightTypesInsightsGetCall
- func (r *FoldersLocationsInsightTypesInsightsService) List(parent string) *FoldersLocationsInsightTypesInsightsListCall
- func (r *FoldersLocationsInsightTypesInsightsService) MarkAccepted(name string, ...) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
- type FoldersLocationsInsightTypesService
- type FoldersLocationsListCall
- func (c *FoldersLocationsListCall) Context(ctx context.Context) *FoldersLocationsListCall
- func (c *FoldersLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error)
- func (c *FoldersLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *FoldersLocationsListCall
- func (c *FoldersLocationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsListCall
- func (c *FoldersLocationsListCall) Filter(filter string) *FoldersLocationsListCall
- func (c *FoldersLocationsListCall) Header() http.Header
- func (c *FoldersLocationsListCall) IfNoneMatch(entityTag string) *FoldersLocationsListCall
- func (c *FoldersLocationsListCall) PageSize(pageSize int64) *FoldersLocationsListCall
- func (c *FoldersLocationsListCall) PageToken(pageToken string) *FoldersLocationsListCall
- func (c *FoldersLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error
- type FoldersLocationsRecommendersRecommendationsGetCall
- func (c *FoldersLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsGetCall
- func (c *FoldersLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *FoldersLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsGetCall
- func (c *FoldersLocationsRecommendersRecommendationsGetCall) Header() http.Header
- func (c *FoldersLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsRecommendersRecommendationsGetCall
- type FoldersLocationsRecommendersRecommendationsListCall
- func (c *FoldersLocationsRecommendersRecommendationsListCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsListCall
- func (c *FoldersLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse, error)
- func (c *FoldersLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsListCall
- func (c *FoldersLocationsRecommendersRecommendationsListCall) Filter(filter string) *FoldersLocationsRecommendersRecommendationsListCall
- func (c *FoldersLocationsRecommendersRecommendationsListCall) Header() http.Header
- func (c *FoldersLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *FoldersLocationsRecommendersRecommendationsListCall
- func (c *FoldersLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *FoldersLocationsRecommendersRecommendationsListCall
- func (c *FoldersLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *FoldersLocationsRecommendersRecommendationsListCall
- func (c *FoldersLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, ...) error
- type FoldersLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
- type FoldersLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
- type FoldersLocationsRecommendersRecommendationsMarkFailedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
- type FoldersLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
- type FoldersLocationsRecommendersRecommendationsService
- func (r *FoldersLocationsRecommendersRecommendationsService) Get(name string) *FoldersLocationsRecommendersRecommendationsGetCall
- func (r *FoldersLocationsRecommendersRecommendationsService) List(parent string) *FoldersLocationsRecommendersRecommendationsListCall
- func (r *FoldersLocationsRecommendersRecommendationsService) MarkClaimed(name string, ...) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
- func (r *FoldersLocationsRecommendersRecommendationsService) MarkDismissed(name string, ...) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
- func (r *FoldersLocationsRecommendersRecommendationsService) MarkFailed(name string, ...) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
- func (r *FoldersLocationsRecommendersRecommendationsService) MarkSucceeded(name string, ...) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
- type FoldersLocationsRecommendersService
- type FoldersLocationsService
- type FoldersService
- type GoogleCloudLocationListLocationsResponse
- type GoogleCloudLocationLocation
- type GoogleCloudRecommenderV1beta1CostProjection
- type GoogleCloudRecommenderV1beta1Impact
- type GoogleCloudRecommenderV1beta1Insight
- type GoogleCloudRecommenderV1beta1InsightRecommendationReference
- type GoogleCloudRecommenderV1beta1InsightStateInfo
- type GoogleCloudRecommenderV1beta1InsightType
- type GoogleCloudRecommenderV1beta1InsightTypeConfig
- type GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig
- type GoogleCloudRecommenderV1beta1ListInsightTypesResponse
- type GoogleCloudRecommenderV1beta1ListInsightsResponse
- type GoogleCloudRecommenderV1beta1ListRecommendationsResponse
- type GoogleCloudRecommenderV1beta1ListRecommendersResponse
- type GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest
- type GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest
- type GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest
- type GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest
- type GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest
- type GoogleCloudRecommenderV1beta1Operation
- type GoogleCloudRecommenderV1beta1OperationGroup
- type GoogleCloudRecommenderV1beta1Recommendation
- type GoogleCloudRecommenderV1beta1RecommendationContent
- type GoogleCloudRecommenderV1beta1RecommendationInsightReference
- type GoogleCloudRecommenderV1beta1RecommendationStateInfo
- type GoogleCloudRecommenderV1beta1RecommenderConfig
- type GoogleCloudRecommenderV1beta1RecommenderGenerationConfig
- type GoogleCloudRecommenderV1beta1RecommenderType
- type GoogleCloudRecommenderV1beta1ReliabilityProjection
- type GoogleCloudRecommenderV1beta1SecurityProjection
- type GoogleCloudRecommenderV1beta1SustainabilityProjection
- type GoogleCloudRecommenderV1beta1ValueMatcher
- type GoogleTypeMoney
- type InsightTypesListCall
- func (c *InsightTypesListCall) Context(ctx context.Context) *InsightTypesListCall
- func (c *InsightTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightTypesResponse, error)
- func (c *InsightTypesListCall) Fields(s ...googleapi.Field) *InsightTypesListCall
- func (c *InsightTypesListCall) Header() http.Header
- func (c *InsightTypesListCall) IfNoneMatch(entityTag string) *InsightTypesListCall
- func (c *InsightTypesListCall) PageSize(pageSize int64) *InsightTypesListCall
- func (c *InsightTypesListCall) PageToken(pageToken string) *InsightTypesListCall
- func (c *InsightTypesListCall) Pages(ctx context.Context, ...) error
- type InsightTypesService
- type OrganizationsLocationsInsightTypesGetConfigCall
- func (c *OrganizationsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesGetConfigCall
- func (c *OrganizationsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error)
- func (c *OrganizationsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesGetConfigCall
- func (c *OrganizationsLocationsInsightTypesGetConfigCall) Header() http.Header
- func (c *OrganizationsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesGetConfigCall
- type OrganizationsLocationsInsightTypesInsightsGetCall
- func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesInsightsGetCall
- func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsGetCall
- func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Header() http.Header
- func (c *OrganizationsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesInsightsGetCall
- type OrganizationsLocationsInsightTypesInsightsListCall
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesInsightsListCall
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse, error)
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsListCall
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) Filter(filter string) *OrganizationsLocationsInsightTypesInsightsListCall
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) Header() http.Header
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesInsightsListCall
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *OrganizationsLocationsInsightTypesInsightsListCall
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *OrganizationsLocationsInsightTypesInsightsListCall
- func (c *OrganizationsLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, ...) error
- type OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
- type OrganizationsLocationsInsightTypesInsightsService
- func (r *OrganizationsLocationsInsightTypesInsightsService) Get(name string) *OrganizationsLocationsInsightTypesInsightsGetCall
- func (r *OrganizationsLocationsInsightTypesInsightsService) List(parent string) *OrganizationsLocationsInsightTypesInsightsListCall
- func (r *OrganizationsLocationsInsightTypesInsightsService) MarkAccepted(name string, ...) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
- type OrganizationsLocationsInsightTypesService
- type OrganizationsLocationsInsightTypesUpdateConfigCall
- func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesUpdateConfigCall
- func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error)
- func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesUpdateConfigCall
- func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Header() http.Header
- func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsInsightTypesUpdateConfigCall
- func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsInsightTypesUpdateConfigCall
- type OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) Context(ctx context.Context) *OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error)
- func (c *OrganizationsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) Filter(filter string) *OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) Header() http.Header
- func (c *OrganizationsLocationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) PageSize(pageSize int64) *OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) PageToken(pageToken string) *OrganizationsLocationsListCall
- func (c *OrganizationsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error
- type OrganizationsLocationsRecommendersGetConfigCall
- func (c *OrganizationsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersGetConfigCall
- func (c *OrganizationsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error)
- func (c *OrganizationsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersGetConfigCall
- func (c *OrganizationsLocationsRecommendersGetConfigCall) Header() http.Header
- func (c *OrganizationsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersGetConfigCall
- type OrganizationsLocationsRecommendersRecommendationsGetCall
- func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsGetCall
- func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsGetCall
- func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Header() http.Header
- func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersRecommendationsGetCall
- type OrganizationsLocationsRecommendersRecommendationsListCall
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsListCall
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse, error)
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsListCall
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Filter(filter string) *OrganizationsLocationsRecommendersRecommendationsListCall
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Header() http.Header
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersRecommendationsListCall
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *OrganizationsLocationsRecommendersRecommendationsListCall
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *OrganizationsLocationsRecommendersRecommendationsListCall
- func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, ...) error
- type OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
- type OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
- type OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
- type OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
- type OrganizationsLocationsRecommendersRecommendationsService
- func (r *OrganizationsLocationsRecommendersRecommendationsService) Get(name string) *OrganizationsLocationsRecommendersRecommendationsGetCall
- func (r *OrganizationsLocationsRecommendersRecommendationsService) List(parent string) *OrganizationsLocationsRecommendersRecommendationsListCall
- func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkClaimed(name string, ...) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
- func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkDismissed(name string, ...) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
- func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkFailed(name string, ...) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
- func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkSucceeded(name string, ...) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
- type OrganizationsLocationsRecommendersService
- type OrganizationsLocationsRecommendersUpdateConfigCall
- func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersUpdateConfigCall
- func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error)
- func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersUpdateConfigCall
- func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Header() http.Header
- func (c *OrganizationsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsRecommendersUpdateConfigCall
- func (c *OrganizationsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsRecommendersUpdateConfigCall
- type OrganizationsLocationsService
- type OrganizationsService
- type ProjectsLocationsInsightTypesGetConfigCall
- func (c *ProjectsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesGetConfigCall
- func (c *ProjectsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error)
- func (c *ProjectsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesGetConfigCall
- func (c *ProjectsLocationsInsightTypesGetConfigCall) Header() http.Header
- func (c *ProjectsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsInsightTypesGetConfigCall
- type ProjectsLocationsInsightTypesInsightsGetCall
- func (c *ProjectsLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesInsightsGetCall
- func (c *ProjectsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *ProjectsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsGetCall
- func (c *ProjectsLocationsInsightTypesInsightsGetCall) Header() http.Header
- func (c *ProjectsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInsightTypesInsightsGetCall
- type ProjectsLocationsInsightTypesInsightsListCall
- func (c *ProjectsLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesInsightsListCall
- func (c *ProjectsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse, error)
- func (c *ProjectsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsListCall
- func (c *ProjectsLocationsInsightTypesInsightsListCall) Filter(filter string) *ProjectsLocationsInsightTypesInsightsListCall
- func (c *ProjectsLocationsInsightTypesInsightsListCall) Header() http.Header
- func (c *ProjectsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInsightTypesInsightsListCall
- func (c *ProjectsLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *ProjectsLocationsInsightTypesInsightsListCall
- func (c *ProjectsLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *ProjectsLocationsInsightTypesInsightsListCall
- func (c *ProjectsLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, ...) error
- type ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error)
- func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
- func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
- type ProjectsLocationsInsightTypesInsightsService
- func (r *ProjectsLocationsInsightTypesInsightsService) Get(name string) *ProjectsLocationsInsightTypesInsightsGetCall
- func (r *ProjectsLocationsInsightTypesInsightsService) List(parent string) *ProjectsLocationsInsightTypesInsightsListCall
- func (r *ProjectsLocationsInsightTypesInsightsService) MarkAccepted(name string, ...) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
- type ProjectsLocationsInsightTypesService
- type ProjectsLocationsInsightTypesUpdateConfigCall
- func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesUpdateConfigCall
- func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error)
- func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesUpdateConfigCall
- func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Header() http.Header
- func (c *ProjectsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMask string) *ProjectsLocationsInsightTypesUpdateConfigCall
- func (c *ProjectsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnly bool) *ProjectsLocationsInsightTypesUpdateConfigCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- 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(*GoogleCloudLocationListLocationsResponse) error) error
- type ProjectsLocationsRecommendersGetConfigCall
- func (c *ProjectsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *ProjectsLocationsRecommendersGetConfigCall
- func (c *ProjectsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error)
- func (c *ProjectsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersGetConfigCall
- func (c *ProjectsLocationsRecommendersGetConfigCall) Header() http.Header
- func (c *ProjectsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsRecommendersGetConfigCall
- type ProjectsLocationsRecommendersRecommendationsGetCall
- func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *ProjectsLocationsRecommendersRecommendationsGetCall
- func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsGetCall
- func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Header() http.Header
- func (c *ProjectsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRecommendersRecommendationsGetCall
- type ProjectsLocationsRecommendersRecommendationsListCall
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) Context(ctx context.Context) *ProjectsLocationsRecommendersRecommendationsListCall
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse, error)
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsListCall
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) Filter(filter string) *ProjectsLocationsRecommendersRecommendationsListCall
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) Header() http.Header
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRecommendersRecommendationsListCall
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *ProjectsLocationsRecommendersRecommendationsListCall
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *ProjectsLocationsRecommendersRecommendationsListCall
- func (c *ProjectsLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, ...) error
- type ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.Context) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
- type ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
- type ProjectsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.Context) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
- type ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.Context) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation, error)
- func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
- func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
- type ProjectsLocationsRecommendersRecommendationsService
- func (r *ProjectsLocationsRecommendersRecommendationsService) Get(name string) *ProjectsLocationsRecommendersRecommendationsGetCall
- func (r *ProjectsLocationsRecommendersRecommendationsService) List(parent string) *ProjectsLocationsRecommendersRecommendationsListCall
- func (r *ProjectsLocationsRecommendersRecommendationsService) MarkClaimed(name string, ...) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
- func (r *ProjectsLocationsRecommendersRecommendationsService) MarkDismissed(name string, ...) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
- func (r *ProjectsLocationsRecommendersRecommendationsService) MarkFailed(name string, ...) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
- func (r *ProjectsLocationsRecommendersRecommendationsService) MarkSucceeded(name string, ...) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
- type ProjectsLocationsRecommendersService
- type ProjectsLocationsRecommendersUpdateConfigCall
- func (c *ProjectsLocationsRecommendersUpdateConfigCall) Context(ctx context.Context) *ProjectsLocationsRecommendersUpdateConfigCall
- func (c *ProjectsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error)
- func (c *ProjectsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersUpdateConfigCall
- func (c *ProjectsLocationsRecommendersUpdateConfigCall) Header() http.Header
- func (c *ProjectsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMask string) *ProjectsLocationsRecommendersUpdateConfigCall
- func (c *ProjectsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnly bool) *ProjectsLocationsRecommendersUpdateConfigCall
- type ProjectsLocationsService
- type ProjectsService
- type RecommendersListCall
- func (c *RecommendersListCall) Context(ctx context.Context) *RecommendersListCall
- func (c *RecommendersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendersResponse, error)
- func (c *RecommendersListCall) Fields(s ...googleapi.Field) *RecommendersListCall
- func (c *RecommendersListCall) Header() http.Header
- func (c *RecommendersListCall) IfNoneMatch(entityTag string) *RecommendersListCall
- func (c *RecommendersListCall) PageSize(pageSize int64) *RecommendersListCall
- func (c *RecommendersListCall) PageToken(pageToken string) *RecommendersListCall
- func (c *RecommendersListCall) Pages(ctx context.Context, ...) error
- type RecommendersService
- type Service
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¶
typeBillingAccountsLocationsInsightTypesGetConfigCall¶added inv0.98.0
type BillingAccountsLocationsInsightTypesGetConfigCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsInsightTypesGetConfigCall)Context¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Context(ctxcontext.Context) *BillingAccountsLocationsInsightTypesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesGetConfigCall)Do¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig,error)
Do executes the "recommender.billingAccounts.locations.insightTypes.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesGetConfigCall)Fields¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsInsightTypesGetConfigCall)Header¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsInsightTypesGetConfigCall)IfNoneMatch¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTagstring) *BillingAccountsLocationsInsightTypesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeBillingAccountsLocationsInsightTypesInsightsGetCall¶added inv0.37.0
type BillingAccountsLocationsInsightTypesInsightsGetCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Context(ctxcontext.Context) *BillingAccountsLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.billingAccounts.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall)IfNoneMatch¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTagstring) *BillingAccountsLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeBillingAccountsLocationsInsightTypesInsightsListCall¶added inv0.37.0
type BillingAccountsLocationsInsightTypesInsightsListCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsInsightTypesInsightsListCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Context(ctxcontext.Context) *BillingAccountsLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesInsightsListCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse,error)
Do executes the "recommender.billingAccounts.locations.insightTypes.insights.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListInsightsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesInsightsListCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsInsightTypesInsightsListCall)Filter¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Filter(filterstring) *BillingAccountsLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)
func (*BillingAccountsLocationsInsightTypesInsightsListCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsInsightTypesInsightsListCall)IfNoneMatch¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTagstring) *BillingAccountsLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*BillingAccountsLocationsInsightTypesInsightsListCall)PageSize¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) PageSize(pageSizeint64) *BillingAccountsLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*BillingAccountsLocationsInsightTypesInsightsListCall)PageToken¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) PageToken(pageTokenstring) *BillingAccountsLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*BillingAccountsLocationsInsightTypesInsightsListCall)Pages¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListInsightsResponse)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.
typeBillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall¶added inv0.37.0
type BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctxcontext.Context) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.billingAccounts.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeBillingAccountsLocationsInsightTypesInsightsService¶added inv0.37.0
type BillingAccountsLocationsInsightTypesInsightsService struct {// contains filtered or unexported fields}funcNewBillingAccountsLocationsInsightTypesInsightsService¶added inv0.37.0
func NewBillingAccountsLocationsInsightTypesInsightsService(s *Service) *BillingAccountsLocationsInsightTypesInsightsService
func (*BillingAccountsLocationsInsightTypesInsightsService)Get¶added inv0.37.0
func (r *BillingAccountsLocationsInsightTypesInsightsService) Get(namestring) *BillingAccountsLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.
- name: Name of the insight.
func (*BillingAccountsLocationsInsightTypesInsightsService)List¶added inv0.37.0
func (r *BillingAccountsLocationsInsightTypesInsightsService) List(parentstring) *BillingAccountsLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.
func (*BillingAccountsLocationsInsightTypesInsightsService)MarkAccepted¶added inv0.37.0
func (r *BillingAccountsLocationsInsightTypesInsightsService) MarkAccepted(namestring, googlecloudrecommenderv1beta1markinsightacceptedrequest *GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
typeBillingAccountsLocationsInsightTypesService¶added inv0.37.0
type BillingAccountsLocationsInsightTypesService struct {Insights *BillingAccountsLocationsInsightTypesInsightsService// contains filtered or unexported fields}funcNewBillingAccountsLocationsInsightTypesService¶added inv0.37.0
func NewBillingAccountsLocationsInsightTypesService(s *Service) *BillingAccountsLocationsInsightTypesService
func (*BillingAccountsLocationsInsightTypesService)GetConfig¶added inv0.98.0
func (r *BillingAccountsLocationsInsightTypesService) GetConfig(namestring) *BillingAccountsLocationsInsightTypesGetConfigCall
GetConfig: Gets the requested InsightTypeConfig. There is only one instanceof the config for each InsightType.
- name: Name of the InsightTypeConfig to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`.
func (*BillingAccountsLocationsInsightTypesService)UpdateConfig¶added inv0.98.0
func (r *BillingAccountsLocationsInsightTypesService) UpdateConfig(namestring, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *BillingAccountsLocationsInsightTypesUpdateConfigCall
UpdateConfig: Updates an InsightTypeConfig change. This will create a newrevision of the config.
- name: Identifier. Name of insight type config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config.
typeBillingAccountsLocationsInsightTypesUpdateConfigCall¶added inv0.98.0
type BillingAccountsLocationsInsightTypesUpdateConfigCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Context¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Context(ctxcontext.Context) *BillingAccountsLocationsInsightTypesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Do¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig,error)
Do executes the "recommender.billingAccounts.locations.insightTypes.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Fields¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)Header¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)UpdateMask¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMaskstring) *BillingAccountsLocationsInsightTypesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall)ValidateOnly¶added inv0.98.0
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnlybool) *BillingAccountsLocationsInsightTypesUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.
typeBillingAccountsLocationsListCall¶added inv0.156.0
type BillingAccountsLocationsListCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsListCall)Context¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) Context(ctxcontext.Context) *BillingAccountsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsListCall)Do¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse,error)
Do executes the "recommender.billingAccounts.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsListCall)ExtraLocationTypes¶added inv0.229.0
func (c *BillingAccountsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *BillingAccountsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.
func (*BillingAccountsLocationsListCall)Fields¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsListCall)Filter¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) Filter(filterstring) *BillingAccountsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).
func (*BillingAccountsLocationsListCall)Header¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsListCall)IfNoneMatch¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) IfNoneMatch(entityTagstring) *BillingAccountsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*BillingAccountsLocationsListCall)PageSize¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) PageSize(pageSizeint64) *BillingAccountsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*BillingAccountsLocationsListCall)PageToken¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) PageToken(pageTokenstring) *BillingAccountsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*BillingAccountsLocationsListCall)Pages¶added inv0.156.0
func (c *BillingAccountsLocationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudLocationListLocationsResponse)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.
typeBillingAccountsLocationsRecommendersGetConfigCall¶added inv0.98.0
type BillingAccountsLocationsRecommendersGetConfigCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersGetConfigCall)Context¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersGetConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersGetConfigCall)Do¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig,error)
Do executes the "recommender.billingAccounts.locations.recommenders.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersGetConfigCall)Fields¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersGetConfigCall)Header¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsRecommendersGetConfigCall)IfNoneMatch¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTagstring) *BillingAccountsLocationsRecommendersGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeBillingAccountsLocationsRecommendersRecommendationsGetCall¶added inv0.37.0
type BillingAccountsLocationsRecommendersRecommendationsGetCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersRecommendationsGetCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall)IfNoneMatch¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTagstring) *BillingAccountsLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeBillingAccountsLocationsRecommendersRecommendationsListCall¶added inv0.37.0
type BillingAccountsLocationsRecommendersRecommendationsListCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersRecommendationsListCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse,error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Filter¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Filter(filterstring) *BillingAccountsLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)IfNoneMatch¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTagstring) *BillingAccountsLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)PageSize¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) PageSize(pageSizeint64) *BillingAccountsLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)PageToken¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) PageToken(pageTokenstring) *BillingAccountsLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall)Pages¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListRecommendationsResponse)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.
typeBillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall¶added inv0.37.0
type BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeBillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall¶added inv0.107.0
type BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Context¶added inv0.107.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Do¶added inv0.107.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Fields¶added inv0.107.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall)Header¶added inv0.107.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeBillingAccountsLocationsRecommendersRecommendationsMarkFailedCall¶added inv0.37.0
type BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeBillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall¶added inv0.37.0
type BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Context¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Do¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Fields¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall)Header¶added inv0.37.0
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeBillingAccountsLocationsRecommendersRecommendationsService¶added inv0.37.0
type BillingAccountsLocationsRecommendersRecommendationsService struct {// contains filtered or unexported fields}funcNewBillingAccountsLocationsRecommendersRecommendationsService¶added inv0.37.0
func NewBillingAccountsLocationsRecommendersRecommendationsService(s *Service) *BillingAccountsLocationsRecommendersRecommendationsService
func (*BillingAccountsLocationsRecommendersRecommendationsService)Get¶added inv0.37.0
func (r *BillingAccountsLocationsRecommendersRecommendationsService) Get(namestring) *BillingAccountsLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService)List¶added inv0.37.0
func (r *BillingAccountsLocationsRecommendersRecommendationsService) List(parentstring) *BillingAccountsLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.
func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkClaimed¶added inv0.37.0
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkClaimed(namestring, googlecloudrecommenderv1beta1markrecommendationclaimedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkDismissed¶added inv0.107.0
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkDismissed(namestring, googlecloudrecommenderv1beta1markrecommendationdismissedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkFailed¶added inv0.37.0
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkFailed(namestring, googlecloudrecommenderv1beta1markrecommendationfailedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService)MarkSucceeded¶added inv0.37.0
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkSucceeded(namestring, googlecloudrecommenderv1beta1markrecommendationsucceededrequest *GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
typeBillingAccountsLocationsRecommendersService¶added inv0.37.0
type BillingAccountsLocationsRecommendersService struct {Recommendations *BillingAccountsLocationsRecommendersRecommendationsService// contains filtered or unexported fields}funcNewBillingAccountsLocationsRecommendersService¶added inv0.37.0
func NewBillingAccountsLocationsRecommendersService(s *Service) *BillingAccountsLocationsRecommendersService
func (*BillingAccountsLocationsRecommendersService)GetConfig¶added inv0.98.0
func (r *BillingAccountsLocationsRecommendersService) GetConfig(namestring) *BillingAccountsLocationsRecommendersGetConfigCall
GetConfig: Gets the requested Recommender Config. There is only one instanceof the config for each Recommender.
- name: Name of the Recommendation Config to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`.
func (*BillingAccountsLocationsRecommendersService)UpdateConfig¶added inv0.98.0
func (r *BillingAccountsLocationsRecommendersService) UpdateConfig(namestring, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *BillingAccountsLocationsRecommendersUpdateConfigCall
UpdateConfig: Updates a Recommender Config. This will create a new revisionof the config.
- name: Identifier. Name of recommender config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config.
typeBillingAccountsLocationsRecommendersUpdateConfigCall¶added inv0.98.0
type BillingAccountsLocationsRecommendersUpdateConfigCall struct {// contains filtered or unexported fields}func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Context¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Context(ctxcontext.Context) *BillingAccountsLocationsRecommendersUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Do¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig,error)
Do executes the "recommender.billingAccounts.locations.recommenders.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Fields¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall)Header¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall)UpdateMask¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMaskstring) *BillingAccountsLocationsRecommendersUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall)ValidateOnly¶added inv0.98.0
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnlybool) *BillingAccountsLocationsRecommendersUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.
typeBillingAccountsLocationsService¶added inv0.37.0
type BillingAccountsLocationsService struct {InsightTypes *BillingAccountsLocationsInsightTypesServiceRecommenders *BillingAccountsLocationsRecommendersService// contains filtered or unexported fields}funcNewBillingAccountsLocationsService¶added inv0.37.0
func NewBillingAccountsLocationsService(s *Service) *BillingAccountsLocationsService
func (*BillingAccountsLocationsService)List¶added inv0.156.0
func (r *BillingAccountsLocationsService) List(namestring) *BillingAccountsLocationsListCall
List: Lists locations with recommendations or insights.
- name: The resource that owns the locations collection, if applicable.
typeBillingAccountsService¶added inv0.37.0
type BillingAccountsService struct {Locations *BillingAccountsLocationsService// contains filtered or unexported fields}funcNewBillingAccountsService¶added inv0.37.0
func NewBillingAccountsService(s *Service) *BillingAccountsService
typeFoldersLocationsInsightTypesInsightsGetCall¶added inv0.37.0
type FoldersLocationsInsightTypesInsightsGetCall struct {// contains filtered or unexported fields}func (*FoldersLocationsInsightTypesInsightsGetCall)Context¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsGetCall) Context(ctxcontext.Context) *FoldersLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsInsightTypesInsightsGetCall)Do¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.folders.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsInsightTypesInsightsGetCall)Fields¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsInsightTypesInsightsGetCall)Header¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsInsightTypesInsightsGetCall)IfNoneMatch¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTagstring) *FoldersLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeFoldersLocationsInsightTypesInsightsListCall¶added inv0.37.0
type FoldersLocationsInsightTypesInsightsListCall struct {// contains filtered or unexported fields}func (*FoldersLocationsInsightTypesInsightsListCall)Context¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) Context(ctxcontext.Context) *FoldersLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsInsightTypesInsightsListCall)Do¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse,error)
Do executes the "recommender.folders.locations.insightTypes.insights.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListInsightsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsInsightTypesInsightsListCall)Fields¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsInsightTypesInsightsListCall)Filter¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) Filter(filterstring) *FoldersLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)
func (*FoldersLocationsInsightTypesInsightsListCall)Header¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsInsightTypesInsightsListCall)IfNoneMatch¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTagstring) *FoldersLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*FoldersLocationsInsightTypesInsightsListCall)PageSize¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) PageSize(pageSizeint64) *FoldersLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*FoldersLocationsInsightTypesInsightsListCall)PageToken¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) PageToken(pageTokenstring) *FoldersLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*FoldersLocationsInsightTypesInsightsListCall)Pages¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListInsightsResponse)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.
typeFoldersLocationsInsightTypesInsightsMarkAcceptedCall¶added inv0.37.0
type FoldersLocationsInsightTypesInsightsMarkAcceptedCall struct {// contains filtered or unexported fields}func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Context¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctxcontext.Context) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Do¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.folders.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Fields¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall)Header¶added inv0.37.0
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeFoldersLocationsInsightTypesInsightsService¶added inv0.37.0
type FoldersLocationsInsightTypesInsightsService struct {// contains filtered or unexported fields}funcNewFoldersLocationsInsightTypesInsightsService¶added inv0.37.0
func NewFoldersLocationsInsightTypesInsightsService(s *Service) *FoldersLocationsInsightTypesInsightsService
func (*FoldersLocationsInsightTypesInsightsService)Get¶added inv0.37.0
func (r *FoldersLocationsInsightTypesInsightsService) Get(namestring) *FoldersLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.
- name: Name of the insight.
func (*FoldersLocationsInsightTypesInsightsService)List¶added inv0.37.0
func (r *FoldersLocationsInsightTypesInsightsService) List(parentstring) *FoldersLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.
func (*FoldersLocationsInsightTypesInsightsService)MarkAccepted¶added inv0.37.0
func (r *FoldersLocationsInsightTypesInsightsService) MarkAccepted(namestring, googlecloudrecommenderv1beta1markinsightacceptedrequest *GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
typeFoldersLocationsInsightTypesService¶added inv0.37.0
type FoldersLocationsInsightTypesService struct {Insights *FoldersLocationsInsightTypesInsightsService// contains filtered or unexported fields}funcNewFoldersLocationsInsightTypesService¶added inv0.37.0
func NewFoldersLocationsInsightTypesService(s *Service) *FoldersLocationsInsightTypesService
typeFoldersLocationsListCall¶added inv0.156.0
type FoldersLocationsListCall struct {// contains filtered or unexported fields}func (*FoldersLocationsListCall)Context¶added inv0.156.0
func (c *FoldersLocationsListCall) Context(ctxcontext.Context) *FoldersLocationsListCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsListCall)Do¶added inv0.156.0
func (c *FoldersLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse,error)
Do executes the "recommender.folders.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsListCall)ExtraLocationTypes¶added inv0.229.0
func (c *FoldersLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *FoldersLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.
func (*FoldersLocationsListCall)Fields¶added inv0.156.0
func (c *FoldersLocationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsListCall)Filter¶added inv0.156.0
func (c *FoldersLocationsListCall) Filter(filterstring) *FoldersLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).
func (*FoldersLocationsListCall)Header¶added inv0.156.0
func (c *FoldersLocationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsListCall)IfNoneMatch¶added inv0.156.0
func (c *FoldersLocationsListCall) IfNoneMatch(entityTagstring) *FoldersLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*FoldersLocationsListCall)PageSize¶added inv0.156.0
func (c *FoldersLocationsListCall) PageSize(pageSizeint64) *FoldersLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*FoldersLocationsListCall)PageToken¶added inv0.156.0
func (c *FoldersLocationsListCall) PageToken(pageTokenstring) *FoldersLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*FoldersLocationsListCall)Pages¶added inv0.156.0
func (c *FoldersLocationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudLocationListLocationsResponse)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.
typeFoldersLocationsRecommendersRecommendationsGetCall¶added inv0.37.0
type FoldersLocationsRecommendersRecommendationsGetCall struct {// contains filtered or unexported fields}func (*FoldersLocationsRecommendersRecommendationsGetCall)Context¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Context(ctxcontext.Context) *FoldersLocationsRecommendersRecommendationsGetCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsGetCall)Do¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.folders.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsGetCall)Fields¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsRecommendersRecommendationsGetCall)Header¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsRecommendersRecommendationsGetCall)IfNoneMatch¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTagstring) *FoldersLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeFoldersLocationsRecommendersRecommendationsListCall¶added inv0.37.0
type FoldersLocationsRecommendersRecommendationsListCall struct {// contains filtered or unexported fields}func (*FoldersLocationsRecommendersRecommendationsListCall)Context¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) Context(ctxcontext.Context) *FoldersLocationsRecommendersRecommendationsListCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsListCall)Do¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse,error)
Do executes the "recommender.folders.locations.recommenders.recommendations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsListCall)Fields¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsRecommendersRecommendationsListCall)Filter¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) Filter(filterstring) *FoldersLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)
func (*FoldersLocationsRecommendersRecommendationsListCall)Header¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsRecommendersRecommendationsListCall)IfNoneMatch¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTagstring) *FoldersLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*FoldersLocationsRecommendersRecommendationsListCall)PageSize¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) PageSize(pageSizeint64) *FoldersLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*FoldersLocationsRecommendersRecommendationsListCall)PageToken¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) PageToken(pageTokenstring) *FoldersLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*FoldersLocationsRecommendersRecommendationsListCall)Pages¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListRecommendationsResponse)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.
typeFoldersLocationsRecommendersRecommendationsMarkClaimedCall¶added inv0.37.0
type FoldersLocationsRecommendersRecommendationsMarkClaimedCall struct {// contains filtered or unexported fields}func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Context¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctxcontext.Context) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Do¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Fields¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall)Header¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeFoldersLocationsRecommendersRecommendationsMarkDismissedCall¶added inv0.107.0
type FoldersLocationsRecommendersRecommendationsMarkDismissedCall struct {// contains filtered or unexported fields}func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Context¶added inv0.107.0
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctxcontext.Context) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Do¶added inv0.107.0
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Fields¶added inv0.107.0
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall)Header¶added inv0.107.0
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeFoldersLocationsRecommendersRecommendationsMarkFailedCall¶added inv0.37.0
type FoldersLocationsRecommendersRecommendationsMarkFailedCall struct {// contains filtered or unexported fields}func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Context¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Context(ctxcontext.Context) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Do¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Fields¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall)Header¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeFoldersLocationsRecommendersRecommendationsMarkSucceededCall¶added inv0.37.0
type FoldersLocationsRecommendersRecommendationsMarkSucceededCall struct {// contains filtered or unexported fields}func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Context¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctxcontext.Context) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Do¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Fields¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall)Header¶added inv0.37.0
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeFoldersLocationsRecommendersRecommendationsService¶added inv0.37.0
type FoldersLocationsRecommendersRecommendationsService struct {// contains filtered or unexported fields}funcNewFoldersLocationsRecommendersRecommendationsService¶added inv0.37.0
func NewFoldersLocationsRecommendersRecommendationsService(s *Service) *FoldersLocationsRecommendersRecommendationsService
func (*FoldersLocationsRecommendersRecommendationsService)Get¶added inv0.37.0
func (r *FoldersLocationsRecommendersRecommendationsService) Get(namestring) *FoldersLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService)List¶added inv0.37.0
func (r *FoldersLocationsRecommendersRecommendationsService) List(parentstring) *FoldersLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.
func (*FoldersLocationsRecommendersRecommendationsService)MarkClaimed¶added inv0.37.0
func (r *FoldersLocationsRecommendersRecommendationsService) MarkClaimed(namestring, googlecloudrecommenderv1beta1markrecommendationclaimedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService)MarkDismissed¶added inv0.107.0
func (r *FoldersLocationsRecommendersRecommendationsService) MarkDismissed(namestring, googlecloudrecommenderv1beta1markrecommendationdismissedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService)MarkFailed¶added inv0.37.0
func (r *FoldersLocationsRecommendersRecommendationsService) MarkFailed(namestring, googlecloudrecommenderv1beta1markrecommendationfailedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService)MarkSucceeded¶added inv0.37.0
func (r *FoldersLocationsRecommendersRecommendationsService) MarkSucceeded(namestring, googlecloudrecommenderv1beta1markrecommendationsucceededrequest *GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
typeFoldersLocationsRecommendersService¶added inv0.37.0
type FoldersLocationsRecommendersService struct {Recommendations *FoldersLocationsRecommendersRecommendationsService// contains filtered or unexported fields}funcNewFoldersLocationsRecommendersService¶added inv0.37.0
func NewFoldersLocationsRecommendersService(s *Service) *FoldersLocationsRecommendersService
typeFoldersLocationsService¶added inv0.37.0
type FoldersLocationsService struct {InsightTypes *FoldersLocationsInsightTypesServiceRecommenders *FoldersLocationsRecommendersService// contains filtered or unexported fields}funcNewFoldersLocationsService¶added inv0.37.0
func NewFoldersLocationsService(s *Service) *FoldersLocationsService
func (*FoldersLocationsService)List¶added inv0.156.0
func (r *FoldersLocationsService) List(namestring) *FoldersLocationsListCall
List: Lists locations with recommendations or insights.
- name: The resource that owns the locations collection, if applicable.
typeFoldersService¶added inv0.37.0
type FoldersService struct {Locations *FoldersLocationsService// contains filtered or unexported fields}funcNewFoldersService¶added inv0.37.0
func NewFoldersService(s *Service) *FoldersService
typeGoogleCloudLocationListLocationsResponse¶added inv0.156.0
type GoogleCloudLocationListLocationsResponse struct {// Locations: A list of locations that matches the specified filter in the// request.Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudLocationListLocationsResponse: The response message forLocations.ListLocations.
func (GoogleCloudLocationListLocationsResponse)MarshalJSON¶added inv0.156.0
func (sGoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudLocationLocation¶added inv0.156.0
type GoogleCloudLocationLocation struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `json:"displayName,omitempty"`// Labels: Cross-service attributes for the location. For example// {"cloud.googleapis.com/region": "us-east1"}Labels map[string]string `json:"labels,omitempty"`// LocationId: The canonical id for this location. For example: "us-east1".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `json:"name,omitempty"`// 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:"-"`}GoogleCloudLocationLocation: A resource that represents a Google Cloudlocation.
func (GoogleCloudLocationLocation)MarshalJSON¶added inv0.156.0
func (sGoogleCloudLocationLocation) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1CostProjection¶
type GoogleCloudRecommenderV1beta1CostProjection struct {// Cost: An approximate projection on amount saved or amount incurred. Negative// cost units indicate cost savings and positive cost units indicate increase.// See google.type.Money documentation for positive/negative units. A user's// permissions may affect whether the cost is computed using list prices or// custom contract prices.Cost *GoogleTypeMoney `json:"cost,omitempty"`// CostInLocalCurrency: The approximate cost savings in the billing account's// local currency.CostInLocalCurrency *GoogleTypeMoney `json:"costInLocalCurrency,omitempty"`// Duration: Duration for which this cost applies.Durationstring `json:"duration,omitempty"`// PricingType: How the cost is calculated.//// Possible values:// "PRICING_TYPE_UNSPECIFIED" - Default pricing type.// "LIST_PRICE" - The price listed by GCP for all customers.// "CUSTOM_PRICE" - A price derived from past usage and billing.PricingTypestring `json:"pricingType,omitempty"`// ForceSendFields is a list of field names (e.g. "Cost") 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. "Cost") 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:"-"`}GoogleCloudRecommenderV1beta1CostProjection: Contains metadata about howmuch money a recommendation can save or incur.
func (GoogleCloudRecommenderV1beta1CostProjection)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1CostProjection) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1Impact¶
type GoogleCloudRecommenderV1beta1Impact struct {// Category: Category that is being targeted.//// Possible values:// "CATEGORY_UNSPECIFIED" - Default unspecified category. Don't use directly.// "COST" - Indicates a potential increase or decrease in cost.// "SECURITY" - Indicates a potential increase or decrease in security.// "PERFORMANCE" - Indicates a potential increase or decrease in performance.// "MANAGEABILITY" - Indicates a potential increase or decrease in// manageability.// "SUSTAINABILITY" - Indicates a potential increase or decrease in// sustainability.// "RELIABILITY" - Indicates a potential increase or decrease in reliability.Categorystring `json:"category,omitempty"`// CostProjection: Use with CategoryType.COSTCostProjection *GoogleCloudRecommenderV1beta1CostProjection `json:"costProjection,omitempty"`// ImpactComponents: If populated, the impact contains multiple components. In// this case, the top-level impact contains aggregated values and each// component contains per-service details.ImpactComponents []*GoogleCloudRecommenderV1beta1Impact `json:"impactComponents,omitempty"`// ReliabilityProjection: Use with CategoryType.RELIABILITYReliabilityProjection *GoogleCloudRecommenderV1beta1ReliabilityProjection `json:"reliabilityProjection,omitempty"`// SecurityProjection: Use with CategoryType.SECURITYSecurityProjection *GoogleCloudRecommenderV1beta1SecurityProjection `json:"securityProjection,omitempty"`// Service: The service that this impact is associated with.Servicestring `json:"service,omitempty"`// SustainabilityProjection: Use with CategoryType.SUSTAINABILITYSustainabilityProjection *GoogleCloudRecommenderV1beta1SustainabilityProjection `json:"sustainabilityProjection,omitempty"`// ForceSendFields is a list of field names (e.g. "Category") 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. "Category") 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:"-"`}GoogleCloudRecommenderV1beta1Impact: Contains the impact a recommendationcan have for a given category.
func (GoogleCloudRecommenderV1beta1Impact)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1Impact) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1Insight¶added inv0.21.0
type GoogleCloudRecommenderV1beta1Insight struct {// AssociatedRecommendations: Recommendations derived from this insight.AssociatedRecommendations []*GoogleCloudRecommenderV1beta1InsightRecommendationReference `json:"associatedRecommendations,omitempty"`// Category: Category being targeted by the insight.//// Possible values:// "CATEGORY_UNSPECIFIED" - Unspecified category.// "COST" - The insight is related to cost.// "SECURITY" - The insight is related to security.// "PERFORMANCE" - The insight is related to performance.// "MANAGEABILITY" - This insight is related to manageability.// "SUSTAINABILITY" - The insight is related to sustainability.// "RELIABILITY" - The insight is related to reliability.Categorystring `json:"category,omitempty"`// Content: A struct of custom fields to explain the insight. Example:// "grantedPermissionsCount": "1000"Contentgoogleapi.RawMessage `json:"content,omitempty"`// Description: Free-form human readable summary in English. The maximum length// is 500 characters.Descriptionstring `json:"description,omitempty"`// Etag: Fingerprint of the Insight. Provides optimistic locking when updating// states.Etagstring `json:"etag,omitempty"`// InsightSubtype: Insight subtype. Insight content schema will be stable for a// given subtype.InsightSubtypestring `json:"insightSubtype,omitempty"`// LastRefreshTime: Timestamp of the latest data used to generate the insight.LastRefreshTimestring `json:"lastRefreshTime,omitempty"`// Name: Identifier. Name of the insight.Namestring `json:"name,omitempty"`// ObservationPeriod: Observation period that led to the insight. The source// data used to generate the insight ends at last_refresh_time and begins at// (last_refresh_time - observation_period).ObservationPeriodstring `json:"observationPeriod,omitempty"`// Severity: Insight's severity.//// Possible values:// "SEVERITY_UNSPECIFIED" - Insight has unspecified severity.// "LOW" - Insight has low severity.// "MEDIUM" - Insight has medium severity.// "HIGH" - Insight has high severity.// "CRITICAL" - Insight has critical severity.Severitystring `json:"severity,omitempty"`// StateInfo: Information state and metadata.StateInfo *GoogleCloudRecommenderV1beta1InsightStateInfo `json:"stateInfo,omitempty"`// TargetResources: Fully qualified resource names that this insight is// targeting.TargetResources []string `json:"targetResources,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AssociatedRecommendations")// 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. "AssociatedRecommendations") 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:"-"`}GoogleCloudRecommenderV1beta1Insight: An insight along with the informationused to derive the insight. The insight may have associated recommendationsas well.
func (GoogleCloudRecommenderV1beta1Insight)MarshalJSON¶added inv0.21.0
func (sGoogleCloudRecommenderV1beta1Insight) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1InsightRecommendationReference¶added inv0.21.0
type GoogleCloudRecommenderV1beta1InsightRecommendationReference struct {// Recommendation: Recommendation resource name, e.g.// projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/// recommendations/[RECOMMENDATION_ID]Recommendationstring `json:"recommendation,omitempty"`// ForceSendFields is a list of field names (e.g. "Recommendation") 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. "Recommendation") 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:"-"`}GoogleCloudRecommenderV1beta1InsightRecommendationReference: Reference to anassociated recommendation.
func (GoogleCloudRecommenderV1beta1InsightRecommendationReference)MarshalJSON¶added inv0.21.0
func (sGoogleCloudRecommenderV1beta1InsightRecommendationReference) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1InsightStateInfo¶added inv0.21.0
type GoogleCloudRecommenderV1beta1InsightStateInfo struct {// State: Insight state.//// Possible values:// "STATE_UNSPECIFIED" - Unspecified state.// "ACTIVE" - Insight is active. Content for ACTIVE insights can be updated// by Google. ACTIVE insights can be marked DISMISSED OR ACCEPTED.// "ACCEPTED" - Some action has been taken based on this insight. Insights// become accepted when a recommendation derived from the insight has been// marked CLAIMED, SUCCEEDED, or FAILED. ACTIVE insights can also be marked// ACCEPTED explicitly. Content for ACCEPTED insights is immutable. ACCEPTED// insights can only be marked ACCEPTED (which may update state metadata).// "DISMISSED" - Insight is dismissed. Content for DISMISSED insights can be// updated by Google. DISMISSED insights can be marked as ACTIVE.Statestring `json:"state,omitempty"`// StateMetadata: A map of metadata for the state, provided by user or// automations systems.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "State") 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. "State") 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:"-"`}GoogleCloudRecommenderV1beta1InsightStateInfo: Information related toinsight state.
func (GoogleCloudRecommenderV1beta1InsightStateInfo)MarshalJSON¶added inv0.21.0
func (sGoogleCloudRecommenderV1beta1InsightStateInfo) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1InsightType¶added inv0.128.0
type GoogleCloudRecommenderV1beta1InsightType struct {// Name: The insight_type's name in format insightTypes/{insight_type} eg:// insightTypes/google.iam.policy.InsightNamestring `json:"name,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:"-"`}GoogleCloudRecommenderV1beta1InsightType: The type of insight.
func (GoogleCloudRecommenderV1beta1InsightType)MarshalJSON¶added inv0.128.0
func (sGoogleCloudRecommenderV1beta1InsightType) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1InsightTypeConfig¶added inv0.61.0
type GoogleCloudRecommenderV1beta1InsightTypeConfig struct {// Annotations: Allows clients to store small amounts of arbitrary data.// Annotations must follow the Kubernetes syntax. The total size of all keys// and values combined is limited to 256k. Key can have 2 segments: prefix// (optional) and name (required), separated by a slash (/). Prefix must be a// DNS subdomain. Name must be 63 characters or less, begin and end with// alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics// between.Annotations map[string]string `json:"annotations,omitempty"`// DisplayName: A user-settable field to provide a human-readable name to be// used in user interfaces.DisplayNamestring `json:"displayName,omitempty"`// Etag: Fingerprint of the InsightTypeConfig. Provides optimistic locking when// updating.Etagstring `json:"etag,omitempty"`// InsightTypeGenerationConfig: InsightTypeGenerationConfig which configures// the generation of insights for this insight type.InsightTypeGenerationConfig *GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig `json:"insightTypeGenerationConfig,omitempty"`// Name: Identifier. Name of insight type config. Eg,// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]// /configNamestring `json:"name,omitempty"`// RevisionId: Output only. Immutable. The revision ID of the config. A new// revision is committed whenever the config is changed in any way. The format// is an 8-character hexadecimal string.RevisionIdstring `json:"revisionId,omitempty"`// UpdateTime: Last time when the config was updated.UpdateTimestring `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. "Annotations") 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. "Annotations") 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:"-"`}GoogleCloudRecommenderV1beta1InsightTypeConfig: Configuration for anInsightType.
func (GoogleCloudRecommenderV1beta1InsightTypeConfig)MarshalJSON¶added inv0.61.0
func (sGoogleCloudRecommenderV1beta1InsightTypeConfig) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1InsightTypeGenerationConfig¶added inv0.61.0
type GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig struct {// Params: Parameters for this InsightTypeGenerationConfig. These configs can// be used by or are applied to all subtypes.Paramsgoogleapi.RawMessage `json:"params,omitempty"`// ForceSendFields is a list of field names (e.g. "Params") 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. "Params") 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:"-"`}GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig: A configuration tocustomize the generation of insights. Eg, customizing the lookback periodconsidered when generating a insight.
func (GoogleCloudRecommenderV1beta1InsightTypeGenerationConfig)MarshalJSON¶added inv0.61.0
func (sGoogleCloudRecommenderV1beta1InsightTypeGenerationConfig) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1ListInsightTypesResponse¶added inv0.128.0
type GoogleCloudRecommenderV1beta1ListInsightTypesResponse struct {// InsightTypes: The set of recommenders availableInsightTypes []*GoogleCloudRecommenderV1beta1InsightType `json:"insightTypes,omitempty"`// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "InsightTypes") 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. "InsightTypes") 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:"-"`}GoogleCloudRecommenderV1beta1ListInsightTypesResponse: Response for the`ListInsightTypes` method. Next ID: 3
func (GoogleCloudRecommenderV1beta1ListInsightTypesResponse)MarshalJSON¶added inv0.128.0
func (sGoogleCloudRecommenderV1beta1ListInsightTypesResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1ListInsightsResponse¶added inv0.21.0
type GoogleCloudRecommenderV1beta1ListInsightsResponse struct {// Insights: The set of insights for the `parent` resource.Insights []*GoogleCloudRecommenderV1beta1Insight `json:"insights,omitempty"`// NextPageToken: A token that can be used to request the next page of results.// This field is empty if there are no additional results.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Insights") 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. "Insights") 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:"-"`}GoogleCloudRecommenderV1beta1ListInsightsResponse: Response to the`ListInsights` method.
func (GoogleCloudRecommenderV1beta1ListInsightsResponse)MarshalJSON¶added inv0.21.0
func (sGoogleCloudRecommenderV1beta1ListInsightsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1ListRecommendationsResponse¶
type GoogleCloudRecommenderV1beta1ListRecommendationsResponse struct {// NextPageToken: A token that can be used to request the next page of results.// This field is empty if there are no additional results.NextPageTokenstring `json:"nextPageToken,omitempty"`// Recommendations: The set of recommendations for the `parent` resource.Recommendations []*GoogleCloudRecommenderV1beta1Recommendation `json:"recommendations,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:"-"`}GoogleCloudRecommenderV1beta1ListRecommendationsResponse: Response to the`ListRecommendations` method.
func (GoogleCloudRecommenderV1beta1ListRecommendationsResponse)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1ListRecommendationsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1ListRecommendersResponse¶added inv0.128.0
type GoogleCloudRecommenderV1beta1ListRecommendersResponse struct {// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Recommenders: The set of recommenders availableRecommenders []*GoogleCloudRecommenderV1beta1RecommenderType `json:"recommenders,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:"-"`}GoogleCloudRecommenderV1beta1ListRecommendersResponse: Response for the`ListRecommender` method. Next ID: 3
func (GoogleCloudRecommenderV1beta1ListRecommendersResponse)MarshalJSON¶added inv0.128.0
func (sGoogleCloudRecommenderV1beta1ListRecommendersResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest¶added inv0.21.0
type GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest struct {// Etag: Required. Fingerprint of the Insight. Provides optimistic locking.Etagstring `json:"etag,omitempty"`// StateMetadata: Optional. State properties user wish to include with this// state. Full replace of the current state_metadata.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") 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. "Etag") 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:"-"`}GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest: Request for the`MarkInsightAccepted` method.
func (GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest)MarshalJSON¶added inv0.21.0
func (sGoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest¶
type GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest struct {// Etag: Required. Fingerprint of the Recommendation. Provides optimistic// locking.Etagstring `json:"etag,omitempty"`// StateMetadata: State properties to include with this state. Overwrites any// existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`.// Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") 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. "Etag") 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:"-"`}GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest: Request forthe `MarkRecommendationClaimed` Method.
func (GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest¶added inv0.107.0
type GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest struct {// Etag: Fingerprint of the Recommendation. Provides optimistic locking.Etagstring `json:"etag,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") 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. "Etag") 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:"-"`}GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest: Request forthe `MarkRecommendationDismissed` Method.
func (GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest)MarshalJSON¶added inv0.107.0
func (sGoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest¶
type GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest struct {// Etag: Required. Fingerprint of the Recommendation. Provides optimistic// locking.Etagstring `json:"etag,omitempty"`// StateMetadata: State properties to include with this state. Overwrites any// existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`.// Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") 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. "Etag") 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:"-"`}GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest: Request forthe `MarkRecommendationFailed` Method.
func (GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest¶
type GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest struct {// Etag: Required. Fingerprint of the Recommendation. Provides optimistic// locking.Etagstring `json:"etag,omitempty"`// StateMetadata: State properties to include with this state. Overwrites any// existing `state_metadata`. Keys must match the regex `/^a-z0-9{0,62}$/`.// Values must match the regex `/^[a-zA-Z0-9_./-]{0,255}$/`.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") 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. "Etag") 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:"-"`}GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest: Request forthe `MarkRecommendationSucceeded` Method.
func (GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1Operation¶
type GoogleCloudRecommenderV1beta1Operation struct {// Action: Type of this operation. Contains one of 'add', 'remove', 'replace',// 'move', 'copy', 'test' and 'custom' operations. This field is// case-insensitive and always populated.Actionstring `json:"action,omitempty"`// Path: Path to the target field being operated on. If the operation is at the// resource level, then path should be "/". This field is always populated.Pathstring `json:"path,omitempty"`// PathFilters: Set of filters to apply if `path` refers to array elements or// nested array elements in order to narrow down to a single unique element// that is being tested/modified. This is intended to be an exact match per// filter. To perform advanced matching, use path_value_matchers. * Example:// “` { "/versions/*/name" : "it-123" "/versions/*/targetSize/percent": 20 }// “` * Example: “` { "/bindings/*/role": "roles/owner"// "/bindings/*/condition" : null } “` * Example: “` { "/bindings/*/role":// "roles/owner" "/bindings/*/members/*" : ["x@example.com", "y@example.com"] }// “` When both path_filters and path_value_matchers are set, an implicit AND// must be performed.PathFiltersgoogleapi.RawMessage `json:"pathFilters,omitempty"`// PathValueMatchers: Similar to path_filters, this contains set of filters to// apply if `path` field refers to array elements. This is meant to support// value matching beyond exact match. To perform exact match, use path_filters.// When both path_filters and path_value_matchers are set, an implicit AND must// be performed.PathValueMatchers map[string]GoogleCloudRecommenderV1beta1ValueMatcher `json:"pathValueMatchers,omitempty"`// Resource: Contains the fully qualified resource name. This field is always// populated. ex: //cloudresourcemanager.googleapis.com/projects/foo.Resourcestring `json:"resource,omitempty"`// ResourceType: Type of GCP resource being modified/tested. This field is// always populated. Example: cloudresourcemanager.googleapis.com/Project,// compute.googleapis.com/InstanceResourceTypestring `json:"resourceType,omitempty"`// SourcePath: Can be set with action 'copy' or 'move' to indicate the source// field within resource or source_resource, ignored if provided for other// operation types.SourcePathstring `json:"sourcePath,omitempty"`// SourceResource: Can be set with action 'copy' to copy resource configuration// across different resources of the same type. Example: A resource clone can// be done via action = 'copy', path = "/", from = "/", source_resource = and// resource_name = . This field is empty for all other values of `action`.SourceResourcestring `json:"sourceResource,omitempty"`// Value: Value for the `path` field. Will be set for actions:'add'/'replace'.// Maybe set for action: 'test'. Either this or `value_matcher` will be set for// 'test' operation. An exact match must be performed.Value interface{} `json:"value,omitempty"`// ValueMatcher: Can be set for action 'test' for advanced matching for the// value of 'path' field. Either this or `value` will be set for 'test'// operation.ValueMatcher *GoogleCloudRecommenderV1beta1ValueMatcher `json:"valueMatcher,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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:"-"`}GoogleCloudRecommenderV1beta1Operation: Contains an operation for a resourceloosely based on the JSON-PATCH format with support for: * Custom filtersfor describing partial array patch. * Extended path values for describingnested arrays. * Custom fields for describing the resource for which theoperation is being described. * Allows extension to custom operations notnatively supported by RFC6902. Seehttps://tools.ietf.org/html/rfc6902 fordetails on the original RFC.
func (GoogleCloudRecommenderV1beta1Operation)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1Operation) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1OperationGroup¶
type GoogleCloudRecommenderV1beta1OperationGroup struct {// Operations: List of operations across one or more resources that belong to// this group. Loosely based on RFC6902 and should be performed in the order// they appear.Operations []*GoogleCloudRecommenderV1beta1Operation `json:"operations,omitempty"`// ForceSendFields is a list of field names (e.g. "Operations") 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. "Operations") 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:"-"`}GoogleCloudRecommenderV1beta1OperationGroup: Group of operations that needto be performed atomically.
func (GoogleCloudRecommenderV1beta1OperationGroup)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1OperationGroup) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1Recommendation¶
type GoogleCloudRecommenderV1beta1Recommendation struct {// AdditionalImpact: Optional set of additional impact that this recommendation// may have when trying to optimize for the primary category. These may be// positive or negative.AdditionalImpact []*GoogleCloudRecommenderV1beta1Impact `json:"additionalImpact,omitempty"`// AssociatedInsights: Insights that led to this recommendation.AssociatedInsights []*GoogleCloudRecommenderV1beta1RecommendationInsightReference `json:"associatedInsights,omitempty"`// Content: Content of the recommendation describing recommended changes to// resources.Content *GoogleCloudRecommenderV1beta1RecommendationContent `json:"content,omitempty"`// Description: Free-form human readable summary in English. The maximum length// is 500 characters.Descriptionstring `json:"description,omitempty"`// Etag: Fingerprint of the Recommendation. Provides optimistic locking when// updating states.Etagstring `json:"etag,omitempty"`// LastRefreshTime: Last time this recommendation was refreshed by the system// that created it in the first place.LastRefreshTimestring `json:"lastRefreshTime,omitempty"`// Name: Identifier. Name of recommendation.Namestring `json:"name,omitempty"`// PrimaryImpact: The primary impact that this recommendation can have while// trying to optimize for one category.PrimaryImpact *GoogleCloudRecommenderV1beta1Impact `json:"primaryImpact,omitempty"`// Priority: Recommendation's priority.//// Possible values:// "PRIORITY_UNSPECIFIED" - Recommendation has unspecified priority.// "P4" - Recommendation has P4 priority (lowest priority).// "P3" - Recommendation has P3 priority (second lowest priority).// "P2" - Recommendation has P2 priority (second highest priority).// "P1" - Recommendation has P1 priority (highest priority).Prioritystring `json:"priority,omitempty"`// RecommenderSubtype: Contains an identifier for a subtype of recommendations// produced for the same recommender. Subtype is a function of content and// impact, meaning a new subtype might be added when significant changes to// `content` or `primary_impact.category` are introduced. See the Recommenders// section to see a list of subtypes for a given Recommender. Examples: For// recommender = "google.iam.policy.Recommender", recommender_subtype can be// one of "REMOVE_ROLE"/"REPLACE_ROLE"RecommenderSubtypestring `json:"recommenderSubtype,omitempty"`// StateInfo: Information for state. Contains state and metadata.StateInfo *GoogleCloudRecommenderV1beta1RecommendationStateInfo `json:"stateInfo,omitempty"`// TargetResources: Fully qualified resource names that this recommendation is// targeting.TargetResources []string `json:"targetResources,omitempty"`// XorGroupId: Corresponds to a mutually exclusive group ID within a// recommender. A non-empty ID indicates that the recommendation belongs to a// mutually exclusive group. This means that only one recommendation within the// group is suggested to be applied.XorGroupIdstring `json:"xorGroupId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AdditionalImpact") 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. "AdditionalImpact") 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:"-"`}GoogleCloudRecommenderV1beta1Recommendation: A recommendation along with asuggested action. E.g., a rightsizing recommendation for an underutilizedVM, IAM role recommendations, etc
func (GoogleCloudRecommenderV1beta1Recommendation)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1Recommendation) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1RecommendationContent¶
type GoogleCloudRecommenderV1beta1RecommendationContent struct {// OperationGroups: Operations to one or more Google Cloud resources grouped in// such a way that, all operations within one group are expected to be// performed atomically and in an order.OperationGroups []*GoogleCloudRecommenderV1beta1OperationGroup `json:"operationGroups,omitempty"`// Overview: Condensed overview information about the recommendation.Overviewgoogleapi.RawMessage `json:"overview,omitempty"`// ForceSendFields is a list of field names (e.g. "OperationGroups") 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. "OperationGroups") 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:"-"`}GoogleCloudRecommenderV1beta1RecommendationContent: Contains what resourcesare changing and how they are changing.
func (GoogleCloudRecommenderV1beta1RecommendationContent)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1RecommendationContent) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1RecommendationInsightReference¶added inv0.21.0
type GoogleCloudRecommenderV1beta1RecommendationInsightReference struct {// Insight: Insight resource name, e.g.// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]// /insights/[INSIGHT_ID]Insightstring `json:"insight,omitempty"`// ForceSendFields is a list of field names (e.g. "Insight") 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. "Insight") 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:"-"`}GoogleCloudRecommenderV1beta1RecommendationInsightReference: Reference to anassociated insight.
func (GoogleCloudRecommenderV1beta1RecommendationInsightReference)MarshalJSON¶added inv0.21.0
func (sGoogleCloudRecommenderV1beta1RecommendationInsightReference) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1RecommendationStateInfo¶
type GoogleCloudRecommenderV1beta1RecommendationStateInfo struct {// State: The state of the recommendation, Eg ACTIVE, SUCCEEDED, FAILED.//// Possible values:// "STATE_UNSPECIFIED" - Default state. Don't use directly.// "ACTIVE" - Recommendation is active and can be applied. Recommendations// content can be updated by Google. ACTIVE recommendations can be marked as// CLAIMED, SUCCEEDED, or FAILED.// "CLAIMED" - Recommendation is in claimed state. Recommendations content is// immutable and cannot be updated by Google. CLAIMED recommendations can be// marked as CLAIMED, SUCCEEDED, or FAILED.// "SUCCEEDED" - Recommendation is in succeeded state. Recommendations// content is immutable and cannot be updated by Google. SUCCEEDED// recommendations can be marked as SUCCEEDED, or FAILED.// "FAILED" - Recommendation is in failed state. Recommendations content is// immutable and cannot be updated by Google. FAILED recommendations can be// marked as SUCCEEDED, or FAILED.// "DISMISSED" - Recommendation is in dismissed state. Recommendation content// can be updated by Google. DISMISSED recommendations can be marked as ACTIVE.Statestring `json:"state,omitempty"`// StateMetadata: A map of metadata for the state, provided by user or// automations systems.StateMetadata map[string]string `json:"stateMetadata,omitempty"`// ForceSendFields is a list of field names (e.g. "State") 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. "State") 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:"-"`}GoogleCloudRecommenderV1beta1RecommendationStateInfo: Information for state.Contains state and metadata.
func (GoogleCloudRecommenderV1beta1RecommendationStateInfo)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1RecommendationStateInfo) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1RecommenderConfig¶added inv0.61.0
type GoogleCloudRecommenderV1beta1RecommenderConfig struct {// Annotations: Allows clients to store small amounts of arbitrary data.// Annotations must follow the Kubernetes syntax. The total size of all keys// and values combined is limited to 256k. Key can have 2 segments: prefix// (optional) and name (required), separated by a slash (/). Prefix must be a// DNS subdomain. Name must be 63 characters or less, begin and end with// alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics// between.Annotations map[string]string `json:"annotations,omitempty"`// DisplayName: A user-settable field to provide a human-readable name to be// used in user interfaces.DisplayNamestring `json:"displayName,omitempty"`// Etag: Fingerprint of the RecommenderConfig. Provides optimistic locking when// updating.Etagstring `json:"etag,omitempty"`// Name: Identifier. Name of recommender config. Eg,// projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/// configNamestring `json:"name,omitempty"`// RecommenderGenerationConfig: RecommenderGenerationConfig which configures// the Generation of recommendations for this recommender.RecommenderGenerationConfig *GoogleCloudRecommenderV1beta1RecommenderGenerationConfig `json:"recommenderGenerationConfig,omitempty"`// RevisionId: Output only. Immutable. The revision ID of the config. A new// revision is committed whenever the config is changed in any way. The format// is an 8-character hexadecimal string.RevisionIdstring `json:"revisionId,omitempty"`// UpdateTime: Last time when the config was updated.UpdateTimestring `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. "Annotations") 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. "Annotations") 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:"-"`}GoogleCloudRecommenderV1beta1RecommenderConfig: Configuration for aRecommender.
func (GoogleCloudRecommenderV1beta1RecommenderConfig)MarshalJSON¶added inv0.61.0
func (sGoogleCloudRecommenderV1beta1RecommenderConfig) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1RecommenderGenerationConfig¶added inv0.61.0
type GoogleCloudRecommenderV1beta1RecommenderGenerationConfig struct {// Params: Parameters for this RecommenderGenerationConfig. These configs can// be used by or are applied to all subtypes.Paramsgoogleapi.RawMessage `json:"params,omitempty"`// ForceSendFields is a list of field names (e.g. "Params") 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. "Params") 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:"-"`}GoogleCloudRecommenderV1beta1RecommenderGenerationConfig: A Configuration tocustomize the generation of recommendations. Eg, customizing the lookbackperiod considered when generating a recommendation.
func (GoogleCloudRecommenderV1beta1RecommenderGenerationConfig)MarshalJSON¶added inv0.61.0
func (sGoogleCloudRecommenderV1beta1RecommenderGenerationConfig) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1RecommenderType¶added inv0.128.0
type GoogleCloudRecommenderV1beta1RecommenderType struct {// Name: The recommender's name in format RecommenderTypes/{recommender_type}// eg: recommenderTypes/google.iam.policy.RecommenderNamestring `json:"name,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:"-"`}GoogleCloudRecommenderV1beta1RecommenderType: The type of a recommender.
func (GoogleCloudRecommenderV1beta1RecommenderType)MarshalJSON¶added inv0.128.0
func (sGoogleCloudRecommenderV1beta1RecommenderType) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1ReliabilityProjection¶added inv0.99.0
type GoogleCloudRecommenderV1beta1ReliabilityProjection struct {// Details: Per-recommender projection.Detailsgoogleapi.RawMessage `json:"details,omitempty"`// Risks: Reliability risks mitigated by this recommendation.//// Possible values:// "RISK_TYPE_UNSPECIFIED" - Default unspecified risk. Don't use directly.// "SERVICE_DISRUPTION" - Potential service downtime.// "DATA_LOSS" - Potential data loss.// "ACCESS_DENY" - Potential access denial. The service is still up but some// or all clients can't access it.Risks []string `json:"risks,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:"-"`}GoogleCloudRecommenderV1beta1ReliabilityProjection: Contains information onthe impact of a reliability recommendation.
func (GoogleCloudRecommenderV1beta1ReliabilityProjection)MarshalJSON¶added inv0.99.0
func (sGoogleCloudRecommenderV1beta1ReliabilityProjection) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1SecurityProjection¶added inv0.47.0
type GoogleCloudRecommenderV1beta1SecurityProjection struct {// Details: This field can be used by the recommender to define details// specific to security impact.Detailsgoogleapi.RawMessage `json:"details,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:"-"`}GoogleCloudRecommenderV1beta1SecurityProjection: Contains various ways ofdescribing the impact on Security.
func (GoogleCloudRecommenderV1beta1SecurityProjection)MarshalJSON¶added inv0.47.0
func (sGoogleCloudRecommenderV1beta1SecurityProjection) MarshalJSON() ([]byte,error)
typeGoogleCloudRecommenderV1beta1SustainabilityProjection¶added inv0.69.0
type GoogleCloudRecommenderV1beta1SustainabilityProjection struct {// Duration: Duration for which this sustanability applies.Durationstring `json:"duration,omitempty"`// KgCO2e: Carbon Footprint generated in kg of CO2 equivalent. Chose kg_c_o2e// so that the name renders correctly in camelCase (kgCO2e).KgCO2efloat64 `json:"kgCO2e,omitempty"`// ForceSendFields is a list of field names (e.g. "Duration") 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. "Duration") 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:"-"`}GoogleCloudRecommenderV1beta1SustainabilityProjection: Contains metadataabout how much sustainability a recommendation can save or incur.
func (GoogleCloudRecommenderV1beta1SustainabilityProjection)MarshalJSON¶added inv0.69.0
func (sGoogleCloudRecommenderV1beta1SustainabilityProjection) MarshalJSON() ([]byte,error)
func (*GoogleCloudRecommenderV1beta1SustainabilityProjection)UnmarshalJSON¶added inv0.69.0
func (s *GoogleCloudRecommenderV1beta1SustainabilityProjection) UnmarshalJSON(data []byte)error
typeGoogleCloudRecommenderV1beta1ValueMatcher¶
type GoogleCloudRecommenderV1beta1ValueMatcher struct {// MatchesPattern: To be used for full regex matching. The regular expression// is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax),// so to be used with RE2::FullMatchMatchesPatternstring `json:"matchesPattern,omitempty"`// ForceSendFields is a list of field names (e.g. "MatchesPattern") 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. "MatchesPattern") 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:"-"`}GoogleCloudRecommenderV1beta1ValueMatcher: Contains various matching optionsfor values for a GCP resource field.
func (GoogleCloudRecommenderV1beta1ValueMatcher)MarshalJSON¶
func (sGoogleCloudRecommenderV1beta1ValueMatcher) MarshalJSON() ([]byte,error)
typeGoogleTypeMoney¶
type GoogleTypeMoney struct {// CurrencyCode: The three-letter currency code defined in ISO 4217.CurrencyCodestring `json:"currencyCode,omitempty"`// Nanos: Number of nano (10^-9) units of the amount. The value must be between// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,// or negative. If `units` is negative, `nanos` must be negative or zero. For// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.Nanosint64 `json:"nanos,omitempty"`// Units: The whole units of the amount. For example if `currencyCode` is// "USD", then 1 unit is one US dollar.Unitsint64 `json:"units,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CurrencyCode") 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. "CurrencyCode") 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:"-"`}GoogleTypeMoney: Represents an amount of money with its currency type.
func (GoogleTypeMoney)MarshalJSON¶
func (sGoogleTypeMoney) MarshalJSON() ([]byte,error)
typeInsightTypesListCall¶added inv0.128.0
type InsightTypesListCall struct {// contains filtered or unexported fields}func (*InsightTypesListCall)Context¶added inv0.128.0
func (c *InsightTypesListCall) Context(ctxcontext.Context) *InsightTypesListCall
Context sets the context to be used in this call's Do method.
func (*InsightTypesListCall)Do¶added inv0.128.0
func (c *InsightTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightTypesResponse,error)
Do executes the "recommender.insightTypes.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListInsightTypesResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*InsightTypesListCall)Fields¶added inv0.128.0
func (c *InsightTypesListCall) Fields(s ...googleapi.Field) *InsightTypesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*InsightTypesListCall)Header¶added inv0.128.0
func (c *InsightTypesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*InsightTypesListCall)IfNoneMatch¶added inv0.128.0
func (c *InsightTypesListCall) IfNoneMatch(entityTagstring) *InsightTypesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*InsightTypesListCall)PageSize¶added inv0.128.0
func (c *InsightTypesListCall) PageSize(pageSizeint64) *InsightTypesListCall
PageSize sets the optional parameter "pageSize": The number of InsightTypesto return per page. The service may return fewer than this value.
func (*InsightTypesListCall)PageToken¶added inv0.128.0
func (c *InsightTypesListCall) PageToken(pageTokenstring) *InsightTypesListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListRecommenders` call. Provide this to retrieve thesubsequent page.
func (*InsightTypesListCall)Pages¶added inv0.128.0
func (c *InsightTypesListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListInsightTypesResponse)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.
typeInsightTypesService¶added inv0.128.0
type InsightTypesService struct {// contains filtered or unexported fields}funcNewInsightTypesService¶added inv0.128.0
func NewInsightTypesService(s *Service) *InsightTypesService
func (*InsightTypesService)List¶added inv0.128.0
func (r *InsightTypesService) List() *InsightTypesListCall
List: Lists available InsightTypes. No IAM permissions are required.
typeOrganizationsLocationsInsightTypesGetConfigCall¶added inv0.61.0
type OrganizationsLocationsInsightTypesGetConfigCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsInsightTypesGetConfigCall)Context¶added inv0.61.0
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Context(ctxcontext.Context) *OrganizationsLocationsInsightTypesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesGetConfigCall)Do¶added inv0.61.0
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig,error)
Do executes the "recommender.organizations.locations.insightTypes.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesGetConfigCall)Fields¶added inv0.61.0
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsInsightTypesGetConfigCall)Header¶added inv0.61.0
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsInsightTypesGetConfigCall)IfNoneMatch¶added inv0.61.0
func (c *OrganizationsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsInsightTypesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeOrganizationsLocationsInsightTypesInsightsGetCall¶added inv0.37.0
type OrganizationsLocationsInsightTypesInsightsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsInsightTypesInsightsGetCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesInsightsGetCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.organizations.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesInsightsGetCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsInsightTypesInsightsGetCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsInsightTypesInsightsGetCall)IfNoneMatch¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeOrganizationsLocationsInsightTypesInsightsListCall¶added inv0.37.0
type OrganizationsLocationsInsightTypesInsightsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsInsightTypesInsightsListCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Context(ctxcontext.Context) *OrganizationsLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesInsightsListCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse,error)
Do executes the "recommender.organizations.locations.insightTypes.insights.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListInsightsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesInsightsListCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsInsightTypesInsightsListCall)Filter¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Filter(filterstring) *OrganizationsLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)
func (*OrganizationsLocationsInsightTypesInsightsListCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsInsightTypesInsightsListCall)IfNoneMatch¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsInsightTypesInsightsListCall)PageSize¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) PageSize(pageSizeint64) *OrganizationsLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*OrganizationsLocationsInsightTypesInsightsListCall)PageToken¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) PageToken(pageTokenstring) *OrganizationsLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*OrganizationsLocationsInsightTypesInsightsListCall)Pages¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListInsightsResponse)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.
typeOrganizationsLocationsInsightTypesInsightsMarkAcceptedCall¶added inv0.37.0
type OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctxcontext.Context) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.organizations.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsInsightTypesInsightsService¶added inv0.37.0
type OrganizationsLocationsInsightTypesInsightsService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsInsightTypesInsightsService¶added inv0.37.0
func NewOrganizationsLocationsInsightTypesInsightsService(s *Service) *OrganizationsLocationsInsightTypesInsightsService
func (*OrganizationsLocationsInsightTypesInsightsService)Get¶added inv0.37.0
func (r *OrganizationsLocationsInsightTypesInsightsService) Get(namestring) *OrganizationsLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.
- name: Name of the insight.
func (*OrganizationsLocationsInsightTypesInsightsService)List¶added inv0.37.0
func (r *OrganizationsLocationsInsightTypesInsightsService) List(parentstring) *OrganizationsLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.
func (*OrganizationsLocationsInsightTypesInsightsService)MarkAccepted¶added inv0.37.0
func (r *OrganizationsLocationsInsightTypesInsightsService) MarkAccepted(namestring, googlecloudrecommenderv1beta1markinsightacceptedrequest *GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
typeOrganizationsLocationsInsightTypesService¶added inv0.37.0
type OrganizationsLocationsInsightTypesService struct {Insights *OrganizationsLocationsInsightTypesInsightsService// contains filtered or unexported fields}funcNewOrganizationsLocationsInsightTypesService¶added inv0.37.0
func NewOrganizationsLocationsInsightTypesService(s *Service) *OrganizationsLocationsInsightTypesService
func (*OrganizationsLocationsInsightTypesService)GetConfig¶added inv0.61.0
func (r *OrganizationsLocationsInsightTypesService) GetConfig(namestring) *OrganizationsLocationsInsightTypesGetConfigCall
GetConfig: Gets the requested InsightTypeConfig. There is only one instanceof the config for each InsightType.
- name: Name of the InsightTypeConfig to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`.
func (*OrganizationsLocationsInsightTypesService)UpdateConfig¶added inv0.72.0
func (r *OrganizationsLocationsInsightTypesService) UpdateConfig(namestring, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *OrganizationsLocationsInsightTypesUpdateConfigCall
UpdateConfig: Updates an InsightTypeConfig change. This will create a newrevision of the config.
- name: Identifier. Name of insight type config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config.
typeOrganizationsLocationsInsightTypesUpdateConfigCall¶added inv0.72.0
type OrganizationsLocationsInsightTypesUpdateConfigCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Context¶added inv0.72.0
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Context(ctxcontext.Context) *OrganizationsLocationsInsightTypesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Do¶added inv0.72.0
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig,error)
Do executes the "recommender.organizations.locations.insightTypes.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Fields¶added inv0.72.0
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall)Header¶added inv0.72.0
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall)UpdateMask¶added inv0.72.0
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMaskstring) *OrganizationsLocationsInsightTypesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall)ValidateOnly¶added inv0.72.0
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnlybool) *OrganizationsLocationsInsightTypesUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.
typeOrganizationsLocationsListCall¶added inv0.156.0
type OrganizationsLocationsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsListCall)Context¶added inv0.156.0
func (c *OrganizationsLocationsListCall) Context(ctxcontext.Context) *OrganizationsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsListCall)Do¶added inv0.156.0
func (c *OrganizationsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse,error)
Do executes the "recommender.organizations.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsListCall)ExtraLocationTypes¶added inv0.229.0
func (c *OrganizationsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *OrganizationsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.
func (*OrganizationsLocationsListCall)Fields¶added inv0.156.0
func (c *OrganizationsLocationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsListCall)Filter¶added inv0.156.0
func (c *OrganizationsLocationsListCall) Filter(filterstring) *OrganizationsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).
func (*OrganizationsLocationsListCall)Header¶added inv0.156.0
func (c *OrganizationsLocationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsListCall)IfNoneMatch¶added inv0.156.0
func (c *OrganizationsLocationsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsListCall)PageSize¶added inv0.156.0
func (c *OrganizationsLocationsListCall) PageSize(pageSizeint64) *OrganizationsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*OrganizationsLocationsListCall)PageToken¶added inv0.156.0
func (c *OrganizationsLocationsListCall) PageToken(pageTokenstring) *OrganizationsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*OrganizationsLocationsListCall)Pages¶added inv0.156.0
func (c *OrganizationsLocationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudLocationListLocationsResponse)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.
typeOrganizationsLocationsRecommendersGetConfigCall¶added inv0.61.0
type OrganizationsLocationsRecommendersGetConfigCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersGetConfigCall)Context¶added inv0.61.0
func (c *OrganizationsLocationsRecommendersGetConfigCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersGetConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersGetConfigCall)Do¶added inv0.61.0
func (c *OrganizationsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig,error)
Do executes the "recommender.organizations.locations.recommenders.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersGetConfigCall)Fields¶added inv0.61.0
func (c *OrganizationsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersGetConfigCall)Header¶added inv0.61.0
func (c *OrganizationsLocationsRecommendersGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsRecommendersGetConfigCall)IfNoneMatch¶added inv0.61.0
func (c *OrganizationsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsRecommendersGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeOrganizationsLocationsRecommendersRecommendationsGetCall¶added inv0.37.0
type OrganizationsLocationsRecommendersRecommendationsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersRecommendationsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall)IfNoneMatch¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeOrganizationsLocationsRecommendersRecommendationsListCall¶added inv0.37.0
type OrganizationsLocationsRecommendersRecommendationsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersRecommendationsListCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersRecommendationsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsListCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse,error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsListCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersRecommendationsListCall)Filter¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Filter(filterstring) *OrganizationsLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)
func (*OrganizationsLocationsRecommendersRecommendationsListCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsRecommendersRecommendationsListCall)IfNoneMatch¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsRecommendersRecommendationsListCall)PageSize¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) PageSize(pageSizeint64) *OrganizationsLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*OrganizationsLocationsRecommendersRecommendationsListCall)PageToken¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) PageToken(pageTokenstring) *OrganizationsLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*OrganizationsLocationsRecommendersRecommendationsListCall)Pages¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListRecommendationsResponse)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.
typeOrganizationsLocationsRecommendersRecommendationsMarkClaimedCall¶added inv0.37.0
type OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsRecommendersRecommendationsMarkDismissedCall¶added inv0.107.0
type OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Context¶added inv0.107.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Do¶added inv0.107.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Fields¶added inv0.107.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall)Header¶added inv0.107.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsRecommendersRecommendationsMarkFailedCall¶added inv0.37.0
type OrganizationsLocationsRecommendersRecommendationsMarkFailedCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsRecommendersRecommendationsMarkSucceededCall¶added inv0.37.0
type OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Context¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Do¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Fields¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall)Header¶added inv0.37.0
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsRecommendersRecommendationsService¶added inv0.37.0
type OrganizationsLocationsRecommendersRecommendationsService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsRecommendersRecommendationsService¶added inv0.37.0
func NewOrganizationsLocationsRecommendersRecommendationsService(s *Service) *OrganizationsLocationsRecommendersRecommendationsService
func (*OrganizationsLocationsRecommendersRecommendationsService)Get¶added inv0.37.0
func (r *OrganizationsLocationsRecommendersRecommendationsService) Get(namestring) *OrganizationsLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService)List¶added inv0.37.0
func (r *OrganizationsLocationsRecommendersRecommendationsService) List(parentstring) *OrganizationsLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.
func (*OrganizationsLocationsRecommendersRecommendationsService)MarkClaimed¶added inv0.37.0
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkClaimed(namestring, googlecloudrecommenderv1beta1markrecommendationclaimedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService)MarkDismissed¶added inv0.107.0
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkDismissed(namestring, googlecloudrecommenderv1beta1markrecommendationdismissedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService)MarkFailed¶added inv0.37.0
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkFailed(namestring, googlecloudrecommenderv1beta1markrecommendationfailedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService)MarkSucceeded¶added inv0.37.0
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkSucceeded(namestring, googlecloudrecommenderv1beta1markrecommendationsucceededrequest *GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
typeOrganizationsLocationsRecommendersService¶added inv0.37.0
type OrganizationsLocationsRecommendersService struct {Recommendations *OrganizationsLocationsRecommendersRecommendationsService// contains filtered or unexported fields}funcNewOrganizationsLocationsRecommendersService¶added inv0.37.0
func NewOrganizationsLocationsRecommendersService(s *Service) *OrganizationsLocationsRecommendersService
func (*OrganizationsLocationsRecommendersService)GetConfig¶added inv0.61.0
func (r *OrganizationsLocationsRecommendersService) GetConfig(namestring) *OrganizationsLocationsRecommendersGetConfigCall
GetConfig: Gets the requested Recommender Config. There is only one instanceof the config for each Recommender.
- name: Name of the Recommendation Config to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`.
func (*OrganizationsLocationsRecommendersService)UpdateConfig¶added inv0.72.0
func (r *OrganizationsLocationsRecommendersService) UpdateConfig(namestring, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *OrganizationsLocationsRecommendersUpdateConfigCall
UpdateConfig: Updates a Recommender Config. This will create a new revisionof the config.
- name: Identifier. Name of recommender config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config.
typeOrganizationsLocationsRecommendersUpdateConfigCall¶added inv0.72.0
type OrganizationsLocationsRecommendersUpdateConfigCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsRecommendersUpdateConfigCall)Context¶added inv0.72.0
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Context(ctxcontext.Context) *OrganizationsLocationsRecommendersUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersUpdateConfigCall)Do¶added inv0.72.0
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig,error)
Do executes the "recommender.organizations.locations.recommenders.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersUpdateConfigCall)Fields¶added inv0.72.0
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsRecommendersUpdateConfigCall)Header¶added inv0.72.0
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsRecommendersUpdateConfigCall)UpdateMask¶added inv0.72.0
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMaskstring) *OrganizationsLocationsRecommendersUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.
func (*OrganizationsLocationsRecommendersUpdateConfigCall)ValidateOnly¶added inv0.72.0
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnlybool) *OrganizationsLocationsRecommendersUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.
typeOrganizationsLocationsService¶added inv0.37.0
type OrganizationsLocationsService struct {InsightTypes *OrganizationsLocationsInsightTypesServiceRecommenders *OrganizationsLocationsRecommendersService// contains filtered or unexported fields}funcNewOrganizationsLocationsService¶added inv0.37.0
func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService
func (*OrganizationsLocationsService)List¶added inv0.156.0
func (r *OrganizationsLocationsService) List(namestring) *OrganizationsLocationsListCall
List: Lists locations with recommendations or insights.
- name: The resource that owns the locations collection, if applicable.
typeOrganizationsService¶added inv0.37.0
type OrganizationsService struct {Locations *OrganizationsLocationsService// contains filtered or unexported fields}funcNewOrganizationsService¶added inv0.37.0
func NewOrganizationsService(s *Service) *OrganizationsService
typeProjectsLocationsInsightTypesGetConfigCall¶added inv0.61.0
type ProjectsLocationsInsightTypesGetConfigCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInsightTypesGetConfigCall)Context¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesGetConfigCall) Context(ctxcontext.Context) *ProjectsLocationsInsightTypesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesGetConfigCall)Do¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig,error)
Do executes the "recommender.projects.locations.insightTypes.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesGetConfigCall)Fields¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInsightTypesGetConfigCall)Header¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInsightTypesGetConfigCall)IfNoneMatch¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInsightTypesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsInsightTypesInsightsGetCall¶added inv0.21.0
type ProjectsLocationsInsightTypesInsightsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInsightTypesInsightsGetCall)Context¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Context(ctxcontext.Context) *ProjectsLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesInsightsGetCall)Do¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.projects.locations.insightTypes.insights.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesInsightsGetCall)Fields¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInsightTypesInsightsGetCall)Header¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInsightTypesInsightsGetCall)IfNoneMatch¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsInsightTypesInsightsListCall¶added inv0.21.0
type ProjectsLocationsInsightTypesInsightsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInsightTypesInsightsListCall)Context¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) Context(ctxcontext.Context) *ProjectsLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesInsightsListCall)Do¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightsResponse,error)
Do executes the "recommender.projects.locations.insightTypes.insights.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListInsightsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesInsightsListCall)Fields¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInsightTypesInsightsListCall)Filter¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) Filter(filterstring) *ProjectsLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe insights returned. Supported filter fields: * `stateInfo.state` *`insightSubtype` * `severity` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` * `insightSubtype= PERMISSIONS_USAGE` * `severity = CRITICAL OR severity = HIGH` *`targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity = CRITICAL OR severity =HIGH)` The max allowed filter length is 500 characters. (These expressionsare based on the filter language described athttps://google.aip.dev/160)
func (*ProjectsLocationsInsightTypesInsightsListCall)Header¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInsightTypesInsightsListCall)IfNoneMatch¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsInsightTypesInsightsListCall)PageSize¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) PageSize(pageSizeint64) *ProjectsLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*ProjectsLocationsInsightTypesInsightsListCall)PageToken¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) PageToken(pageTokenstring) *ProjectsLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*ProjectsLocationsInsightTypesInsightsListCall)Pages¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListInsightsResponse)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.
typeProjectsLocationsInsightTypesInsightsMarkAcceptedCall¶added inv0.21.0
type ProjectsLocationsInsightTypesInsightsMarkAcceptedCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Context¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctxcontext.Context) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Do¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight,error)
Do executes the "recommender.projects.locations.insightTypes.insights.markAccepted" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Fields¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall)Header¶added inv0.21.0
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsInsightTypesInsightsService¶added inv0.21.0
type ProjectsLocationsInsightTypesInsightsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsInsightTypesInsightsService¶added inv0.21.0
func NewProjectsLocationsInsightTypesInsightsService(s *Service) *ProjectsLocationsInsightTypesInsightsService
func (*ProjectsLocationsInsightTypesInsightsService)Get¶added inv0.21.0
func (r *ProjectsLocationsInsightTypesInsightsService) Get(namestring) *ProjectsLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAMpermission for the specified insight type.
- name: Name of the insight.
func (*ProjectsLocationsInsightTypesInsightsService)List¶added inv0.21.0
func (r *ProjectsLocationsInsightTypesInsightsService) List(parentstring) *ProjectsLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]`*`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers tosupported insight types:https://cloud.google.com/recommender/docs/insights/insight-types.
func (*ProjectsLocationsInsightTypesInsightsService)MarkAccepted¶added inv0.21.0
func (r *ProjectsLocationsInsightTypesInsightsService) MarkAccepted(namestring, googlecloudrecommenderv1beta1markinsightacceptedrequest *GoogleCloudRecommenderV1beta1MarkInsightAcceptedRequest) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this methodto indicate to the Recommender API that they have applied some action basedon the insight. This stops the insight content from being updated.MarkInsightAccepted can be applied to insights in ACTIVE state. Requires therecommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
typeProjectsLocationsInsightTypesService¶added inv0.21.0
type ProjectsLocationsInsightTypesService struct {Insights *ProjectsLocationsInsightTypesInsightsService// contains filtered or unexported fields}funcNewProjectsLocationsInsightTypesService¶added inv0.21.0
func NewProjectsLocationsInsightTypesService(s *Service) *ProjectsLocationsInsightTypesService
func (*ProjectsLocationsInsightTypesService)GetConfig¶added inv0.61.0
func (r *ProjectsLocationsInsightTypesService) GetConfig(namestring) *ProjectsLocationsInsightTypesGetConfigCall
GetConfig: Gets the requested InsightTypeConfig. There is only one instanceof the config for each InsightType.
- name: Name of the InsightTypeConfig to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config`.
func (*ProjectsLocationsInsightTypesService)UpdateConfig¶added inv0.61.0
func (r *ProjectsLocationsInsightTypesService) UpdateConfig(namestring, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *ProjectsLocationsInsightTypesUpdateConfigCall
UpdateConfig: Updates an InsightTypeConfig change. This will create a newrevision of the config.
- name: Identifier. Name of insight type config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config.
typeProjectsLocationsInsightTypesUpdateConfigCall¶added inv0.61.0
type ProjectsLocationsInsightTypesUpdateConfigCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsInsightTypesUpdateConfigCall)Context¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Context(ctxcontext.Context) *ProjectsLocationsInsightTypesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesUpdateConfigCall)Do¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig,error)
Do executes the "recommender.projects.locations.insightTypes.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1InsightTypeConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesUpdateConfigCall)Fields¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsInsightTypesUpdateConfigCall)Header¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsInsightTypesUpdateConfigCall)UpdateMask¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMaskstring) *ProjectsLocationsInsightTypesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.
func (*ProjectsLocationsInsightTypesUpdateConfigCall)ValidateOnly¶added inv0.61.0
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnlybool) *ProjectsLocationsInsightTypesUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.
typeProjectsLocationsListCall¶added inv0.156.0
type ProjectsLocationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsListCall)Context¶added inv0.156.0
func (c *ProjectsLocationsListCall) Context(ctxcontext.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall)Do¶added inv0.156.0
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse,error)
Do executes the "recommender.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudLocationListLocationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsListCall)ExtraLocationTypes¶added inv0.229.0
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.
func (*ProjectsLocationsListCall)Fields¶added inv0.156.0
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsListCall)Filter¶added inv0.156.0
func (c *ProjectsLocationsListCall) Filter(filterstring) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto a preferred subset. The filtering language accepts strings like"displayName=tokyo", and is documented in more detail in AIP-160(https://google.aip.dev/160).
func (*ProjectsLocationsListCall)Header¶added inv0.156.0
func (c *ProjectsLocationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsListCall)IfNoneMatch¶added inv0.156.0
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsListCall)PageSize¶added inv0.156.0
func (c *ProjectsLocationsListCall) PageSize(pageSizeint64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall)PageToken¶added inv0.156.0
func (c *ProjectsLocationsListCall) PageToken(pageTokenstring) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*ProjectsLocationsListCall)Pages¶added inv0.156.0
func (c *ProjectsLocationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudLocationListLocationsResponse)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.
typeProjectsLocationsRecommendersGetConfigCall¶added inv0.61.0
type ProjectsLocationsRecommendersGetConfigCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersGetConfigCall)Context¶added inv0.61.0
func (c *ProjectsLocationsRecommendersGetConfigCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersGetConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersGetConfigCall)Do¶added inv0.61.0
func (c *ProjectsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig,error)
Do executes the "recommender.projects.locations.recommenders.getConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersGetConfigCall)Fields¶added inv0.61.0
func (c *ProjectsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersGetConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersGetConfigCall)Header¶added inv0.61.0
func (c *ProjectsLocationsRecommendersGetConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRecommendersGetConfigCall)IfNoneMatch¶added inv0.61.0
func (c *ProjectsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRecommendersGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRecommendersRecommendationsGetCall¶
type ProjectsLocationsRecommendersRecommendationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersRecommendationsGetCall)Context¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersRecommendationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersRecommendationsGetCall)Do¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.projects.locations.recommenders.recommendations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsGetCall)Fields¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersRecommendationsGetCall)Header¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRecommendersRecommendationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsRecommendersRecommendationsListCall¶
type ProjectsLocationsRecommendersRecommendationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersRecommendationsListCall)Context¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersRecommendationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersRecommendationsListCall)Do¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendationsResponse,error)
Do executes the "recommender.projects.locations.recommenders.recommendations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsListCall)Fields¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersRecommendationsListCall)Filter¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Filter(filterstring) *ProjectsLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrictthe recommendations returned. Supported filter fields: * `state_info.state`* `recommenderSubtype` * `priority` * `targetResources` Examples: *`stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *`recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *`priority = P1 OR priority = P2` * `targetResources ://compute.googleapis.com/projects/1234/zones/us-central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority = P1 OR priority = P2)` Themax allowed filter length is 500 characters. (These expressions are based onthe filter language described athttps://google.aip.dev/160)
func (*ProjectsLocationsRecommendersRecommendationsListCall)Header¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRecommendersRecommendationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsRecommendersRecommendationsListCall)PageSize¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) PageSize(pageSizeint64) *ProjectsLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Non-positive values are ignored. If notspecified, the server will determine the number of results to return.
func (*ProjectsLocationsRecommendersRecommendationsListCall)PageToken¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) PageToken(pageTokenstring) *ProjectsLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves thenext batch of results from the preceding call to this method. `page_token`must be the value of `next_page_token` from the previous response. Thevalues of other method parameters must be identical to those in the previouscall.
func (*ProjectsLocationsRecommendersRecommendationsListCall)Pages¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListRecommendationsResponse)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.
typeProjectsLocationsRecommendersRecommendationsMarkClaimedCall¶
type ProjectsLocationsRecommendersRecommendationsMarkClaimedCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Context¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Do¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markClaimed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Fields¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall)Header¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRecommendersRecommendationsMarkDismissedCall¶added inv0.107.0
type ProjectsLocationsRecommendersRecommendationsMarkDismissedCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Context¶added inv0.107.0
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Do¶added inv0.107.0
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markDismissed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Fields¶added inv0.107.0
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall)Header¶added inv0.107.0
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRecommendersRecommendationsMarkFailedCall¶
type ProjectsLocationsRecommendersRecommendationsMarkFailedCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Context¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Do¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markFailed" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Fields¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall)Header¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRecommendersRecommendationsMarkSucceededCall¶
type ProjectsLocationsRecommendersRecommendationsMarkSucceededCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Context¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Do¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Recommendation,error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markSucceeded" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1Recommendation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Fields¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall)Header¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsRecommendersRecommendationsService¶
type ProjectsLocationsRecommendersRecommendationsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsRecommendersRecommendationsService¶
func NewProjectsLocationsRecommendersRecommendationsService(s *Service) *ProjectsLocationsRecommendersRecommendationsService
func (*ProjectsLocationsRecommendersRecommendationsService)Get¶
func (r *ProjectsLocationsRecommendersRecommendationsService) Get(namestring) *ProjectsLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAMpermission for the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService)List¶
func (r *ProjectsLocationsRecommendersRecommendationsService) List(parentstring) *ProjectsLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires therecommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptableformats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]`*`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` LOCATION here refers to GCP Locations:https://cloud.google.com/about/locations/ RECOMMENDER_ID refers tosupported recommenders:https://cloud.google.com/recommender/docs/recommenders.
func (*ProjectsLocationsRecommendersRecommendationsService)MarkClaimed¶
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkClaimed(namestring, googlecloudrecommenderv1beta1markrecommendationclaimedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationClaimedRequest) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use thismethod to indicate to the Recommender API that they are starting to applythe recommendation themselves. This stops the recommendation content frombeing updated. Associated insights are frozen and placed in the ACCEPTEDstate. MarkRecommendationClaimed can be applied to recommendations inCLAIMED or ACTIVE state. Requires the recommender.*.update IAM permissionfor the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService)MarkDismissed¶added inv0.107.0
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkDismissed(namestring, googlecloudrecommenderv1beta1markrecommendationdismissedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationDismissedRequest) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can usethis method to indicate to the Recommender API that an ACTIVE recommendationhas to be marked back as DISMISSED. MarkRecommendationDismissed can beapplied to recommendations in ACTIVE state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService)MarkFailed¶
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkFailed(namestring, googlecloudrecommenderv1beta1markrecommendationfailedrequest *GoogleCloudRecommenderV1beta1MarkRecommendationFailedRequest) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use thismethod to indicate to the Recommender API that they have applied therecommendation themselves, and the operation failed. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationFailed can be applied torecommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires therecommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService)MarkSucceeded¶
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkSucceeded(namestring, googlecloudrecommenderv1beta1markrecommendationsucceededrequest *GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can usethis method to indicate to the Recommender API that they have applied therecommendation themselves, and the operation was successful. This stops therecommendation content from being updated. Associated insights are frozenand placed in the ACCEPTED state. MarkRecommendationSucceeded can be appliedto recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requiresthe recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
typeProjectsLocationsRecommendersService¶
type ProjectsLocationsRecommendersService struct {Recommendations *ProjectsLocationsRecommendersRecommendationsService// contains filtered or unexported fields}funcNewProjectsLocationsRecommendersService¶
func NewProjectsLocationsRecommendersService(s *Service) *ProjectsLocationsRecommendersService
func (*ProjectsLocationsRecommendersService)GetConfig¶added inv0.61.0
func (r *ProjectsLocationsRecommendersService) GetConfig(namestring) *ProjectsLocationsRecommendersGetConfigCall
GetConfig: Gets the requested Recommender Config. There is only one instanceof the config for each Recommender.
- name: Name of the Recommendation Config to get. Acceptable formats: *`projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` *`billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`.
func (*ProjectsLocationsRecommendersService)UpdateConfig¶added inv0.61.0
func (r *ProjectsLocationsRecommendersService) UpdateConfig(namestring, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *ProjectsLocationsRecommendersUpdateConfigCall
UpdateConfig: Updates a Recommender Config. This will create a new revisionof the config.
- name: Identifier. Name of recommender config. Eg,projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config.
typeProjectsLocationsRecommendersUpdateConfigCall¶added inv0.61.0
type ProjectsLocationsRecommendersUpdateConfigCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsRecommendersUpdateConfigCall)Context¶added inv0.61.0
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Context(ctxcontext.Context) *ProjectsLocationsRecommendersUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersUpdateConfigCall)Do¶added inv0.61.0
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig,error)
Do executes the "recommender.projects.locations.recommenders.updateConfig" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1RecommenderConfig.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersUpdateConfigCall)Fields¶added inv0.61.0
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersUpdateConfigCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsRecommendersUpdateConfigCall)Header¶added inv0.61.0
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsRecommendersUpdateConfigCall)UpdateMask¶added inv0.61.0
func (c *ProjectsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMaskstring) *ProjectsLocationsRecommendersUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields tobe updated.
func (*ProjectsLocationsRecommendersUpdateConfigCall)ValidateOnly¶added inv0.61.0
func (c *ProjectsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnlybool) *ProjectsLocationsRecommendersUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validatethe request and preview the change, but do not actually update it.
typeProjectsLocationsService¶
type ProjectsLocationsService struct {InsightTypes *ProjectsLocationsInsightTypesServiceRecommenders *ProjectsLocationsRecommendersService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService)List¶added inv0.156.0
func (r *ProjectsLocationsService) List(namestring) *ProjectsLocationsListCall
List: Lists locations with recommendations or insights.
- name: The resource that owns the locations collection, if applicable.
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typeRecommendersListCall¶added inv0.128.0
type RecommendersListCall struct {// contains filtered or unexported fields}func (*RecommendersListCall)Context¶added inv0.128.0
func (c *RecommendersListCall) Context(ctxcontext.Context) *RecommendersListCall
Context sets the context to be used in this call's Do method.
func (*RecommendersListCall)Do¶added inv0.128.0
func (c *RecommendersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListRecommendersResponse,error)
Do executes the "recommender.recommenders.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudRecommenderV1beta1ListRecommendersResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*RecommendersListCall)Fields¶added inv0.128.0
func (c *RecommendersListCall) Fields(s ...googleapi.Field) *RecommendersListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*RecommendersListCall)Header¶added inv0.128.0
func (c *RecommendersListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*RecommendersListCall)IfNoneMatch¶added inv0.128.0
func (c *RecommendersListCall) IfNoneMatch(entityTagstring) *RecommendersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*RecommendersListCall)PageSize¶added inv0.128.0
func (c *RecommendersListCall) PageSize(pageSizeint64) *RecommendersListCall
PageSize sets the optional parameter "pageSize": The number ofRecommenderTypes to return per page. The service may return fewer than thisvalue.
func (*RecommendersListCall)PageToken¶added inv0.128.0
func (c *RecommendersListCall) PageToken(pageTokenstring) *RecommendersListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListRecommenders` call. Provide this to retrieve thesubsequent page.
func (*RecommendersListCall)Pages¶added inv0.128.0
func (c *RecommendersListCall) Pages(ctxcontext.Context, f func(*GoogleCloudRecommenderV1beta1ListRecommendersResponse)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.
typeRecommendersService¶added inv0.128.0
type RecommendersService struct {// contains filtered or unexported fields}funcNewRecommendersService¶added inv0.128.0
func NewRecommendersService(s *Service) *RecommendersService
func (*RecommendersService)List¶added inv0.128.0
func (r *RecommendersService) List() *RecommendersListCall
List: Lists all available Recommenders. No IAM permissions are required.
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentBillingAccounts *BillingAccountsServiceFolders *FoldersServiceInsightTypes *InsightTypesServiceOrganizations *OrganizationsServiceProjects *ProjectsServiceRecommenders *RecommendersService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.