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, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/recommender/v1" ... ctx := context.Background() recommenderService, err := recommender.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication. For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use google.golang.org/api/option.WithAPIKey:
recommenderService, err := recommender.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) recommenderService, err := recommender.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.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) (*GoogleCloudRecommenderV1InsightTypeConfig, 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) (*GoogleCloudRecommenderV1Insight, 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) (*GoogleCloudRecommenderV1ListInsightsResponse, 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) (*GoogleCloudRecommenderV1Insight, 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) (*GoogleCloudRecommenderV1InsightTypeConfig, 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 BillingAccountsLocationsRecommendersGetConfigCall
- func (c *BillingAccountsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersGetConfigCall
- func (c *BillingAccountsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1ListRecommendationsResponse, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1RecommenderConfig, 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) (*GoogleCloudRecommenderV1Insight, 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) (*GoogleCloudRecommenderV1ListInsightsResponse, 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) (*GoogleCloudRecommenderV1Insight, 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 FoldersLocationsRecommendersRecommendationsGetCall
- func (c *FoldersLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsGetCall
- func (c *FoldersLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1ListRecommendationsResponse, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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 GoogleCloudRecommenderV1CostProjection
- type GoogleCloudRecommenderV1Impact
- type GoogleCloudRecommenderV1Insight
- type GoogleCloudRecommenderV1InsightRecommendationReference
- type GoogleCloudRecommenderV1InsightStateInfo
- type GoogleCloudRecommenderV1InsightTypeConfig
- type GoogleCloudRecommenderV1InsightTypeGenerationConfig
- type GoogleCloudRecommenderV1ListInsightsResponse
- type GoogleCloudRecommenderV1ListRecommendationsResponse
- type GoogleCloudRecommenderV1MarkInsightAcceptedRequest
- type GoogleCloudRecommenderV1MarkRecommendationClaimedRequest
- type GoogleCloudRecommenderV1MarkRecommendationDismissedRequest
- type GoogleCloudRecommenderV1MarkRecommendationFailedRequest
- type GoogleCloudRecommenderV1MarkRecommendationSucceededRequest
- type GoogleCloudRecommenderV1Operation
- type GoogleCloudRecommenderV1OperationGroup
- type GoogleCloudRecommenderV1Recommendation
- type GoogleCloudRecommenderV1RecommendationContent
- type GoogleCloudRecommenderV1RecommendationInsightReference
- type GoogleCloudRecommenderV1RecommendationStateInfo
- type GoogleCloudRecommenderV1RecommenderConfig
- type GoogleCloudRecommenderV1RecommenderGenerationConfig
- type GoogleCloudRecommenderV1ReliabilityProjection
- type GoogleCloudRecommenderV1SecurityProjection
- type GoogleCloudRecommenderV1SustainabilityProjection
- type GoogleCloudRecommenderV1ValueMatcher
- type GoogleTypeMoney
- type OrganizationsLocationsInsightTypesGetConfigCall
- func (c *OrganizationsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesGetConfigCall
- func (c *OrganizationsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1InsightTypeConfig, 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) (*GoogleCloudRecommenderV1Insight, 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) (*GoogleCloudRecommenderV1ListInsightsResponse, 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) (*GoogleCloudRecommenderV1Insight, 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) (*GoogleCloudRecommenderV1InsightTypeConfig, 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 OrganizationsLocationsRecommendersGetConfigCall
- func (c *OrganizationsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersGetConfigCall
- func (c *OrganizationsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1ListRecommendationsResponse, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1RecommenderConfig, 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) (*GoogleCloudRecommenderV1InsightTypeConfig, 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) (*GoogleCloudRecommenderV1Insight, 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) (*GoogleCloudRecommenderV1ListInsightsResponse, 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) (*GoogleCloudRecommenderV1Insight, 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) (*GoogleCloudRecommenderV1InsightTypeConfig, 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 ProjectsLocationsRecommendersGetConfigCall
- func (c *ProjectsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *ProjectsLocationsRecommendersGetConfigCall
- func (c *ProjectsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1ListRecommendationsResponse, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1Recommendation, 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) (*GoogleCloudRecommenderV1RecommenderConfig, 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 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 ¶
type BillingAccountsLocationsInsightTypesGetConfigCall ¶
type BillingAccountsLocationsInsightTypesGetConfigCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsInsightTypesGetConfigCall) Context ¶
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesGetConfigCall) Do ¶
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1InsightTypeConfig, error)
Do executes the "recommender.billingAccounts.locations.insightTypes.getConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1InsightTypeConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesGetConfigCall) Fields ¶
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesGetConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsInsightTypesGetConfigCall) Header ¶
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsInsightTypesGetConfigCall) IfNoneMatch ¶
func (c *BillingAccountsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsInsightTypesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type BillingAccountsLocationsInsightTypesInsightsGetCall ¶
type BillingAccountsLocationsInsightTypesInsightsGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsInsightTypesInsightsGetCall) Context ¶
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall) Do ¶
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.billingAccounts.locations.insightTypes.insights.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall) Fields ¶
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall) Header ¶
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsInsightTypesInsightsGetCall) IfNoneMatch ¶
func (c *BillingAccountsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type BillingAccountsLocationsInsightTypesInsightsListCall ¶
type BillingAccountsLocationsInsightTypesInsightsListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsInsightTypesInsightsListCall) Context ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesInsightsListCall) Do ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1ListInsightsResponse, error)
Do executes the "recommender.billingAccounts.locations.insightTypes.insights.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListInsightsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesInsightsListCall) Fields ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsInsightTypesInsightsListCall) Filter ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Filter(filter string) *BillingAccountsLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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 expressions are based on the filter language described at https://google.aip.dev/160)
func (*BillingAccountsLocationsInsightTypesInsightsListCall) Header ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsInsightTypesInsightsListCall) IfNoneMatch ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BillingAccountsLocationsInsightTypesInsightsListCall) PageSize ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *BillingAccountsLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*BillingAccountsLocationsInsightTypesInsightsListCall) PageToken ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *BillingAccountsLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*BillingAccountsLocationsInsightTypesInsightsListCall) Pages ¶
func (c *BillingAccountsLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListInsightsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall ¶
type BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Context ¶
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Do ¶
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.billingAccounts.locations.insightTypes.insights.markAccepted" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Fields ¶
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Header ¶
func (c *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BillingAccountsLocationsInsightTypesInsightsService ¶
type BillingAccountsLocationsInsightTypesInsightsService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsLocationsInsightTypesInsightsService ¶
func NewBillingAccountsLocationsInsightTypesInsightsService(s *Service) *BillingAccountsLocationsInsightTypesInsightsService
func (*BillingAccountsLocationsInsightTypesInsightsService) Get ¶
func (r *BillingAccountsLocationsInsightTypesInsightsService) Get(name string) *BillingAccountsLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.
- name: Name of the insight.
func (*BillingAccountsLocationsInsightTypesInsightsService) List ¶
func (r *BillingAccountsLocationsInsightTypesInsightsService) List(parent string) *BillingAccountsLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptable formats: * `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/[IN SIGHT_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 to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.
func (*BillingAccountsLocationsInsightTypesInsightsService) MarkAccepted ¶
func (r *BillingAccountsLocationsInsightTypesInsightsService) MarkAccepted(name string, googlecloudrecommenderv1markinsightacceptedrequest *GoogleCloudRecommenderV1MarkInsightAcceptedRequest) *BillingAccountsLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
type BillingAccountsLocationsInsightTypesService ¶
type BillingAccountsLocationsInsightTypesService struct { Insights *BillingAccountsLocationsInsightTypesInsightsService // contains filtered or unexported fields }
func NewBillingAccountsLocationsInsightTypesService ¶
func NewBillingAccountsLocationsInsightTypesService(s *Service) *BillingAccountsLocationsInsightTypesService
func (*BillingAccountsLocationsInsightTypesService) GetConfig ¶
func (r *BillingAccountsLocationsInsightTypesService) GetConfig(name string) *BillingAccountsLocationsInsightTypesGetConfigCall
GetConfig: Gets the requested InsightTypeConfig. There is only one instance of 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/[IN SIGHT_TYPE_ID]/config`.
func (*BillingAccountsLocationsInsightTypesService) UpdateConfig ¶
func (r *BillingAccountsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1insighttypeconfig *GoogleCloudRecommenderV1InsightTypeConfig) *BillingAccountsLocationsInsightTypesUpdateConfigCall
UpdateConfig: Updates an InsightTypeConfig change. This will create a new revision of the config.
- name: Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I D]/config.
type BillingAccountsLocationsInsightTypesUpdateConfigCall ¶
type BillingAccountsLocationsInsightTypesUpdateConfigCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall) Context ¶
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Context(ctx context.Context) *BillingAccountsLocationsInsightTypesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall) Do ¶
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1InsightTypeConfig, error)
Do executes the "recommender.billingAccounts.locations.insightTypes.updateConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1InsightTypeConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall) Fields ¶
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsInsightTypesUpdateConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall) Header ¶
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall) UpdateMask ¶
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMask string) *BillingAccountsLocationsInsightTypesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
func (*BillingAccountsLocationsInsightTypesUpdateConfigCall) ValidateOnly ¶
func (c *BillingAccountsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnly bool) *BillingAccountsLocationsInsightTypesUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate the request and preview the change, but do not actually update it.
type BillingAccountsLocationsRecommendersGetConfigCall ¶
type BillingAccountsLocationsRecommendersGetConfigCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersGetConfigCall) Context ¶
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersGetConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersGetConfigCall) Do ¶
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, error)
Do executes the "recommender.billingAccounts.locations.recommenders.getConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1RecommenderConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersGetConfigCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersGetConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersGetConfigCall) Header ¶
func (c *BillingAccountsLocationsRecommendersGetConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsRecommendersGetConfigCall) IfNoneMatch ¶
func (c *BillingAccountsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsRecommendersGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type BillingAccountsLocationsRecommendersRecommendationsGetCall ¶
type BillingAccountsLocationsRecommendersRecommendationsGetCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall) Context ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsGetCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall) Do ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall) Header ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsRecommendersRecommendationsGetCall) IfNoneMatch ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type BillingAccountsLocationsRecommendersRecommendationsListCall ¶
type BillingAccountsLocationsRecommendersRecommendationsListCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) Context ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsListCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) Do ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1ListRecommendationsResponse, error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) Filter ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Filter(filter string) *BillingAccountsLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) Header ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) IfNoneMatch ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) PageSize ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *BillingAccountsLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) PageToken ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *BillingAccountsLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*BillingAccountsLocationsRecommendersRecommendationsListCall) Pages ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListRecommendationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall ¶
type BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Context ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Do ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markClaimed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Header ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall ¶
type BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Context ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Do ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markDismissed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Header ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall ¶
type BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Context ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Do ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markFailed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Header ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall ¶
type BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Context ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Do ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.billingAccounts.locations.recommenders.recommendations.markSucceeded" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Header ¶
func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type BillingAccountsLocationsRecommendersRecommendationsService ¶
type BillingAccountsLocationsRecommendersRecommendationsService struct {
// contains filtered or unexported fields
}
func NewBillingAccountsLocationsRecommendersRecommendationsService ¶
func NewBillingAccountsLocationsRecommendersRecommendationsService(s *Service) *BillingAccountsLocationsRecommendersRecommendationsService
func (*BillingAccountsLocationsRecommendersRecommendationsService) Get ¶
func (r *BillingAccountsLocationsRecommendersRecommendationsService) Get(name string) *BillingAccountsLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService) List ¶
func (r *BillingAccountsLocationsRecommendersRecommendationsService) List(parent string) *BillingAccountsLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_I D]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RE COMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMME NDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
func (*BillingAccountsLocationsRecommendersRecommendationsService) MarkClaimed ¶
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkClaimed(name string, googlecloudrecommenderv1markrecommendationclaimedrequest *GoogleCloudRecommenderV1MarkRecommendationClaimedRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService) MarkDismissed ¶
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkDismissed(name string, googlecloudrecommenderv1markrecommendationdismissedrequest *GoogleCloudRecommenderV1MarkRecommendationDismissedRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService) MarkFailed ¶
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkFailed(name string, googlecloudrecommenderv1markrecommendationfailedrequest *GoogleCloudRecommenderV1MarkRecommendationFailedRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*BillingAccountsLocationsRecommendersRecommendationsService) MarkSucceeded ¶
func (r *BillingAccountsLocationsRecommendersRecommendationsService) MarkSucceeded(name string, googlecloudrecommenderv1markrecommendationsucceededrequest *GoogleCloudRecommenderV1MarkRecommendationSucceededRequest) *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
type BillingAccountsLocationsRecommendersService ¶
type BillingAccountsLocationsRecommendersService struct { Recommendations *BillingAccountsLocationsRecommendersRecommendationsService // contains filtered or unexported fields }
func NewBillingAccountsLocationsRecommendersService ¶
func NewBillingAccountsLocationsRecommendersService(s *Service) *BillingAccountsLocationsRecommendersService
func (*BillingAccountsLocationsRecommendersService) GetConfig ¶
func (r *BillingAccountsLocationsRecommendersService) GetConfig(name string) *BillingAccountsLocationsRecommendersGetConfigCall
GetConfig: Gets the requested Recommender Config. There is only one instance of the config for each Recommender.
- name: Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_I D]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/c onfig` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMME NDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RE COMMENDER_ID]/config`.
func (*BillingAccountsLocationsRecommendersService) UpdateConfig ¶
func (r *BillingAccountsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1recommenderconfig *GoogleCloudRecommenderV1RecommenderConfig) *BillingAccountsLocationsRecommendersUpdateConfigCall
UpdateConfig: Updates a Recommender Config. This will create a new revision of the config.
- name: Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID ]/config.
type BillingAccountsLocationsRecommendersUpdateConfigCall ¶
type BillingAccountsLocationsRecommendersUpdateConfigCall struct {
// contains filtered or unexported fields
}
func (*BillingAccountsLocationsRecommendersUpdateConfigCall) Context ¶
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Context(ctx context.Context) *BillingAccountsLocationsRecommendersUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall) Do ¶
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, error)
Do executes the "recommender.billingAccounts.locations.recommenders.updateConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1RecommenderConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall) Fields ¶
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsRecommendersUpdateConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall) Header ¶
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall) UpdateMask ¶
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMask string) *BillingAccountsLocationsRecommendersUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
func (*BillingAccountsLocationsRecommendersUpdateConfigCall) ValidateOnly ¶
func (c *BillingAccountsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnly bool) *BillingAccountsLocationsRecommendersUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate the request and preview the change, but do not actually update it.
type BillingAccountsLocationsService ¶
type BillingAccountsLocationsService struct { InsightTypes *BillingAccountsLocationsInsightTypesService Recommenders *BillingAccountsLocationsRecommendersService // contains filtered or unexported fields }
func NewBillingAccountsLocationsService ¶
func NewBillingAccountsLocationsService(s *Service) *BillingAccountsLocationsService
type BillingAccountsService ¶
type BillingAccountsService struct { Locations *BillingAccountsLocationsService // contains filtered or unexported fields }
func NewBillingAccountsService ¶
func NewBillingAccountsService(s *Service) *BillingAccountsService
type FoldersLocationsInsightTypesInsightsGetCall ¶
type FoldersLocationsInsightTypesInsightsGetCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsInsightTypesInsightsGetCall) Context ¶
func (c *FoldersLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsInsightTypesInsightsGetCall) Do ¶
func (c *FoldersLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.folders.locations.insightTypes.insights.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsInsightTypesInsightsGetCall) Fields ¶
func (c *FoldersLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsInsightTypesInsightsGetCall) Header ¶
func (c *FoldersLocationsInsightTypesInsightsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FoldersLocationsInsightTypesInsightsGetCall) IfNoneMatch ¶
func (c *FoldersLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type FoldersLocationsInsightTypesInsightsListCall ¶
type FoldersLocationsInsightTypesInsightsListCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsInsightTypesInsightsListCall) Context ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsInsightTypesInsightsListCall) Do ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1ListInsightsResponse, error)
Do executes the "recommender.folders.locations.insightTypes.insights.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListInsightsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsInsightTypesInsightsListCall) Fields ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsInsightTypesInsightsListCall) Filter ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) Filter(filter string) *FoldersLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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 expressions are based on the filter language described at https://google.aip.dev/160)
func (*FoldersLocationsInsightTypesInsightsListCall) Header ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FoldersLocationsInsightTypesInsightsListCall) IfNoneMatch ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *FoldersLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FoldersLocationsInsightTypesInsightsListCall) PageSize ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *FoldersLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*FoldersLocationsInsightTypesInsightsListCall) PageToken ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *FoldersLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*FoldersLocationsInsightTypesInsightsListCall) Pages ¶
func (c *FoldersLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListInsightsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type FoldersLocationsInsightTypesInsightsMarkAcceptedCall ¶
type FoldersLocationsInsightTypesInsightsMarkAcceptedCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Context ¶
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Do ¶
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.folders.locations.insightTypes.insights.markAccepted" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Fields ¶
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Header ¶
func (c *FoldersLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FoldersLocationsInsightTypesInsightsService ¶
type FoldersLocationsInsightTypesInsightsService struct {
// contains filtered or unexported fields
}
func NewFoldersLocationsInsightTypesInsightsService ¶
func NewFoldersLocationsInsightTypesInsightsService(s *Service) *FoldersLocationsInsightTypesInsightsService
func (*FoldersLocationsInsightTypesInsightsService) Get ¶
func (r *FoldersLocationsInsightTypesInsightsService) Get(name string) *FoldersLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.
- name: Name of the insight.
func (*FoldersLocationsInsightTypesInsightsService) List ¶
func (r *FoldersLocationsInsightTypesInsightsService) List(parent string) *FoldersLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptable formats: * `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/[IN SIGHT_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 to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.
func (*FoldersLocationsInsightTypesInsightsService) MarkAccepted ¶
func (r *FoldersLocationsInsightTypesInsightsService) MarkAccepted(name string, googlecloudrecommenderv1markinsightacceptedrequest *GoogleCloudRecommenderV1MarkInsightAcceptedRequest) *FoldersLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
type FoldersLocationsInsightTypesService ¶
type FoldersLocationsInsightTypesService struct { Insights *FoldersLocationsInsightTypesInsightsService // contains filtered or unexported fields }
func NewFoldersLocationsInsightTypesService ¶
func NewFoldersLocationsInsightTypesService(s *Service) *FoldersLocationsInsightTypesService
type FoldersLocationsRecommendersRecommendationsGetCall ¶
type FoldersLocationsRecommendersRecommendationsGetCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsRecommendersRecommendationsGetCall) Context ¶
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsGetCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsGetCall) Do ¶
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.folders.locations.recommenders.recommendations.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsGetCall) Fields ¶
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsRecommendersRecommendationsGetCall) Header ¶
func (c *FoldersLocationsRecommendersRecommendationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FoldersLocationsRecommendersRecommendationsGetCall) IfNoneMatch ¶
func (c *FoldersLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type FoldersLocationsRecommendersRecommendationsListCall ¶
type FoldersLocationsRecommendersRecommendationsListCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsRecommendersRecommendationsListCall) Context ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsListCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsListCall) Do ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1ListRecommendationsResponse, error)
Do executes the "recommender.folders.locations.recommenders.recommendations.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsListCall) Fields ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsRecommendersRecommendationsListCall) Filter ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) Filter(filter string) *FoldersLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)
func (*FoldersLocationsRecommendersRecommendationsListCall) Header ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*FoldersLocationsRecommendersRecommendationsListCall) IfNoneMatch ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *FoldersLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*FoldersLocationsRecommendersRecommendationsListCall) PageSize ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *FoldersLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*FoldersLocationsRecommendersRecommendationsListCall) PageToken ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *FoldersLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*FoldersLocationsRecommendersRecommendationsListCall) Pages ¶
func (c *FoldersLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListRecommendationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type FoldersLocationsRecommendersRecommendationsMarkClaimedCall ¶
type FoldersLocationsRecommendersRecommendationsMarkClaimedCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Context ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Do ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markClaimed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Fields ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Header ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FoldersLocationsRecommendersRecommendationsMarkDismissedCall ¶
type FoldersLocationsRecommendersRecommendationsMarkDismissedCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Context ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Do ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markDismissed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Fields ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Header ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FoldersLocationsRecommendersRecommendationsMarkFailedCall ¶
type FoldersLocationsRecommendersRecommendationsMarkFailedCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall) Context ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall) Do ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markFailed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall) Fields ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsRecommendersRecommendationsMarkFailedCall) Header ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FoldersLocationsRecommendersRecommendationsMarkSucceededCall ¶
type FoldersLocationsRecommendersRecommendationsMarkSucceededCall struct {
// contains filtered or unexported fields
}
func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Context ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.Context) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Do ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.folders.locations.recommenders.recommendations.markSucceeded" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Fields ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Header ¶
func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type FoldersLocationsRecommendersRecommendationsService ¶
type FoldersLocationsRecommendersRecommendationsService struct {
// contains filtered or unexported fields
}
func NewFoldersLocationsRecommendersRecommendationsService ¶
func NewFoldersLocationsRecommendersRecommendationsService(s *Service) *FoldersLocationsRecommendersRecommendationsService
func (*FoldersLocationsRecommendersRecommendationsService) Get ¶
func (r *FoldersLocationsRecommendersRecommendationsService) Get(name string) *FoldersLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService) List ¶
func (r *FoldersLocationsRecommendersRecommendationsService) List(parent string) *FoldersLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_I D]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RE COMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMME NDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
func (*FoldersLocationsRecommendersRecommendationsService) MarkClaimed ¶
func (r *FoldersLocationsRecommendersRecommendationsService) MarkClaimed(name string, googlecloudrecommenderv1markrecommendationclaimedrequest *GoogleCloudRecommenderV1MarkRecommendationClaimedRequest) *FoldersLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService) MarkDismissed ¶
func (r *FoldersLocationsRecommendersRecommendationsService) MarkDismissed(name string, googlecloudrecommenderv1markrecommendationdismissedrequest *GoogleCloudRecommenderV1MarkRecommendationDismissedRequest) *FoldersLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService) MarkFailed ¶
func (r *FoldersLocationsRecommendersRecommendationsService) MarkFailed(name string, googlecloudrecommenderv1markrecommendationfailedrequest *GoogleCloudRecommenderV1MarkRecommendationFailedRequest) *FoldersLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*FoldersLocationsRecommendersRecommendationsService) MarkSucceeded ¶
func (r *FoldersLocationsRecommendersRecommendationsService) MarkSucceeded(name string, googlecloudrecommenderv1markrecommendationsucceededrequest *GoogleCloudRecommenderV1MarkRecommendationSucceededRequest) *FoldersLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
type FoldersLocationsRecommendersService ¶
type FoldersLocationsRecommendersService struct { Recommendations *FoldersLocationsRecommendersRecommendationsService // contains filtered or unexported fields }
func NewFoldersLocationsRecommendersService ¶
func NewFoldersLocationsRecommendersService(s *Service) *FoldersLocationsRecommendersService
type FoldersLocationsService ¶
type FoldersLocationsService struct { InsightTypes *FoldersLocationsInsightTypesService Recommenders *FoldersLocationsRecommendersService // contains filtered or unexported fields }
func NewFoldersLocationsService ¶
func NewFoldersLocationsService(s *Service) *FoldersLocationsService
type FoldersService ¶
type FoldersService struct { Locations *FoldersLocationsService // contains filtered or unexported fields }
func NewFoldersService ¶
func NewFoldersService(s *Service) *FoldersService
type GoogleCloudRecommenderV1CostProjection ¶
type GoogleCloudRecommenderV1CostProjection 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. Duration string `json:"duration,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:"-"` }
GoogleCloudRecommenderV1CostProjection: Contains metadata about how much money a recommendation can save or incur.
func (GoogleCloudRecommenderV1CostProjection) MarshalJSON ¶
func (s GoogleCloudRecommenderV1CostProjection) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1Impact ¶
type GoogleCloudRecommenderV1Impact 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. Category string `json:"category,omitempty"` // CostProjection: Use with CategoryType.COST CostProjection *GoogleCloudRecommenderV1CostProjection `json:"costProjection,omitempty"` // ReliabilityProjection: Use with CategoryType.RELIABILITY ReliabilityProjection *GoogleCloudRecommenderV1ReliabilityProjection `json:"reliabilityProjection,omitempty"` // SecurityProjection: Use with CategoryType.SECURITY SecurityProjection *GoogleCloudRecommenderV1SecurityProjection `json:"securityProjection,omitempty"` // SustainabilityProjection: Use with CategoryType.SUSTAINABILITY SustainabilityProjection *GoogleCloudRecommenderV1SustainabilityProjection `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:"-"` }
GoogleCloudRecommenderV1Impact: Contains the impact a recommendation can have for a given category.
func (GoogleCloudRecommenderV1Impact) MarshalJSON ¶
func (s GoogleCloudRecommenderV1Impact) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1Insight ¶
type GoogleCloudRecommenderV1Insight struct { // AssociatedRecommendations: Recommendations derived from this insight. AssociatedRecommendations []*GoogleCloudRecommenderV1InsightRecommendationReference `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" - This insight is related to reliability. Category string `json:"category,omitempty"` // Content: A struct of custom fields to explain the insight. Example: // "grantedPermissionsCount": "1000" Content googleapi.RawMessage `json:"content,omitempty"` // Description: Free-form human readable summary in English. The maximum length // is 500 characters. Description string `json:"description,omitempty"` // Etag: Fingerprint of the Insight. Provides optimistic locking when updating // states. Etag string `json:"etag,omitempty"` // InsightSubtype: Insight subtype. Insight content schema will be stable for a // given subtype. InsightSubtype string `json:"insightSubtype,omitempty"` // LastRefreshTime: Timestamp of the latest data used to generate the insight. LastRefreshTime string `json:"lastRefreshTime,omitempty"` // Name: Identifier. Name of the insight. Name string `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). ObservationPeriod string `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. Severity string `json:"severity,omitempty"` // StateInfo: Information state and metadata. StateInfo *GoogleCloudRecommenderV1InsightStateInfo `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:"-"` }
GoogleCloudRecommenderV1Insight: An insight along with the information used to derive the insight. The insight may have associated recommendations as well.
func (GoogleCloudRecommenderV1Insight) MarshalJSON ¶
func (s GoogleCloudRecommenderV1Insight) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1InsightRecommendationReference ¶
type GoogleCloudRecommenderV1InsightRecommendationReference struct { // Recommendation: Recommendation resource name, e.g. // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/ // recommendations/[RECOMMENDATION_ID] Recommendation string `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:"-"` }
GoogleCloudRecommenderV1InsightRecommendationReference: Reference to an associated recommendation.
func (GoogleCloudRecommenderV1InsightRecommendationReference) MarshalJSON ¶
func (s GoogleCloudRecommenderV1InsightRecommendationReference) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1InsightStateInfo ¶
type GoogleCloudRecommenderV1InsightStateInfo 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. State string `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:"-"` }
GoogleCloudRecommenderV1InsightStateInfo: Information related to insight state.
func (GoogleCloudRecommenderV1InsightStateInfo) MarshalJSON ¶
func (s GoogleCloudRecommenderV1InsightStateInfo) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1InsightTypeConfig ¶
type GoogleCloudRecommenderV1InsightTypeConfig 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. DisplayName string `json:"displayName,omitempty"` // Etag: Fingerprint of the InsightTypeConfig. Provides optimistic locking when // updating. Etag string `json:"etag,omitempty"` // InsightTypeGenerationConfig: InsightTypeGenerationConfig which configures // the generation of insights for this insight type. InsightTypeGenerationConfig *GoogleCloudRecommenderV1InsightTypeGenerationConfig `json:"insightTypeGenerationConfig,omitempty"` // Name: Identifier. Name of insight type config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID] // /config Name string `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. RevisionId string `json:"revisionId,omitempty"` // UpdateTime: Last time when the config was updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
GoogleCloudRecommenderV1InsightTypeConfig: Configuration for an InsightType.
func (GoogleCloudRecommenderV1InsightTypeConfig) MarshalJSON ¶
func (s GoogleCloudRecommenderV1InsightTypeConfig) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1InsightTypeGenerationConfig ¶
type GoogleCloudRecommenderV1InsightTypeGenerationConfig struct { // Params: Parameters for this InsightTypeGenerationConfig. These configs can // be used by or are applied to all subtypes. Params googleapi.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:"-"` }
GoogleCloudRecommenderV1InsightTypeGenerationConfig: A configuration to customize the generation of insights. Eg, customizing the lookback period considered when generating a insight.
func (GoogleCloudRecommenderV1InsightTypeGenerationConfig) MarshalJSON ¶
func (s GoogleCloudRecommenderV1InsightTypeGenerationConfig) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1ListInsightsResponse ¶
type GoogleCloudRecommenderV1ListInsightsResponse struct { // Insights: The set of insights for the `parent` resource. Insights []*GoogleCloudRecommenderV1Insight `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. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
GoogleCloudRecommenderV1ListInsightsResponse: Response to the `ListInsights` method.
func (GoogleCloudRecommenderV1ListInsightsResponse) MarshalJSON ¶
func (s GoogleCloudRecommenderV1ListInsightsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1ListRecommendationsResponse ¶
type GoogleCloudRecommenderV1ListRecommendationsResponse 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. NextPageToken string `json:"nextPageToken,omitempty"` // Recommendations: The set of recommendations for the `parent` resource. Recommendations []*GoogleCloudRecommenderV1Recommendation `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:"-"` }
GoogleCloudRecommenderV1ListRecommendationsResponse: Response to the `ListRecommendations` method.
func (GoogleCloudRecommenderV1ListRecommendationsResponse) MarshalJSON ¶
func (s GoogleCloudRecommenderV1ListRecommendationsResponse) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1MarkInsightAcceptedRequest ¶
type GoogleCloudRecommenderV1MarkInsightAcceptedRequest struct { // Etag: Required. Fingerprint of the Insight. Provides optimistic locking. Etag string `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:"-"` }
GoogleCloudRecommenderV1MarkInsightAcceptedRequest: Request for the `MarkInsightAccepted` method.
func (GoogleCloudRecommenderV1MarkInsightAcceptedRequest) MarshalJSON ¶
func (s GoogleCloudRecommenderV1MarkInsightAcceptedRequest) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1MarkRecommendationClaimedRequest ¶
type GoogleCloudRecommenderV1MarkRecommendationClaimedRequest struct { // Etag: Required. Fingerprint of the Recommendation. Provides optimistic // locking. Etag string `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:"-"` }
GoogleCloudRecommenderV1MarkRecommendationClaimedRequest: Request for the `MarkRecommendationClaimed` Method.
func (GoogleCloudRecommenderV1MarkRecommendationClaimedRequest) MarshalJSON ¶
func (s GoogleCloudRecommenderV1MarkRecommendationClaimedRequest) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1MarkRecommendationDismissedRequest ¶
type GoogleCloudRecommenderV1MarkRecommendationDismissedRequest struct { // Etag: Fingerprint of the Recommendation. Provides optimistic locking. Etag string `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:"-"` }
GoogleCloudRecommenderV1MarkRecommendationDismissedRequest: Request for the `MarkRecommendationDismissed` Method.
func (GoogleCloudRecommenderV1MarkRecommendationDismissedRequest) MarshalJSON ¶
func (s GoogleCloudRecommenderV1MarkRecommendationDismissedRequest) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1MarkRecommendationFailedRequest ¶
type GoogleCloudRecommenderV1MarkRecommendationFailedRequest struct { // Etag: Required. Fingerprint of the Recommendation. Provides optimistic // locking. Etag string `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:"-"` }
GoogleCloudRecommenderV1MarkRecommendationFailedRequest: Request for the `MarkRecommendationFailed` Method.
func (GoogleCloudRecommenderV1MarkRecommendationFailedRequest) MarshalJSON ¶
func (s GoogleCloudRecommenderV1MarkRecommendationFailedRequest) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1MarkRecommendationSucceededRequest ¶
type GoogleCloudRecommenderV1MarkRecommendationSucceededRequest struct { // Etag: Required. Fingerprint of the Recommendation. Provides optimistic // locking. Etag string `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:"-"` }
GoogleCloudRecommenderV1MarkRecommendationSucceededRequest: Request for the `MarkRecommendationSucceeded` Method.
func (GoogleCloudRecommenderV1MarkRecommendationSucceededRequest) MarshalJSON ¶
func (s GoogleCloudRecommenderV1MarkRecommendationSucceededRequest) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1Operation ¶
type GoogleCloudRecommenderV1Operation 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. Action string `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. Path string `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. PathFilters googleapi.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]GoogleCloudRecommenderV1ValueMatcher `json:"pathValueMatchers,omitempty"` // Resource: Contains the fully qualified resource name. This field is always // populated. ex: //cloudresourcemanager.googleapis.com/projects/foo. Resource string `json:"resource,omitempty"` // ResourceType: Type of GCP resource being modified/tested. This field is // always populated. Example: cloudresourcemanager.googleapis.com/Project, // compute.googleapis.com/Instance ResourceType string `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. SourcePath string `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`. SourceResource string `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 *GoogleCloudRecommenderV1ValueMatcher `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:"-"` }
GoogleCloudRecommenderV1Operation: Contains an operation for a resource loosely based on the JSON-PATCH format with support for: * Custom filters for describing partial array patch. * Extended path values for describing nested arrays. * Custom fields for describing the resource for which the operation is being described. * Allows extension to custom operations not natively supported by RFC6902. See https://tools.ietf.org/html/rfc6902 for details on the original RFC.
func (GoogleCloudRecommenderV1Operation) MarshalJSON ¶
func (s GoogleCloudRecommenderV1Operation) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1OperationGroup ¶
type GoogleCloudRecommenderV1OperationGroup 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 []*GoogleCloudRecommenderV1Operation `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:"-"` }
GoogleCloudRecommenderV1OperationGroup: Group of operations that need to be performed atomically.
func (GoogleCloudRecommenderV1OperationGroup) MarshalJSON ¶
func (s GoogleCloudRecommenderV1OperationGroup) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1Recommendation ¶
type GoogleCloudRecommenderV1Recommendation 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 []*GoogleCloudRecommenderV1Impact `json:"additionalImpact,omitempty"` // AssociatedInsights: Insights that led to this recommendation. AssociatedInsights []*GoogleCloudRecommenderV1RecommendationInsightReference `json:"associatedInsights,omitempty"` // Content: Content of the recommendation describing recommended changes to // resources. Content *GoogleCloudRecommenderV1RecommendationContent `json:"content,omitempty"` // Description: Free-form human readable summary in English. The maximum length // is 500 characters. Description string `json:"description,omitempty"` // Etag: Fingerprint of the Recommendation. Provides optimistic locking when // updating states. Etag string `json:"etag,omitempty"` // LastRefreshTime: Last time this recommendation was refreshed by the system // that created it in the first place. LastRefreshTime string `json:"lastRefreshTime,omitempty"` // Name: Identifier. Name of recommendation. Name string `json:"name,omitempty"` // PrimaryImpact: The primary impact that this recommendation can have while // trying to optimize for one category. PrimaryImpact *GoogleCloudRecommenderV1Impact `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). Priority string `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" RecommenderSubtype string `json:"recommenderSubtype,omitempty"` // StateInfo: Information for state. Contains state and metadata. StateInfo *GoogleCloudRecommenderV1RecommendationStateInfo `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. XorGroupId string `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:"-"` }
GoogleCloudRecommenderV1Recommendation: A recommendation along with a suggested action. E.g., a rightsizing recommendation for an underutilized VM, IAM role recommendations, etc
func (GoogleCloudRecommenderV1Recommendation) MarshalJSON ¶
func (s GoogleCloudRecommenderV1Recommendation) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1RecommendationContent ¶
type GoogleCloudRecommenderV1RecommendationContent 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 []*GoogleCloudRecommenderV1OperationGroup `json:"operationGroups,omitempty"` // Overview: Condensed overview information about the recommendation. Overview googleapi.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:"-"` }
GoogleCloudRecommenderV1RecommendationContent: Contains what resources are changing and how they are changing.
func (GoogleCloudRecommenderV1RecommendationContent) MarshalJSON ¶
func (s GoogleCloudRecommenderV1RecommendationContent) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1RecommendationInsightReference ¶
type GoogleCloudRecommenderV1RecommendationInsightReference struct { // Insight: Insight resource name, e.g. // projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID] // /insights/[INSIGHT_ID] Insight string `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:"-"` }
GoogleCloudRecommenderV1RecommendationInsightReference: Reference to an associated insight.
func (GoogleCloudRecommenderV1RecommendationInsightReference) MarshalJSON ¶
func (s GoogleCloudRecommenderV1RecommendationInsightReference) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1RecommendationStateInfo ¶
type GoogleCloudRecommenderV1RecommendationStateInfo 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. State string `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:"-"` }
GoogleCloudRecommenderV1RecommendationStateInfo: Information for state. Contains state and metadata.
func (GoogleCloudRecommenderV1RecommendationStateInfo) MarshalJSON ¶
func (s GoogleCloudRecommenderV1RecommendationStateInfo) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1RecommenderConfig ¶
type GoogleCloudRecommenderV1RecommenderConfig 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. DisplayName string `json:"displayName,omitempty"` // Etag: Fingerprint of the RecommenderConfig. Provides optimistic locking when // updating. Etag string `json:"etag,omitempty"` // Name: Identifier. Name of recommender config. Eg, // projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/ // config Name string `json:"name,omitempty"` // RecommenderGenerationConfig: RecommenderGenerationConfig which configures // the Generation of recommendations for this recommender. RecommenderGenerationConfig *GoogleCloudRecommenderV1RecommenderGenerationConfig `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. RevisionId string `json:"revisionId,omitempty"` // UpdateTime: Last time when the config was updated. UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "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:"-"` }
GoogleCloudRecommenderV1RecommenderConfig: Configuration for a Recommender.
func (GoogleCloudRecommenderV1RecommenderConfig) MarshalJSON ¶
func (s GoogleCloudRecommenderV1RecommenderConfig) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1RecommenderGenerationConfig ¶
type GoogleCloudRecommenderV1RecommenderGenerationConfig struct { // Params: Parameters for this RecommenderGenerationConfig. These configs can // be used by or are applied to all subtypes. Params googleapi.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:"-"` }
GoogleCloudRecommenderV1RecommenderGenerationConfig: A Configuration to customize the generation of recommendations. Eg, customizing the lookback period considered when generating a recommendation.
func (GoogleCloudRecommenderV1RecommenderGenerationConfig) MarshalJSON ¶
func (s GoogleCloudRecommenderV1RecommenderGenerationConfig) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1ReliabilityProjection ¶
type GoogleCloudRecommenderV1ReliabilityProjection struct { // Details: Per-recommender projection. Details googleapi.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:"-"` }
GoogleCloudRecommenderV1ReliabilityProjection: Contains information on the impact of a reliability recommendation.
func (GoogleCloudRecommenderV1ReliabilityProjection) MarshalJSON ¶
func (s GoogleCloudRecommenderV1ReliabilityProjection) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1SecurityProjection ¶
type GoogleCloudRecommenderV1SecurityProjection struct { // Details: Additional security impact details that is provided by the // recommender. Details googleapi.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:"-"` }
GoogleCloudRecommenderV1SecurityProjection: Contains various ways of describing the impact on Security.
func (GoogleCloudRecommenderV1SecurityProjection) MarshalJSON ¶
func (s GoogleCloudRecommenderV1SecurityProjection) MarshalJSON() ([]byte, error)
type GoogleCloudRecommenderV1SustainabilityProjection ¶
type GoogleCloudRecommenderV1SustainabilityProjection struct { // Duration: Duration for which this sustainability applies. Duration string `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). KgCO2e float64 `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:"-"` }
GoogleCloudRecommenderV1SustainabilityProjection: Contains metadata about how much sustainability a recommendation can save or incur.
func (GoogleCloudRecommenderV1SustainabilityProjection) MarshalJSON ¶
func (s GoogleCloudRecommenderV1SustainabilityProjection) MarshalJSON() ([]byte, error)
func (*GoogleCloudRecommenderV1SustainabilityProjection) UnmarshalJSON ¶
func (s *GoogleCloudRecommenderV1SustainabilityProjection) UnmarshalJSON(data []byte) error
type GoogleCloudRecommenderV1ValueMatcher ¶
type GoogleCloudRecommenderV1ValueMatcher 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::FullMatch MatchesPattern string `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:"-"` }
GoogleCloudRecommenderV1ValueMatcher: Contains various matching options for values for a GCP resource field.
func (GoogleCloudRecommenderV1ValueMatcher) MarshalJSON ¶
func (s GoogleCloudRecommenderV1ValueMatcher) MarshalJSON() ([]byte, error)
type GoogleTypeMoney ¶
type GoogleTypeMoney struct { // CurrencyCode: The three-letter currency code defined in ISO 4217. CurrencyCode string `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. Nanos int64 `json:"nanos,omitempty"` // Units: The whole units of the amount. For example if `currencyCode` is // "USD", then 1 unit is one US dollar. Units int64 `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 (s GoogleTypeMoney) MarshalJSON() ([]byte, error)
type OrganizationsLocationsInsightTypesGetConfigCall ¶
type OrganizationsLocationsInsightTypesGetConfigCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsInsightTypesGetConfigCall) Context ¶
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesGetConfigCall) Do ¶
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1InsightTypeConfig, error)
Do executes the "recommender.organizations.locations.insightTypes.getConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1InsightTypeConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesGetConfigCall) Fields ¶
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesGetConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsInsightTypesGetConfigCall) Header ¶
func (c *OrganizationsLocationsInsightTypesGetConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsInsightTypesGetConfigCall) IfNoneMatch ¶
func (c *OrganizationsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type OrganizationsLocationsInsightTypesInsightsGetCall ¶
type OrganizationsLocationsInsightTypesInsightsGetCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsInsightTypesInsightsGetCall) Context ¶
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesInsightsGetCall) Do ¶
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.organizations.locations.insightTypes.insights.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesInsightsGetCall) Fields ¶
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsInsightTypesInsightsGetCall) Header ¶
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsInsightTypesInsightsGetCall) IfNoneMatch ¶
func (c *OrganizationsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type OrganizationsLocationsInsightTypesInsightsListCall ¶
type OrganizationsLocationsInsightTypesInsightsListCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsInsightTypesInsightsListCall) Context ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesInsightsListCall) Do ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1ListInsightsResponse, error)
Do executes the "recommender.organizations.locations.insightTypes.insights.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListInsightsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesInsightsListCall) Fields ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsInsightTypesInsightsListCall) Filter ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Filter(filter string) *OrganizationsLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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 expressions are based on the filter language described at https://google.aip.dev/160)
func (*OrganizationsLocationsInsightTypesInsightsListCall) Header ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsInsightTypesInsightsListCall) IfNoneMatch ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*OrganizationsLocationsInsightTypesInsightsListCall) PageSize ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *OrganizationsLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*OrganizationsLocationsInsightTypesInsightsListCall) PageToken ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *OrganizationsLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*OrganizationsLocationsInsightTypesInsightsListCall) Pages ¶
func (c *OrganizationsLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListInsightsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall ¶
type OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Context ¶
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Do ¶
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.organizations.locations.insightTypes.insights.markAccepted" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Fields ¶
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Header ¶
func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type OrganizationsLocationsInsightTypesInsightsService ¶
type OrganizationsLocationsInsightTypesInsightsService struct {
// contains filtered or unexported fields
}
func NewOrganizationsLocationsInsightTypesInsightsService ¶
func NewOrganizationsLocationsInsightTypesInsightsService(s *Service) *OrganizationsLocationsInsightTypesInsightsService
func (*OrganizationsLocationsInsightTypesInsightsService) Get ¶
func (r *OrganizationsLocationsInsightTypesInsightsService) Get(name string) *OrganizationsLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.
- name: Name of the insight.
func (*OrganizationsLocationsInsightTypesInsightsService) List ¶
func (r *OrganizationsLocationsInsightTypesInsightsService) List(parent string) *OrganizationsLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptable formats: * `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/[IN SIGHT_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 to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.
func (*OrganizationsLocationsInsightTypesInsightsService) MarkAccepted ¶
func (r *OrganizationsLocationsInsightTypesInsightsService) MarkAccepted(name string, googlecloudrecommenderv1markinsightacceptedrequest *GoogleCloudRecommenderV1MarkInsightAcceptedRequest) *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
type OrganizationsLocationsInsightTypesService ¶
type OrganizationsLocationsInsightTypesService struct { Insights *OrganizationsLocationsInsightTypesInsightsService // contains filtered or unexported fields }
func NewOrganizationsLocationsInsightTypesService ¶
func NewOrganizationsLocationsInsightTypesService(s *Service) *OrganizationsLocationsInsightTypesService
func (*OrganizationsLocationsInsightTypesService) GetConfig ¶
func (r *OrganizationsLocationsInsightTypesService) GetConfig(name string) *OrganizationsLocationsInsightTypesGetConfigCall
GetConfig: Gets the requested InsightTypeConfig. There is only one instance of 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/[IN SIGHT_TYPE_ID]/config`.
func (*OrganizationsLocationsInsightTypesService) UpdateConfig ¶
func (r *OrganizationsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1insighttypeconfig *GoogleCloudRecommenderV1InsightTypeConfig) *OrganizationsLocationsInsightTypesUpdateConfigCall
UpdateConfig: Updates an InsightTypeConfig change. This will create a new revision of the config.
- name: Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I D]/config.
type OrganizationsLocationsInsightTypesUpdateConfigCall ¶
type OrganizationsLocationsInsightTypesUpdateConfigCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsInsightTypesUpdateConfigCall) Context ¶
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall) Do ¶
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1InsightTypeConfig, error)
Do executes the "recommender.organizations.locations.insightTypes.updateConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1InsightTypeConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall) Fields ¶
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesUpdateConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall) Header ¶
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall) UpdateMask ¶
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsInsightTypesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
func (*OrganizationsLocationsInsightTypesUpdateConfigCall) ValidateOnly ¶
func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsInsightTypesUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate the request and preview the change, but do not actually update it.
type OrganizationsLocationsRecommendersGetConfigCall ¶
type OrganizationsLocationsRecommendersGetConfigCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersGetConfigCall) Context ¶
func (c *OrganizationsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersGetConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersGetConfigCall) Do ¶
func (c *OrganizationsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, error)
Do executes the "recommender.organizations.locations.recommenders.getConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1RecommenderConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersGetConfigCall) Fields ¶
func (c *OrganizationsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersGetConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersGetConfigCall) Header ¶
func (c *OrganizationsLocationsRecommendersGetConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsRecommendersGetConfigCall) IfNoneMatch ¶
func (c *OrganizationsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type OrganizationsLocationsRecommendersRecommendationsGetCall ¶
type OrganizationsLocationsRecommendersRecommendationsGetCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersRecommendationsGetCall) Context ¶
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall) Do ¶
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall) Fields ¶
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall) Header ¶
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsRecommendersRecommendationsGetCall) IfNoneMatch ¶
func (c *OrganizationsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type OrganizationsLocationsRecommendersRecommendationsListCall ¶
type OrganizationsLocationsRecommendersRecommendationsListCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersRecommendationsListCall) Context ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsListCall) Do ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1ListRecommendationsResponse, error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsListCall) Fields ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersRecommendationsListCall) Filter ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Filter(filter string) *OrganizationsLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://google.aip.dev/160)
func (*OrganizationsLocationsRecommendersRecommendationsListCall) Header ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsRecommendersRecommendationsListCall) IfNoneMatch ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*OrganizationsLocationsRecommendersRecommendationsListCall) PageSize ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *OrganizationsLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*OrganizationsLocationsRecommendersRecommendationsListCall) PageToken ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *OrganizationsLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*OrganizationsLocationsRecommendersRecommendationsListCall) Pages ¶
func (c *OrganizationsLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListRecommendationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall ¶
type OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Context ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Do ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markClaimed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Fields ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Header ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall ¶
type OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Context ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Do ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markDismissed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Fields ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Header ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type OrganizationsLocationsRecommendersRecommendationsMarkFailedCall ¶
type OrganizationsLocationsRecommendersRecommendationsMarkFailedCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Context ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Do ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markFailed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Fields ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Header ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall ¶
type OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Context ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Do ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.organizations.locations.recommenders.recommendations.markSucceeded" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Fields ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Header ¶
func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type OrganizationsLocationsRecommendersRecommendationsService ¶
type OrganizationsLocationsRecommendersRecommendationsService struct {
// contains filtered or unexported fields
}
func NewOrganizationsLocationsRecommendersRecommendationsService ¶
func NewOrganizationsLocationsRecommendersRecommendationsService(s *Service) *OrganizationsLocationsRecommendersRecommendationsService
func (*OrganizationsLocationsRecommendersRecommendationsService) Get ¶
func (r *OrganizationsLocationsRecommendersRecommendationsService) Get(name string) *OrganizationsLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService) List ¶
func (r *OrganizationsLocationsRecommendersRecommendationsService) List(parent string) *OrganizationsLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_I D]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RE COMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMME NDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
func (*OrganizationsLocationsRecommendersRecommendationsService) MarkClaimed ¶
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkClaimed(name string, googlecloudrecommenderv1markrecommendationclaimedrequest *GoogleCloudRecommenderV1MarkRecommendationClaimedRequest) *OrganizationsLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService) MarkDismissed ¶
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkDismissed(name string, googlecloudrecommenderv1markrecommendationdismissedrequest *GoogleCloudRecommenderV1MarkRecommendationDismissedRequest) *OrganizationsLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService) MarkFailed ¶
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkFailed(name string, googlecloudrecommenderv1markrecommendationfailedrequest *GoogleCloudRecommenderV1MarkRecommendationFailedRequest) *OrganizationsLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*OrganizationsLocationsRecommendersRecommendationsService) MarkSucceeded ¶
func (r *OrganizationsLocationsRecommendersRecommendationsService) MarkSucceeded(name string, googlecloudrecommenderv1markrecommendationsucceededrequest *GoogleCloudRecommenderV1MarkRecommendationSucceededRequest) *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
type OrganizationsLocationsRecommendersService ¶
type OrganizationsLocationsRecommendersService struct { Recommendations *OrganizationsLocationsRecommendersRecommendationsService // contains filtered or unexported fields }
func NewOrganizationsLocationsRecommendersService ¶
func NewOrganizationsLocationsRecommendersService(s *Service) *OrganizationsLocationsRecommendersService
func (*OrganizationsLocationsRecommendersService) GetConfig ¶
func (r *OrganizationsLocationsRecommendersService) GetConfig(name string) *OrganizationsLocationsRecommendersGetConfigCall
GetConfig: Gets the requested Recommender Config. There is only one instance of the config for each Recommender.
- name: Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_I D]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/c onfig` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMME NDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RE COMMENDER_ID]/config`.
func (*OrganizationsLocationsRecommendersService) UpdateConfig ¶
func (r *OrganizationsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1recommenderconfig *GoogleCloudRecommenderV1RecommenderConfig) *OrganizationsLocationsRecommendersUpdateConfigCall
UpdateConfig: Updates a Recommender Config. This will create a new revision of the config.
- name: Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID ]/config.
type OrganizationsLocationsRecommendersUpdateConfigCall ¶
type OrganizationsLocationsRecommendersUpdateConfigCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsLocationsRecommendersUpdateConfigCall) Context ¶
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsRecommendersUpdateConfigCall) Do ¶
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, error)
Do executes the "recommender.organizations.locations.recommenders.updateConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1RecommenderConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsRecommendersUpdateConfigCall) Fields ¶
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersUpdateConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*OrganizationsLocationsRecommendersUpdateConfigCall) Header ¶
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*OrganizationsLocationsRecommendersUpdateConfigCall) UpdateMask ¶
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsRecommendersUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
func (*OrganizationsLocationsRecommendersUpdateConfigCall) ValidateOnly ¶
func (c *OrganizationsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsRecommendersUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate the request and preview the change, but do not actually update it.
type OrganizationsLocationsService ¶
type OrganizationsLocationsService struct { InsightTypes *OrganizationsLocationsInsightTypesService Recommenders *OrganizationsLocationsRecommendersService // contains filtered or unexported fields }
func NewOrganizationsLocationsService ¶
func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService
type OrganizationsService ¶
type OrganizationsService struct { Locations *OrganizationsLocationsService // contains filtered or unexported fields }
func NewOrganizationsService ¶
func NewOrganizationsService(s *Service) *OrganizationsService
type ProjectsLocationsInsightTypesGetConfigCall ¶
type ProjectsLocationsInsightTypesGetConfigCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInsightTypesGetConfigCall) Context ¶
func (c *ProjectsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesGetConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesGetConfigCall) Do ¶
func (c *ProjectsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1InsightTypeConfig, error)
Do executes the "recommender.projects.locations.insightTypes.getConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1InsightTypeConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesGetConfigCall) Fields ¶
func (c *ProjectsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesGetConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInsightTypesGetConfigCall) Header ¶
func (c *ProjectsLocationsInsightTypesGetConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInsightTypesGetConfigCall) IfNoneMatch ¶
func (c *ProjectsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsInsightTypesGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsInsightTypesInsightsGetCall ¶
type ProjectsLocationsInsightTypesInsightsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInsightTypesInsightsGetCall) Context ¶
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesInsightsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesInsightsGetCall) Do ¶
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.projects.locations.insightTypes.insights.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesInsightsGetCall) Fields ¶
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInsightTypesInsightsGetCall) Header ¶
func (c *ProjectsLocationsInsightTypesInsightsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInsightTypesInsightsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInsightTypesInsightsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsInsightTypesInsightsListCall ¶
type ProjectsLocationsInsightTypesInsightsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInsightTypesInsightsListCall) Context ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesInsightsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesInsightsListCall) Do ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1ListInsightsResponse, error)
Do executes the "recommender.projects.locations.insightTypes.insights.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListInsightsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesInsightsListCall) Fields ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInsightTypesInsightsListCall) Filter ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) Filter(filter string) *ProjectsLocationsInsightTypesInsightsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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 expressions are based on the filter language described at https://google.aip.dev/160)
func (*ProjectsLocationsInsightTypesInsightsListCall) Header ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInsightTypesInsightsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInsightTypesInsightsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsInsightTypesInsightsListCall) PageSize ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) PageSize(pageSize int64) *ProjectsLocationsInsightTypesInsightsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*ProjectsLocationsInsightTypesInsightsListCall) PageToken ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) PageToken(pageToken string) *ProjectsLocationsInsightTypesInsightsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*ProjectsLocationsInsightTypesInsightsListCall) Pages ¶
func (c *ProjectsLocationsInsightTypesInsightsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListInsightsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsInsightTypesInsightsMarkAcceptedCall ¶
type ProjectsLocationsInsightTypesInsightsMarkAcceptedCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Context ¶
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Do ¶
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Insight, error)
Do executes the "recommender.projects.locations.insightTypes.insights.markAccepted" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Insight.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Fields ¶
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Header ¶
func (c *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsInsightTypesInsightsService ¶
type ProjectsLocationsInsightTypesInsightsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsInsightTypesInsightsService ¶
func NewProjectsLocationsInsightTypesInsightsService(s *Service) *ProjectsLocationsInsightTypesInsightsService
func (*ProjectsLocationsInsightTypesInsightsService) Get ¶
func (r *ProjectsLocationsInsightTypesInsightsService) Get(name string) *ProjectsLocationsInsightTypesInsightsGetCall
Get: Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.
- name: Name of the insight.
func (*ProjectsLocationsInsightTypesInsightsService) List ¶
func (r *ProjectsLocationsInsightTypesInsightsService) List(parent string) *ProjectsLocationsInsightTypesInsightsListCall
List: Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.
- parent: The container resource on which to execute the request. Acceptable formats: * `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/[IN SIGHT_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 to supported insight types: https://cloud.google.com/recommender/docs/insights/insight-types.
func (*ProjectsLocationsInsightTypesInsightsService) MarkAccepted ¶
func (r *ProjectsLocationsInsightTypesInsightsService) MarkAccepted(name string, googlecloudrecommenderv1markinsightacceptedrequest *GoogleCloudRecommenderV1MarkInsightAcceptedRequest) *ProjectsLocationsInsightTypesInsightsMarkAcceptedCall
MarkAccepted: Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
- name: Name of the insight.
type ProjectsLocationsInsightTypesService ¶
type ProjectsLocationsInsightTypesService struct { Insights *ProjectsLocationsInsightTypesInsightsService // contains filtered or unexported fields }
func NewProjectsLocationsInsightTypesService ¶
func NewProjectsLocationsInsightTypesService(s *Service) *ProjectsLocationsInsightTypesService
func (*ProjectsLocationsInsightTypesService) GetConfig ¶
func (r *ProjectsLocationsInsightTypesService) GetConfig(name string) *ProjectsLocationsInsightTypesGetConfigCall
GetConfig: Gets the requested InsightTypeConfig. There is only one instance of 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/[IN SIGHT_TYPE_ID]/config`.
func (*ProjectsLocationsInsightTypesService) UpdateConfig ¶
func (r *ProjectsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1insighttypeconfig *GoogleCloudRecommenderV1InsightTypeConfig) *ProjectsLocationsInsightTypesUpdateConfigCall
UpdateConfig: Updates an InsightTypeConfig change. This will create a new revision of the config.
- name: Identifier. Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_I D]/config.
type ProjectsLocationsInsightTypesUpdateConfigCall ¶
type ProjectsLocationsInsightTypesUpdateConfigCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsInsightTypesUpdateConfigCall) Context ¶
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Context(ctx context.Context) *ProjectsLocationsInsightTypesUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsInsightTypesUpdateConfigCall) Do ¶
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1InsightTypeConfig, error)
Do executes the "recommender.projects.locations.insightTypes.updateConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1InsightTypeConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsInsightTypesUpdateConfigCall) Fields ¶
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightTypesUpdateConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsInsightTypesUpdateConfigCall) Header ¶
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsInsightTypesUpdateConfigCall) UpdateMask ¶
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMask string) *ProjectsLocationsInsightTypesUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
func (*ProjectsLocationsInsightTypesUpdateConfigCall) ValidateOnly ¶
func (c *ProjectsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnly bool) *ProjectsLocationsInsightTypesUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate the request and preview the change, but do not actually update it.
type ProjectsLocationsRecommendersGetConfigCall ¶
type ProjectsLocationsRecommendersGetConfigCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersGetConfigCall) Context ¶
func (c *ProjectsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *ProjectsLocationsRecommendersGetConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersGetConfigCall) Do ¶
func (c *ProjectsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, error)
Do executes the "recommender.projects.locations.recommenders.getConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1RecommenderConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersGetConfigCall) Fields ¶
func (c *ProjectsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersGetConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersGetConfigCall) Header ¶
func (c *ProjectsLocationsRecommendersGetConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRecommendersGetConfigCall) IfNoneMatch ¶
func (c *ProjectsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsRecommendersGetConfigCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRecommendersRecommendationsGetCall ¶
type ProjectsLocationsRecommendersRecommendationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersRecommendationsGetCall) Context ¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Context(ctx context.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) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.projects.locations.recommenders.recommendations.get" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsGetCall) Fields ¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersRecommendationsGetCall) Header ¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRecommendersRecommendationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsRecommendersRecommendationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRecommendersRecommendationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
type ProjectsLocationsRecommendersRecommendationsListCall ¶
type ProjectsLocationsRecommendersRecommendationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersRecommendationsListCall) Context ¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Context(ctx context.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) (*GoogleCloudRecommenderV1ListRecommendationsResponse, error)
Do executes the "recommender.projects.locations.recommenders.recommendations.list" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1ListRecommendationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsListCall) Fields ¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersRecommendationsListCall) Filter ¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Filter(filter string) *ProjectsLocationsRecommendersRecommendationsListCall
Filter sets the optional parameter "filter": Filter expression to restrict the 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)` The max allowed filter length is 500 characters. (These expressions are based on the filter language described at https://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 add headers to the request.
func (*ProjectsLocationsRecommendersRecommendationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRecommendersRecommendationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request.
func (*ProjectsLocationsRecommendersRecommendationsListCall) PageSize ¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) PageSize(pageSize int64) *ProjectsLocationsRecommendersRecommendationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return from this request. Non-positive values are ignored. If not specified, the server will determine the number of results to return.
func (*ProjectsLocationsRecommendersRecommendationsListCall) PageToken ¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) PageToken(pageToken string) *ProjectsLocationsRecommendersRecommendationsListCall
PageToken sets the optional parameter "pageToken": If present, retrieves the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous response. The values of other method parameters must be identical to those in the previous call.
func (*ProjectsLocationsRecommendersRecommendationsListCall) Pages ¶
func (c *ProjectsLocationsRecommendersRecommendationsListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1ListRecommendationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsRecommendersRecommendationsMarkClaimedCall ¶
type ProjectsLocationsRecommendersRecommendationsMarkClaimedCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Context ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Context(ctx context.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) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markClaimed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Fields ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Header ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRecommendersRecommendationsMarkDismissedCall ¶
type ProjectsLocationsRecommendersRecommendationsMarkDismissedCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Context ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Context(ctx context.Context) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Do ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markDismissed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Fields ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Header ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRecommendersRecommendationsMarkFailedCall ¶
type ProjectsLocationsRecommendersRecommendationsMarkFailedCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Context ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Context(ctx context.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) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markFailed" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Fields ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Header ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkFailedCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRecommendersRecommendationsMarkSucceededCall ¶
type ProjectsLocationsRecommendersRecommendationsMarkSucceededCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Context ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Context(ctx context.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) (*GoogleCloudRecommenderV1Recommendation, error)
Do executes the "recommender.projects.locations.recommenders.recommendations.markSucceeded" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1Recommendation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Fields ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Header ¶
func (c *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type ProjectsLocationsRecommendersRecommendationsService ¶
type ProjectsLocationsRecommendersRecommendationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsRecommendersRecommendationsService ¶
func NewProjectsLocationsRecommendersRecommendationsService(s *Service) *ProjectsLocationsRecommendersRecommendationsService
func (*ProjectsLocationsRecommendersRecommendationsService) Get ¶
func (r *ProjectsLocationsRecommendersRecommendationsService) Get(name string) *ProjectsLocationsRecommendersRecommendationsGetCall
Get: Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService) List ¶
func (r *ProjectsLocationsRecommendersRecommendationsService) List(parent string) *ProjectsLocationsRecommendersRecommendationsListCall
List: Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
- parent: The container resource on which to execute the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_I D]` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RE COMMENDER_ID]` * `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMME NDER_ID]` LOCATION here refers to GCP Locations: https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https://cloud.google.com/recommender/docs/recommenders.
func (*ProjectsLocationsRecommendersRecommendationsService) MarkClaimed ¶
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkClaimed(name string, googlecloudrecommenderv1markrecommendationclaimedrequest *GoogleCloudRecommenderV1MarkRecommendationClaimedRequest) *ProjectsLocationsRecommendersRecommendationsMarkClaimedCall
MarkClaimed: Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService) MarkDismissed ¶
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkDismissed(name string, googlecloudrecommenderv1markrecommendationdismissedrequest *GoogleCloudRecommenderV1MarkRecommendationDismissedRequest) *ProjectsLocationsRecommendersRecommendationsMarkDismissedCall
MarkDismissed: Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService) MarkFailed ¶
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkFailed(name string, googlecloudrecommenderv1markrecommendationfailedrequest *GoogleCloudRecommenderV1MarkRecommendationFailedRequest) *ProjectsLocationsRecommendersRecommendationsMarkFailedCall
MarkFailed: Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
func (*ProjectsLocationsRecommendersRecommendationsService) MarkSucceeded ¶
func (r *ProjectsLocationsRecommendersRecommendationsService) MarkSucceeded(name string, googlecloudrecommenderv1markrecommendationsucceededrequest *GoogleCloudRecommenderV1MarkRecommendationSucceededRequest) *ProjectsLocationsRecommendersRecommendationsMarkSucceededCall
MarkSucceeded: Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
- name: Name of the recommendation.
type ProjectsLocationsRecommendersService ¶
type ProjectsLocationsRecommendersService struct { Recommendations *ProjectsLocationsRecommendersRecommendationsService // contains filtered or unexported fields }
func NewProjectsLocationsRecommendersService ¶
func NewProjectsLocationsRecommendersService(s *Service) *ProjectsLocationsRecommendersService
func (*ProjectsLocationsRecommendersService) GetConfig ¶
func (r *ProjectsLocationsRecommendersService) GetConfig(name string) *ProjectsLocationsRecommendersGetConfigCall
GetConfig: Gets the requested Recommender Config. There is only one instance of the config for each Recommender.
- name: Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_I D]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/c onfig` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMME NDER_ID]/config` * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RE COMMENDER_ID]/config`.
func (*ProjectsLocationsRecommendersService) UpdateConfig ¶
func (r *ProjectsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1recommenderconfig *GoogleCloudRecommenderV1RecommenderConfig) *ProjectsLocationsRecommendersUpdateConfigCall
UpdateConfig: Updates a Recommender Config. This will create a new revision of the config.
- name: Identifier. Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID ]/config.
type ProjectsLocationsRecommendersUpdateConfigCall ¶
type ProjectsLocationsRecommendersUpdateConfigCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsRecommendersUpdateConfigCall) Context ¶
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Context(ctx context.Context) *ProjectsLocationsRecommendersUpdateConfigCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsRecommendersUpdateConfigCall) Do ¶
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1RecommenderConfig, error)
Do executes the "recommender.projects.locations.recommenders.updateConfig" call. Any non-2xx status code is an error. Response headers are in either *GoogleCloudRecommenderV1RecommenderConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsRecommendersUpdateConfigCall) Fields ¶
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsRecommendersUpdateConfigCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*ProjectsLocationsRecommendersUpdateConfigCall) Header ¶
func (c *ProjectsLocationsRecommendersUpdateConfigCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*ProjectsLocationsRecommendersUpdateConfigCall) UpdateMask ¶
func (c *ProjectsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMask string) *ProjectsLocationsRecommendersUpdateConfigCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated.
func (*ProjectsLocationsRecommendersUpdateConfigCall) ValidateOnly ¶
func (c *ProjectsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnly bool) *ProjectsLocationsRecommendersUpdateConfigCall
ValidateOnly sets the optional parameter "validateOnly": If true, validate the request and preview the change, but do not actually update it.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { InsightTypes *ProjectsLocationsInsightTypesService Recommenders *ProjectsLocationsRecommendersService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment BillingAccounts *BillingAccountsService Folders *FoldersService Organizations *OrganizationsService Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.